/* ---------- Base ---------- */

:root {
  /* Typographic scale around 16px (mathematically nice) */
  --fs-xs: 0.875rem;           /* 14px */
  --fs-sm: 1rem;               /* 16px */
  --fs-md: 1.25rem;            /* 20px */
  --fs-lg: 1.563rem;           /* 25px */
  --fs-xl: 1.953rem;           /* 31px */
  --fs-hero: clamp(2.4rem, 4.8vw, 3.4rem); /* ~38–54px */

  --lh-normal: 1.6;
  --lh-tight: 1.3;

  --color-bg: #f7f1e3;
  --color-text-main: #253024;
  --color-text-soft: #6f7565;

  --color-circle-main: rgba(255, 255, 255, 0.82);
  --color-circle-alt1: rgba(230, 255, 51, 0.38);
  --color-circle-alt2: rgba(255, 59, 215, 0.36);
  --color-circle-glow: rgba(255, 255, 255, 0.2);
  --flower-accent: rgba(230, 255, 51, 0.38);
  --flower-accent-glow: rgba(230, 255, 51, 0.28);

  --color-btn-primary: #f6d137;
  --color-btn-primary-text: #263024;
  --color-btn-hover: #e6ff33;
  --color-btn-secondary-bg: #f8e8af;
  --color-btn-secondary-border: #f0cf39;

  --radius-card: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.08);
  --stagger-step: 80ms;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #f7f1e3;
  color: var(--color-text-main);
  position: relative;
}

/* ---------- Circle layer ---------- */

#circle-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background-color: var(--color-circle-main);
  opacity: 0.45;
  transition: opacity 220ms ease-out, transform 220ms ease-out, background-color 220ms ease-out;
}

.circle:hover {
  transform: scale(1.2);
  background-color: var(--hover-color);
  box-shadow: 0 0 18px rgba(86, 191, 255, 0.5), 0 0 36px rgba(255, 59, 215, 0.35);
}

.circle[data-tone="lime"] {
  background-color: var(--color-circle-alt1);
}

.circle[data-tone="pink"] {
  background-color: var(--color-circle-alt2);
}

.circle.pop-in {
  animation: circle-pop 320ms ease-out forwards;
}

@keyframes circle-pop {
  0% { transform: scale(0.7); opacity: 0.2; }
  60% { transform: scale(1.12); opacity: 0.9; }
  100% { transform: scale(1); opacity: 0.8; }
}

/* ---------- Layout ---------- */

.page {
  position: relative;
  z-index: 2;
}

.top-bar {
  position: relative;
  z-index: 2;
  padding: 96px 18px 0;
}

.top-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.brand-text {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  transform: translateY(4px);
  animation: fadeInUp 1100ms ease-out forwards;
  animation-delay: 80ms;
  margin-left: -4px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 110px 24px 72px;
}

.hero-layout {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  column-gap: 28px;
  align-items: flex-start;
}

/* Blurred background under text */
.glass-card {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 24px 22px 28px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
}

