/* OHIMY Landing Page — aligned with the unified Linear/Stripe design tokens */

:root,
[data-theme="dark"] {
  color-scheme: dark;
  scroll-behavior: smooth;
  --ld-bg: #0b0e14;
  --ld-bg-elevated: #0f131c;
  --ld-surface: #131824;
  --ld-surface-hover: #171e2d;
  --ld-surface-soft: #1a2132;
  --ld-header-bg: rgba(11, 14, 20, 0.82);
  --ld-border: rgba(148, 163, 184, 0.14);
  --ld-border-strong: rgba(148, 163, 184, 0.24);
  --ld-text: #f1f5f9;
  --ld-text-secondary: #cbd5e1;
  --ld-muted: #94a3b8;
  --ld-subtle: #64748b;
  --ld-primary: #6366f1;
  --ld-primary-hover: #7577f5;
  --ld-primary-label: #a5b4fc;
  --ld-primary-tint: rgba(99, 102, 241, 0.14);
  --ld-secondary-label: #c4b5fd;
  --ld-secondary-tint: rgba(139, 92, 246, 0.14);
  --ld-accent-label: #7dd3fc;
  --ld-accent-tint: rgba(56, 189, 248, 0.14);
  --ld-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --ld-shadow-lg: 0 24px 56px -16px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --ld-focus-ring: 0 0 0 3px rgba(99, 102, 241, 0.32);
  --ld-grid-line: rgba(148, 163, 184, 0.06);
  --ld-orbit: rgba(165, 180, 252, 0.16);
}

[data-theme="light"] {
  color-scheme: light;
  --ld-bg: #f8fafc;
  --ld-bg-elevated: #f1f5f9;
  --ld-surface: #ffffff;
  --ld-surface-hover: #ffffff;
  --ld-surface-soft: #f1f5f9;
  --ld-header-bg: rgba(248, 250, 252, 0.86);
  --ld-border: rgba(15, 23, 42, 0.08);
  --ld-border-strong: rgba(15, 23, 42, 0.16);
  --ld-text: #0f172a;
  --ld-text-secondary: #334155;
  --ld-muted: #64748b;
  --ld-subtle: #94a3b8;
  --ld-primary: #4f46e5;
  --ld-primary-hover: #4338ca;
  --ld-primary-label: #4338ca;
  --ld-primary-tint: rgba(79, 70, 229, 0.1);
  --ld-secondary-label: #6d28d9;
  --ld-secondary-tint: rgba(124, 58, 237, 0.1);
  --ld-accent-label: #0284c7;
  --ld-accent-tint: rgba(2, 132, 199, 0.1);
  --ld-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 1px rgba(15, 23, 42, 0.02);
  --ld-shadow-lg: 0 20px 44px -16px rgba(15, 23, 42, 0.12), 0 4px 12px -4px rgba(15, 23, 42, 0.05);
  --ld-focus-ring: 0 0 0 3px rgba(79, 70, 229, 0.2);
  --ld-grid-line: rgba(15, 23, 42, 0.045);
  --ld-orbit: rgba(79, 70, 229, 0.16);
}

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

body.landing-page {
  margin: 0;
  min-height: 100vh;
  background: var(--ld-bg);
  color: var(--ld-text);
  font-family: "Inclusive Sans", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--ld-focus-ring);
}

.shell {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

/* Sticky frosted navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--ld-border);
  background: var(--ld-header-bg);
  backdrop-filter: blur(14px);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 17px;
  border-radius: 8px;
}

.brand small {
  font-size: 13px;
  font-weight: 500;
  color: var(--ld-muted);
  margin-left: 4px;
}

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

.nav nav a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--ld-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 150ms ease, background-color 150ms ease;
}

.nav nav a:hover {
  color: var(--ld-text);
  background: var(--ld-surface-soft);
}

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ld-border-strong);
  border-radius: 8px;
  background: var(--ld-surface);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--ld-shadow-sm);
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease, color 150ms ease;
}

.nav-login:hover {
  border-color: var(--ld-primary);
  color: var(--ld-primary-label);
}

.nav-login:active {
  transform: scale(0.985);
}

/* Hero section */
.hero-wrap {
  position: relative;
  overflow: hidden;
}

.hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--ld-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ld-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 15%, transparent 100%);
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  padding-block: 72px 88px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ld-primary-label);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid var(--ld-border-strong);
  background: var(--ld-surface);
  letter-spacing: 0.04em;
  text-transform: none;
  box-shadow: var(--ld-shadow-sm);
}

