/* Stylesheet for VisionSync landing + keyboard */
:root {
    --bg: #071027;
    --panel: #0f1724;
    --keyboard-bg: #070f33; /* light pastel blue requested */
    --accent: rgb(115, 115, 222);
    --muted: #9aa8bf;
    --text: #e6eef8;
    --glass: rgba(255, 255, 255, 0.05);
    --key-anim-duration: 380ms;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

header { display:flex; align-items:center; justify-content:space-between; padding:20px 40px; border-bottom:1px solid var(--glass); }
.logo { font-weight:800; font-size:1.4rem; color:var(--accent); }
.tag { color:var(--muted); font-size:0.85rem; margin-left:10px; }

.hero { display:flex; flex-direction:column; align-items:center; text-align:center; padding:60px 24px; }
.hero h1 { font-size:2.8rem; font-weight:800; margin-bottom:20px; }

.sub { color:var(--muted); max-width:650px; margin-bottom:40px; }
.card-illustration { width:100%; max-width:650px; padding:30px; background:var(--keyboard-bg); border-radius:24px; border:1px solid var(--glass); }

.keyboard { display:flex; flex-direction:column; gap:8px; }
.row { display:flex; justify-content:center; gap:8px; }

/* Small inset black panel behind the keyboard (as requested) */
.keyboard-bg {
    display: inline-block;
    padding: 12px;
    border-radius: 12px;
    background: #050a1a; /* slightly lighter than pure black for better contrast */
}

/* Keyboard key tuning variables */
:root {
    --key-size: 54px;
    --key-radius: 10px;
    --key-font-size: 1.28rem;
    --key-bg-surface: rgba(255,255,255,0.02);
    /* make key border a light blue for all keys */
    --key-border-light: rgba(173,216,230,0.45); /* lightblue */
}

/* Keys: subtle rounded surface so letters sit on a visible key */
.keyboard .key {
    width: var(--key-size);
    height: var(--key-size);
    border-radius: var(--key-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--key-bg-surface);
    /* keep border layout but hidden until active */
    border: 2px solid transparent;
    box-shadow: 0 2px 6px rgba(0,0,0,0.55) inset;
    color: transparent; /* glyphs hidden until blink */
    font-weight: 800;
    font-family: monospace, system-ui, -apple-system;
    font-size: var(--key-font-size);
    letter-spacing: 0.5px;
    transition: color 220ms ease, opacity 220ms ease, border-color 220ms ease;
}

/* per-key blink color variables */
.keyboard .key.outline-blue { --blink-color: #0000FF; --blink-border: rgba(255,0,0,0.35); }
.keyboard .key.outline-red  { --blink-color: #FF0000; --blink-border: rgba(0,0,255,0.35); }

/* Use pseudo-element for glyph so we can toggle color only */
.keyboard .key::after {
    content: attr(data-letter);
    color: transparent;
    display: block;
}

/* Active key: reveal glyph text in blink color; border stays very light */
.keyboard .key.active::after {
    color: var(--blink-color);
}

/* Show border in matching (lighter) color while active; hide when inactive */
.keyboard .key.active {
    border-color: var(--blink-border, transparent);
}

/* keep outline classes available (no border color changes) */
.key.outline-blue {}
.key.outline-red  {}

@media (prefers-reduced-motion: reduce) {
    :root { --key-anim-duration: 0ms; }
    .key { transition: none !important; }
}

/* Rest of styles unchanged (concise) */
.section-centered { max-width:1000px; margin:60px auto; padding:0 24px; }
.accent-title { color:var(--accent); font-size:2rem; font-weight:800; text-align:center; }
.compare-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:30px; }
.compare-card { background:var(--glass); padding:25px; border-radius:16px; text-align:center; }
.compare-card h3 { margin-top:0; }
.compare-card ul { padding-left:0; color:var(--muted); text-align:center; }
.compare-card.no-bullets ul { list-style: none; padding-left: 0; }
.level-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:15px; margin-top:30px; }
.level-item { background:var(--panel); padding:20px; border-radius:12px; border:1px solid var(--glass); text-align:center; }
.level-name { font-weight:800; color:var(--accent); }
.level-desc { font-size:0.85rem; color:var(--muted); }
.premium-border { border-color:var(--accent); }
.pricing-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:25px; margin-top:30px; }
.plan { background:var(--panel); padding:30px; border-radius:20px; border:1px solid var(--glass); text-align:center; }
.plan.featured { border-color:var(--accent); }
.price { font-size:2.2rem; font-weight:800; margin:15px 0; }
.plan-sub { color:var(--muted); font-size:0.9rem; margin-bottom:20px; }
.primary { background:var(--accent); color:#fff; border:none; padding:12px 24px; border-radius:10px; font-weight:700; cursor:pointer; }
.login-btn { background:transparent; color:#fff; border:1px solid var(--glass); padding:10px 20px; border-radius:10px; cursor:pointer; }
.full-width { width:100%; }
.text-btn { background:none; border:none; color:var(--muted); cursor:pointer; display:block; margin:10px auto; }
.hidden { display:none; }
/* Modal overlay: center with safe padding and allow scrolling on small screens */
.login-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.85); display:none; align-items:center; justify-content:center; z-index:1000; padding:24px; }
.login-card { background:var(--panel); padding:28px; border-radius:14px; width: min(92%, 760px); max-width:760px; border:1px solid var(--glass); box-shadow: 0 6px 30px rgba(0,0,0,0.6); max-height: calc(100vh - 48px); overflow:auto; }
input { width:100%; padding:10px; margin:6px 0 12px; background:#000; border:1px solid var(--glass); color:#fff; border-radius:8px; }
.error-msg { color:var(--accent); font-size:0.9rem; margin-bottom:10px; display:block; }
footer { padding:40px; text-align:center; border-top:1px solid var(--glass); color:var(--muted); font-size:0.85rem; }
/* Keyboard landing: large-screen scaling */
@media (min-width: 1920px) {
  :root {
    --key-size: 62px;
    --key-font-size: 1.4rem;
  }
}

@media (min-width: 2560px) {
  :root {
    --key-size: 72px;
    --key-font-size: 1.6rem;
  }
}

/* Hero section: prevent font overflow on small screens */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .accent-title { font-size: 1.4rem; }
}
