/* Wai Sense — public site (v3.3.0)
 * Apple-esque product page: large type, generous space, alternating light/dark sections,
 * a realistic device-frame that hosts the LIVE app (not a screenshot) so it never goes stale. */

:root {
  --site-navy: #070b19;
  --site-navy-2: #0d1527;
  --site-ink: #0a0f1c;
  --site-paper: #ffffff;
  --site-paper-2: #f5f6f8;
  --site-line: rgba(10, 15, 28, 0.08);
  --site-line-dark: rgba(255, 255, 255, 0.1);
  --site-muted: #6b7280;
  --site-muted-dark: #94a3b8;
  --amber: #f59e0b;
  --amber-ink: #7c2d12;
  --font-site: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}

/* ---------- "cyber" glass-panel skin (adopted from the Gemini concept design) ----------
 * Real content only: this file never re-introduces simulated telemetry / fabricated
 * capability claims. Visual language only — particle field, glass panels, cyan/emerald accent. */
:root {
  --glass-bg: rgba(13, 21, 40, 0.72);
  --glass-border: rgba(0, 240, 255, 0.28);
  --glass-blur: blur(18px);
  --cyber-cyan: #00e5ff;
  --cyber-emerald: #10e5a0;
}
.glass-panel { background: var(--glass-bg); border: 1px solid var(--glass-border); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
#particleCanvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.55; }
.cyber-text { background: linear-gradient(120deg, var(--cyber-cyan), var(--cyber-emerald)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav.cyber { background: rgba(6, 10, 20, 0.6); border-bottom-color: var(--glass-border); }
.hero.cyber { background: radial-gradient(1200px 600px at 50% -10%, rgba(0, 229, 255, 0.14), transparent 60%), linear-gradient(180deg, #050810 0%, #0a1120 100%); }
.hero.cyber .eyebrow { color: var(--cyber-cyan); background: rgba(0, 229, 255, 0.1); border-color: rgba(0, 229, 255, 0.28); }
.hero.cyber h1 em { background: linear-gradient(120deg, var(--cyber-cyan), var(--cyber-emerald)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero.cyber .btn-hero-primary { background: linear-gradient(120deg, var(--cyber-cyan), var(--cyber-emerald)); color: #04141a; box-shadow: 0 10px 28px rgba(0, 229, 255, 0.3); }
.hero.cyber .phone-frame { box-shadow: 0 0 0 2px var(--glass-border), 0 40px 90px -20px rgba(0, 0, 0, 0.7); }

/* ---------- HUD "makeup": decorative corner brackets + live badge (visual only) ---------- */
.hud-frame { position: relative; }
.hud-frame::before, .hud-frame::after,
.hud-frame .hud-c1, .hud-frame .hud-c2 { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--cyber-cyan); opacity: 0.7; pointer-events: none; }
.hud-frame::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.hud-frame::after { top: -10px; right: -10px; border-left: 0; border-bottom: 0; }
.hud-frame .hud-c1 { bottom: -10px; left: -10px; border-right: 0; border-top: 0; }
.hud-frame .hud-c2 { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }
.hud-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--cyber-emerald);
  background: rgba(5, 10, 20, 0.85); border: 1px solid rgba(16, 229, 160, 0.4); padding: 4px 12px; border-radius: 980px;
  white-space: nowrap;
}
.hud-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyber-emerald); box-shadow: 0 0 8px var(--cyber-emerald); animation: hudpulse 1.6s infinite; }
@keyframes hudpulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* honest stat strip — no fabricated numbers, just what's actually true */
.stat-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; position: relative; z-index: 1; }
.stat-pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(0,229,255,0.2); padding: 7px 14px; border-radius: 980px;
}
.stat-pill svg { width: 13px; height: 13px; stroke: var(--cyber-cyan); }

/* register section */
.register-panel { max-width: 460px; margin: 0 auto; border-radius: 22px; padding: 30px; }
.register-panel h3 { font-size: 1.3rem; font-weight: 800; margin: 0 0 6px; color: #fff; }
.register-panel p { color: var(--site-muted-dark); font-size: 0.88rem; margin: 0 0 20px; }
.register-field { margin-bottom: 12px; }
.register-field input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05); color: #fff; font-size: 0.92rem; }
.register-field input::placeholder { color: rgba(255,255,255,0.4); }
.register-submit { width: 100%; padding: 13px; border-radius: 12px; border: 0; background: linear-gradient(120deg, var(--cyber-cyan), var(--cyber-emerald)); color: #04141a; font-weight: 700; font-size: 0.95rem; cursor: pointer; margin-top: 4px; }
.register-note { font-size: 0.74rem; color: var(--site-muted-dark); margin-top: 12px; text-align: center; }
.register-status { font-size: 0.82rem; margin-top: 10px; text-align: center; min-height: 18px; }
.register-status.ok { color: var(--cyber-emerald); }
.register-status.bad { color: #f87171; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body.site {
  margin: 0; font-family: var(--font-site); color: var(--site-ink); background: var(--site-paper);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.site a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 64px;
  display: flex; align-items: center; padding: 0 20px;
  background: rgba(7, 11, 25, 0.72); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); transition: background 0.25s ease;
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; max-width: 1180px; margin: 0 auto; }
.site-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.site-brand img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.site-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-links a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.15s; }
.site-links a:hover { color: #fff; }
.site-nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-nav-cta {
  background: var(--amber); color: #1a1002; border: 0; border-radius: 980px; padding: 8px 18px; font-size: 13px; font-weight: 700;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: transform 0.15s, background 0.15s;
}
.btn-nav-cta:hover { background: #fbbf24; transform: translateY(-1px); }
.nav-burger { display: none; background: none; border: 0; color: #fff; padding: 6px; }
@media (max-width: 780px) { .site-links { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 168px 24px 96px; text-align: center; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(245, 158, 11, 0.16), transparent 60%), linear-gradient(180deg, var(--site-navy) 0%, var(--site-navy-2) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(circle at 12% 18%, rgba(99, 102, 241, 0.14) 0%, transparent 38%), radial-gradient(circle at 88% 78%, rgba(6, 182, 212, 0.12) 0%, transparent 38%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--amber); background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); padding: 6px 14px; border-radius: 980px; position: relative; z-index: 1;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; margin: 22px auto 18px; max-width: 820px; position: relative; z-index: 1;
}
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--amber), #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1.02rem, 2vw, 1.28rem); color: rgba(255, 255, 255, 0.72); max-width: 620px; margin: 0 auto 34px; line-height: 1.55; position: relative; z-index: 1; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; margin-bottom: 8px; }
.btn-hero-primary {
  background: var(--amber); color: #1a1002; border: 0; border-radius: 980px; padding: 14px 28px; font-size: 15px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 28px rgba(245, 158, 11, 0.35); transition: transform 0.15s;
}
.btn-hero-primary:hover { transform: translateY(-2px); }
.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 980px; padding: 14px 26px; font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: background 0.15s;
}
.btn-hero-secondary:hover { background: rgba(255, 255, 255, 0.14); }
.hero-note { font-size: 12.5px; color: rgba(255, 255, 255, 0.45); margin-top: 4px; position: relative; z-index: 1; }

/* ---------- device frame (hosts the LIVE app) ---------- */
.stage { margin-top: 64px; display: flex; justify-content: center; position: relative; z-index: 1; }
.phone-frame {
  width: 300px; height: 616px; border-radius: 46px; background: #05070f; padding: 12px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), 0 40px 90px -20px rgba(0, 0, 0, 0.7), 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative; flex-shrink: 0;
}
.phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--site-navy); position: relative; }
.phone-screen iframe { width: 375px; height: 812px; border: 0; transform: scale(0.746); transform-origin: top left; background: var(--site-navy); }
.phone-side { position: absolute; width: 3px; background: #05070f; right: -3px; top: 130px; height: 70px; border-radius: 0 2px 2px 0; }

/* browser-frame for the map showcase */
.browser-frame { border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55); background: #05070f; border: 1px solid rgba(255, 255, 255, 0.08); }
.browser-bar { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #0d1120; }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.browser-body { height: 560px; background: var(--site-navy); }
.browser-body iframe { width: 100%; height: 100%; border: 0; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.light { background: var(--site-paper); }
.section.tint { background: var(--site-paper-2); }
.section.dark { background: var(--site-navy); color: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow { color: var(--amber); background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.25); }
.section.light .eyebrow, .section.tint .eyebrow { color: #b45309; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 16px 0 12px; line-height: 1.15; }
.section-head p { color: var(--site-muted); font-size: 1.02rem; line-height: 1.6; }
.section.dark .section-head p { color: var(--site-muted-dark); }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--site-paper); border: 1px solid var(--site-line); border-radius: 20px; padding: 28px 22px; text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(10, 15, 28, 0.15); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.05)); color: var(--amber-ink);
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--amber); }
.feature-card h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: 0.88rem; color: var(--site-muted); line-height: 1.55; margin: 0; }

