:root {
  --background: #070b13;
  --surface: rgba(15, 22, 36, 0.74);
  --surface-strong: rgba(17, 25, 42, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f7f8fb;
  --muted: #9aa7ba;
  --accent: #8e9dff;
  --accent-bright: #b7c0ff;
  --accent-soft: rgba(142, 157, 255, 0.17);
  --danger: #ff9cab;
  --success: #87e2bd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--background);
  font-family: "DM Sans", system-ui, sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.site-background__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(100px);
}

.site-background__orb--one {
  top: -28vw;
  right: -16vw;
  width: 62vw;
  height: 62vw;
  min-width: 600px;
  min-height: 600px;
  background: rgba(99, 112, 255, 0.32);
}

.site-background__orb--two {
  bottom: -32vw;
  left: -12vw;
  width: 54vw;
  height: 54vw;
  min-width: 520px;
  min-height: 520px;
  background: rgba(103, 72, 190, 0.2);
}

.site-background__grid {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.landing-header {
  width: min(100% - 42px, 1320px);
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.landing-brand__mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.landing-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.landing-nav a:hover {
  color: var(--text);
}

.landing-nav .header-login {
  color: var(--text);
}

.landing-nav .header-signup {
  padding: 10px 16px;
  border-radius: 999px;
  color: #07101a;
  background: var(--text);
  font-weight: 700;
}

.hero-section {
  width: min(100% - 42px, 1320px);
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
  align-items: center;
  gap: clamp(36px, 7vw, 110px);
  margin: 0 auto;
  padding: 84px 0 94px;
}

.hero-eyebrow,
.section-heading > p {
  margin: 0 0 15px;
  color: var(--accent-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.hero-copy h1,
.auth-intro h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.2rem, 7vw, 7.1rem);
  line-height: 0.91;
  letter-spacing: -0.075em;
}

.hero-copy h1 span {
  display: block;
  color: var(--muted);
}

.hero-description {
  max-width: 625px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
}

.primary-link,
.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 15px 19px;
  border: 0;
  border-radius: 999px;
  color: #080d16;
  background: var(--text);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  transition: transform 160ms ease;
}

.primary-link:hover,
.auth-submit:hover {
  transform: translateY(-2px);
}

.secondary-link {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.secondary-link:hover {
  color: var(--text);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 58px;
}

.proof-item {
  display: grid;
  gap: 4px;
}

.proof-item strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.55rem;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.72rem;
}

.proof-divider {
  width: 1px;
  height: 38px;
  background: var(--border);
}

.hero-visual {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
}

.visual-card {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(24px);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.38);
}

.visual-card--main {
  width: min(100%, 490px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border-radius: 34px;
  transform: rotate(2.5deg);
}

.visual-card__top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.live-dot {
  color: var(--success);
}

.visual-orb {
  position: relative;
  width: 255px;
  height: 255px;
  display: grid;
  place-items: center;
  margin: 44px auto;
}

.visual-orb__core,
.visual-orb__ring {
  position: absolute;
  border-radius: 999px;
}

.visual-orb__core {
  width: 42%;
  height: 42%;
  background: radial-gradient(circle at 34% 27%, #fff, var(--accent) 35%, transparent 72%);
  box-shadow: 0 0 70px rgba(142, 157, 255, 0.5);
  animation: landing-breathe 6s ease-in-out infinite;
}

.visual-orb__ring {
  border: 1px solid rgba(170, 180, 255, 0.42);
}

.visual-orb__ring--one {
  width: 74%;
  height: 74%;
  transform: rotate(18deg) scaleY(0.62);
}

.visual-orb__ring--two {
  width: 100%;
  height: 100%;
  opacity: 0.42;
  transform: rotate(-28deg) scaleX(0.66);
}

.visual-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
}

.visual-track div {
  display: grid;
  gap: 5px;
}

.visual-track small {
  color: var(--accent-bright);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
}

.visual-track strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
}

.visual-track span {
  color: var(--muted);
  font-size: 0.73rem;
}

.visual-track button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #080d16;
  background: var(--text);
}

