/* AQUmi — shared design system */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --text: #1d1d1f;
  --text-dark: #f5f5f7;
  --muted: #6e6e73;
  --muted-dark: #86868b;
  --border: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.12);
  --accent: #0091b3;
  --accent-2: #00c2d1;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --card-bg: #ffffff;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0b0c0d;
    --text: var(--text-dark);
    --muted: var(--muted-dark);
    --border: var(--border-dark);
    --nav-bg: rgba(0, 0, 0, 0.6);
    --card-bg: #111214;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 max(1.25rem, env(safe-area-inset-left));
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
}
.nav-links a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 6rem 1.25rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
}
.hero .lede {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 2rem;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- product photography ---------- */
.shot-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}
.shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
}
@media (prefers-color-scheme: dark) {
  .shot { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
}
.shot-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 700px) {
  .shot-row { grid-template-columns: 1fr; }
}
.shot-row .shot { border-radius: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1.5rem;
  border-radius: 980px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { opacity: 0.88; }
.btn-ghost {
  color: var(--accent);
}
.btn-ghost::after { content: "\203A"; margin-left: 0.15rem; }
.btn-ghost:hover { opacity: 0.7; }

/* ---------- sections ---------- */
.section {
  padding: 5rem 1.25rem;
}
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--bg-dark);
  color: #f5f5f7;
}
.section-dark .muted { color: #a1a1a6; }
.container {
  max-width: 1000px;
  margin: 0 auto;
}
.container-narrow {
  max-width: 700px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}
.muted { color: var(--muted); }

/* ---------- product grid / cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.product-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.product-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  margin-bottom: 1.5rem;
  color: #fff;
}
.product-icon svg { width: 28px; height: 28px; }
.product-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.product-card p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.98rem;
}
.card-link {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}
.card-link::after { content: "\203A"; margin-left: 0.2rem; }

/* ---------- feature list (icon rows) ---------- */
.feature {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.feature-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.section-dark .feature-icon { background: rgba(255,255,255,0.08); }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- product page hero ---------- */
.product-hero {
  text-align: center;
  padding: 4.5rem 1.25rem 3rem;
  max-width: 760px;
  margin: 0 auto;
}
.product-hero .badge {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.product-hero .badge svg { width: 36px; height: 36px; }
.product-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.product-hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- spec table ---------- */
table.spec {
  width: 100%;
  border-collapse: collapse;
}
table.spec tr { border-bottom: 1px solid var(--border); }
table.spec tr:last-child { border-bottom: none; }
table.spec th, table.spec td {
  text-align: left;
  padding: 0.9rem 0;
  vertical-align: top;
  font-weight: 400;
}
table.spec th {
  width: 38%;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  padding-right: 1rem;
}
table.spec td { color: var(--muted); }

/* ---------- steps ---------- */
ol.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
ol.steps li {
  counter-increment: step;
  display: flex;
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
ol.steps li:last-child { border-bottom: none; }
ol.steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
ol.steps p { margin: 0; color: var(--muted); padding-top: 0.15rem; }

/* ---------- FAQ ---------- */
details.faq {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--muted);
  transition: transform 0.2s ease;
  font-weight: 300;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- footer ---------- */
footer.site {
  background: var(--bg-dark);
  color: #86868b;
  padding: 3rem 1.25rem 2.5rem;
  font-size: 0.82rem;
}
footer.site .container { text-align: center; }
footer.site a { color: #a1a1a6; text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
footer.site hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 1.5rem 0;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