/* split (image + text) rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split.reverse .split-copy { order: 2; }
.split-copy h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.split-copy p { color: var(--site-muted-dark); line-height: 1.65; font-size: 1rem; margin: 0 0 18px; }
.section.light .split-copy p, .section.tint .split-copy p { color: var(--site-muted); }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: inherit; }
.check-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; stroke: var(--amber); }

/* download */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 720px; margin: 0 auto; }
@media (max-width: 700px) { .download-grid { grid-template-columns: 1fr; } }
.download-card {
  border: 1px solid var(--site-line); border-radius: 18px; padding: 22px 18px; text-align: center; background: var(--site-paper);
  display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: border-color 0.15s, transform 0.15s; text-decoration: none;
}
.download-card:hover { transform: translateY(-3px); }
.download-card.primary { border-color: rgba(245, 158, 11, 0.4); background: linear-gradient(180deg, rgba(245, 158, 11, 0.07), transparent); }
.download-card svg { width: 26px; height: 26px; stroke: var(--site-ink); }
.download-card .dl-name { font-weight: 700; font-size: 0.95rem; }
.download-card .dl-status { font-size: 0.75rem; color: var(--site-muted); font-family: 'JetBrains Mono', monospace; }
.download-card .dl-status.ready { color: #b45309; font-weight: 600; }

/* footer */
.site-footer { background: var(--site-navy); color: rgba(255, 255, 255, 0.55); padding: 56px 0 28px; font-size: 13px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 24px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 14px; }
.footer-brand img { width: 22px; height: 22px; border-radius: 6px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.4); margin: 0 0 12px; }
.footer-col a { display: block; color: rgba(255, 255, 255, 0.65); text-decoration: none; font-size: 13px; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- app-open overlay (device-frame modal for desktop) ---------- */
.app-overlay { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; background: rgba(4, 6, 14, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.app-overlay.open { display: flex; }
.app-overlay-frame { width: 390px; height: min(844px, 92vh); border-radius: 44px; background: #05070f; padding: 12px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); position: relative; }
.app-overlay-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 34px; background: var(--site-navy); }
.app-overlay-close {
  position: absolute; top: -44px; right: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
@media (max-width: 480px) { .app-overlay-frame { width: 100vw; height: 100vh; border-radius: 0; padding: 0; } .app-overlay-frame iframe { border-radius: 0; } .app-overlay-close { top: 10px; right: 10px; } }
