/* ============================================================
   creativehub.io — Website Redesign
   Typography: Crimson Text / DM Sans / Roboto Mono
   Colors: creativehub blue palette
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand colors */
  --accent-1: #3B82F6;          /* Primary blue — CTAs, links */
  --accent-1-hover: #2563EB;    /* Darker blue — hover states */
  --accent-2: #DBEAFE;          /* Light blue — tinted backgrounds */
  --accent-3: #6B9FED;          /* Muted blue */
  --accent-4: #000000;          /* Black */
  --accent-5: #525252;          /* Medium gray — body text */
  --accent-6: #929292;          /* Light gray */
  --bg: #FFFFFF;                /* Background */
  --headline: #1E293B;          /* Dark navy — headings */
  --paragraph: #525252;         /* Body text */
  --caption-color: #3B82F6;     /* Captions */
  --on-accent: #FFFFFF;         /* Text on blue backgrounds */
  --divider: #E9E9E9;          /* Divider lines */

  /* Typography */
  --font-display: 'Crimson Text', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'Roboto Mono', monospace;

  /* Spacing */
  --section-pad: 120px;
  --container-max: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--paragraph);
  background: var(--bg);
  letter-spacing: -0.005em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- CONTAINER ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2 {
  font-family: var(--font-display);
  color: var(--headline);
  font-weight: 400;
}

h3 {
  font-family: var(--font-display);
  color: var(--headline);
  font-weight: 700;
}

/* Display — 160px desktop */
h1 {
  font-size: clamp(76px, 10vw, 160px);
  line-height: 0.85;
  letter-spacing: -0.05em;
}

/* Heading 2 — 64px desktop */
h2 {
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Heading 3 — 22px */
h3 {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.caption {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--caption-color);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ---------- SECTION HEADER ---------- */
.section-header {
  max-width: 800px;
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header__sub {
  color: var(--paragraph);
  max-width: 480px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.025em;
  padding: 12px 28px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn--primary {
  background: var(--accent-1);
  color: var(--on-accent);
  border-color: var(--accent-1);
}

.btn--primary:hover {
  background: var(--accent-1-hover);
  border-color: var(--accent-1-hover);
}

.btn--outline {
  background: transparent;
  color: var(--headline);
  border-color: #ccc;
}

.btn--outline:hover {
  border-color: var(--headline);
}

.btn--white {
  background: var(--on-accent);
  color: var(--accent-1);
  border-color: var(--on-accent);
}

.btn--white:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 15px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #ccc;
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 40px;
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 48px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--accent-5);
  letter-spacing: -0.025em;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--headline);
}

.nav__cta {
  margin-left: 16px;
  flex-shrink: 0;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--headline);
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* ============================================================
   HERO — Bold stacked layout
   ============================================================ */
.hero {
  padding-top: calc(64px + 64px);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 20%, rgba(199, 225, 255, 0.35) 0%, transparent 65%),
    radial-gradient(ellipse 45% 45% at 80% 8%, rgba(255, 230, 100, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 65% 60% at 88% 55%, rgba(255, 180, 200, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 35% 30% at 25% 70%, rgba(220, 210, 255, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 30% 30% at 60% 20%, rgba(199, 225, 255, 0.2) 0%, transparent 45%),
    radial-gradient(ellipse 50% 55% at 18% 45%, rgba(255, 210, 225, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 30% 30% at 45% 35%, rgba(255, 235, 140, 0.3) 0%, transparent 45%),
    radial-gradient(ellipse 35% 30% at 70% 40%, rgba(255, 190, 210, 0.4) 0%, transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 60%, #fffcfd 100%);
  background-size: 200% 200%;
  opacity: 0.6;
  animation: meshMove 60s ease-in-out infinite alternate;
}

.hero > * {
  position: relative;
  z-index: 1;
}

@keyframes meshMove {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 60% 40%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 40% 60%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.hero__top {
  padding-bottom: 64px;
}

.hero__display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 140px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: var(--headline);
  margin-bottom: 48px;
}

.hero__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.hero__subtitle {
  font-size: 19px;
  color: var(--paragraph);
  max-width: 520px;
  margin: 0;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.hero__image {
  width: 100%;
  padding-bottom: var(--section-pad);
}

.hero__image img {
  width: 100%;
  border-radius: 20px;
}

.hero__img-mobile {
  display: none;
}

/* ============================================================
   SOCIAL PROOF — Scrolling carousel
   ============================================================ */
.proof {
  padding: 48px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  overflow: hidden;
}

.proof__text {
  text-align: center;
  font-size: 17px;
  color: var(--accent-6);
  margin-bottom: 24px;
}

.proof__track {
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.proof__scroll {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: scroll-logos 30s linear infinite;
}

.proof__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.3s;
}

.proof__logo:hover {
  opacity: 0.7;
}

.proof__logo img {
  width: auto;
  object-fit: contain;
}

/* Optical balancing — each logo sized to feel equal visual weight */
.proof__logo img[alt="Instagram"]    { height: 42px; }
.proof__logo img[alt="TikTok"]       { height: 96px; }
.proof__logo img[alt="Shopify"]      { height: 54px; }
.proof__logo img[alt="Facebook"]     { height: 33px; }
.proof__logo img[alt="Wix"]          { height: 48px; }
.proof__logo img[alt="WooCommerce"]  { height: 96px; }
.proof__logo img[alt="Squarespace"]  { height: 48px; }
.proof__logo img[alt="Etsy"]         { height: 54px; }
.proof__logo img[alt="Big Cartel"]   { height: 54px; }
.proof__logo img[alt="CreateDrops"]  { height: 52px; }

.proof__logo--text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--headline);
}


@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: var(--section-pad) 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--accent-2);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.feature-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card__body {
  padding: 24px;
}

.feature-card__body h3 {
  color: var(--headline);
}

.feature-card__body p {
  color: var(--accent-5);
  font-size: 16px;
  line-height: 1.5;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
  padding: var(--section-pad) 0;
  background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step {
  position: relative;
}

.step__number {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-1);
  display: block;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.step p {
  color: var(--accent-5);
}

/* ============================================================
   FULFILLMENT
   ============================================================ */
.fulfillment {
  padding: var(--section-pad) 0;
}

.fulfillment .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.fulfillment__content h2 {
  margin-bottom: 24px;
}

.fulfillment__content > p {
  margin-bottom: 32px;
}

.fulfillment__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fulfillment__list li {
  font-size: 15px;
  color: var(--headline);
  padding-left: 24px;
  position: relative;
}

.fulfillment__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-1);
}

.fulfillment__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fulfillment__gallery img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--divider);
}

