:root {
  --blue: #145cff;
  --blue-deep: #0b2c78;
  --ink: #111111;
  --blue-soft: #eaf1ff;
  --blue-pale: #f5f8ff;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--white);
}

body {
  color: var(--ink);
  font-family: "Arial Black", "Noto Sans", "DejaVu Sans", Arial, sans-serif;
  font-weight: 800;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(1240px, calc(100% - 44px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px clamp(18px, 4.5vw, 72px) 44px;
  overflow: hidden;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 2px solid var(--blue-deep);
  animation: slide-down 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  animation: icon-breathe 4.8s ease-in-out 900ms infinite;
}

.brand-name {
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.header-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 30px);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-pill {
  padding: 11px 18px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: clamp(26px, 7vw, 100px);
  align-items: center;
  min-height: 430px;
  padding: clamp(70px, 11vw, 140px) 0 clamp(64px, 9vw, 110px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  animation: fade-up 800ms 150ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.kicker {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 7.4vw, 96px);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.88;
}

.hero h1 span {
  color: var(--blue);
}

.hero-text {
  max-width: 460px;
  margin: 28px 0 0;
  color: var(--ink);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 900;
  line-height: 1.55;
  opacity: 0.78;
}

.continue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  margin-top: 32px;
  padding: 15px 28px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(20, 92, 255, 0.18);
  animation: fade-up 800ms 500ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.continue-button:hover {
  background: var(--blue-deep);
  box-shadow: 0 14px 30px rgba(20, 92, 255, 0.26);
  transform: translateY(-3px);
}

.continue-button:active {
  transform: translateY(0) scale(0.98);
}

.hero-mark {
  position: relative;
  display: grid;
  min-height: 300px;
  place-items: center;
  animation: fade-in 1000ms 350ms ease-out both;
}

.hero-mark img {
  position: relative;
  z-index: 1;
  width: min(260px, 72%);
  height: auto;
  animation: mark-float 5.5s ease-in-out 1.2s infinite;
}

.mark-orbit {
  position: absolute;
  display: block;
  width: min(330px, 92%);
  aspect-ratio: 1;
  border: 2px solid var(--blue);
  border-radius: 47% 53% 50% 50%;
  transform: rotate(22deg);
}

.mark-orbit--one {
  opacity: 0.22;
  transform: rotate(22deg) scale(0.85, 1.05);
  animation: orbit-one 8s ease-in-out infinite;
}

.mark-orbit--two {
  opacity: 0.42;
  transform: rotate(-18deg) scale(1.02, 0.8);
  animation: orbit-two 10s ease-in-out 300ms infinite;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.note-card {
  position: relative;
  min-height: 310px;
  padding: clamp(26px, 4vw, 48px);
  border: 2px solid var(--blue);
  border-radius: 22px;
  background: var(--blue-pale);
  overflow: hidden;
  animation: fade-up 800ms 500ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.note-card::after {
  position: absolute;
  right: -45px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  content: "";
  border: 24px solid var(--blue-soft);
  border-radius: 50%;
}

.note-card--secondary {
  background: var(--blue);
  color: var(--white);
  animation-delay: 650ms;
}

.note-card--secondary::after {
  border-color: rgba(255, 255, 255, 0.14);
}

.card-topline,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card-topline {
  padding-bottom: 15px;
  border-bottom: 1px solid currentColor;
  opacity: 0.7;
}

.note-card h2 {
  position: relative;
  z-index: 1;
  margin: 48px 0 15px;
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.9;
}

.note-card h2 span {
  color: var(--blue);
}

.note-card--secondary h2 span {
  color: var(--white);
  opacity: 0.68;
}

.note-card p {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  opacity: 0.78;
}

.card-footer {
  position: absolute;
  right: clamp(26px, 4vw, 48px);
  bottom: 26px;
  left: clamp(26px, 4vw, 48px);
  z-index: 1;
}

.card-footer i {
  display: block;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: var(--blue);
}

.note-card--secondary .card-footer i {
  background: var(--white);
}

.closing {
  margin-top: clamp(62px, 9vw, 112px);
  text-align: center;
  animation: fade-up 800ms 850ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes icon-breathe {
  0%, 100% { transform: rotate(-2deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.06); }
}

@keyframes mark-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes orbit-one {
  0%, 100% { transform: rotate(22deg) scale(0.85, 1.05); }
  50% { transform: rotate(34deg) scale(0.92, 1.1); }
}

@keyframes orbit-two {
  0%, 100% { transform: rotate(-18deg) scale(1.02, 0.8); }
  50% { transform: rotate(-30deg) scale(1.08, 0.86); }
}

.closing-line {
  width: 100%;
  height: 3px;
  margin-bottom: 28px;
  background: var(--blue);
}

.closing-card {
  display: inline-flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 34px 20px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  color: var(--blue-deep);
}

.closing-card strong {
  font-size: clamp(20px, 2.4vw, 31px);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.closing-card span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .page {
    width: calc(100% - 22px);
    padding: 16px 12px 28px;
  }

  .header {
    min-height: 62px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 25px;
  }

  .header-links span:not(.header-pill) {
    display: none;
  }

  .header-pill {
    padding: 9px 13px;
    font-size: 9px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 26px;
    padding: 72px 0 58px;
  }

  .hero h1 {
    font-size: clamp(49px, 14vw, 72px);
  }

  .hero-text {
    font-size: 14px;
  }

  .continue-button {
    width: 100%;
    margin-top: 25px;
  }

  .hero-mark {
    min-height: 210px;
  }

  .hero-mark img {
    width: 150px;
  }

  .mark-orbit {
    width: 220px;
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .note-card {
    min-height: 270px;
  }

  .note-card h2 {
    margin-top: 40px;
    font-size: 46px;
  }

  .note-card p {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Login and profile workspace */
[hidden] { display: none !important; }

.header-links a {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-links a:hover { color: var(--ink); }
.header-links a.header-pill,
.header-links a.header-pill:hover { color: var(--white); }

.auth-view,
.profile-view {
  padding: clamp(64px, 9vw, 112px) 0 60px;
  animation: fade-up 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(38px, 9vw, 130px);
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.auth-intro h1,
.profile-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(54px, 7vw, 88px);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.88;
}

.auth-intro h1 span,
.profile-heading h1 span { color: var(--blue); }

.auth-card,
.profile-card {
  border: 2px solid var(--blue);
  border-radius: 24px;
  background: var(--blue-pale);
  box-shadow: 0 22px 50px rgba(20, 92, 255, 0.12);
}

.auth-card { padding: 28px; }

.auth-provider,
.primary-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.auth-provider + .auth-provider { margin-top: 10px; }
.auth-provider b { min-width: 25px; color: var(--blue); font-size: 15px; }
.auth-provider:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.auth-provider:hover b { color: var(--white); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 23px 0 18px;
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after { flex: 1; height: 1px; content: ""; background: rgba(11, 44, 120, 0.3); }

.email-form,
.profile-card { display: flex; flex-direction: column; }
.email-form label,
.profile-card label { margin: 14px 0 7px; color: var(--blue-deep); font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.email-form input,
.profile-card input,
.profile-card textarea {
  width: 100%;
  border: 2px solid rgba(11, 44, 120, 0.28);
  border-radius: 12px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font: 800 14px/1.4 inherit;
  padding: 13px 14px;
}

.email-form input:focus,
.profile-card input:focus,
.profile-card textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20, 92, 255, 0.12); }
.primary-button { margin-top: 17px; background: var(--blue); color: var(--white); }
.primary-button:hover { background: var(--blue-deep); transform: translateY(-2px); }
.auth-note { margin: 20px 0 0; color: var(--blue-deep); font-size: 11px; font-weight: 800; text-align: center; }
.auth-note a { color: var(--blue); font-weight: 900; }

.profile-heading { max-width: 580px; margin-bottom: 42px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr); gap: 26px; max-width: 1000px; margin: 0 auto; }
.profile-card { padding: clamp(22px, 3vw, 36px); }
.profile-card-top { display: flex; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid rgba(11, 44, 120, 0.3); color: var(--blue-deep); font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.status-dot { color: var(--blue); }
.avatar-row { display: flex; align-items: center; gap: 18px; margin: 24px 0 10px; }
.avatar-wrap { display: grid; width: 88px; height: 88px; place-items: center; overflow: hidden; border: 2px solid var(--blue); border-radius: 50%; background: var(--white); }
.avatar-wrap img { width: 72px; height: 72px; object-fit: contain; }
.upload-button { display: inline-block !important; margin: 0 !important; padding: 10px 14px; border-radius: 999px; background: var(--blue); color: var(--white) !important; cursor: pointer; }
.field-hint { margin: 10px 0 0; color: var(--blue-deep); font-size: 11px; font-weight: 700; opacity: 0.7; }
.locked { margin-left: 5px; color: var(--blue); font-size: 9px; }
.profile-card input[readonly] { background: var(--blue-soft); color: var(--blue-deep); cursor: not-allowed; }
.profile-card textarea { resize: vertical; }
.save-message { min-height: 16px; margin: 12px 0 0; color: var(--blue); font-size: 11px; font-weight: 900; text-align: center; }
.connector-intro { color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.5; }
.connector-row { display: flex !important; align-items: center; justify-content: space-between; min-height: 56px; margin: 0 !important; padding: 6px 0; border-bottom: 1px solid rgba(11, 44, 120, 0.16); color: var(--ink) !important; cursor: pointer; letter-spacing: 0 !important; text-transform: none !important; }
.connector-row > span { display: flex; align-items: center; gap: 10px; }
.connector-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--blue); color: var(--white); font-size: 12px; }
.connector-row input { position: absolute; opacity: 0; pointer-events: none; }
.connector-row i { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #cbd6ee; transition: background 180ms ease; }
.connector-row i::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; content: ""; border-radius: 50%; background: var(--white); transition: transform 180ms ease; }
.connector-row input:checked + i { background: var(--blue); }
.connector-row input:checked + i::after { transform: translateX(18px); }

@media (max-width: 760px) {
  .auth-view,
  .profile-view { padding-top: 54px; }
  .auth-shell,
  .profile-layout { grid-template-columns: 1fr; gap: 30px; }
  .auth-intro h1,
  .profile-heading h1 { font-size: clamp(52px, 16vw, 72px); }
  .auth-card { padding: 20px; }
  .profile-heading { margin-bottom: 28px; }
}
