/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --black:   #0a0a0a;
  --white:   #f8f8f8;
  --grey-1:  #1a1a1a;
  --grey-2:  #2d2d2d;
  --grey-3:  #888888;
  --grey-4:  #e8e8e8;
  --grey-5:  #f2f2f2;
  --orange:  #e85d26;
  --green:   #3a7d44;
  --teal:    #1a9e9e;
  --font:    'Inter', system-ui, -apple-system, sans-serif;
  --radius:  10px;
  --shadow:  0 4px 24px rgba(0,0,0,.10);
  --nav-h:   64px;
  --section: clamp(4rem, 10vw, 7rem);
  --max:     1200px;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Utility ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 7vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
p  { font-size: clamp(.9rem, 2vw, 1.05rem); color: var(--grey-3); }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: #c94e1e; box-shadow: 0 6px 20px rgba(232,93,38,.35); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-card {
  background: var(--black);
  color: var(--white);
  font-size: .85rem;
  padding: .65rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background .15s, transform .15s;
}
.btn-card:hover { background: var(--grey-1); transform: translateY(-1px); }

/* ─── Navbar ─────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding-inline: 1.25rem;
  transition: background .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.07);
}
.nav-inner {
  max-width: var(--max);
  width: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img { height: 40px; width: auto; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
#lang-toggle {
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: .35rem .75rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.25);
  transition: color .15s, border-color .15s;
}
#lang-toggle:hover { color: var(--white); border-color: var(--white); }

/* ─── Hero ───────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/static/images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: .35;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
  padding-bottom: 4rem;
}
.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
#hero h1 {
  color: var(--white);
  max-width: 14ch;
  margin-bottom: 1.25rem;
}
.hero-sub {
  color: rgba(248,248,248,.7) !important;
  font-size: clamp(1rem, 2.5vw, 1.2rem) !important;
  max-width: 42ch;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ─── Section headers ────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-header p {
  margin-top: .6rem;
  font-size: 1rem;
}

/* ─── Technology ─────────────────────────────────────────────── */
#technology {
  padding-block: var(--section);
  background: var(--grey-5);
}
.tech-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tech-grid { grid-template-columns: repeat(4, 1fr); } }

.tech-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.tech-card:hover { transform: translateY(-4px); }
.tech-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
}
.tech-card h3 { margin-bottom: .6rem; font-size: 1.05rem; }
.tech-card p  { font-size: .9rem; }

/* ─── Section nav ────────────────────────────────────────────── */
#section-nav {
  position: sticky;
  top: 60px;
  z-index: 100;
  background: rgba(248,248,248,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-4);
}
.section-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
}
.section-tab {
  padding: .7rem 1.5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--grey-3);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.section-tab:hover  { color: var(--black); }
.section-tab.active { color: var(--orange); border-bottom-color: var(--orange); }

/* ─── Products ───────────────────────────────────────────────── */
#products {
  padding-block: var(--section);
}
.products-section { margin-bottom: clamp(3rem, 7vw, 5rem); scroll-margin-top: 115px; }
.products-section-header {
  margin-bottom: 2rem;
}
.products-section-header h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.products-section-header p {
  color: var(--grey-3);
  font-size: .95rem;
  margin-top: .3rem;
}

.products-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  background: var(--white);
  border: 1px solid var(--grey-4);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.product-img-wrap {
  background: #fff;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }

.product-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.product-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.badge {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 20px;
}
.badge-running  { background: #fff0e8; color: var(--orange); }
.badge-trail    { background: #e8f4ea; color: var(--green); }
.badge-hiking   { background: #e3f3f3; color: var(--teal); }

.product-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}
.product-desc {
  font-size: .85rem;
  color: var(--grey-3);
  line-height: 1.55;
  flex: 1;
}
.product-icons {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.product-icon {
  width: 22px;
  height: 22px;
  opacity: .65;
}
.product-highlight {
  font-size: .75rem;
  font-weight: 600;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.product-highlight img { width: 14px; height: 14px; opacity: .8; }

.product-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--grey-4);
}

/* ─── CTA band ───────────────────────────────────────────────── */
#cta-band {
  padding-block: var(--section);
  background: var(--black);
  color: var(--white);
  text-align: center;
}
#cta-band h2 { color: var(--white); margin-bottom: 1rem; }
#cta-band p  { color: rgba(248,248,248,.65) !important; margin-bottom: 2rem; max-width: 52ch; margin-inline: auto; }

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--grey-1);
  color: rgba(248,248,248,.55);
  padding-block: 3rem;
  font-size: .85rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
.footer-brand { display: flex; flex-direction: column; gap: .6rem; }
.footer-logo  { height: 40px; width: auto; opacity: .85; align-self: flex-start; }
.footer-links { display: flex; flex-direction: column; gap: .4rem; }
.footer-links a { transition: color .15s; }
.footer-links a:hover { color: var(--white); }
