/* ========================================
   PIK_AI — Layout & Grid
   v3.0 — Light Theme Redesign
   ======================================== */

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--narrow {
  max-width: var(--content-measure);
}

.container--wide {
  max-width: var(--container-wide);
}

/* --- Sections --- */
.section {
  position: relative;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  overflow: hidden;
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }
}

/* Section color modes — all light now */
.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

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

/* Mesh gradient variants */
.section--mesh-hero::before    { background: var(--mesh-hero); }
.section--mesh-training::before { background: var(--mesh-training); }
.section--mesh-funding::before  { background: var(--mesh-funding); }
.section--mesh-cta::before      { background: var(--mesh-cta); }
.section--mesh-about::before    { background: var(--mesh-about); }

/* Light sections */
.section--light {
  background-color: var(--bg-light);
  color: var(--text-on-light);
}

.section--light-alt {
  background-color: var(--bg-light-alt);
  color: var(--text-on-light);
}

.section--white {
  background-color: var(--bg-white);
  color: var(--text-on-light);
}

/* --- Section Header --- */
.section__header {
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .section__header {
    margin-bottom: var(--space-12);
  }
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Overline label above title */
.section__overline {
  display: block;
  font-size: var(--text-overline);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

/* Overline colors — dark text + accent left border for differentiation */
.section__overline--lime   { color: var(--text-on-dark); border-left: 3px solid var(--accent-lime); padding-left: var(--space-2); }
.section__overline--purple { color: var(--text-on-dark); border-left: 3px solid var(--accent-purple); padding-left: var(--space-2); }
.section__overline--orange { color: var(--text-on-dark); border-left: 3px solid var(--accent-orange); padding-left: var(--space-2); }
.section__overline--pink   { color: var(--text-on-dark); border-left: 3px solid var(--accent-pink); padding-left: var(--space-2); }

.section__title {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
  color: var(--text-on-light);
}

/* Accent word inside title — dark text + accent underline decoration */
.section__title .accent-lime   { color: var(--text-on-light); text-decoration: underline; text-decoration-color: var(--accent-lime); text-underline-offset: 4px; text-decoration-thickness: 3px; }
.section__title .accent-purple { color: var(--text-on-light); text-decoration: underline; text-decoration-color: var(--accent-purple); text-underline-offset: 4px; text-decoration-thickness: 3px; }
.section__title .accent-orange { color: var(--text-on-light); text-decoration: underline; text-decoration-color: var(--accent-orange); text-underline-offset: 4px; text-decoration-thickness: 3px; }
.section__title .accent-pink   { color: var(--text-on-light); text-decoration: underline; text-decoration-color: var(--accent-pink); text-underline-offset: 4px; text-decoration-thickness: 3px; }

.section__subtitle {
  font-size: var(--text-body);
  line-height: 1.6;
  max-width: var(--content-measure);
  color: var(--text-on-light-muted);
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--space-4);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid { gap: var(--space-5); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Bento Grid --- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(160px, auto);
  }
  .bento--span-2 { grid-column: span 2; }
  .bento--tall { grid-row: span 2; }
}

/* --- Two column split --- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  .split--55-45 {
    grid-template-columns: 55fr 45fr;
  }
  .split--60-40 {
    grid-template-columns: 3fr 2fr;
  }
  .split--40-60 {
    grid-template-columns: 2fr 3fr;
  }
}

/* --- Asymmetric testimonials layout --- */
.testimonials-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .testimonials-layout {
    grid-template-columns: 1.5fr 1fr;
  }
}

.testimonials-layout__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* --- Vertical Timeline --- */
.timeline {
  position: relative;
  padding-left: 44px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent-purple),
    var(--accent-lime) 40%,
    var(--accent-orange) 70%,
    var(--accent-pink)
  );
  opacity: 0.4;
  border-radius: 1px;
}

.timeline__step {
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline__step:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -44px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--bg-light);
  z-index: 1;
}

