/* AetherKey Store — dark tech storefront */
:root {
  --bg: #0a0e14;
  --bg2: #0f141d;
  --panel: #131a24;
  --panel2: #18202c;
  --line: #232d3b;
  --ink: #e8eef4;
  --ink2: #9fb0bf;
  --faint: #66788a;
  --teal: #19d3c5;
  --teal-dim: #0f9e94;
  --bronze: #d8a95c;
  --bronze-dim: #a5793b;
  --green: #42e084;
  --red: #ff5d5d;
  --mono: "JetBrains Mono", "Fira Code", Consolas, "DejaVu Sans Mono", monospace;
  --sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* ---------- top bar ---------- */
.topbar {
  background: #06090d;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink2);
  letter-spacing: .06em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar .dot { color: var(--green); }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(10,14,20,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.nav .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: .04em; }
.brand .glyph {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), #0b7575);
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; color: #04211f; font-size: 15px;
}
nav.links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
nav.links a { color: var(--ink2); font-size: 14.5px; font-weight: 600; }
nav.links a:hover { color: var(--teal); }
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: var(--panel2); border: 1px solid var(--line); color: var(--ink);
  padding: 8px 16px; border-radius: 9px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.cart-btn:hover { border-color: var(--teal); }
.cart-count {
  background: var(--teal); color: #04211f; border-radius: 999px;
  min-width: 20px; height: 20px; display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 800; padding: 0 5px;
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(25,211,197,.16), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(216,169,92,.10), transparent 60%),
    linear-gradient(180deg, #0b1017 0%, var(--bg) 100%);
}
.hero .grid-bg {
  position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(35,45,59,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,45,59,.55) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 84px; padding-bottom: 84px; }
.kicker { font-family: var(--mono); font-size: 12.5px; color: var(--teal); letter-spacing: .22em; text-transform: uppercase; }
.hero h1 { font-size: 56px; line-height: 1.04; letter-spacing: -.01em; margin: 18px 0 10px; font-weight: 800; }
.hero h1 .accent { color: var(--teal); }
.hero p.sub { color: var(--ink2); font-size: 18.5px; max-width: 560px; margin-bottom: 30px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  border-radius: 11px; padding: 14px 26px; font-weight: 700; font-size: 15.5px;
  cursor: pointer; border: 1px solid transparent; font-family: var(--sans);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--teal); color: #04211f; box-shadow: 0 6px 26px rgba(25,211,197,.28); }
.btn.primary:hover { box-shadow: 0 10px 34px rgba(25,211,197,.4); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn.bronze { background: var(--bronze); color: #241803; box-shadow: 0 6px 26px rgba(216,169,92,.3); }
.hero .device-shot { border-radius: 20px; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.hero .chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.chip {
  font-family: var(--mono); font-size: 12px; color: var(--ink2);
  border: 1px solid var(--line); background: rgba(19,26,36,.8);
  padding: 6px 12px; border-radius: 999px;
}
.chip b { color: var(--teal); font-weight: 600; }

/* ---------- sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head .kicker { color: var(--bronze); }
.sec-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -.01em; margin: 10px 0 12px; }
.sec-head p { color: var(--ink2); font-size: 16.5px; }

/* ---------- product cards ---------- */
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.pcard:hover { border-color: #33415a; transform: translateY(-3px); }
.pcard.pro { border-color: #4a3d22; background: linear-gradient(180deg, #171508 0%, var(--panel) 45%); }
.pcard.pro:hover { border-color: var(--bronze); }
.pcard .imgbox { position: relative; }
.pcard .imgbox img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pcard .badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em;
  padding: 6px 11px; border-radius: 7px; text-transform: uppercase;
}
.pcard .badge.stock { background: rgba(25,211,197,.15); color: var(--teal); border: 1px solid rgba(25,211,197,.4); }
.pcard .badge.pro { background: rgba(216,169,92,.15); color: var(--bronze); border: 1px solid rgba(216,169,92,.45); }
.pcard .body { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard h3 { font-size: 24px; font-weight: 800; }
.pcard .tagline { color: var(--ink2); font-size: 15px; }
.pcard ul.flist { list-style: none; display: grid; gap: 8px; margin-top: 4px; }
.pcard ul.flist li { color: var(--ink2); font-size: 14px; padding-left: 24px; position: relative; }
.pcard ul.flist li::before { content: "▸"; position: absolute; left: 2px; color: var(--teal); }
.pcard.pro ul.flist li::before { color: var(--bronze); }
.pcard .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-size: 26px; font-weight: 800; }
.price small { color: var(--faint); font-size: 13px; font-weight: 600; }
.pcard .btn { padding: 11px 20px; font-size: 14.5px; }

/* ---------- feature grid ---------- */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fcell {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 22px 20px;
}
.fcell .ico {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-size: 19px; margin-bottom: 14px;
  background: rgba(25,211,197,.12); border: 1px solid rgba(25,211,197,.3);
}
.fcell h4 { font-size: 16.5px; margin-bottom: 7px; font-weight: 700; }
.fcell p { color: var(--ink2); font-size: 14px; }

/* ---------- pitch / statement ---------- */
.statement {
  text-align: center; max-width: 880px; margin: 0 auto;
}
.statement h2 { font-size: 36px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; margin-bottom: 18px; }
.statement h2 em { color: var(--teal); font-style: normal; }
.statement p { color: var(--ink2); font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 40px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat .v { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--teal); }
.stat .l { color: var(--faint); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }

/* ---------- compare table ---------- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; }
table.cmp th, table.cmp td { padding: 13px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14px; }
table.cmp th { background: #0d1420; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
table.cmp td:first-child, table.cmp th:first-child { text-align: left; color: var(--ink); font-weight: 600; }
table.cmp tr:last-child td { border-bottom: none; }
table.cmp .y { color: var(--green); font-weight: 800; }
table.cmp .n { color: var(--faint); }
table.cmp .p { color: var(--bronze); font-weight: 700; }

/* ---------- product page ---------- */
.pp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
.pp .gallery { display: flex; flex-direction: column; gap: 14px; }
.pp .gallery .main { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.pp .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pp .thumbs img { border-radius: 10px; border: 1px solid var(--line); cursor: pointer; aspect-ratio: 1; object-fit: cover; }
.pp .thumbs img:hover { border-color: var(--teal); }
.pp .thumbs img.active { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(25,211,197,.3); }
.pp h1 { font-size: 40px; font-weight: 800; letter-spacing: -.01em; margin: 8px 0 8px; }
.pp .sub { color: var(--ink2); font-size: 17px; margin-bottom: 22px; }
.pp .pricebox { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.pp .pricebox .big { font-size: 40px; font-weight: 800; }
.pp .pricebox .note { color: var(--faint); font-size: 13.5px; }
.buybox { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 22px; }
.buybox .row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--ink2); font-size: 14px; }
.buybox .row .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--green); display: inline-block; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { background: var(--panel2); color: var(--ink); border: none; width: 40px; height: 42px; font-size: 18px; cursor: pointer; }
.qty button:hover { color: var(--teal); }
.qty input { width: 52px; text-align: center; background: transparent; border: none; color: var(--ink); font-family: var(--mono); font-size: 15px; outline: none; }
.spec-tabs { display: flex; gap: 8px; margin: 26px 0 0; flex-wrap: wrap; }
.spec-tabs button {
  background: var(--panel); border: 1px solid var(--line); color: var(--ink2);
  padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: var(--sans);
}
.spec-tabs button.active { color: #04211f; background: var(--teal); border-color: var(--teal); }
.spec-body { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; margin-top: 14px; }
.spec-body h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); margin: 18px 0 8px; font-family: var(--mono); }
.spec-body h4:first-child { margin-top: 0; }
.spec-body ul { list-style: none; columns: 2; column-gap: 34px; }
.spec-body ul li { font-size: 14px; color: var(--ink2); padding: 4px 0 4px 20px; position: relative; break-inside: avoid; }
.spec-body ul li::before { content: "—"; position: absolute; left: 0; color: var(--faint); }
.spec-body p { color: var(--ink2); font-size: 14.5px; }
.spec-body .code {
  font-family: var(--mono); font-size: 13px; background: #0a0f16; border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 18px; color: #b8e6da; overflow-x: auto; white-space: pre;
}
.spec-body .code .k { color: var(--teal); }
.spec-body .code .s { color: var(--bronze); }
.spec-panel { display: none; }
.spec-panel.active { display: block; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- product page hero strip ---------- */
.pp-hero { border-bottom: 1px solid var(--line); background: radial-gradient(1200px 400px at 70% -10%, rgba(25,211,197,.08), transparent 60%), var(--bg2); }
.pp-hero .wrap { padding-top: 40px; padding-bottom: 8px; }
.crumbs { color: var(--faint); font-size: 13px; font-family: var(--mono); margin-bottom: 26px; }
.crumbs a { color: var(--ink2); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }

/* ---------- sdk / code sections (pro) ---------- */
.sdkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.padgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.padcell { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.padcell .sig { font-family: var(--mono); font-size: 12.5px; color: var(--teal); letter-spacing: .06em; }
.padcell h6 { margin: 6px 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.padcell p { color: var(--ink2); font-size: 12.5px; }
@media (max-width: 920px) { .sdkgrid { grid-template-columns: 1fr; } .padgrid { grid-template-columns: 1fr 1fr; } }

/* ---------- faq ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 20px; font-weight: 700; font-size: 15.5px;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 19px; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--ink2); font-size: 14.5px; }

/* ---------- footer ---------- */
footer { background: #06090d; border-top: 1px solid var(--line); padding: 54px 0 34px; margin-top: 60px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 34px; }
footer h5 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); margin-bottom: 13px; font-family: var(--mono); }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul a { color: var(--ink2); font-size: 14px; }
footer ul a:hover { color: var(--teal); }
footer .blurb { color: var(--ink2); font-size: 14px; max-width: 320px; margin-top: 10px; }
footer .legal { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 18px; color: var(--faint); font-size: 12.5px; flex-wrap: wrap; }

/* ---------- cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(3,5,8,.6); backdrop-filter: blur(3px); z-index: 98; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: -440px; width: 420px; max-width: 94vw; height: 100vh; z-index: 99;
  background: var(--bg2); border-left: 1px solid var(--line);
  transition: right .22s ease; display: flex; flex-direction: column;
}
.drawer.open { right: 0; }
.drawer .head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer .head h3 { font-size: 18px; }
.drawer .head button { background: none; border: none; color: var(--faint); font-size: 22px; cursor: pointer; }
.drawer .items { flex: 1; overflow-y: auto; padding: 18px 22px; }
.citem { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.citem img { width: 64px; height: 64px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line); }
.citem .t { font-weight: 700; font-size: 14.5px; }
.citem .m { color: var(--faint); font-size: 12.5px; font-family: var(--mono); }
.citem .p { font-weight: 700; }
.citem .rm { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; }
.citem .rm:hover { color: var(--red); }
.drawer .empty { text-align: center; color: var(--faint); padding: 60px 0; font-size: 14.5px; }
.drawer .foot { border-top: 1px solid var(--line); padding: 20px 22px; }
.drawer .tot { display: flex; justify-content: space-between; font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.drawer .note { color: var(--faint); font-size: 12px; margin-top: 12px; text-align: center; }

/* ---------- toast ---------- */
#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 90px);
  background: #0d1a19; border: 1px solid var(--teal); color: var(--ink);
  border-radius: 12px; padding: 13px 22px; font-weight: 600; font-size: 14.5px; z-index: 120;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); transition: transform .2s ease; display: flex; gap: 10px; align-items: center;
}
#toast.show { transform: translate(-50%, 0); }
#toast .tick { color: var(--teal); font-weight: 800; }

/* ---------- misc ---------- */
.trust { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 40px; }
.trust div { display: flex; align-items: center; gap: 9px; color: var(--ink2); font-size: 13.5px; }
.trust .ic { color: var(--teal); }
.disclaimer { background: #120d08; border: 1px solid #3a2d18; border-radius: 12px; padding: 16px 20px; color: #b09569; font-size: 13px; margin-top: 40px; }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero h1 { font-size: 40px; }
  .products-grid, .pp { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  nav.links a.hideable { display: none; }
  .spec-body ul { columns: 1; }
}
@media (max-width: 560px) {
  .fgrid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}
