
  /* ---------------------------------------------------- */
  /* Tokens                                                */
  /* ---------------------------------------------------- */
  :root{
    --bg: #121016;
    --bg-elevated: #1a1720;
    --surface: #201c27;
    --surface-2: #262130;
    --border: rgba(255,255,255,0.09);
    --border-strong: rgba(255,255,255,0.16);
    --text: #f3f1f6;
    --text-dim: #b4aec0;
    --text-faint: #766f84;
    --accent: #3fe8c6;
    --accent-dim: #2ab89b;
    --accent-soft: rgba(63,232,198,0.14);
    --coral: #ff7a63;
    --coral-soft: rgba(255,122,99,0.14);

    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --shadow-1: 0 1px 0 rgba(255,255,255,0.03) inset, 0 8px 24px rgba(0,0,0,0.28);
    --ease: cubic-bezier(.22,.61,.36,1);
  }

  *,*::before,*::after{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
    *, *::before, *::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
  }

  body{
    margin:0;
    background:
      radial-gradient(1100px 520px at 82% -8%, rgba(63,232,198,0.10), transparent 60%),
      radial-gradient(900px 500px at -10% 18%, rgba(255,122,99,0.06), transparent 55%),
      var(--bg);
    color:var(--text);
    font-family:var(--font-body);
    -webkit-font-smoothing:antialiased;
    line-height:1.5;
  }

  a{ color:inherit; text-decoration:none; }
  ul{ list-style:none; margin:0; padding:0; }
  img,svg{ display:block; max-width:100%; }
  button{ font-family:inherit; cursor:pointer; }
  input{ font-family:inherit; }

  :focus-visible{
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
  }

  .wrap{
    max-width:1240px;
    margin:0 auto;
    padding:0 32px;
  }

  h1,h2,h3{
    font-family:var(--font-display);
    font-weight:500;
    letter-spacing:-0.01em;
    margin:0;
  }

  .eyebrow{
    font-size:13px;
    color:var(--text-faint);
    margin:0 0 12px;
  }

  .section-head{
    max-width:560px;
    margin:0 0 40px;
  }
  .section-head h2{
    font-size:clamp(28px,3.4vw,38px);
    line-height:1.15;
  }
  .section-head p{
    color:var(--text-dim);
    font-size:16px;
    margin:14px 0 0;
    max-width:46ch;
  }

  section{
    padding:96px 0;
    border-top:1px solid var(--border);
  }
  section:first-of-type{ border-top:none; }

  /* ---------------------------------------------------- */
  /* Top navigation                                        */
  /* ---------------------------------------------------- */
  .topnav{
    position:sticky; top:0; z-index:60;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    background:rgba(18,16,22,0.72);
    border-bottom:1px solid var(--border);
  }
  .topnav .wrap{
    display:flex; align-items:center; gap:28px;
    height:64px;
  }
  .brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
  .brand span{ font-family:var(--font-display); font-size:17px; font-weight:600; }

  .mark{ width:26px; height:26px; position:relative; flex-shrink:0; }
  .mark rect{ }

  .nav-links{ display:flex; gap:4px; margin-right:auto; }
  .nav-links a{
    padding:8px 12px; border-radius:var(--radius-sm);
    font-size:14.5px; color:var(--text-dim);
    transition: color .15s var(--ease), background .15s var(--ease);
  }
  .nav-links a:hover{ color:var(--text); background:rgba(255,255,255,0.045); }

  .nav-search{
    display:flex; align-items:center; gap:10px;
    padding:8px 12px 8px 14px;
    border:1px solid var(--border);
    border-radius:var(--radius-pill);
    background:rgba(255,255,255,0.03);
    color:var(--text-faint);
    font-size:13.5px;
    width:220px;
    transition:border-color .15s var(--ease), background .15s var(--ease);
  }
  .nav-search:hover{ border-color:var(--border-strong); background:rgba(255,255,255,0.05); }
  .nav-search svg{ flex-shrink:0; opacity:.75; }
  .nav-search kbd{
    margin-left:auto; font-family:var(--font-mono); font-size:11px;
    background:rgba(255,255,255,0.06); border:1px solid var(--border);
    border-radius:5px; padding:2px 6px; color:var(--text-dim);
  }

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

  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:10px 18px;
    border-radius:var(--radius-pill);
    font-size:14.5px; font-weight:500;
    border:1px solid transparent;
    transition: transform .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
    white-space:nowrap;
  }
  .btn-primary{ background:var(--accent); color:#0d1512; }
  .btn-primary:hover{ background:#5eeed3; }
  .btn-ghost{ background:transparent; border-color:var(--border-strong); color:var(--text); }
  .btn-ghost:hover{ background:rgba(255,255,255,0.06); }
  .btn-sm{ padding:7px 14px; font-size:13.5px; }
  .btn:active{ transform:scale(.97); }

  .nav-toggle{ display:none; }

  /* ---------------------------------------------------- */
  /* Hero                                                   */
  /* ---------------------------------------------------- */
  .hero{
    padding:88px 0 100px;
  }
  .hero .wrap{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:48px;
    align-items:center;
  }
  .hero-copy h1{
    font-size:clamp(36px,4.6vw,58px);
    line-height:1.06;
    max-width:11ch;
  }
  .hero-copy p{
    color:var(--text-dim);
    font-size:17px;
    max-width:46ch;
    margin:22px 0 34px;
  }
  .hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }
  .hero-links{
    display:flex; gap:22px; margin-top:26px;
  }
  .hero-links a{
    font-size:14px; color:var(--text-faint);
    border-bottom:1px solid transparent;
    transition:color .15s var(--ease), border-color .15s var(--ease);
  }
  .hero-links a:hover{ color:var(--text-dim); border-color:var(--border-strong); }

  /* floating window stack */
  .stack{
    position:relative;
    height:420px;
  }
  .win{
    position:absolute;
    width:300px;
    border-radius:var(--radius-md);
    background:linear-gradient(160deg, var(--surface-2), var(--surface));
    border:1px solid var(--border);
    box-shadow:var(--shadow-1);
    opacity:0;
    padding:0 0 16px;
    overflow:hidden;
  }
  @media (prefers-reduced-motion: no-preference){
    .win{ animation: fan-in .8s var(--ease) forwards; }
  }
  @media (prefers-reduced-motion: reduce){
    .win{ opacity:1; }
  }
  .win-1{ top:8px; left:38%; z-index:3; transform:rotate(-3deg) translateY(-14px); animation-delay:.05s; }
  .win-2{ top:96px; left:6%;  z-index:2; transform:rotate(-9deg) translateY(-14px); animation-delay:.2s;  width:250px;}
  .win-3{ top:150px; left:52%; z-index:1; transform:rotate(6deg) translateY(-14px);  animation-delay:.35s; width:270px;}

  @keyframes fan-in{
    from{ opacity:0; }
    to{ opacity:1; }
  }
  .win-1{ --rot:-3deg; }
  .win-2{ --rot:-9deg; }
  .win-3{ --rot:6deg; }
  @media (prefers-reduced-motion: no-preference){
    .win-1{ animation-name: fan-in-1; }
    .win-2{ animation-name: fan-in-2; }
    .win-3{ animation-name: fan-in-3; }
  }
  @keyframes fan-in-1{ from{ opacity:0; transform:rotate(-3deg) translateY(-14px) scale(.96);} to{ opacity:1; transform:rotate(-3deg) translateY(0) scale(1);} }
  @keyframes fan-in-2{ from{ opacity:0; transform:rotate(-9deg) translateY(-14px) scale(.96);} to{ opacity:1; transform:rotate(-9deg) translateY(0) scale(1);} }
  @keyframes fan-in-3{ from{ opacity:0; transform:rotate(6deg) translateY(-14px) scale(.96);} to{ opacity:1; transform:rotate(6deg) translateY(0) scale(1);} }

  .win:hover{ z-index:4; }

  .win-bar{
    display:flex; align-items:center; gap:6px;
    padding:12px 14px;
    border-bottom:1px solid var(--border);
  }
  .win-bar span{ width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,0.14); }
  .win-bar .app-tag{
    margin-left:auto; font-size:11px; color:var(--text-faint);
  }
  .win-body{ padding:16px 16px 0; }
  .win-body .swatch{
    height:120px; border-radius:var(--radius-sm);
    margin-bottom:12px;
  }
  .swatch-design{ background:linear-gradient(135deg, rgba(63,232,198,0.35), rgba(63,232,198,0.05)); }
  .swatch-3d{ background:linear-gradient(135deg, rgba(255,122,99,0.32), rgba(255,122,99,0.04)); }
  .swatch-chat{ background:var(--surface-2); border:1px solid var(--border); display:flex; flex-direction:column; justify-content:flex-end; gap:6px; padding:10px; }
  .bubble{ align-self:flex-start; background:rgba(255,255,255,0.07); font-size:12px; color:var(--text-dim); padding:6px 10px; border-radius:10px 10px 10px 3px; max-width:80%; }
  .bubble.me{ align-self:flex-end; background:var(--accent-soft); color:var(--text); border-radius:10px 10px 3px 10px; }
  .win-body .line{ height:8px; border-radius:4px; background:rgba(255,255,255,0.07); margin-bottom:8px; }
  .win-body .line.w60{ width:60%; }
  .win-body .line.w40{ width:40%; }
  .win-cursor{
    display:inline-flex; align-items:center; gap:6px;
    font-size:11px; color:var(--text-faint);
    margin-top:2px;
  }
  .win-cursor::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--coral); }

  .dock{
    display:flex; gap:10px; justify-content:center;
    margin-top:22px;
  }
  .dock a{
    width:40px; height:40px; border-radius:12px;
    background:var(--surface);
    border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center;
    transition: transform .15s var(--ease), border-color .15s var(--ease);
  }
  .dock a:hover{ transform:translateY(-4px); border-color:var(--border-strong); }
  .dock svg{ width:18px; height:18px; }

  /* ---------------------------------------------------- */
  /* Bento app library                                     */
  /* ---------------------------------------------------- */
  .bento{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    grid-auto-rows:minmax(160px, auto);
    grid-auto-flow:dense;
    gap:16px;
  }
  .card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    padding:24px;
    display:flex; flex-direction:column;
    transition: border-color .18s var(--ease), transform .18s var(--ease), background .18s var(--ease);
  }
  .card:hover{ border-color:var(--border-strong); transform:translateY(-2px); background:var(--surface-2); }
  .card.c2{ grid-column:span 2; }
  .card.r2{ grid-row:span 2; }

  .card-icon{
    width:40px; height:40px; border-radius:11px;
    display:flex; align-items:center; justify-content:center;
    background:var(--accent-soft);
    margin-bottom:18px;
  }
  .card-icon.coral{ background:var(--coral-soft); }
  .card-icon svg{ width:20px; height:20px; }

  .card-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
  .status{
    font-size:11.5px; padding:3px 9px; border-radius:var(--radius-pill);
    border:1px solid var(--border-strong); color:var(--text-dim);
    flex-shrink:0; margin-top:4px;
  }
  .status.beta{ color:var(--coral); border-color:rgba(255,122,99,0.4); }

  .card h3{ font-size:19px; margin:0 0 8px; }
  .card p{ color:var(--text-dim); font-size:14.5px; margin:0; max-width:44ch; flex-grow:1; }

  .card-preview{
    height:120px; border-radius:var(--radius-sm);
    margin-bottom:18px;
    border:1px solid var(--border);
  }
  .preview-design{ background:
      linear-gradient(160deg, rgba(63,232,198,0.22), transparent 60%),
      repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 34px);
  }
  .preview-files{ background:
      linear-gradient(160deg, rgba(255,255,255,0.06), transparent 60%);
      display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:14px;
  }
  .preview-files span{ background:rgba(255,255,255,0.05); border:1px solid var(--border); border-radius:6px; }

  .card-foot{
    display:flex; align-items:center; justify-content:space-between;
    margin-top:20px; padding-top:16px; border-top:1px solid var(--border);
  }
  .platforms{ display:flex; gap:8px; color:var(--text-faint); font-size:12px; }

  .card.ghost{
    align-items:center; justify-content:center; text-align:center;
    border-style:dashed;
    background:transparent;
  }
  .card.ghost h3{ font-size:16px; color:var(--text-dim); font-weight:500; }
  .card.ghost p{ font-size:13.5px; }

  /* ---------------------------------------------------- */
  /* Workspace preview                                     */
  /* ---------------------------------------------------- */
  .workspace-shell{
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    background:var(--bg-elevated);
    overflow:hidden;
    display:grid;
    grid-template-columns:220px 1fr;
    box-shadow:var(--shadow-1);
  }
  .ws-side{
    padding:22px 16px;
    border-right:1px solid var(--border);
    background:rgba(255,255,255,0.015);
  }
  .ws-side .who{
    display:flex; align-items:center; gap:10px;
    margin-bottom:24px; padding:0 6px;
  }
  .avatar{
    width:30px; height:30px; border-radius:50%;
    background:linear-gradient(140deg, var(--accent), var(--coral));
    flex-shrink:0;
  }
  .ws-side .who strong{ font-size:13.5px; display:block; }
  .ws-side .who span{ font-size:12px; color:var(--text-faint); }
  .ws-nav a{
    display:flex; align-items:center; gap:10px;
    padding:9px 10px; border-radius:10px;
    font-size:13.5px; color:var(--text-dim);
    margin-bottom:2px;
  }
  .ws-nav a.active{ background:var(--accent-soft); color:var(--text); }
  .ws-nav svg{ width:16px; height:16px; opacity:.8; flex-shrink:0; }
  .ws-nav a.hidden{ display:none; }

  .ws-main{ padding:28px 28px 8px; }
  .ws-row-head{
    display:flex; align-items:baseline; justify-content:space-between;
    margin-bottom:14px;
  }
  .ws-row-head h4{ font-size:14px; font-weight:500; color:var(--text-dim); margin:0; }
  .ws-row-head a{ font-size:12.5px; color:var(--text-faint); }

  .ws-recent{ display:flex; gap:10px; margin-bottom:32px; }
  .ws-recent .app{
    width:52px; height:52px; border-radius:13px;
    background:var(--surface); border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center;
  }
  .ws-recent .app svg{ width:22px; height:22px; }

  .ws-cols{ display:grid; grid-template-columns:1.4fr 1fr; gap:28px; padding-bottom:28px; }

  .proj{
    display:flex; align-items:center; gap:12px;
    padding:10px; border-radius:12px;
    border:1px solid var(--border);
    margin-bottom:10px;
  }
  .proj-thumb{ width:40px; height:40px; border-radius:9px; flex-shrink:0; }
  .proj div{ flex-grow:1; min-width:0; }
  .proj strong{ font-size:13.5px; display:block; }
  .proj span{ font-size:12px; color:var(--text-faint); }
  .proj .coll{ font-size:11.5px; color:var(--text-faint); flex-shrink:0; }

  .feed-item{
    display:flex; gap:10px; padding:10px 0;
    border-bottom:1px solid var(--border);
    font-size:13px;
  }
  .feed-item:last-child{ border-bottom:none; }
  .feed-dot{ width:6px; height:6px; border-radius:50%; margin-top:6px; flex-shrink:0; background:var(--accent); }
  .feed-dot.coral{ background:var(--coral); }
  .feed-item strong{ font-weight:500; }
  .feed-item span{ display:block; color:var(--text-faint); font-size:11.5px; margin-top:2px; }

  /* ---------------------------------------------------- */
  /* Account sync diagram                                  */
  /* ---------------------------------------------------- */
  .sync{
    display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;
  }
  .sync-copy p{ color:var(--text-dim); font-size:16px; max-width:42ch; margin:16px 0 24px; }
  .sync-list{ display:flex; flex-direction:column; gap:12px; }
  .sync-list li{ display:flex; align-items:center; gap:10px; font-size:14.5px; color:var(--text-dim); }
  .sync-list li::before{ content:''; width:5px; height:5px; border-radius:50%; background:var(--accent); flex-shrink:0; }

  .diagram{ display:flex; justify-content:center; }

  /* ---------------------------------------------------- */
  /* Downloads                                              */
  /* ---------------------------------------------------- */
  .platforms-grid{
    display:grid; grid-template-columns:repeat(4,1fr); gap:16px;
  }
  .plat-card{
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
    padding:24px; transition:border-color .18s var(--ease), transform .18s var(--ease);
  }
  .plat-card:hover{ border-color:var(--border-strong); transform:translateY(-2px); }
  .plat-card svg{ width:26px; height:26px; margin-bottom:16px; }
  .plat-card h3{ font-size:16px; margin-bottom:4px; }
  .plat-meta{ font-family:var(--font-mono); font-size:12px; color:var(--text-faint); margin-bottom:18px; }
  .plat-card .btn{ width:100%; }

  /* ---------------------------------------------------- */
  /* Footer                                                 */
  /* ---------------------------------------------------- */
  footer{ border-top:1px solid var(--border); padding:64px 0 32px; }
  .foot-top{
    display:grid; grid-template-columns:1.4fr repeat(4, 1fr); gap:32px;
    padding-bottom:48px;
  }
  .foot-brand .brand{ margin-bottom:14px; }
  .foot-brand p{ color:var(--text-faint); font-size:13.5px; max-width:28ch; }
  .foot-col h4{ font-size:13px; color:var(--text-faint); font-weight:500; margin:0 0 14px; }
  .foot-col a{ display:block; font-size:13.5px; color:var(--text-dim); padding:5px 0; }
  .foot-col a:hover{ color:var(--text); }
  .foot-bottom{
    display:flex; align-items:center; justify-content:space-between;
    padding-top:24px; border-top:1px solid var(--border);
    font-size:12.5px; color:var(--text-faint);
  }

  /* ---------------------------------------------------- */
  /* Launcher modal                                         */
  /* ---------------------------------------------------- */
  .launcher-overlay{
    position:fixed; inset:0; z-index:100;
    background:rgba(9,8,11,0.6);
    backdrop-filter:blur(6px);
    display:none;
    align-items:flex-start;
    justify-content:center;
    padding-top:14vh;
  }
  .launcher-overlay.open{ display:flex; }
  .launcher{
    width:min(560px, 90vw);
    background:var(--bg-elevated);
    border:1px solid var(--border-strong);
    border-radius:var(--radius-lg);
    box-shadow:0 24px 60px rgba(0,0,0,0.45);
    overflow:hidden;
  }
  .launcher-input{
    display:flex; align-items:center; gap:12px;
    padding:16px 18px; border-bottom:1px solid var(--border);
  }
  .launcher-input svg{ opacity:.7; flex-shrink:0; }
  .launcher-input input{
    flex-grow:1; background:none; border:none; color:var(--text);
    font-size:15px; outline:none;
  }
  .launcher-input input::placeholder{ color:var(--text-faint); }
  .launcher-input kbd{
    font-family:var(--font-mono); font-size:11px; color:var(--text-faint);
    border:1px solid var(--border); border-radius:5px; padding:2px 6px;
  }
  .launcher-list{ max-height:340px; overflow-y:auto; padding:8px; }
  .launcher-item{
    display:flex; align-items:center; gap:12px;
    padding:10px 10px; border-radius:10px;
    color:var(--text-dim); font-size:14px;
  }
  .launcher-item:hover, .launcher-item.active{ background:rgba(255,255,255,0.06); color:var(--text); }
  .launcher-item .li-icon{
    width:34px; height:34px; border-radius:9px; background:var(--surface);
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
    border:1px solid var(--border);
  }
  .launcher-item .li-icon svg{ width:16px; height:16px; }
  .launcher-item div{ min-width:0; }
  .launcher-item strong{ display:block; font-size:14px; font-weight:500; }
  .launcher-item span{ font-size:12px; color:var(--text-faint); }
  .launcher-item.hidden{ display:none; }
  .launcher-foot{
    display:flex; gap:16px; padding:12px 18px;
    border-top:1px solid var(--border);
    font-size:11.5px; color:var(--text-faint);
  }
  .launcher-foot span{ display:flex; align-items:center; gap:6px; }
  .launcher-foot kbd{
    font-family:var(--font-mono); border:1px solid var(--border); border-radius:4px; padding:1px 5px;
  }

  /* ---------------------------------------------------- */
  /* Auth: user chip, workspace lock, sign-in modal         */
  /* ---------------------------------------------------- */
  .hidden{ display:none !important; }

  .avatar{ background-size:cover; background-position:center; }

  .user-chip{
    display:flex; align-items:center; gap:8px;
    padding:4px 12px 4px 4px;
    border-radius:var(--radius-pill);
    border:1px solid var(--border-strong);
    background:rgba(255,255,255,0.03);
    font-size:13.5px;
  }
  .user-chip .avatar{ width:24px; height:24px; }
  .user-chip button{
    background:none; border:none; color:var(--text-faint); font-size:12.5px;
    padding:0; transition:color .15s var(--ease);
  }
  .user-chip button:hover{ color:var(--text); }

  .workspace-frame{ position:relative; }
  .workspace-shell.blurred{
    filter:blur(4px); opacity:.5; pointer-events:none;
    transition:filter .2s var(--ease), opacity .2s var(--ease);
  }
  .ws-lock{
    position:absolute; inset:0;
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
    text-align:center;
  }
  .ws-lock p{ color:var(--text-dim); font-size:14.5px; max-width:26ch; margin:0; }

  .auth-overlay{
    position:fixed; inset:0; z-index:110;
    background:rgba(9,8,11,0.6);
    backdrop-filter:blur(6px);
    display:none; align-items:center; justify-content:center;
    padding:24px;
  }
  .auth-overlay.open{ display:flex; }
  .auth-modal{
    width:min(380px, 100%);
    background:var(--bg-elevated);
    border:1px solid var(--border-strong);
    border-radius:var(--radius-lg);
    box-shadow:0 24px 60px rgba(0,0,0,0.45);
    padding:22px 22px 26px;
  }
  .auth-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
  .auth-tabs{
    display:flex; gap:4px;
    background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius-pill); padding:3px;
  }
  .auth-tab{
    background:none; border:none; color:var(--text-faint);
    font-size:13px; padding:6px 14px; border-radius:var(--radius-pill);
    transition:background .15s var(--ease), color .15s var(--ease);
  }
  .auth-tab.active{ background:var(--accent-soft); color:var(--text); }
  .auth-close{
    background:none; border:none; color:var(--text-faint); font-size:20px; line-height:1;
    padding:2px 6px;
  }
  .auth-close:hover{ color:var(--text); }
  .auth-form{ display:flex; flex-direction:column; gap:14px; }
  .auth-form label{ display:flex; flex-direction:column; gap:6px; font-size:13px; color:var(--text-dim); }
  .auth-form input{
    background:var(--surface); border:1px solid var(--border); color:var(--text);
    border-radius:var(--radius-sm); padding:10px 12px; font-size:14px; outline:none;
    transition:border-color .15s var(--ease);
  }
  .auth-form input:focus{ border-color:var(--accent); }
  .auth-error{ font-size:13px; color:var(--coral); margin:0; }
  .auth-hint{ font-size:12px; margin:-8px 0 0; color:var(--text-faint); }
  .auth-hint.ok{ color:var(--accent); }
  .auth-hint.bad{ color:var(--coral); }
  .auth-hint{ font-size:12px; margin:-6px 0 0; color:var(--text-faint); }
  .auth-hint.ok{ color:var(--accent); }
  .auth-hint.bad{ color:var(--coral); }
  .auth-form .btn{ margin-top:2px; }
  .auth-divider{ display:flex; align-items:center; gap:12px; margin:18px 0 14px; color:var(--text-faint); font-size:12px; }
  .auth-divider::before, .auth-divider::after{ content:''; flex-grow:1; height:1px; background:var(--border); }
  .auth-google{ width:100%; gap:10px; }

  /* ---------------------------------------------------- */
  /* Responsive                                             */
  /* ---------------------------------------------------- */
  @media (max-width: 980px){
    .wrap{ padding:0 22px; }
    .hero .wrap{ grid-template-columns:1fr; }
    .stack{ height:360px; order:-1; }
    .nav-links{ display:none; }
    .nav-search{ display:none; }
    .sync{ grid-template-columns:1fr; gap:36px; }
    .diagram{ order:-1; }
    .ws-cols{ grid-template-columns:1fr; }
    .platforms-grid{ grid-template-columns:repeat(2,1fr); }
    .foot-top{ grid-template-columns:repeat(2,1fr); gap:36px; }
    .foot-brand{ grid-column:span 2; }
  }
  @media (max-width: 620px){
    section{ padding:64px 0; }
    .bento{ grid-template-columns:1fr; }
    .card.c2{ grid-column:span 1; }
    .card.r2{ grid-row:span 1; }
    .workspace-shell{ grid-template-columns:1fr; }
    .ws-side{ display:none; }
    .platforms-grid{ grid-template-columns:1fr; }
    .foot-top{ grid-template-columns:1fr; }
    .foot-brand{ grid-column:span 1; }
    .foot-bottom{ flex-direction:column; gap:10px; align-items:flex-start; }
    .hero-actions{ flex-direction:column; align-items:stretch; }
  }

  /* ---------------------------------------------------- */
  /* Mobile nav toggle + slide-down menu                    */
  /* ---------------------------------------------------- */
  .nav-toggle{
    display:none;
    background:none; border:1px solid var(--border-strong);
    border-radius:var(--radius-sm);
    width:38px; height:38px;
    align-items:center; justify-content:center;
    flex-shrink:0;
  }
  .nav-toggle svg{ width:18px; height:18px; }
  .mobile-menu{
    display:none;
    flex-direction:column;
    padding:8px 22px 18px;
    border-top:1px solid var(--border);
    background:rgba(18,16,22,0.96);
  }
  .mobile-menu.open{ display:flex; }
  .mobile-menu a{
    padding:12px 4px; font-size:15px; color:var(--text-dim);
    border-bottom:1px solid var(--border);
  }
  .mobile-menu a:last-child{ border-bottom:none; }

  @media (max-width: 980px){
    .nav-toggle{ display:flex; }
  }

  /* ---------------------------------------------------- */
  /* Auth: forgot password, inline message, loading spinner */
  /* ---------------------------------------------------- */
  .auth-links{ display:flex; justify-content:flex-end; margin-top:-6px; }
  .auth-links button{
    background:none; border:none; color:var(--text-faint);
    font-size:12.5px; padding:0; transition:color .15s var(--ease);
  }
  .auth-links button:hover{ color:var(--accent); }

  .auth-message{ font-size:13px; color:var(--accent); margin:0; }

  .btn-spinner{
    width:15px; height:15px; border-radius:50%;
    border:2px solid rgba(0,0,0,0.25);
    border-top-color:currentColor;
    animation:spin .7s linear infinite;
    display:inline-block;
  }
  @keyframes spin{ to{ transform:rotate(360deg); } }
  #authSubmit.loading .btn-label{ display:none; }
  #authSubmit.loading{ display:flex; align-items:center; justify-content:center; }
  @media (prefers-reduced-motion: reduce){
    .btn-spinner{ animation:none; }
  }

