:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f4;
  --ink: #111111;
  --ink-2: #44403c;
  --muted: #78716c;
  --line: #e7e5e4;
  --dark: #0c0c0c;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --accent-soft: #fff1ea;
  --ok: #15803d;
  --err: #b91c1c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Space Grotesk', var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.section { padding: 72px 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #e94b12; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }

/* Topbar & header */
.topbar { background: var(--dark); color: #d6d3d1; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 500; }
.topbar a:hover { color: var(--accent); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.35rem; letter-spacing: -.02em; }
.logo-text { font-weight: 500; }
.logo-text strong { font-weight: 700; color: var(--accent); }
.logo-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 24px; }
.logo-mark span { width: 4px; background: var(--ink); border-radius: 2px; }
.logo-mark span:nth-child(1) { height: 40%; }
.logo-mark span:nth-child(2) { height: 100%; background: var(--accent); }
.logo-mark span:nth-child(3) { height: 65%; }
.logo-mark span:nth-child(4) { height: 30%; }
.logo-light { color: #fff; }
.logo-light .logo-mark span { background: #fff; }
.logo-light .logo-mark span:nth-child(2) { background: var(--accent); }

.main-nav { display: flex; gap: 6px; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--ink-2); }
.main-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.main-nav a.active { background: var(--ink); color: #fff; }

.header-actions { display: flex; gap: 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--bg-alt); }
.menu-toggle { display: none; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #2a1408 0%, transparent 60%), var(--dark); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding: 88px 0; }
.hero p { color: #d6d3d1; font-size: 1.15rem; max-width: 52ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--ink); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.hero-device { position: relative; z-index: 1; width: 340px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid #2a2a2a; box-shadow: 0 30px 80px rgba(255,90,31,.25); }
.hero-device img { width: 82%; height: auto; }
.hero-tag { position: absolute; right: -40px; bottom: 10px; background: #fff; color: var(--ink); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); display: grid; font-size: .85rem; }
.hero-tag small { color: var(--muted); }
.hero-tag span { color: var(--accent); font-weight: 700; }
.eq { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: 100%; opacity: .35; }
.eq span { width: 10px; background: linear-gradient(to top, var(--accent), transparent); border-radius: 4px; height: 30%; animation: eq 1.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.17s); }
@keyframes eq { 0% { height: 15%; } 50% { height: 80%; } 100% { height: 35%; } }
@media (prefers-reduced-motion: reduce) { .eq span { animation: none; height: 40%; } }

/* Perks */
.perks { border-bottom: 1px solid var(--line); }
.perks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 28px 0; }
.perk { display: flex; gap: 14px; align-items: center; color: var(--accent); }
.perk div { display: grid; color: var(--ink); }
.perk span { color: var(--muted); font-size: .9rem; }

/* Section head */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.link-arrow { font-weight: 600; color: var(--accent); white-space: nowrap; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { display: grid; gap: 4px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: border-color .2s, transform .2s, box-shadow .2s; }
.cat-card:not(.static):hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-card span:last-child { color: var(--muted); font-size: .92rem; }
.cat-card strong { font-family: var(--display); font-size: 1.15rem; }
.cat-img { display: grid; place-items: center; height: 120px; border-radius: 12px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.cat-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 10px; transition: transform .3s; }
.cat-card:hover .cat-img img { transform: scale(1.05); }
.cat-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; }

/* Promo strip */
.promo-strip { padding: 0 0 8px; }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promo { display: grid; gap: 6px; padding: 28px; border-radius: var(--radius); min-height: 180px; align-content: end; color: #fff; transition: transform .2s; }
.promo:hover { transform: translateY(-3px); }
.promo small { opacity: .8; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.promo strong { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; }
.promo span { font-weight: 600; font-size: .9rem; }
.promo-a { background: linear-gradient(135deg, #ff5a1f, #c2410c); }
.promo-b { background: linear-gradient(135deg, #1c1917, #44403c); }
.promo-c { background: linear-gradient(135deg, #0f766e, #134e4a); }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.product-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--bg-alt); color: var(--ink); }
.product-card:hover .product-icon { color: var(--accent); }
.product-icon { transition: color .2s; }
.product-media, .pdp-media { overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: contain; padding: 16px; mix-blend-mode: multiply; transition: transform .3s; }
.product-card:hover .product-img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; z-index: 1; }
.product-body { display: flex; flex-direction: column; padding: 18px; flex: 1; }
.product-cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.product-body h3 { font-family: var(--font); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 6px 0 10px; }
.product-body h3 a:hover { color: var(--accent); }
.price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price s { color: var(--muted); font-size: .9rem; }
.price strong { font-size: 1.25rem; }
.price-lg strong { font-size: 2rem; font-family: var(--display); }
.pix { color: var(--ok); font-weight: 600; font-size: .9rem; }
.installments { color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
.product-body .btn { margin-top: auto; }

/* About teaser / stats */
.about-teaser { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; }
.stats div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stats dt { font-family: var(--display); font-size: 2.25rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stats dd { margin: 6px 0 0; color: var(--muted); }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.testi { margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; }
.testi-quote { color: var(--accent); }
.testi blockquote { margin: 0; color: var(--ink-2); flex: 1; }
.testi figcaption { display: grid; }
.testi figcaption span { color: var(--muted); font-size: .88rem; }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 48px 0; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: 4px; }
.cta-inner p { margin: 0; opacity: .9; }

/* Page hero */
.page-hero { background: var(--dark); color: #fff; padding: 64px 0 56px; }
.page-hero p { color: #d6d3d1; margin: 0; font-size: 1.1rem; }

/* Shop */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.shop-filters { position: sticky; top: 96px; }
.shop-filters ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 2px; }
.shop-filters li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); }
.shop-filters li a:hover { background: var(--bg-alt); }
.shop-filters li a.active { background: var(--ink); color: #fff; }
.search input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; margin-bottom: 24px; }
.search input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.side-promo { display: grid; gap: 4px; padding: 20px; border-radius: var(--radius); background: var(--accent-soft); }
.side-promo span { color: var(--accent); font-weight: 600; font-size: .9rem; }
.result-count { color: var(--muted); margin-bottom: 16px; }
.empty { padding: 48px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Product page */
.breadcrumb { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--accent); }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pdp-media { position: relative; aspect-ratio: 1; border-radius: var(--radius); background: var(--bg-alt); display: grid; place-items: center; color: var(--ink); }
.pdp-info h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: 6px; }
.pdp-info .installments { margin-bottom: 20px; }
.specs { padding: 0; list-style: none; display: grid; gap: 8px; margin: 0 0 28px; }
.specs li { padding-left: 24px; position: relative; color: var(--ink-2); }
.specs li::before { content: ''; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.pdp-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* Prose */
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }
.prose a { color: var(--accent); text-decoration: underline; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-weight: 500; }
.contact-form input, .contact-form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.contact-form .btn { justify-self: start; }
.contact-card { padding: 28px; border-radius: var(--radius); background: var(--bg-alt); }
.contact-card hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-card .contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.alert-ok { background: #dcfce7; color: var(--ok); }
.alert-err { background: #fee2e2; color: var(--err); }

.big-404 { font-size: clamp(5rem, 15vw, 9rem); color: var(--accent); margin: 0; }
.center-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--dark); color: #d6d3d1; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .logo { margin-bottom: 16px; }
.site-footer .muted { color: #a8a29e; max-width: 32ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #292524; padding: 20px 0; font-size: .85rem; color: #a8a29e; }

/* Floating buttons */
.floating { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; z-index: 60; }
.float-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; min-width: 48px; justify-content: center; border-radius: 999px; border: 0; cursor: pointer; box-shadow: var(--shadow); font: inherit; font-weight: 600; }
.float-top { background: var(--bg); color: var(--ink); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .2s; }
.float-top.show { opacity: 1; pointer-events: auto; }
.float-chat { background: #22c55e; color: #fff; padding: 0 18px; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 20px; bottom: 20px; max-width: 420px; background: var(--dark); color: #e7e5e4; padding: 20px; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.3); z-index: 70; font-size: .92rem; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* Responsive */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .hero-inner, .about-grid, .pdp, .contact-grid, .shop-layout { grid-template-columns: 1fr; }
  .hero-inner { padding: 56px 0; gap: 24px; }
  .hero-visual { min-height: 280px; }
  .hero-device { width: 240px; }
  .hero-tag { right: -8px; }
  .shop-filters { position: static; }
  .perks-grid, .cat-grid, .promo-grid, .testi-grid { grid-template-columns: 1fr; }
  .product-grid, .product-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .product-grid, .product-grid.grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-chat span { display: none; }
  .float-chat { padding: 0; width: 48px; }
  .cookie-banner { left: 16px; right: 16px; bottom: 84px; }
  .topbar .container { justify-content: center; text-align: center; }
}
