/* ── Custom Properties ── */
:root {
  /* Brand accent colors */
  --blue: #42b1ff;
  --orange: #FF8B58;
  --green: #44b574;
  --purple: #c985e5;

  /* Neutrals */
  --bg: #050505;
  --bg-section: #111;
  --bg-card: #161616;
  --text-primary: #ffffff;
  --text-body: #f5f0e8;
  --text-secondary: #888888;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --content-max: 1280px;

  /* Flywheel segment colors */
  --seg-checkout: #8AC8AE;
  --seg-payments: #82CC9A;
  --seg-fairshare: #F2D270;
  --seg-connect: #F0B088;
  --seg-app: #E09098;
  --seg-builder: #C4A8D4;
  --seg-droplets: #96C4EC;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'NeueHaasDisplay', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── Grain/Noise Overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Layout ── */
.section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
}

/* ── Typography ── */
.label {
  font-family: 'NeueHaasDisplay', sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
}

.headline {
  font-family: 'NeueHaasDisplay', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text-primary);
  text-transform: uppercase;
}

.headline-lg {
  font-family: 'NeueHaasDisplay', sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-primary);
  text-transform: uppercase;
}

/* ── Hand-drawn Emphasis — Circle ── */
.circled-wrapper {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.circled-text {
  position: relative;
  z-index: 1;
}
.circled-decoration {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: -25%;
  top: -35%;
  width: 150%;
  height: 170%;
}
.circled-decoration-inner {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* ── Hand-drawn Emphasis — Underline ── */
.underlined-wrapper {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.underlined-text {
  position: relative;
  z-index: 1;
}
.underlined-decoration {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 0;
  right: 0;
  bottom: -0.3em;
  height: 0.55em;
}
.underlined-decoration-inner {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.tagline {
  font-family: 'FLFont', sans-serif;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.3;
  color: var(--blue);
  text-wrap: balance;
}

.body-text {
  font-family: 'NeueHaasDisplay', sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 1.25vw, 20px);
  color: var(--text-body);
  line-height: 1.65;
}

.body-text-sm {
  font-family: 'NeueHaasDisplay', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--blue);
  color: #050505;
  font-family: 'NeueHaasDisplay', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: 100px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(66, 177, 255, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  font-family: 'NeueHaasDisplay', sans-serif;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.4);
}

.btn-text {
  font-family: 'NeueHaasDisplay', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--text-primary);
  transition: opacity 0.2s ease;
}
.btn-text:hover { opacity: 0.7; }

/* ── Decorative ── */
.brushstroke {
  position: absolute;
  mix-blend-mode: screen;
  filter: invert(1);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

/* ── Browser Chrome Frame ── */
.browser-chrome {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.browser-chrome__bar {
  background: #1a1a1a;
  display: flex;
  align-items: flex-end;
  padding: 8px 12px 0;
  gap: 10px;
  flex-shrink: 0;
}
.browser-chrome__dots {
  display: flex;
  gap: 5px;
  padding-bottom: 8px;
}
.browser-chrome__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.browser-chrome__dots span:nth-child(1) { background: #ff5f57; }
.browser-chrome__dots span:nth-child(2) { background: #febc2e; }
.browser-chrome__dots span:nth-child(3) { background: #28c840; }
.browser-chrome__tab {
  background: #2a2a2a;
  border-radius: 6px 6px 0 0;
  padding: 6px 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.browser-chrome__addr {
  background: #2a2a2a;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.browser-chrome__addr span {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}
.browser-chrome__body {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
}
.browser-chrome__body img,
.browser-chrome__body video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}


/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero ── */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 clamp(24px, 4vw, 64px);
}
.hero__eyebrow {
  font-family: 'NeueHaasDisplay', sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 24px;
}
.hero__headline {
  font-family: 'NeueHaasDisplay', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 68px);
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.hero__subtext {
  font-family: 'NeueHaasDisplay', sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--text-body);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Floating data cards */
.hero__data-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.data-card {
  position: absolute;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.08);
  white-space: nowrap;
  animation: drift var(--drift-duration, 8s) ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(var(--drift-x, 12px), var(--drift-y, -18px)); }
}

/* ── Trust Strip ── */
.trust-strip {
  padding: 44px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}
.trust-strip__eyebrow {
  text-align: center;
  font-family: 'NeueHaasDisplay', sans-serif;
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.trust-strip__track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.trust-strip__set {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 80px);
  padding-right: clamp(48px, 6vw, 80px);
}
.trust-strip__logo {
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.35;
  flex-shrink: 0;
}
/* Normalize visual weight per logo */
.trust-strip__logo[data-logo="thermomix"] { height: 26px; }
.trust-strip__logo[data-logo="asea"] { height: 22px; }
.trust-strip__logo[data-logo="yoli"] { height: 30px; }
.trust-strip__logo[data-logo="rain"] { height: 24px; }
.trust-strip__logo[data-logo="newulife"] { height: 28px; }
.trust-strip__logo[data-logo="make"] { height: 26px; }
.trust-strip__logo[data-logo="teqnavi"] { height: 24px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* ── Responsive ── */
@media (max-width: 768px) {
  .problem__grid,
  .feature-highlight__grid,
  .ai-section__grid,
  .blitz__grid {
    grid-template-columns: 1fr;
  }
  .feature-highlight__grid.reversed .feature-highlight__text { order: 1; }
  .feature-highlight__grid.reversed .feature-highlight__visual { order: 2; }
}