.testimonial__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.testimonial__quote p {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.2;
  color: var(--headline);
  letter-spacing: -0.02em;
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.testimonial__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  overflow: hidden;
}

.testimonial__avatar--placeholder svg {
  width: 100%;
  height: 100%;
}

.testimonial__author strong {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--headline);
}

.testimonial__author span {
  font-size: 13px;
  color: var(--accent-5);
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: var(--section-pad) 0;
}

.cta__inner {
  background: var(--accent-1);
  border-radius: 24px;
  padding: 80px 48px;
  text-align: center;
}

.cta__inner h2 {
  color: var(--on-accent);
  margin-bottom: 16px;
}

.cta__inner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  max-width: 420px;
  margin: 0 auto 40px;
}

.cta__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ---------- WAITLIST FORM ---------- */
.waitlist-form {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.waitlist-form__field label {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
}

.waitlist-form__field .required {
  color: rgba(255, 255, 255, 0.5);
}

.waitlist-form__field .optional {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.waitlist-form__field input,
.waitlist-form__field select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form__field input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.waitlist-form__field input:focus,
.waitlist-form__field select:focus {
  border-color: rgba(255, 255, 255, 0.7);
}

.waitlist-form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='rgba(255,255,255,0.6)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.waitlist-form__field select option {
  color: var(--headline);
  background: #fff;
}

.waitlist-form__submit {
  width: 100%;
  margin-top: 8px;
}

.waitlist-form__success {
  max-width: 440px;
  margin: 0 auto;
}

.waitlist-form__success h3 {
  color: var(--on-accent);
  font-size: 28px;
  margin-bottom: 12px;
}

.waitlist-form__success p {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--divider);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__brand p {
  font-size: 13px;
  color: var(--accent-6);
  margin-top: 4px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 13px;
  color: var(--accent-5);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--headline);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* No-JS fallback: show content immediately if JavaScript is disabled */
.no-js .fade-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE — TABLET (< 900px)
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --section-pad: 80px;
  }

  .hero__display {
    font-size: clamp(54px, 9vw, 100px);
  }

  .hero__row {
    flex-direction: column;
    gap: 24px;
  }

  .steps__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .fulfillment .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Caption tablet */
  .caption {
    font-size: 11px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (< 640px)
   ============================================================ */
@media (max-width: 640px) {
  :root {
    --section-pad: 64px;
  }

  /* Mobile nav */
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 24px;
    border-bottom: 1px solid var(--divider);
    gap: 20px;
  }

  .nav.open .nav__cta {
    display: inline-flex;
    position: absolute;
    top: calc(64px + 160px);
    left: 24px;
    right: 24px;
    justify-content: center;
  }

  /* Mobile hamburger animation */
  .nav.open .nav__toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav.open .nav__toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.open .nav__toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__display {
    font-size: 52px;
    margin-bottom: 32px;
  }

  .hero__row {
    flex-direction: column;
    gap: 24px;
  }

  .hero__img-desktop {
    display: none;
  }

  .hero__img-mobile {
    display: block;
    border-radius: 12px;
  }

  h2 {
    font-size: 32px;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .fulfillment__gallery {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cta__inner {
    padding: 56px 24px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  /* Caption mobile */
  .caption {
    font-size: 10.5px;
  }

  .proof__logos {
    gap: 24px;
  }
}