.eyebrow span {
  width: 7px;
  height: 7px;
  background: var(--ld-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--ld-primary);
}

.hero h1,
.section h2,
.workflow h2 {
  letter-spacing: -0.035em;
  line-height: 1.16;
  margin: 20px 0;
}

.hero h1 {
  font-size: clamp(40px, 4.8vw, 62px);
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--ld-primary) 0%, #818cf8 50%, #38bdf8 100%);
  background-clip: text;
  color: transparent;
}

.hero-copy > p,
.workflow-inner > div > p {
  max-width: 480px;
  color: var(--ld-muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

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

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, color 150ms ease;
}

.button:active {
  transform: scale(0.985);
}

.button-primary {
  background: var(--ld-primary);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.35), 0 8px 24px -6px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button-primary:hover {
  background: var(--ld-primary-hover);
  box-shadow: 0 10px 28px -6px rgba(99, 102, 241, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.button-text {
  border: 1px solid var(--ld-border-strong);
  background: var(--ld-surface);
  color: var(--ld-text-secondary);
  box-shadow: var(--ld-shadow-sm);
}

.button-text:hover {
  border-color: var(--ld-primary);
  color: var(--ld-text);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
  color: var(--ld-subtle);
  font-size: 13px;
}

.note-line {
  width: 28px;
  height: 1px;
  background: var(--ld-border-strong);
}

/* Hero orbital diagram */
.hero-art {
  position: relative;
  height: 480px;
  display: grid;
  place-items: center;
}

.art-glow {
  position: absolute;
  width: 72%;
  height: 72%;
  background: var(--ld-primary);
  filter: blur(110px);
  opacity: 0.14;
  pointer-events: none;
}

.orbit {
  position: absolute;
  border: 1px solid var(--ld-orbit);
  border-radius: 50%;
}

.orbit-one {
  width: 244px;
  height: 244px;
}

.orbit-two {
  width: 368px;
  height: 368px;
}

.orbit-three {
  width: 472px;
  height: 472px;
  border-style: dashed;
  opacity: 0.65;
}

.art-center {
  position: relative;
  z-index: 1;
  width: 164px;
  height: 164px;
  border: 1px solid var(--ld-border-strong);
  border-radius: 50%;
  background: var(--ld-surface);
  box-shadow: var(--ld-shadow-lg), 0 0 64px var(--ld-primary-tint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.art-center span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.art-center small {
  font-size: 11px;
  color: var(--ld-muted);
}

.art-node {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ld-surface);
  border: 1px solid var(--ld-border-strong);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--ld-shadow-lg);
  transition: transform 200ms ease, border-color 200ms ease;
}

.art-node:hover {
  transform: translateY(-2px);
  border-color: var(--ld-primary);
}

.art-node strong,
.art-node small {
  display: block;
  white-space: nowrap;
}

.art-node strong {
  font-size: 14px;
  font-weight: 600;
}

.art-node small {
  font-size: 12px;
  color: var(--ld-muted);
}

.node-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ld-primary-tint);
  color: var(--ld-primary-label);
  font-weight: 600;
  font-size: 14px;
}

.node-booking {
  top: 54px;
  left: 0;
}

.node-community {
  right: 0;
  top: 174px;
}

.node-marketing {
  left: 32px;
  bottom: 54px;
}

.art-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--ld-primary);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--ld-primary);
}

.spark-one {
  top: 86px;
  right: 92px;
}

.spark-two {
  bottom: 84px;
  right: 120px;
  background: #38bdf8;
  box-shadow: 0 0 16px #38bdf8;
}

/* Intro strip */
.intro-band {
  border-block: 1px solid var(--ld-border);
  background: var(--ld-bg-elevated);
}

.intro-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
}

.intro-inner span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ld-subtle);
}

.intro-inner p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ld-text-secondary);
}

/* Content sections */
.section {
  padding-block: 104px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 44px;
}

.section h2,
.workflow h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  margin: 12px 0 0;
}

.section-heading > p {
  color: var(--ld-muted);
  max-width: 340px;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 20px;
}

.feature {
  min-height: 310px;
  border: 1px solid var(--ld-border);
  background: var(--ld-surface);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--ld-shadow-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.feature:hover {
  border-color: var(--ld-primary);
  box-shadow: var(--ld-shadow-lg);
  transform: translateY(-2px);
}

.feature-symbol {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ld-primary-label);
  background: var(--ld-primary-tint);
}

