:root {
  --paper: #050505;
  --paper-2: #0e0e0e;
  --white: #111111;
  --ink: #f5f5f5;
  --ink-soft: #c8c8c8;
  --muted: #8a8a8a;
  --line: #2a2a2a;
  --forest: #ffffff;
  --forest-2: #e8e8e8;
  --clay: #ffffff;
  --clay-2: #d4d4d4;
  --ok: #d4d4d4;
  --warn: #b0b0b0;
  --danger: #f3f3f3;
  --focus: #ffffff;
  --accent: #ffffff;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .55);
  --font-serif: "Outfit", system-ui, sans-serif;
  --font-sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --header: 68px;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100%;
}
::selection { background: #fff; color: #050505; }
img:not(.no-bw) { filter: grayscale(1) contrast(1.05); }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
.prose a, .legal-content a, .crumbs a, .notice a {
  color: var(--forest);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.prose a:hover, .legal-content a:hover, .crumbs a:hover, .notice a:hover {
  border-bottom-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; background: var(--ink); color: #050505; padding: .5rem 1rem; z-index: 10000;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.wrap-wide { width: min(1280px, calc(100% - 2rem)); margin-inline: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
.lede { font-size: 1.15rem; max-width: 42rem; }

.kicker {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: .6rem;
}

.icon { display: inline-flex; width: 1.15em; height: 1.15em; vertical-align: -0.15em; }
.icon svg { width: 100%; height: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: #fff; color: #050505; }
.btn-primary:hover { background: #e8e8e8; color: #050505; }
.btn-clay { background: #fff; color: #050505; }
.btn-clay:hover { background: #d4d4d4; color: #050505; }
.btn-ghost { background: transparent; border-color: #3a3a3a; color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(244,240,232,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  overflow-x: hidden;
}
main { overflow-x: hidden; max-width: 100%; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header); gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: #fff; color: #050505;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem;
}
.brand-name { font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.brand-sub { font-size: .72rem; color: var(--muted); }

.nav { display: flex; gap: 1.2rem; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav-extra { display: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); display: grid; place-items: center; color: var(--ink); text-decoration: none; position: relative;
}
.badge-count {
  position: absolute; top: -4px; right: -4px; background: var(--clay); color: #fff;
  font-size: .65rem; min-width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; font-weight: 700;
}
.menu-toggle { display: none; background: none; border: 0; }

.hero { padding: 4.5rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.founder-stage {
  display: grid; justify-items: center; text-align: center;
  perspective: 900px;
}
.founder-photo {
  width: min(280px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow:
    0 18px 40px rgba(37, 99, 235, .28),
    0 0 0 10px rgba(37, 99, 235, .12);
  transform: rotateY(-10deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform .35s ease;
}
.founder-photo:hover { transform: rotateY(6deg) rotateX(-2deg) scale(1.03); }
.founder-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
}
.founder-stage .meta { margin-top: 1rem; }
.founder-stage .meta strong { display: block; font-size: 1.15rem; }
.founder-stage .meta span { color: var(--muted); font-size: .9rem; }
.founder-card { background: transparent; border: 0; box-shadow: none; }

.section { padding: 4rem 0; }
.section-alt { background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.8rem; flex-wrap: wrap; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: 0 1px 0 rgba(255,255,255,.6);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card p { margin-bottom: 0; font-size: .95rem; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { color: inherit; }

.media-card { padding: 0; overflow: hidden; border-radius: 28px; }
.product-card { overflow: hidden; }
.media-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--paper-2); }
.media-card .body { padding: 1rem 1.1rem 1.2rem; }
.pill {
  display: inline-block; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  background: var(--paper-2); color: var(--forest); padding: .2rem .5rem; border-radius: 99px; font-weight: 600;
}

.empty {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 2.5rem 1.5rem; text-align: center; background: var(--white);
}
.empty h3 { margin-bottom: .4rem; }

.why-list { display: grid; gap: .8rem; }
.why-item { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; }
.why-item .n {
  font-family: var(--font-mono); font-size: .8rem; color: var(--forest);
  border: 1px solid var(--line); width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 8px; background: var(--white);
}

.cta-band {
  background: #fff; color: #050505; border-radius: 40px 40px 40px 40px / 28px 28px 48px 48px; padding: 2.4rem 2rem;
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: #050505; }
.cta-band p { opacity: .75; max-width: 36rem; }

.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-footer a { color: var(--ink-soft); text-decoration: none; display: block; margin: .35rem 0; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }

.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 70;
  width: 54px; height: 54px; border-radius: 999px; background: #128C7E; color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow); text-decoration: none;
}
.wa-float:hover { color: #fff; transform: translateY(-2px); }

.form { display: grid; gap: .9rem; }
label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
input, textarea, select {
  font: inherit; padding: .75rem .85rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.help { font-weight: 400; color: var(--muted); font-size: .85rem; }

.flash { padding: .85rem 1rem; border-radius: 10px; margin: 1rem 0; }
.flash-success { background: #e5f3ea; color: #1d4d33; }
.flash-error { background: #f8e4e1; color: #7a2424; }

.page-hero { padding: 2.8rem 0 1.5rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }

.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.4rem; }
.filters a, .filters button {
  border: 1px solid var(--line); background: var(--white); border-radius: 99px;
  padding: .35rem .8rem; font: inherit; text-decoration: none; color: var(--ink-soft); cursor: pointer;
}
.filters a.active, .filters button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.price { font-family: var(--font-mono); font-weight: 500; }
.price-old { color: var(--muted); text-decoration: line-through; margin-right: .4rem; font-size: .9rem; }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; }
.side-nav a { display: block; padding: .4rem 0; color: var(--ink-soft); text-decoration: none; }
.side-nav a.active { color: var(--ink); font-weight: 700; }
.search-bar { display: flex; gap: .5rem; margin-bottom: 1rem; }
.search-bar input { flex: 1; }

.product-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; }
.gallery { display: grid; gap: .6rem; }
.gallery img { border-radius: 12px; border: 1px solid var(--line); background: var(--white); }
.spec-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.spec-list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .5rem 0; font-size: .95rem; }

.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; }
.table th, .table td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
.table th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.account-layout, .admin-layout { display: grid; grid-template-columns: 230px 1fr; gap: 1.5rem; }
.sidenav { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: .8rem; }
.sidenav a { display: flex; gap: .55rem; align-items: center; padding: .55rem .7rem; border-radius: 8px; text-decoration: none; color: var(--ink-soft); }
.sidenav a:hover, .sidenav a.active { background: var(--paper-2); color: var(--ink); }

.admin-body { background: #efeae0; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--forest-2); color: #e7efe9; padding: 1.3rem 1rem; }
.admin-side a { color: #c5d6cc; text-decoration: none; display: block; padding: .45rem .6rem; border-radius: 8px; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-side .brand-name { color: #fff; }
.admin-main { padding: 1.5rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.stat b { display: block; font-size: 1.6rem; font-family: var(--font-serif); }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.auth-card { width: min(440px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; box-shadow: var(--shadow); }

.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-weight: 650; }
.legal-content h2 { font-size: 1.35rem; margin-top: 1.6rem; }
.legal-content ul { color: var(--ink-soft); }

.prose { max-width: 44rem; }
.tech-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.tech-list span { border: 1px solid var(--line); padding: .2rem .5rem; border-radius: 6px; font-size: .8rem; background: var(--white); }

.notice { font-size: .9rem; color: var(--muted); }

@media (max-width: 960px) {
  .hero-grid, .product-hero, .shop-layout, .account-layout, .admin-layout, .footer-grid, .grid-3, .grid-4, .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .form-row { grid-template-columns: minmax(0, 1fr); }
  .nav, .header-actions .hide-sm { display: none; }
  .menu-toggle { display: grid; flex-shrink: 0; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: var(--header);
    width: 100%; max-width: 100%;
    background: #050505; border-bottom: 1px solid var(--line); padding: 1rem 1.2rem 1.4rem;
    box-shadow: var(--shadow); z-index: 90; gap: .2rem;
  }
  .nav.open a { padding: .85rem .4rem; font-size: 1.05rem; min-height: 44px; }
  .nav-extra { display: none; }
  .nav.open .nav-extra { display: block; font-weight: 800; color: var(--forest) !important; }
  .header-inner { height: 62px; gap: .5rem; min-width: 0; }
  .brand { min-width: 0; flex: 1; }
  .brand-name, .brand-sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-actions { flex-shrink: 0; }
  h1 { font-size: 1.7rem; overflow-wrap: anywhere; }
  h2, h3 { overflow-wrap: anywhere; }
  .section { padding: 2.2rem 0; }
  .hero { padding: 1.6rem 0 1.2rem; overflow: hidden; }
  .hero-orb { display: none; }
  .founder-photo { transform: none; max-width: min(220px, 70vw); }
  .search-bar { flex-direction: column; align-items: stretch; width: 100%; }
  .search-bar input, .search-bar select, .search-bar button { width: 100%; max-width: 100%; }
  .cta-row { width: 100%; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .buy-bar { display: flex !important; }
  .wrap, .wrap-wide { width: 100%; padding-inline: 1rem; max-width: 100%; }
  .card, .product-card, .media-card, .auth-card { max-width: 100%; min-width: 0; }
  .price-row { flex-wrap: wrap; }
  .table { display: block; max-width: 100%; overflow-x: auto; }
  .wa-float { right: .8rem; bottom: .8rem; }
  .section-alt { border-radius: 0; }
  .cta-band { padding: 1.4rem 1.1rem; border-radius: 24px; }
  .page-hero { padding: 1.6rem 0 1rem; }
  .gallery img { max-width: 100%; }
  input, textarea, select, button { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
