/* ==========================================================================
   HiJavis store — design system
   ========================================================================== */

:root {
  --blue:        #0a72c8;
  --blue-deep:   #075a9e;
  --blue-tint:   #eaf3fb;
  --amber:       #f5871f;

  --ink:         #101418;
  --ink-2:       #3c454e;
  --ink-3:       #6b7681;
  --line:        #e3e7ec;
  --line-soft:   #eef1f5;
  --paper:       #ffffff;
  --paper-2:     #f7f9fb;
  --night:       #0b1016;
  --night-2:     #131b24;

  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 1px 2px rgba(16,20,24,.05), 0 8px 24px rgba(16,20,24,.06);
  --shadow-lg:   0 2px 6px rgba(16,20,24,.06), 0 24px 60px rgba(16,20,24,.12);

  --wrap:        1180px;
  --header-h:    64px;

  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.022em; margin: 0 0 .5em; font-weight: 660; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-dark { background: var(--night); color: #fff; }
.section-tint { background: var(--paper-2); }

.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 14px;
}
.section-dark .eyebrow, .hero .eyebrow { color: #6fb6ee; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.section-dark .lede { color: #a9b6c3; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.section-dark .btn-ghost, .hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.section-dark .btn-ghost:hover, .hero .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font-size: .88rem; }
.btn-link:hover { text-decoration: underline; }

/* -------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h); padding: 0 24px;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 26px; height: auto; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.05; }
.brand-name em { display: block; font-style: normal; font-size: .62rem; font-weight: 500;
  letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: .92rem; color: var(--ink-2); }
.nav a:hover, .nav a.is-current { color: var(--ink); }
.nav a.is-current { font-weight: 600; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle span + span { margin-top: 4px; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 78% 12%, #1b2b3d 0%, var(--night) 58%);
  color: #fff;
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center;
  padding: 96px 0 104px;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
.hero h1 em { font-style: normal; color: #6fb6ee; }
.hero-sub { font-size: 1.14rem; color: #b3c1cf; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; font-size: .84rem; color: #8ea0b1; }
.hero-meta span { display: flex; align-items: center; gap: 7px; }
.hero-meta svg { flex: none; color: #6fb6ee; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4/3.2; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
}
.hero-price {
  position: absolute; left: -18px; bottom: 26px;
  background: #fff; color: var(--ink); border-radius: 14px;
  padding: 12px 18px; box-shadow: var(--shadow-lg);
}
.hero-price b { display: block; font-size: 1.3rem; letter-spacing: -.02em; }
.hero-price span { font-size: .76rem; color: var(--ink-3); }

/* --------------------------------------------------------------- stats */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
.stat b { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: .92rem; color: var(--ink-3); max-width: 26ch; }
.section-dark .stat span { color: #90a0b0; }

/* --------------------------------------------------------------- cards */

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-media { position: relative; display: block; background: var(--paper-2); aspect-ratio: 4/3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 4px 11px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.card-body h3 { margin-bottom: 4px; }
.card-tagline { font-size: .82rem; color: var(--blue); font-weight: 600; margin-bottom: 10px; }
.card-short { font-size: .92rem; color: var(--ink-2); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.price { font-size: 1.16rem; font-weight: 700; letter-spacing: -.02em; }
.price s { font-weight: 500; font-size: .88rem; color: var(--ink-3); margin-left: 5px; }

/* feature tiles */
.tile { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.section-dark .tile { border-color: rgba(255,255,255,.12); background: var(--night-2); }
.tile-icon {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 11px; background: var(--blue-tint); color: var(--blue);
}
.section-dark .tile-icon { background: rgba(111,182,238,.14); color: #6fb6ee; }
.tile h3 { font-size: 1.03rem; margin-bottom: 6px; }
.tile p { font-size: .92rem; color: var(--ink-2); margin: 0; }
.section-dark .tile p { color: #9dabb9; }

/* -------------------------------------------------------- split blocks */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media img, .split-media video {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.split.reverse .split-media { order: 2; }

.steps { counter-reset: step; display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding-left: 52px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 999px; background: var(--blue); color: #fff;
  font-size: .88rem; font-weight: 700;
}
.steps h3 { font-size: 1.03rem; margin-bottom: 4px; }
.steps p { font-size: .94rem; color: var(--ink-2); margin: 0; }
.section-dark .steps p { color: #9dabb9; }

/* ------------------------------------------------------------- gallery */

.pdp { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: start; padding: 48px 0 72px; }
.gallery-main {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs button {
  width: 74px; height: 74px; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); border-radius: 11px; background: var(--paper-2);
}
.gallery-thumbs button.is-active { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-tint); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-title { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 6px; }
.pdp-tagline { color: var(--blue); font-weight: 600; margin-bottom: 18px; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.pdp-price .price { font-size: 1.9rem; }

.buy-row { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.buy-row .btn { flex: 1; }
.buy-note { font-size: .84rem; color: var(--ink-3); margin: 0 0 4px; }

/* Every purchase happens on Amazon, so the buy button always leaves the site. */
.btn-amazon { gap: 9px; }
.btn-amazon svg { opacity: .8; }

/* A product with no listing yet: same footprint, visibly not clickable. */
.btn.is-soon {
  background: var(--paper-2); color: var(--ink-3);
  border-color: var(--line); cursor: default; pointer-events: none;
}
.badge-soon { background: var(--ink-3); }
.card.is-unavailable .card-media img { filter: saturate(.45); opacity: .82; }

.header-buy { margin-left: auto; }
.header-buy .btn { padding: 9px 16px; font-size: .88rem; }

.trust { display: grid; gap: 10px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.trust li { display: flex; gap: 10px; font-size: .9rem; color: var(--ink-2); list-style: none; }
.trust svg { flex: none; color: var(--blue); margin-top: 3px; }
.trust ul { margin: 0; padding: 0; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec-table th { width: 210px; font-weight: 600; color: var(--ink-3); }

/* --------------------------------------------------------------- plans */

.plan {
  display: flex; flex-direction: column;
  padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper);
}
.plan.is-featured { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.plan-price { font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; margin: 10px 0 2px; }
.plan-price small { font-size: .86rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan-blurb { font-size: .92rem; color: var(--ink-2); min-height: 3em; }
.plan ul { flex: 1; margin: 18px 0 24px; padding: 0; list-style: none; }
.plan li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: .92rem; color: var(--ink-2); }
.plan li::before {
  content: ''; position: absolute; left: 3px; top: .5em; width: 10px; height: 5px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}

/* ----------------------------------------------------------- logos/faq */

.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.logo-row img { max-width: 120px; max-height: 46px; width: auto; opacity: .55; filter: grayscale(1); transition: opacity .2s; }
.logo-row img:hover { opacity: .9; }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { margin: 0 0 20px; color: var(--ink-2); font-size: .95rem; max-width: 68ch; }

/* --------------------------------------------------------------- video */

.video-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.video-frame video { width: 100%; display: block; }
.video-frame.is-phone { max-width: 300px; margin: 0 auto; border-radius: 28px; border: 8px solid #1a1f26; }

/* ------------------------------------------------------------- footer */

.site-footer { background: var(--night); color: #9dabb9; padding: 62px 24px 30px; font-size: .9rem; }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px;
  max-width: var(--wrap); margin: 0 auto;
}
.footer-brand p { max-width: 34ch; margin-top: 14px; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; margin-bottom: 9px; color: #9dabb9; }
.footer-col a:hover { color: #fff; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  max-width: var(--wrap); margin: 46px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: #6b7a89;
}
.footer-legal p { margin: 0; }

/* -------------------------------------------------------------- reveal */

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .hero-grid, .split, .pdp { grid-template-columns: 1fr; }
  .hero-grid { padding: 62px 0 72px; gap: 34px; }
  .split { gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section { padding: 62px 0; }
  .pdp { padding-top: 28px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; order: 3; }
  .header-buy { order: 2; margin-left: 0; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 18px;
    background: #fff; border-bottom: 1px solid var(--line);
  }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .hero-price { left: 12px; bottom: 12px; }
  .spec-table th { width: 44%; }
  .header-buy .btn { padding: 8px 12px; font-size: .82rem; }
}

@media (max-width: 430px) {
  .site-header { padding: 0 14px; }
  .brand-name em { display: none; }
  .header-buy .btn { padding: 8px 11px; gap: 6px; }
  .header-buy .btn svg { display: none; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .buy-row { flex-wrap: wrap; }
  .buy-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