.hero-left {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Staggered entrance: logo/title/buttons first, then paragraphs */
.brand-text {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeInUp 1100ms cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
  animation-delay: 0ms;
}

h1 {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  margin: 4px 0 22px;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeInUp 1000ms ease-out forwards;
  animation-delay: 120ms;
}

.cta-column {
  margin: 20px 0 36px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeInUp 1000ms ease-out forwards;
  animation-delay: 200ms;
}

.hero-left p {
  opacity: 0;
  transform: translateY(6px);
  animation: fadeInUp 1300ms ease-out forwards;
}

.hero-left p:nth-of-type(1) { animation-delay: 620ms; }
.hero-left p:nth-of-type(2) { animation-delay: 1040ms; }
.hero-left p:nth-of-type(3) { animation-delay: 1340ms; }
.hero-left p:nth-of-type(4) { animation-delay: 1600ms; }
.hero-left p:nth-of-type(5) { animation-delay: 1820ms; }
.hero-left p:nth-of-type(6) { animation-delay: 2000ms; }
.hero-left p:nth-of-type(7) { animation-delay: 2160ms; }
.hero-left p:nth-of-type(8) { animation-delay: 2300ms; }
.hero-left p:nth-of-type(9) { animation-delay: 2420ms; }
.hero-left p:nth-of-type(10) { animation-delay: 2540ms; }
.hero-left p:nth-of-type(11) { animation-delay: 2660ms; }
.hero-left p:nth-of-type(12) { animation-delay: 2780ms; }

@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(10px); }
  30%  { opacity: 0.55; transform: translateY(5px); }
  50%  { opacity: 0.7;  transform: translateY(3px); }
  65%  { opacity: 0.6;  transform: translateY(2px); }
  80%  { opacity: 0.9;  transform: translateY(1px); }
  100% { opacity: 1;   transform: translateY(0); }
}

@keyframes flowerGrow {
  from {
    opacity: 0;
    transform: translateX(1px) scale(0.6);
  }
  to {
    opacity: 1;
    transform: translateX(1px) scale(1);
  }
}

@keyframes lineReveal {
  from {
    opacity: 0;
    height: 0;
  }
  to {
    opacity: 1;
    height: 100%;
  }
}

h1 {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  margin: 4px 0 22px;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeInUp 1000ms cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
  animation-delay: 120ms;
}

.lead {
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  margin-bottom: 16px;
}

p {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  margin: 6px 0 8px;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeInUp 1300ms cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

.hero-left p:nth-of-type(1) { animation-delay: 620ms; }
.hero-left p:nth-of-type(2) { animation-delay: 940ms; }
.hero-left p:nth-of-type(3) { animation-delay: 1180ms; }
.hero-left p:nth-of-type(4) { animation-delay: 1400ms; }
.hero-left p:nth-of-type(5) { animation-delay: 1580ms; }
.hero-left p:nth-of-type(6) { animation-delay: 1740ms; }
.hero-left p:nth-of-type(7) { animation-delay: 1880ms; }
.hero-left p:nth-of-type(8) { animation-delay: 2000ms; }
.hero-left p:nth-of-type(9) { animation-delay: 2100ms; }
.hero-left p:nth-of-type(10) { animation-delay: 2200ms; }
.hero-left p:nth-of-type(11) { animation-delay: 2300ms; }
.hero-left p:nth-of-type(12) { animation-delay: 2400ms; }

.benefits {
  padding-left: 22px;
  margin: 8px 0 16px;
}

.pilot {
  margin-top: 6px;
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
}

.small {
  font-size: var(--fs-md);
  color: var(--color-text-main);
}

.hero-right {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

/* Flower & side line */

.flower-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  position: sticky;
  top: 160px;
  left: 19px;
  z-index: 4;
}

.flower-icon {
  display: block;
  margin: 0 auto 10px;
  width: 157px;
  height: 157px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(1px) scale(0.6);
  filter: drop-shadow(0 0 18px var(--flower-accent-glow));
  transition: filter 420ms ease, transform 320ms ease;
}
.flower-icon.grow-start {
  animation: flowerGrow 620ms cubic-bezier(0.18, 0.86, 0.32, 1) forwards;
  visibility: visible;
}
.flower-icon:hover {
  transform: translateX(1px) scale(1.02);
  filter: drop-shadow(0 0 24px var(--flower-accent-glow));
}

.flower-line {
  display: block;
}

.flower-line-global {
  position: absolute;
  display: block;
  width: 2px;
  border-left: 2px dashed rgba(0, 0, 0, 0.72);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  height: 0;
  transform-origin: bottom;
  transition: height 900ms ease-in-out, opacity 600ms ease;
}

.line-sink {
  position: absolute;
  border: 2px dashed rgba(0, 0, 0, 0.72);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
}

.flower-line-branch {
  display: none;
  height: 2px;
  border-top: 2px dashed rgba(0, 0, 0, 0.28);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translateY(-1px);
}

.line-joint {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  z-index: 1;
  transform: translate(-50%, -50%);
}

.path-seg {
  position: fixed;
  border: 1px dashed #2c3a1f;
  pointer-events: none;
  z-index: 2;
  transition: width 600ms ease-out, height 600ms ease-out;
}

.path-seg.vertical {
  width: 2px;
  height: 0;
}

.path-seg.horizontal {
  height: 2px;
  width: 0;
}

.path-joint-bg {
  position: fixed;
  border-radius: 50%;
  background: #fff;
  z-index: 1;
  opacity: 0.8;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transform: translate(-50%, -50%);
}

/* CTA column */

.cta-column {
  margin: 20px 0 36px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInUp 1000ms cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
  animation-delay: 220ms;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 26px;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--color-text-main);
  cursor: pointer;
  color: var(--color-text-main);
  background: transparent;
  box-shadow: none;
  gap: 0;
  transition: transform 140ms ease-out, box-shadow 140ms ease-out,
    background-color 140ms ease-out, color 140ms ease-out,
    border-color 140ms ease-out;
}

