/* Landing page and login page. */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.on-dark { color: var(--ink-text); }

/* ---- nav ------------------------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(11, 16, 32, .82); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav .logo { color: #fff; }
.nav .logo img { height: 32px; }
.links { display: flex; gap: 22px; margin-inline-start: 12px; }
.links a { color: var(--ink-muted); font-size: 14px; font-weight: 500; }
.links a:hover { color: #fff; text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }

/* ---- hero ------------------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--ink); padding: 72px 0 96px; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 380px at 15% 10%, rgba(13, 58, 122, .55), transparent 70%),
    radial-gradient(520px 360px at 90% 30%, rgba(0, 160, 152, .24), transparent 70%),
    linear-gradient(rgba(148, 163, 255, .06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(148, 163, 255, .06) 1px, transparent 1px) 0 0 / 40px 40px;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: #b5ece7; background: rgba(0, 160, 152, .14); border: 1px solid rgba(0, 160, 152, .35);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 0 rgba(0, 160, 152, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(0, 160, 152, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 160, 152, 0); } }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -.03em; margin: 20px 0 18px; color: #fff; font-weight: 800; }
.lead { font-size: 18px; color: var(--ink-muted); max-width: 560px; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin: 22px 0 0; font-size: 13px; color: #7c86a8; }

.window { background: #0f1630; border: 1px solid rgba(148, 163, 255, .16); border-radius: 16px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .02) inset; overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(148, 163, 255, .1); font-size: 12px; color: var(--ink-muted); direction: ltr; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3354; }
.window-bar span { margin-inline-start: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hero-plan { display: block; width: 100%; height: auto; direction: ltr; }
.hero-plan .rooms rect { fill: rgba(99, 102, 241, .07); }
.hero-plan .walls path { fill: none; stroke: #cbd5f5; stroke-width: 6; stroke-linejoin: miter; }
.hero-plan .door { fill: #f87171; }
.hero-plan .swing { fill: none; stroke: #f87171; stroke-width: 1.2; stroke-dasharray: 3 3; }
.hero-plan .window-o { fill: #60a5fa; }
.hero-plan .det rect { fill: none; stroke: #22d3ee; stroke-width: 1.5; stroke-dasharray: 5 4; }
.hero-plan .det text { fill: #67e8f9; font: 600 10px/1 ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.hero-plan .det { opacity: 0; animation: det 6s infinite; }
.hero-plan .d2 { animation-delay: .6s; } .hero-plan .d3 { animation-delay: 1.2s; } .hero-plan .d4 { animation-delay: 1.8s; } .hero-plan .d5 { animation-delay: 2.4s; }
@keyframes det { 0%, 8% { opacity: 0; } 14%, 85% { opacity: 1; } 100% { opacity: 0; } }
.hero-plan .scan { animation: scan 3s linear infinite; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(440px); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 16px; border-top: 1px solid rgba(148, 163, 255, .1); }
.chips > span { font-size: 12px; color: var(--ink-muted); background: rgba(148, 163, 255, .08); border: 1px solid rgba(148, 163, 255, .14); padding: 3px 10px; border-radius: 999px; }
.chips b { color: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-plan .det { animation: none; opacity: 1; } .hero-plan .scan, .pulse { animation: none; } }

/* ---- sections ------------------------------------------------------------------------------------ */
.section { padding: 96px 0; }
.section.alt { background: var(--panel); border-block: 1px solid var(--border); }
.kicker { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.section h2, .cta h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 40px; max-width: 720px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.section.alt .card { background: var(--bg); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.card h3 { margin: 16px 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.improve { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 32px; border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); background: color-mix(in srgb, var(--accent) 6%, var(--panel)); }
.improve h2 { margin: 0 0 10px; }
.improve .body { margin: 0; color: var(--muted); }
.improve-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--accent); }
.improve-ic svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.formats { margin-top: 20px; display: flex; align-items: center; gap: 20px; padding: 20px 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); }
.formats p { margin: 0; color: var(--muted); font-size: 15px; }
.formats p.fmt-int { margin-top: 8px; color: var(--text); font-weight: 500; }
.fmt-list { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.fmt-list span { font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 5px 10px; border-radius: 8px; background: var(--accent-weak); color: var(--accent); }
.fmt-list span.bim { background: var(--accent); color: #fff; }
.ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-weak); }
.ic svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding: 24px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); }
.steps .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-grad); color: #fff; font-weight: 700; }
.steps h3 { margin: 16px 0 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { margin-bottom: 16px; }
.body { color: var(--muted); font-size: 16px; margin: 0 0 20px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--accent-weak) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230a8a84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.code {
  margin: 0; padding: 22px 24px; border-radius: 16px; background: var(--ink); color: #c7d2fe; overflow: auto; box-shadow: var(--shadow-lg);
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: left;
}
.code .k { color: #93c5fd; } .code .s { color: #6ee7b7; } .code .n { color: #fcd34d; }

.cta { background: var(--ink); padding: 72px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 260px at 85% 50%, rgba(0, 160, 152, .3), transparent 70%); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { margin: 0; color: var(--ink-muted); }

.footer { padding: 28px 0; border-top: 1px solid var(--border); background: var(--panel); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* ---- login page ------------------------------------------------------------------------------------ */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { position: relative; overflow: hidden; background: var(--ink); color: var(--ink-text); padding: 40px 48px; display: flex; flex-direction: column; }
.auth-aside .hero-bg { mask-image: none; }
.auth-aside > * { position: relative; }
.auth-aside .logo { color: #fff; }
.auth-aside h2 { margin: auto 0 20px; font-size: 32px; line-height: 1.15; letter-spacing: -.02em; color: #fff; max-width: 420px; }
.auth-aside ul { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: 14px; color: var(--ink-muted); }
.auth-aside li { display: flex; gap: 10px; align-items: flex-start; }
.auth-aside li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--brand-2); }
.auth-main { display: flex; flex-direction: column; padding: 24px; }
.auth-top { display: flex; justify-content: flex-end; }
.auth-card { width: 100%; max-width: 400px; margin: auto; padding: 8px 0 32px; }
.auth-card h1 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 24px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.google-btn svg { width: 18px; height: 18px; }
.row-between { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 16px; font-size: 14px; }
.switch { margin-top: 20px; text-align: center; color: var(--muted); font-size: 14px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-weight: 500; }
.linkbtn:hover { text-decoration: underline; }
.verify-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-weak); margin-bottom: 18px; }
.verify-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.stack { display: grid; gap: 10px; }
.spinner-sm { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- responsive --------------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .links { display: none; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .cards, .steps, .cards.three { grid-template-columns: 1fr; }
  .formats { flex-direction: column; align-items: flex-start; }
  .improve { grid-template-columns: 1fr; padding: 24px; }
  .section { padding: 64px 0; }
  .nav-actions .btn.ghost-dark { display: none; }
  .nav-inner { gap: 10px; }
}
