:root {
  --ink:        #0f1829;
  --ink-muted:  #4a5568;
  --paper:      #f8f9fc;
  --white:      #ffffff;
  --accent:     #2563eb;
  --accent-dim: #dbeafe;
  --accent-dark:#1d4ed8;
  --navy:       #1a2744;
  --rule:       #e2e8f0;

  --f-display: 'DM Serif Display', Georgia, serif;
  --f-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 1100px;
  --gap:   clamp(2rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--max-w), 100% - 2.5rem);
  margin-inline: auto;
}
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0;
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.nav-logo-cube {
  width: 28px; height: 28px;
}
.nav-logo-text {
  font-family: var(--f-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav-logo-text span { color: #60a5fa; }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-links a { color: rgba(255,255,255,0.6); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* ── Hero ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: var(--gap) 0 calc(var(--gap) * 1.5);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #60a5fa;
  border: 1px solid rgba(96,165,250,0.4);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--white);
}
.hero h1 em {
  font-style: normal;
  color: #60a5fa;
}
.hero-desc {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); }

/* hero visual */
.hero-visual {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-part {
  position: relative;
  width: 120px; height: 120px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.hero-part::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(37,99,235,0.4);
  border-radius: 2px;
}
.hero-part-label {
  position: absolute;
  bottom: -2rem;
  left: 50%; transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  text-transform: uppercase;
}
.hero-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.hero-stat-strip {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem; right: 1.25rem;
  display: flex; gap: 1rem;
}
.hero-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  flex: 1;
}
.hero-stat strong { display: block; font-size: 1.1rem; color: var(--white); font-family: var(--f-display); }
.hero-stat span { font-size: 0.68rem; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Trust bar ── */
.trust-bar {
  background: var(--white);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.trust-bar .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  white-space: nowrap;
}
.trust-items { display: flex; gap: 2rem; flex-wrap: wrap; list-style: none; }
.trust-items li {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 500;
  display: flex; align-items: center; gap: 0.4rem;
}
.trust-items li::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* ── Sections ── */
.section { padding: var(--gap) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-heading {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 28ch;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--ink-muted);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

/* ── Services cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(37,99,235,0.08);
}
.service-icon {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.15rem;
}
.service-card h3 { font-family: var(--f-display); font-size: 1.15rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.55; margin-bottom: 1rem; }
.service-detail { list-style: none; font-size: 0.8rem; color: var(--ink-muted); }
.service-detail li {
  padding: 0.3rem 0;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; gap: 0.4rem;
}
.service-detail li::before { content: '→'; color: var(--accent); }

/* ── Process steps ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.process-step { counter-increment: step; }
.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.process-step h3 { font-family: var(--f-display); font-size: 1.05rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.875rem; color: var(--ink-muted); }

/* ── CTA band ── */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: var(--gap) 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  max-width: 30ch;
}
.cta-band p { color: rgba(255,255,255,0.5); margin-top: 0.5rem; font-size: 0.9rem; }

/* ── Footer ── */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 0;
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}
.footer-logo span { color: #60a5fa; }
footer small { color: rgba(255,255,255,0.35); font-size: 0.8rem; }

/* ── Shop ── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(37,99,235,0.08);
}
.product-thumb {
  background: var(--navy);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-thumb-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 24px 24px;
}
.product-thumb-icon { position: relative; font-size: 2.5rem; }
.product-badge {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 3px;
}
.product-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-family: var(--f-display); font-size: 1.05rem; margin-bottom: 0.4rem; }
.product-body p { font-size: 0.83rem; color: var(--ink-muted); line-height: 1.55; flex: 1; margin-bottom: 1rem; }
.product-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.product-tag {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(37,99,235,0.15);
  padding: 0.2rem 0.5rem; border-radius: 3px;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.product-price { font-family: var(--f-display); font-size: 1.3rem; }
.product-price small { font-family: var(--f-body); font-size: 0.75rem; color: var(--ink-muted); font-weight: 400; }
.qty-wrap {
  display: flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--rule); border-radius: 3px; padding: 0.2rem 0.4rem;
}
.qty-wrap button { background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--ink); width: 22px; line-height: 1; padding: 0; }
.qty-wrap button:hover { color: var(--accent); }
.qty-display { font-size: 0.85rem; font-weight: 600; min-width: 1.2rem; text-align: center; }
.btn-buy {
  background: var(--accent); color: var(--white);
  border: none; border-radius: 3px;
  font-family: var(--f-body); font-size: 0.85rem; font-weight: 600;
  padding: 0.55rem 1.1rem; cursor: pointer;
  transition: background 0.15s; white-space: nowrap;
}
.btn-buy:hover { background: var(--accent-dark); }
.btn-buy:disabled { background: var(--ink-muted); cursor: not-allowed; }
.notice-bar {
  background: var(--accent-dim);
  border-bottom: 1px solid rgba(37,99,235,0.15);
  padding: 0.65rem 0; font-size: 0.82rem; text-align: center; color: var(--ink);
}
.notice-bar a { text-decoration: underline; color: var(--accent); }
#error-toast {
  display: none; position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: #dc2626; color: white; padding: 0.75rem 1.5rem;
  border-radius: 4px; font-size: 0.875rem; z-index: 999; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .nav-links { display: none; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}