.timeline__dot--purple { background: var(--accent-purple); }
.timeline__dot--lime   { background: var(--accent-lime); }
.timeline__dot--orange { background: var(--accent-orange); }
.timeline__dot--pink   { background: var(--accent-pink); }

.timeline__overline {
  font-size: var(--text-overline);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-1);
}

.timeline__title {
  font-size: var(--text-body);
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--text-on-light);
}

.timeline__desc {
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
  line-height: 1.5;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  overflow: hidden;
  padding-top: calc(var(--navbar-height) + var(--space-10));
  padding-bottom: var(--space-10);
}

/* Hero mesh background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--mesh-hero);
  pointer-events: none;
  z-index: 0;
}

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

@media (min-width: 768px) {
  .hero { min-height: 90vh; }
}

@media (min-width: 1024px) {
  .hero { min-height: 100vh; }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 55fr 45fr;
  }
}

.hero__content {
  max-width: 600px;
}

.hero__overline {
  display: block;
  font-size: var(--text-overline);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-on-dark);
  border-left: 3px solid var(--accent-purple);
  padding-left: var(--space-2);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  color: var(--text-on-light);
}

.hero__title .accent {
  color: var(--text-on-light);
  text-decoration: underline;
  text-decoration-color: var(--accent-lime);
  text-underline-offset: 4px;
  text-decoration-thickness: 3px;
}

.hero__subtitle {
  font-size: var(--text-body);
  color: var(--text-on-light-muted);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 480px;
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .hero__cta-group { flex-direction: row; }
}

.hero__social-proof {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
}

.hero__social-proof .stars {
  color: var(--text-on-dark);
  letter-spacing: 2px;
}

/* Hero floating visual (right side) */
.hero__visual {
  display: none;
}

@media (min-width: 1024px) {
  .hero__visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-left: var(--space-8);
  }
}

.hero__float-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--glass-shadow);
  transition: transform var(--duration-slow) var(--ease-spring);
}

.hero__float-card:nth-child(1) { transform: translateX(20px); }
.hero__float-card:nth-child(2) { transform: translateX(-10px); }
.hero__float-card:nth-child(3) { transform: translateX(30px); }
.hero__float-card:nth-child(4) { transform: translateX(5px); }
.hero__float-card:nth-child(5) { transform: translateX(-15px); }
.hero__float-card:nth-child(6) { transform: translateX(25px); }