.symbol-community {
  color: var(--ld-secondary-label);
  background: var(--ld-secondary-tint);
}

.symbol-code {
  color: var(--ld-accent-label);
  background: var(--ld-accent-tint);
}

.feature-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ld-subtle);
  font-weight: 600;
}

.feature h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
}

.feature p {
  font-size: 14px;
  color: var(--ld-muted);
  margin: 0;
  line-height: 1.75;
}

.feature-index {
  border-top: 1px solid var(--ld-border);
  padding-top: 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ld-subtle);
}

/* Workflow section */
.workflow {
  background: var(--ld-bg-elevated);
  border-block: 1px solid var(--ld-border);
}

.workflow-inner {
  padding-block: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}

.scenario-tags,
.protocols {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.scenario-tags span,
.protocols span {
  padding: 6px 12px;
  border: 1px solid var(--ld-border-strong);
  border-radius: 9999px;
  background: var(--ld-surface);
  color: var(--ld-text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.conversation {
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--ld-shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.conversation-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ld-border);
}

.conversation-avatar,
.conversation-answer > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ld-primary-tint);
  color: var(--ld-primary-label);
}

.conversation-head strong,
.conversation-head small {
  display: block;
}

.conversation-head strong {
  font-size: 15px;
  font-weight: 600;
}

.conversation-head small {
  color: var(--ld-muted);
  font-size: 12px;
}

.conversation-answer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.conversation-answer p {
  margin: 0;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid var(--ld-border);
  background: var(--ld-surface-soft);
  color: var(--ld-text-secondary);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}

.conversation-prompt {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--ld-border);
  color: var(--ld-muted);
  font-size: 12px;
}

.conversation-prompt strong {
  display: block;
  margin-top: 4px;
  color: var(--ld-text);
  font-size: 14px;
  font-weight: 500;
}

/* Gateway showcase */
.gateway-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}

.gateway-main,
.gateway-details {
  border: 1px solid var(--ld-border);
  border-radius: 16px;
  background: var(--ld-surface);
  padding: 32px;
  box-shadow: var(--ld-shadow-sm);
}

.gateway-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, var(--ld-primary-tint) 0%, var(--ld-surface) 58%);
}

.gateway-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ld-primary-tint);
  color: var(--ld-primary-label);
  margin-bottom: 24px;
}

.gateway-main h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
}

.gateway-main p,
.gateway-details p {
  color: var(--ld-muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

.gateway-main p {
  max-width: 460px;
}

.gateway-details article + article {
  border-top: 1px solid var(--ld-border);
  margin-top: 20px;
  padding-top: 20px;
}

.gateway-details strong {
  font-size: 16px;
  font-weight: 600;
}

.gateway-details p {
  margin-top: 6px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--ld-border);
  background: var(--ld-bg-elevated);
}

.footer-inner {
  min-height: 100px;
  padding-block: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p,
.footer-meta {
  margin: 0;
  font-size: 13px;
  color: var(--ld-muted);
}

.footer-meta,
.footer-records {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer-records a {
  color: var(--ld-muted);
  transition: color 150ms ease;
}

.footer-records a:hover {
  color: var(--ld-text);
}

.police-record {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.police-record img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 32px, 680px);
  }

  .nav {
    height: 64px;
  }

  .nav nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-block: 48px 56px;
    gap: 24px;
  }

  .hero-note {
    margin-top: 36px;
  }

  .hero-art {
    height: 410px;
  }

  .orbit-three {
    width: 370px;
    height: 370px;
  }

  .orbit-two {
    width: 290px;
    height: 290px;
  }

  .node-booking {
    left: 0;
  }

  .node-community {
    right: 0;
  }

  .node-marketing {
    left: 12px;
  }

  .intro-inner span:last-child {
    display: none;
  }

  .section {
    padding-block: 72px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 14px;
  }

  .feature-grid,
  .workflow-inner,
  .gateway-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 240px;
  }

  .workflow-inner {
    gap: 40px;
    padding-block: 72px;
  }

  .gateway-main,
  .gateway-details {
    padding: 24px;
  }

  .footer-inner {
    flex-wrap: wrap;
  }

  .footer-inner p {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-art {
    transform: scale(0.86);
    margin-inline: -24px;
  }

  .intro-inner span {
    display: none;
  }
}