.visual-progress {
  height: 6px;
  margin-top: 25px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.visual-progress span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.floating-state {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(17, 25, 42, 0.82);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.floating-state > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--accent-bright);
  background: var(--accent-soft);
}

.floating-state div {
  display: grid;
}

.floating-state small {
  color: var(--muted);
}

.floating-state--study {
  top: 76px;
  left: -32px;
}

.floating-state--create {
  right: -18px;
  bottom: 90px;
}

.states-section,
.how-section {
  width: min(100% - 42px, 1320px);
  margin: 0 auto;
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading h2,
.final-cta h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.section-heading--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.state-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.state-tile,
.steps-grid article {
  min-height: 230px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-soft);
}

.state-tile > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: var(--accent-bright);
  background: var(--accent-soft);
  font-size: 1.25rem;
}

.state-tile h3,
.steps-grid h3 {
  margin: 56px 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.state-tile p,
.steps-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.steps-grid article > span {
  color: var(--accent-bright);
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
}

.final-cta {
  width: min(100% - 42px, 1320px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin: 0 auto 90px;
  padding: 55px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(142, 157, 255, 0.22), transparent 48%),
    var(--surface);
}

.final-cta h2 {
  max-width: 780px;
}

.landing-footer {
  width: min(100% - 42px, 1320px);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.landing-footer p,
.landing-footer a {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.landing-footer div {
  display: flex;
  gap: 18px;
}

/* Authentication pages */

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(520px, 1.1fr);
}

.auth-intro {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 5vw, 72px);
  border-right: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 80%, rgba(142, 157, 255, 0.14), transparent 44%),
    rgba(7, 12, 22, 0.5);
}

.auth-intro > div:not(.auth-benefits) {
  max-width: 650px;
}

.auth-intro h1 {
  font-size: clamp(3.2rem, 6vw, 6.4rem);
}

.auth-intro p:not(.hero-eyebrow) {
  max-width: 530px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.auth-intro blockquote {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-benefits {
  display: grid;
  gap: 11px;
  color: var(--muted);
  font-size: 0.87rem;
}

.auth-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
}

.auth-card {
  width: min(100%, 490px);
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px);
}

.auth-card__heading {
  margin-bottom: 30px;
}

.auth-card__heading h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  letter-spacing: -0.065em;
}

.auth-card__heading p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-field {
  display: grid;
  gap: 9px;
  margin-bottom: 17px;
}

.auth-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.052);
}

.auth-field input:focus {
  border-color: rgba(142, 157, 255, 0.68);
  box-shadow: 0 0 0 4px rgba(142, 157, 255, 0.1);
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.auth-message {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.auth-message--error {
  color: var(--danger);
}

.auth-message--success {
  color: var(--success);
}

.auth-switch {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.auth-switch a {
  color: var(--text);
  font-weight: 700;
}

@keyframes landing-breathe {
  0%,
  100% {
    transform: scale(0.91);
    opacity: 0.78;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 620px;
  }

  .state-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-intro {
    min-height: auto;
    gap: 70px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .auth-panel {
    min-height: auto;
    padding: 72px 24px;
  }
}

@media (max-width: 680px) {
  .landing-header {
    height: 74px;
  }

  .landing-nav > a:not(.header-login):not(.header-signup) {
    display: none;
  }

  .landing-nav {
    gap: 12px;
  }

  .landing-nav .header-login {
    display: none;
  }

  .hero-section {
    padding-top: 68px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .hero-proof {
    align-items: flex-start;
    flex-direction: column;
  }

  .proof-divider {
    width: 60px;
    height: 1px;
  }

  .hero-visual {
    min-height: 510px;
  }

  .visual-card--main {
    min-height: 450px;
  }

  .visual-orb {
    width: 210px;
    height: 210px;
    margin: 34px auto;
  }

  .floating-state--study {
    left: -8px;
  }

  .floating-state--create {
    right: -8px;
  }

  .state-showcase,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .states-section,
  .how-section {
    padding: 86px 0;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 34px 26px;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px 0;
  }

  .auth-intro {
    padding: 30px 24px 56px;
  }

  .auth-intro h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .auth-panel {
    padding: 48px 18px;
  }

  .auth-card {
    padding: 28px 22px;
  }
}
