:root{
    --ink:#111827; --body:#374151; --muted:#6B7280; --line:#E5E7EB;
    --bg:#FFFFFF; --bg-soft:#F8FAFC; --dark:#0B0F19;
    --red:#DC2626; --green:#16A34A; --blue:#2563EB;
    --red-l:#EF4444; --green-l:#22C55E; --blue-l:#3B82F6;
    --wrap:1080px;
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0; background:var(--bg); color:var(--body);
    font-family:'Poppins',-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-weight:300; line-height:1.7; -webkit-font-smoothing:antialiased;
  }
  .wrap{max-width:var(--wrap); margin:0 auto; padding:0 24px;}
  h1,h2,h3{color:var(--ink); font-weight:600; line-height:1.25; margin:0;}
  a{color:inherit;}

  /* ---------- nav ---------- */
  nav{position:sticky; top:0; z-index:50; background:rgba(255,255,255,.92); backdrop-filter:blur(8px); border-bottom:1px solid var(--line);}
  nav .wrap{display:flex; align-items:center; justify-content:space-between; height:72px;}
  .brand{display:flex; align-items:center; gap:12px; text-decoration:none;}
  .brand .nm{font-size:17px; font-weight:600; color:var(--ink); letter-spacing:.2px;}
  .brand .nm span{font-weight:300; color:var(--muted);}
  .navlinks{display:flex; gap:30px; font-size:14px;}
  .navlinks a{text-decoration:none; color:var(--body);}
  .navlinks a:hover{color:var(--ink);}
  @media(max-width:760px){ .navlinks{display:none;} }

  /* ---------- hero ---------- */
  .hero{background:var(--dark); color:#E2E8F0; padding:96px 0 104px; position:relative; overflow:hidden;}
  .hero .wrap{position:relative; z-index:2; display:grid; grid-template-columns:1.15fr .85fr; gap:56px; align-items:center;}
  .hero h1{color:#F8FAFC; font-size:44px; letter-spacing:-.5px;}
  .hero p.lede{font-size:18px; color:#94A3B8; margin:22px 0 0; max-width:34em;}
  .hero .cta{margin-top:34px; display:flex; gap:14px; flex-wrap:wrap;}
  .btn{display:inline-block; padding:13px 26px; border-radius:6px; font-size:14.5px; font-weight:500; text-decoration:none; transition:.15s;}
  .btn-primary{background:#F8FAFC; color:var(--dark);}
  .btn-primary:hover{background:#fff;}
  .btn-ghost{border:1px solid #334155; color:#CBD5E1;}
  .btn-ghost:hover{border-color:#64748B; color:#F8FAFC;}
  .heromark{display:flex; justify-content:center;}
  @media(max-width:860px){
    .hero{padding:64px 0 72px;}
    .hero .wrap{grid-template-columns:1fr; gap:40px;}
    .hero h1{font-size:33px;}
    .heromark{order:-1; justify-content:flex-start;}
    .heromark svg{width:220px; height:auto;}
  }

  /* ---------- rgb rule ---------- */
  .rgbrule{display:flex; height:4px;}
  .rgbrule i{flex:1;}
  .rgbrule i:nth-child(1){background:var(--red);}
  .rgbrule i:nth-child(2){background:var(--green);}
  .rgbrule i:nth-child(3){background:var(--blue);}

  /* ---------- sections ---------- */
  section{padding:88px 0;}
  section.soft{background:var(--bg-soft); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
  .eyebrow{font-size:11.5px; letter-spacing:2px; text-transform:uppercase; color:var(--muted); font-weight:500; margin-bottom:14px;}
  h2{font-size:30px; letter-spacing:-.3px;}
  .section-lede{font-size:16.5px; color:var(--muted); margin:16px 0 0; max-width:46em;}

  .grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:52px;}
  @media(max-width:860px){ .grid3{grid-template-columns:1fr; gap:22px;} section{padding:60px 0;} h2{font-size:25px;} }

  .card{background:#fff; border:1px solid var(--line); border-radius:10px; padding:30px 26px; transition:.18s;
        display:flex; flex-direction:column;}
  .card:hover{border-color:#CBD5E1; box-shadow:0 4px 18px rgba(15,23,42,.06);}
  .card h3{font-size:17px; margin-bottom:8px; min-height:2.5em;}
  .card p{font-size:14.5px; margin:0; color:var(--body);}
  .card .meta{font-size:12.5px; color:var(--muted); margin-top:auto; padding-top:18px; border-top:1px solid var(--line);}
  .card .meta{margin-top:22px;}
  @media(min-width:861px){ .card .meta{margin-top:auto;} }
  .dot{width:9px; height:9px; border-radius:50%; display:inline-block; margin-bottom:16px;}

  /* ---------- labs ---------- */
  .lab{display:grid; grid-template-columns:auto 1fr auto; gap:24px; align-items:start;
       padding:28px 0; border-bottom:1px solid var(--line);}
  .lab:last-child{border-bottom:none;}
  .lab .idx{font-size:13px; color:#CBD5E1; font-weight:500; padding-top:3px;}
  .lab h3{font-size:18px; margin-bottom:6px;}
  .lab p{margin:0; font-size:15px;}
  .lab .stack{font-size:12.5px; color:var(--muted); margin-top:12px; letter-spacing:.3px;}
  .tag{font-size:11px; font-weight:500; letter-spacing:.6px; text-transform:uppercase;
       padding:5px 11px; border-radius:20px; white-space:nowrap;}
  .tag.live{background:#DCFCE7; color:#166534;}
  .tag.beta{background:#DBEAFE; color:#1E40AF;}
  .tag.proto{background:#F1F5F9; color:#475569;}
  @media(max-width:700px){ .lab{grid-template-columns:1fr; gap:10px;} .lab .idx{display:none;} }

  /* ---------- about ---------- */
  .about{display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start;}
  .about p{font-size:16px;}
  .about p + p{margin-top:18px;}
  .factlist{list-style:none; padding:0; margin:0; font-size:14.5px;}
  .factlist li{padding:14px 0; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; gap:20px;}
  .factlist li:last-child{border-bottom:none;}
  .factlist .k{color:var(--muted);}
  .factlist .v{color:var(--ink); font-weight:500; text-align:right;}
  @media(max-width:860px){ .about{grid-template-columns:1fr; gap:36px;} }

  /* ---------- contact ---------- */
  .contact{background:var(--dark); color:#CBD5E1; padding:84px 0;}
  .contact h2{color:#F8FAFC;}
  .contact .section-lede{color:#94A3B8;}
  .contactgrid{display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:44px;}
  .contactgrid a, .contactgrid div{text-decoration:none;}
  .contactgrid .k{font-size:11.5px; letter-spacing:1.6px; text-transform:uppercase; color:#64748B; margin-bottom:8px;}
  .contactgrid .v{font-size:15.5px; color:#F8FAFC; font-weight:400;}
  @media(max-width:760px){ .contactgrid{grid-template-columns:1fr; gap:22px;} }

  footer{background:var(--dark); color:#475569; font-size:12.5px; padding:26px 0 34px; border-top:1px solid #1E293B;}
  footer .wrap{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;}

/* ============================================================
   INTERIOR PAGES  (labs.html, contact.html)
   ============================================================ */

.pagehead{background:var(--dark); color:#E2E8F0; padding:72px 0 64px;}
.pagehead h1{color:#F8FAFC; font-size:38px; letter-spacing:-.4px;}
.pagehead p{font-size:17px; color:#94A3B8; margin:18px 0 0; max-width:40em;}
.pagehead .eyebrow{color:#64748B;}
@media(max-width:760px){ .pagehead{padding:52px 0 46px;} .pagehead h1{font-size:29px;} }

/* --- product block --- */
.prod{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; padding:76px 0; border-bottom:1px solid var(--line);}
.prod:last-of-type{border-bottom:none;}
.prod.flip .prodtext{order:2;}
.prod h2{font-size:26px; margin-bottom:6px;}
.prod .role{font-size:12.5px; letter-spacing:1.4px; text-transform:uppercase; color:var(--muted); margin-bottom:18px;}
.prod p{font-size:15.5px; margin:0 0 16px;}
.prod ul{margin:18px 0 0; padding-left:18px; font-size:15px;}
.prod li{margin-bottom:8px;}
.prod .stackline{margin-top:24px; padding-top:18px; border-top:1px solid var(--line); font-size:13px; color:var(--muted);}
@media(max-width:860px){
  .prod{grid-template-columns:1fr; gap:34px; padding:52px 0;}
  .prod.flip .prodtext{order:0;}
  .prod h2{font-size:22px;}
}

/* --- device mockups (placeholders) --- */
.shot{display:flex; flex-direction:column; align-items:center; gap:12px;}
.shotnote{font-size:11.5px; color:#94A3B8; text-align:center; font-style:italic;}

.phone{width:238px; border:9px solid #111827; border-radius:30px; overflow:hidden; background:#fff;
       box-shadow:0 14px 34px rgba(15,23,42,.14);}
.phone .status{height:26px; background:var(--dark);}
.phone .appbar{padding:14px 15px; border-bottom:1px solid var(--line);}
.phone .appbar b{font-size:13px; color:var(--ink); font-weight:600;}
.phone .body{padding:12px 13px 20px; min-height:330px; background:#fff;}

.browser{width:100%; max-width:520px; border:1px solid var(--line); border-radius:10px; overflow:hidden;
         background:#fff; box-shadow:0 14px 34px rgba(15,23,42,.10);}
.browser .bar{height:34px; background:#F1F5F9; border-bottom:1px solid var(--line);
              display:flex; align-items:center; gap:6px; padding:0 12px;}
.browser .bar i{width:9px; height:9px; border-radius:50%; background:#CBD5E1; display:block;}
.browser .app{display:grid; grid-template-columns:118px 1fr; min-height:300px;}
.browser .side{background:#F8FAFC; border-right:1px solid var(--line); padding:14px 12px;}
.browser .main{padding:16px 16px 22px;}

/* mockup primitives */
.mrow{display:flex; align-items:center; gap:9px; padding:9px 0; border-bottom:1px solid #F1F5F9;}
.mrow:last-child{border-bottom:none;}
.mthumb{width:30px; height:30px; border-radius:5px; background:#F1F5F9; flex:none;}
.mline{height:7px; border-radius:4px; background:#E2E8F0;}
.mline.dk{background:#CBD5E1;}
.mlabel{font-size:10.5px; color:#64748B;}
.mlabel.b{color:var(--ink); font-weight:500;}
.mpill{font-size:9px; padding:3px 7px; border-radius:10px; background:#F1F5F9; color:#64748B; white-space:nowrap;}
.mpill.ok{background:#DCFCE7; color:#166534;}
.mpill.due{background:#FEE2E2; color:#991B1B;}
.mstat{border:1px solid var(--line); border-radius:7px; padding:10px 11px;}
.mstat .n{font-size:16px; font-weight:600; color:var(--ink);}
.mstat .t{font-size:9.5px; color:var(--muted); letter-spacing:.4px; text-transform:uppercase; margin-top:2px;}

/* chat mockup */
.chat{display:flex; flex-direction:column; gap:9px;}
.bub{max-width:80%; padding:8px 11px; border-radius:11px; font-size:11.5px; line-height:1.45;}
.bub.them{background:#F1F5F9; color:#334155; align-self:flex-start; border-bottom-left-radius:3px;}
.bub.me{background:#DCFCE7; color:#14532D; align-self:flex-end; border-bottom-right-radius:3px;}

/* --- contact page --- */
.ccards{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:8px;}
.ccard{border:1px solid var(--line); border-radius:10px; padding:28px 24px; text-decoration:none;
       display:block; transition:.16s; background:#fff;}
.ccard:hover{border-color:#CBD5E1; box-shadow:0 4px 18px rgba(15,23,42,.06); transform:translateY(-2px);}
.ccard .ic{width:38px; height:38px; border-radius:9px; display:flex; align-items:center; justify-content:center; margin-bottom:16px;}
.ccard h3{font-size:15.5px; margin-bottom:4px;}
.ccard .val{font-size:14px; color:var(--body); word-break:break-word;}
.ccard .sub{font-size:12.5px; color:var(--muted); margin-top:10px;}
@media(max-width:820px){ .ccards{grid-template-columns:1fr;} }

.formwrap{max-width:560px; margin-top:16px;}
.field{margin-bottom:18px;}
.field label{display:block; font-size:12.5px; letter-spacing:.8px; text-transform:uppercase; color:var(--muted); margin-bottom:7px;}
.field input, .field textarea{
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:7px;
  font-family:inherit; font-size:15px; font-weight:300; color:var(--ink); background:#fff;}
.field input:focus, .field textarea:focus{outline:none; border-color:var(--blue);}
.field textarea{min-height:130px; resize:vertical;}
button.btn-send{background:var(--ink); color:#fff; border:none; padding:13px 30px; border-radius:6px;
  font-family:inherit; font-size:14.5px; font-weight:500; cursor:pointer;}
button.btn-send:hover{background:#000;}

/* four-up variants for contact rows */
.ccards.four{grid-template-columns:repeat(4,1fr);}
@media(max-width:1000px){ .ccards.four{grid-template-columns:repeat(2,1fr);} }
@media(max-width:600px){ .ccards.four{grid-template-columns:1fr;} }
.contactgrid.four{grid-template-columns:repeat(4,1fr);}
@media(max-width:900px){ .contactgrid.four{grid-template-columns:repeat(2,1fr);} }
@media(max-width:560px){ .contactgrid.four{grid-template-columns:1fr;} }
.ccards.four .ccard{padding:26px 20px;}
.ccards.four .ccard .val{font-size:12.6px; overflow-wrap:anywhere;}
.ccards.four .ccard .sub{font-size:11.8px;}