.hero__float-card__overline {
  font-size: var(--text-overline);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.hero__float-card__title {
  font-weight: 600;
  font-size: var(--text-body);
}

/* Hero subpage (smaller) */
.hero--sub {
  min-height: auto;
  padding-top: calc(var(--navbar-height) + var(--space-16));
  padding-bottom: var(--space-12);
}

@media (min-width: 1024px) {
  .hero--sub {
    padding-top: calc(var(--navbar-height) + var(--space-20));
    padding-bottom: var(--space-16);
  }
}

.hero--sub .hero__title {
  font-size: var(--text-h1);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* --- Flex utilities --- */
.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--column { flex-direction: column; }
.flex--wrap { flex-wrap: wrap; }
.flex--gap-2 { gap: var(--space-2); }
.flex--gap-3 { gap: var(--space-3); }
.flex--gap-4 { gap: var(--space-4); }
.flex--gap-6 { gap: var(--space-6); }
.flex--gap-8 { gap: var(--space-8); }

/* --- Text utilities --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.measure { max-width: var(--content-measure); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Oversize stat number --- */
.stat-number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* Stat colors — dark text + accent bottom border */
.stat-number--lime   { color: var(--text-on-light); border-bottom: 4px solid var(--accent-lime); display: inline-block; padding-bottom: var(--space-1); }
.stat-number--purple { color: var(--text-on-light); border-bottom: 4px solid var(--accent-purple); display: inline-block; padding-bottom: var(--space-1); }
.stat-number--orange { color: var(--text-on-light); border-bottom: 4px solid var(--accent-orange); display: inline-block; padding-bottom: var(--space-1); }
.stat-number--pink   { color: var(--text-on-light); border-bottom: 4px solid var(--accent-pink); display: inline-block; padding-bottom: var(--space-1); }

.stat-label {
  font-size: var(--text-overline);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-1);
  color: var(--text-on-light-muted);
}


/* ========================================
   DECORATIVE ELEMENTS — Brand Identity
   ======================================== */

/* --- Decorative Yellow Circles (crisp, visible) --- */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.deco-circle--filled {
  background: var(--accent-lime);
  opacity: 0.15;
}

.deco-circle--ring {
  border: 2.5px solid var(--accent-lime);
  opacity: 0.25;
}

.deco-circle--ring-purple {
  border: 2.5px solid var(--accent-purple);
  opacity: 0.2;
}

.deco-circle--ring-orange {
  border: 2.5px solid var(--accent-orange);
  opacity: 0.25;
}

/* Circle sizes */
.deco-circle--xs { width: 48px; height: 48px; }
.deco-circle--sm { width: 80px; height: 80px; }
.deco-circle--md { width: 160px; height: 160px; }
.deco-circle--lg { width: 300px; height: 300px; }
.deco-circle--xl { width: 500px; height: 500px; }

@media (min-width: 1024px) {
  .deco-circle--sm { width: 100px; height: 100px; }
  .deco-circle--md { width: 200px; height: 200px; }
  .deco-circle--lg { width: 380px; height: 380px; }
  .deco-circle--xl { width: 600px; height: 600px; }
}

/* --- Gradient Orbs (soft background atmosphere) --- */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.orb--lime {
  background: radial-gradient(circle, rgba(237, 251, 140, 0.30) 0%, rgba(237, 251, 140, 0) 70%);
}

.orb--purple {
  background: radial-gradient(circle, rgba(151, 151, 255, 0.25) 0%, rgba(151, 151, 255, 0) 70%);
}

.orb--orange {
  background: radial-gradient(circle, rgba(255, 192, 150, 0.25) 0%, rgba(255, 192, 150, 0) 70%);
}

.orb--pink {
  background: radial-gradient(circle, rgba(251, 134, 177, 0.22) 0%, rgba(251, 134, 177, 0) 70%);
}

/* Orb sizes */
.orb--sm { width: 200px; height: 200px; }
.orb--md { width: 350px; height: 350px; }
.orb--lg { width: 500px; height: 500px; }
.orb--xl { width: 700px; height: 700px; }

@media (min-width: 1024px) {
  .orb--sm { width: 250px; height: 250px; }
  .orb--md { width: 450px; height: 450px; }
  .orb--lg { width: 650px; height: 650px; }
  .orb--xl { width: 900px; height: 900px; }
}

/* --- Sygnet (jellyfish brand mark) — sharp, no blur --- */
.sygnet {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
}

.sygnet--hero {
  right: var(--space-6);
  bottom: var(--space-8);
  width: 160px;
}

@media (min-width: 768px) {
  .sygnet--hero {
    width: 220px;
    right: var(--space-10);
    bottom: var(--space-10);
  }
}

@media (min-width: 1024px) {
  .sygnet--hero {
    width: 300px;
  }
}

.sygnet--section {
  width: 120px;
  opacity: 0.06;
}

@media (min-width: 768px) {
  .sygnet--section { width: 180px; }
}

/* --- Hero Brand Bar (large PIK_AI identity) --- */
.hero__brand-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero__brand-logo {
  height: 52px;
  width: auto;
}

@media (min-width: 768px) {
  .hero__brand-logo { height: 60px; }
}

@media (min-width: 1024px) {
  .hero__brand-logo { height: 72px; }
}

.hero__brand-divider {
  width: 1px;
  height: 36px;
  background: rgba(0, 0, 0, 0.15);
}

.hero__brand-tagline {
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
  line-height: 1.3;
  max-width: 200px;
}

@media (max-width: 480px) {
  .hero__brand-divider,
  .hero__brand-tagline { display: none; }
}