.btn:hover,
.btn:focus-visible,
.btn:active {
  background: var(--color-btn-hover);
  border-color: var(--color-text-main);
  color: var(--color-text-main);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(38, 48, 36, 0.08);
}

.btn-primary {
  background: transparent;
}

.btn-secondary {
  background: transparent;
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-secondary:active {
  background: #ff3bd7;
  border-color: var(--color-text-main);
  color: var(--color-text-main);
}

.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-overlay[hidden] {
  display: none !important;
}

.video-frame {
  position: relative;
  width: min(90vw, 1080px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.video-strip {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 0;
}

.video-tile {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.video-tile iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed {
  width: 100%;
  height: 100%;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* Small icons inside buttons – built with pure CSS */

.btn-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 50%;
  border: 1px solid rgba(38, 48, 36, 0.8);
  position: relative;
}

/* Play triangle */
.btn-icon-play::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid rgba(38, 48, 36, 0.9);
}

/* Key-ish icon */
.btn-icon-key::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 2px solid rgba(38, 48, 36, 0.9);
}
.btn-icon-key::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 5px;
  width: 5px;
  height: 1px;
  background: rgba(38, 48, 36, 0.9);
}

/* Placeholder sections */

.placeholder-section {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 18px;
}

.placeholder-section h2 {
  font-size: var(--fs-lg);
  margin-top: 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 799px) {
  html,
  body {
    height: auto;
  }

  .top-bar {
    padding: 22px 16px 0;
  }

  .brand-text {
    margin-left: 20px;
  }

  .hero {
    padding: 160px 16px 64px;
    position: relative;
  }

  h1 {
    font-size: clamp(2.2rem, 9vw, 2.8rem);
    margin: 18px 0 22px;
    line-height: 1.18;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
    position: relative;
  }

  .cta-column {
    margin: 16px 0 32px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .btn {
    width: 100%;
    max-width: 340px;
    padding: 12px 14px;
    font-size: 0.92rem;
  }

  .hero-left p {
    animation-delay: 0ms !important;
    animation-duration: 380ms;
    font-size: 1rem;
  }

  .flower-stack {
    position: absolute;
    top: -120px;
    right: 6px;
    max-width: 180px;
    align-items: flex-end;
    left: auto;
  }

  .flower-icon {
    width: 120px;
    height: 120px;
    animation-delay: 1200ms;
  }

  .flower-line-global,
  .line-sink,
  .flower-line,
  .path-seg,
  .path-joint-bg {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
  }

  .video-strip {
    margin-bottom: 0;
    padding-bottom: 0;
    overflow: hidden;
  }

  .video-tile {
    padding-bottom: 56.25%;
    margin: 0;
  }
}
