@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --muted-foreground: #71717a;
  --secondary: #f4f4f5;
  --accent: #f4f4f5;
  --border: #e4e4e7;
  --primary: #18181b;
  --primary-foreground: #fafafa;
  --planner: #7936ff;
}

.dark {
  --background: #09090b;
  --foreground: #fafafa;
  --muted-foreground: #a1a1aa;
  --secondary: #18181b;
  --accent: #27272a;
  --border: #27272a;
  --primary: #fafafa;
  --primary-foreground: #09090b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body.landing {
  margin: 0;
  min-height: 100dvh;
  font-family: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
  color: var(--foreground);
  background: var(--background);
}

.landing-root {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
}

.landing-stage {
  position: relative;
  flex: 1 0 auto;
}

/* Field — same language as Khudio home, planner purple shades */

.landing-field {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(121, 54, 255, 0.1),
      transparent 40%
    ),
    var(--background);
}

.landing-field__mesh {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(
      ellipse 50% 42% at 12% 48%,
      rgba(196, 181, 253, 0.28),
      transparent 72%
    ),
    radial-gradient(
      ellipse 45% 38% at 88% 18%,
      rgba(121, 54, 255, 0.2),
      transparent 72%
    ),
    radial-gradient(
      ellipse 46% 48% at 88% 88%,
      rgba(147, 51, 234, 0.16),
      transparent 72%
    );
  filter: blur(24px);
  animation: landing-mesh-drift 22s ease-in-out infinite alternate;
}

.landing-field__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 70% at 40% 40%, black 20%, transparent 75%);
}

.dark .landing-field {
  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(121, 54, 255, 0.16),
      transparent 42%
    ),
    var(--background);
}

.dark .landing-field__mesh {
  background:
    radial-gradient(
      ellipse 50% 42% at 12% 48%,
      rgba(167, 139, 250, 0.16),
      transparent 72%
    ),
    radial-gradient(
      ellipse 45% 38% at 88% 18%,
      rgba(121, 54, 255, 0.18),
      transparent 72%
    ),
    radial-gradient(
      ellipse 46% 48% at 88% 88%,
      rgba(139, 92, 246, 0.12),
      transparent 72%
    );
}

.dark .landing-field__grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

@keyframes landing-mesh-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, -1.5%, 0) scale(1.04);
  }
}

@media (max-width: 767px) {
  .landing-field__grid {
    background-size: 42px 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .landing-field__mesh {
    animation: none;
  }
}

/* Header */

.landing-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding: 1.25rem 1rem 1rem;
  background: transparent;
}

.landing-nav {
  display: flex;
  width: 100%;
  align-items: center;
}

@media (min-width: 1024px) {
  .landing-nav {
    padding-inline: 1rem;
  }
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.landing-brand:hover {
  opacity: 0.8;
}

.landing-brand img {
  display: block;
}

.landing-header-actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 1rem;
}

.landing-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: transparent;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 160ms ease;
}

.landing-login:hover {
  background: var(--accent);
}

.landing-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease;
}

.landing-icon-btn:hover {
  background: var(--accent);
}

.landing-icon-btn:focus-visible,
.landing-login:focus-visible,
.landing-brand:focus-visible,
.start-button:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

.landing-theme-icon {
  display: none;
}

html.light .landing-theme-icon-sun,
html.dark .landing-theme-icon-moon {
  display: block;
}

/* Hero */

.landing-hero {
  position: relative;
  z-index: 10;
  isolation: isolate;
  min-height: 100svh;
}

.landing-hero-inner {
  display: flex;
  align-items: center;
  min-height: 100svh;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 6rem 1.25rem 3rem;
}

