/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --blue:        #aed6f0;
  --red:         #d32f21;
  --dark:        #1a1a1a;
  --neon:        #d4fb0d;
  --white:       #ffffff;
  --body-text:   #333333;
  --muted:       #555555;
  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;
  --max-width:   1100px;
  --section-pad: 5rem 1.5rem;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p  { font-size: 1rem; line-height: 1.65; color: var(--muted); }
p + p { margin-top: 1rem; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.eyebrow--neon { color: var(--neon); }

.section-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn--red         { background: var(--red);   color: var(--white); border-color: var(--red); }
.btn--outline-red { background: transparent;  color: var(--red);   border-color: var(--red); }
.btn--neon        { background: var(--neon);  color: var(--dark);  border-color: var(--neon); font-size: 1rem; padding: 0.85rem 2rem; }
.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img { height: 32px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--red); }

.nav__cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
}
.nav__cta:hover { opacity: 0.88; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 95vh;
  display: flex;
  align-items: center;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center 70%;
  background-color: var(--blue);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,26,26,0.3) 0%,
    rgba(26,26,26,0.4) 50%,
    rgba(26,26,26,0.5) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 6rem 1.5rem 4rem;
  margin-left: calc((100vw - var(--max-width)) / 2);
  margin-left: max(1.5rem, calc((100vw - var(--max-width)) / 2));
}

.hero__content .eyebrow { color: var(--blue); }
.hero__headline { color: var(--white); margin-bottom: 1.25rem; }
.hero__sub { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 520px; }

/* ============================================================
   WHAT IS CLOUD9
   ============================================================ */
.what {
  padding: var(--section-pad);
  background: var(--white);
}

.what__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.what__text h2 { margin-bottom: 1.25rem; color: var(--dark); }

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.badge {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  border: 1.5px solid var(--red);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
}

.what__image {
  background: var(--blue);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   PRODUCT + BADGES
   ============================================================ */
.product {
  padding: var(--section-pad);
  background: var(--blue);
  text-align: center;
}

.product h2,
.product .section-label { color: var(--dark); }

.product__sub {
  max-width: 540px;
  margin: 1rem auto 2rem;
  color: rgba(26,26,26,0.7);
}

.product__images {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.product__shot {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 3/2;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 50%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.product__badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.product__badge {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.product__badge-icon { font-size: 2rem; line-height: 1; color: var(--red); }

.product__badge strong {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--dark);
}

.product__badge span { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits {
  padding: var(--section-pad);
  background: var(--white);
}

.benefits h2 { margin-bottom: 3rem; color: var(--dark); }

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.benefit {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1.5px solid rgba(0,0,0,0.07);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.benefit:hover {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(211,47,33,0.08);
}

.benefit__icon { font-size: 2rem; margin-bottom: 0.75rem; line-height: 1; color: var(--red); }
.benefit h3 { color: var(--dark); margin-bottom: 0.5rem; }
.benefit p { font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   FOUNDER STORY
   ============================================================ */
.founder {
  padding: var(--section-pad);
  background: #f8f9fa;
}

.founder__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}

.founder__image {
  background: var(--blue);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-img { width: 100%; height: 100%; object-fit: cover; transform: rotate(1.5deg) scale(1.1); }

.founder__text h2 { color: var(--dark); margin-bottom: 1.5rem; }
.founder__name-sub { color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   PRE-ORDER STRIP
   ============================================================ */
.preorder {
  padding: var(--section-pad);
  background: var(--dark);
  text-align: center;
}

.preorder__headline { color: var(--white); margin-bottom: 1rem; }

.preorder__sub {
  color: var(--blue);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.shopify-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

#product-component-1776901642349 {
  display: flex;
  justify-content: center;
}

.shopify-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 4rem 1.5rem 2rem;
  background: #111111;
  color: rgba(255,255,255,0.7);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer__brand img { margin-bottom: 1rem; }
.footer__brand p { font-size: 0.875rem; line-height: 1.6; }

.footer__links h4,
.footer__social h4,
.footer__email h4 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__links ul li,
.footer__social ul li { margin-bottom: 0.5rem; }

.footer__links a,
.footer__social a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer__links a:hover,
.footer__social a:hover { color: var(--white); }

.footer__email p { font-size: 0.85rem; margin-bottom: 1rem; }

.email-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.email-input {
  flex: 1;
  min-width: 160px;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.email-input::placeholder { color: rgba(255,255,255,0.35); }
.email-input:focus { outline: 2px solid var(--red); border-color: transparent; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin: 0; }
.footer__bottom a { color: rgba(255,255,255,0.5); }
.footer__bottom a:hover { color: var(--white); }

/* ============================================================
   MOBILE — max 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-pad: 3.5rem 1.25rem; }

  .nav__burger { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav__links.is-open { display: flex; }

  .nav__links li { width: 100%; }

  .nav__links a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .nav__cta {
    margin: 0.75rem 1.5rem 1rem;
    border-radius: 6px;
    text-align: center;
    display: block;
    width: calc(100% - 3rem);
  }

  .hero {
    background-size: cover;
    background-position: 72% center;
  }

  .hero__content {
    padding: 5rem 1.25rem 3rem;
    margin-left: 0;
  }

  .what__grid { grid-template-columns: 1fr; gap: 2rem; }
  .what__image { aspect-ratio: 4/3; }

  .product__badges { grid-template-columns: repeat(2, 1fr); }
  .product__images { flex-direction: column; align-items: center; }
  .product__shot { height: 220px; width: 100%; max-width: 320px; }

  .benefits__grid { grid-template-columns: 1fr; gap: 1rem; }

  .founder__grid { grid-template-columns: 1fr; gap: 2rem; }
  .founder__image { aspect-ratio: 4/3; }

  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* Tablet — 769px–1024px */
@media (max-width: 1024px) and (min-width: 769px) {
  .product__badges { grid-template-columns: repeat(2, 1fr); }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
