/* Landing and sign-in views. Uses the shared tokens from tokens.css. */

/* ---- landing ---- */
.site-nav {
  position: fixed; z-index: 50; left: 50%; top: 16px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between;
  width: min(1120px, calc(100% - 32px)); height: 54px; padding: 0 10px 0 16px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(18px);
}
.site-links { display: flex; align-items: center; gap: 4px; }
.site-links a, .site-links button:not(.btn) { display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: var(--text-sm); }
.site-links a:hover, .site-links button:not(.btn):hover { color: var(--text); background: var(--surface-2); }

.hero { position: relative; display: grid; place-items: center; min-height: 100vh; padding: 120px 24px 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 760px; height: 760px; top: -330px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, var(--accent-soft), transparent 64%); filter: blur(20px); }
.grid-field { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, black, transparent 78%); opacity: .35; }
.hero-copy { position: relative; z-index: 2; max-width: 920px; text-align: center; }
.hero h1 { margin: 22px auto 24px; max-width: 900px; font-size: clamp(46px, 7.6vw, 108px); line-height: .94; letter-spacing: -.06em; font-weight: 650; }
.hero h1 span { color: var(--text-muted); }
.hero p { max-width: 590px; margin: 0 auto; color: var(--text-muted); font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.hero-actions .btn { min-height: 42px; padding: 0 18px; font-size: var(--text-md); }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 26px; color: var(--text-subtle); font-size: var(--text-xs); }
.hero-meta span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 7px 2px 0; border-radius: 99px; background: var(--text-subtle); }
.hero-meta span:first-child::before { background: var(--success); }

.product-frame { position: relative; width: min(1180px, calc(100% - 40px)); margin: -70px auto 130px; padding: 8px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-1); box-shadow: var(--shadow-2); }
.frame-top { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 12px; color: var(--text-subtle); font-size: var(--text-xs); }
.dots { display: flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); }
.frame-body { display: grid; grid-template-columns: 1fr 1fr; height: 570px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.fake-code { padding: 28px; border-right: 1px solid var(--border); color: var(--text-muted); font: 12.5px/1.85 var(--font-mono); }
.fake-code .k { color: var(--accent); }
.fake-code .s { color: var(--success); }
.fake-code .n { color: var(--warning); }
.fake-preview { position: relative; padding: 42px; overflow: hidden; background: #f3f3f5; color: #111; }
.fake-preview small { font-size: 11px; letter-spacing: .15em; }
.fake-preview h3 { max-width: 380px; margin: 65px 0 22px; font-size: 49px; line-height: .95; letter-spacing: -.055em; }
.fake-preview p { max-width: 360px; color: #555861; }
.float-card { position: absolute; right: 30px; bottom: 30px; width: 210px; padding: 18px; border-radius: 14px; background: #12141a; color: #fff; box-shadow: 0 25px 50px rgba(15, 15, 30, .25); }
.float-card p { color: #b9bec8; }

.landing-section { max-width: 1120px; margin: 0 auto; padding: 110px 24px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 70px; }
.section-heading h2 { margin: 12px 0 0; font-size: clamp(36px, 5vw, 66px); line-height: .98; letter-spacing: -.05em; font-weight: 620; }
.section-heading p { max-width: 450px; margin: 0; color: var(--text-muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature { min-height: 260px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-1); transition: border-color var(--dur) var(--ease); }
.feature:hover { border-color: var(--border-strong); }
.feature .num { color: var(--text-subtle); font: 12px var(--font-mono); }
.feature h3 { margin: 90px 0 9px; font-size: 17px; }
.feature p { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface-1); }
.cta-panel h2 { margin: 8px 0 9px; font-size: 35px; letter-spacing: -.04em; }
.cta-panel p { margin: 0; color: var(--text-muted); }
#landing > footer { display: flex; justify-content: space-between; gap: 16px; max-width: 1120px; margin: auto; padding: 34px 24px 60px; border-top: 1px solid var(--border); color: var(--text-subtle); font-size: var(--text-xs); }

/* ---- sign in ---- */
.auth-view { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 34px 42px; overflow: hidden; border-right: 1px solid var(--border); background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 40%), var(--surface-1); }
.auth-art::after { content: ""; position: absolute; width: 520px; height: 520px; left: 50%; top: 50%; transform: translate(-50%, -40%) rotate(45deg); border: 1px solid var(--border); border-radius: 90px; }
.auth-quote { position: relative; z-index: 2; max-width: 470px; font-size: 32px; line-height: 1.12; letter-spacing: -.035em; }
.auth-main { display: grid; place-items: center; padding: 32px; }
.auth-card { width: min(390px, 100%); }
.auth-card h1 { margin: 16px 0 8px; font-size: 26px; letter-spacing: -.03em; }
.auth-card > p { margin: 0 0 28px; color: var(--text-muted); font-size: var(--text-sm); }
.auth-card .btn { width: 100%; min-height: 40px; margin-top: 8px; }
.auth-switch { margin-top: 24px; color: var(--text-muted); font-size: var(--text-sm); text-align: center; }
.auth-switch button, .auth-inline { min-height: 24px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.password-label { display: flex; align-items: center; justify-content: space-between; }
.password-label button { min-height: 24px; color: var(--accent); font-size: var(--text-xs); }
.auth-note { margin-top: 16px !important; font-size: var(--text-xs) !important; text-align: center; }

@media (max-width: 900px) {
  .site-links a { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .frame-body { grid-template-columns: 1fr; }
  .fake-code { display: none; }
  .product-frame { margin-top: -20px; }
  .cta-panel { flex-direction: column; align-items: flex-start; padding: 28px; }
  .auth-view { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
@media (max-width: 480px) {
  .site-nav { padding-left: 12px; }
  .site-links button:not(.btn) { padding: 0 8px; }
  .fake-preview { padding: 24px; }
  .fake-preview h3 { font-size: 36px; margin-top: 36px; }
  .float-card { position: static; margin-top: 20px; width: auto; }
  .landing-section { padding: 72px 20px; }
  #landing > footer { flex-direction: column; }
}