@media (min-width: 768px) {
  .landing-hero-inner {
    padding-inline: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .landing-hero-inner {
    padding-inline: 4rem;
  }
}

.landing-hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 7vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.landing-hero h1 span {
  display: block;
}

.landing-hero h1 span + span {
  margin-top: 0.25rem;
}

.landing-hero h1 .muted {
  color: var(--muted-foreground);
}

.landing-lede {
  margin: 2rem 0 0;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .landing-lede {
    font-size: 1.125rem;
  }
}

.landing-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

/* Start buttons — same language as Khudio home */

.start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2.5rem;
  border-radius: 9999px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary-foreground);
  background: var(--primary);
  border: 2px solid var(--primary);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow:
    0 0 0 2px color-mix(in oklab, white 95%, transparent) inset,
    0 0 3px color-mix(in oklab, black 45%, transparent),
    0 0 14px color-mix(in oklab, black 38%, transparent),
    0 0 32px color-mix(in oklab, black 30%, transparent),
    0 0 64px color-mix(in oklab, black 22%, transparent),
    0 0 120px color-mix(in oklab, black 16%, transparent);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.start-button:hover {
  transform: translateY(-1px);
  background: var(--primary-foreground);
  color: var(--primary);
  box-shadow:
    0 0 0 2px var(--primary) inset,
    0 0 6px color-mix(in oklab, black 55%, transparent),
    0 0 20px color-mix(in oklab, black 45%, transparent),
    0 0 48px color-mix(in oklab, black 35%, transparent),
    0 0 90px color-mix(in oklab, black 25%, transparent),
    0 0 160px color-mix(in oklab, black 18%, transparent);
}

.start-button:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 2px var(--primary) inset,
    0 6px 14px color-mix(in oklab, black 35%, transparent);
}

.dark .start-button {
  background: var(--background);
  color: var(--foreground);
  border: 2px solid var(--foreground);
  box-shadow:
    inset 0 0 0 4px color-mix(in oklab, black 85%, transparent),
    0 0 2px color-mix(in oklab, white 35%, transparent),
    0 0 12px color-mix(in oklab, white 30%, transparent),
    0 0 28px color-mix(in oklab, white 22%, transparent),
    0 0 56px color-mix(in oklab, white 16%, transparent);
}

.dark .start-button:hover {
  transform: translateY(-1px);
  background: var(--foreground);
  color: var(--background);
  box-shadow:
    inset 0 0 0 4px black,
    0 0 4px color-mix(in oklab, white 45%, transparent),
    0 0 18px color-mix(in oklab, white 38%, transparent),
    0 0 40px color-mix(in oklab, white 28%, transparent),
    0 0 72px color-mix(in oklab, white 20%, transparent);
}

.dark .start-button:active {
  transform: translateY(0);
  box-shadow:
    inset 0 0 0 4px black,
    0 0 12px color-mix(in oklab, white 25%, transparent);
}

.start-button-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: var(--foreground);
  box-shadow:
    0 0 0 1px color-mix(in oklab, white 40%, transparent) inset,
    0 0 18px color-mix(in oklab, black 12%, transparent);
}

.start-button-ghost:hover {
  background: var(--foreground);
  color: var(--background);
}

.dark .start-button-ghost {
  background: transparent;
  color: var(--foreground);
  box-shadow:
    inset 0 0 0 3px color-mix(in oklab, black 45%, transparent),
    0 0 18px color-mix(in oklab, white 12%, transparent);
}

.dark .start-button-ghost:hover {
  background: var(--foreground);
  color: var(--background);
}

/* Sections */

.landing-sections {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8rem;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 6rem 1.25rem 6rem;
}

@media (min-width: 768px) {
  .landing-sections {
    padding-inline: 2.5rem;
  }
}

.landing-what {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .landing-what {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

.landing-kicker {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.landing-what h2 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .landing-what h2 {
    font-size: 2.25rem;
  }
}

.landing-what-copy {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.landing-what-copy p {
  margin: 0;
}

.landing-features {
  padding-top: 3rem;
  scroll-margin-top: 5rem;
}

.landing-features-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.landing-features-head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .landing-features-head h2 {
    font-size: 1.875rem;
  }
}

.landing-features-head p {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .landing-features-head p {
    font-size: 1rem;
    line-height: 1.625;
  }
}

.landing-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .landing-feature-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.landing-feature-list h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.landing-feature-list p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .landing-feature-list p {
    font-size: 1rem;
    line-height: 1.625;
  }
}

.landing-contact {
  padding: 3rem 0;
  text-align: center;
}

.landing-contact h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.landing-contact p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.landing-contact a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.landing-contact a:hover {
  color: var(--foreground);
}

/* Footer */

.landing-footer {
  border-top: 1px solid var(--border);
  background: var(--secondary);
}

.landing-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.landing-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.landing-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.landing-footer a:hover {
  color: var(--foreground);
}
