/* ─────────────────────────────────────────────────────────
   Skylift — hi-fi design tokens (v2 · brand-aligned)
   Reference: skyliftweb.com — sky-blue + orange script + royal CTAs
   ──────────────────────────────────────────────────────── */

:root {
  /* Surfaces */
  --paper:        #ffffff;
  --bone:         #f5f4f0;
  --ink:          #0a0e1a;          /* near-black, slight blue */
  --ink-2:        #161a26;
  --ink-soft:     #5a607a;
  --ink-faint:    #a0a6b8;
  --hairline:     #e6e8ee;
  --hairline-dk:  #232733;

  /* Brand — names kept stable; values reskinned to skyliftweb.com */
  /* "lavender" slots = sky-blue pastel hero/process bg */
  --lavender:     #d4e7fa;
  --lavender-2:   #b9d6f5;
  --lavender-3:   #0a1530;          /* deep navy text on sky */

  /* "lime" slots = royal blue primary (CTAs, accent cards) */
  --lime:         #3055ee;
  --lime-2:       #1f3fc8;
  --lime-3:       #ffffff;          /* white text on royal blue */

  /* Orange — used for script italic accent text */
  --orange:       #f55a2a;
  --orange-2:     #ff7849;
  --orange-3:     #481405;

  /* Saturated accents for aggressive gradients */
  --red-deep:     #c41e0e;
  --teal:         #0e5a6e;
  --teal-deep:    #0a3a4a;
  --amber:        #ffa233;

  /* Pastel stat tiles */
  --pink:         #ffd3d8;
  --mint:         #d9efe1;
  --sky:          #cfe1f8;
  --peach:        #ffe2c8;

  /* Type */
  --display:      'Playfair Display', 'DM Serif Display', Georgia, serif;
  --script:       'Allura', 'Pinyon Script', 'Playfair Display', cursive;
  --body:         'Inter', system-ui, sans-serif;
  --mono:         'IBM Plex Mono', ui-monospace, monospace;

  /* Radii */
  --r-sm:  10px;
  --r-md:  18px;
  --r-lg:  28px;
  --r-xl:  36px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-card: 0 1px 0 rgba(0,0,0,0.04), 0 12px 32px -16px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Layout */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

/* Type */
.h-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.h-eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(48px, 5.4vw, 80px); line-height: 1.0; }
h2 { font-size: clamp(36px, 4.2vw, 64px); line-height: 1.04; }
h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.12; }
h4 { font-size: 18px; line-height: 1.2; font-weight: 600; font-family: var(--body); }

p { margin: 0; }
.muted { color: var(--ink-soft); }
.muted-dark { color: rgba(255,255,255,0.66); }

/* ── Script accent — overrides any inline `font-style: italic`.
   Any italic span inside a heading/display block becomes the Allura
   orange script that matches the live skyliftweb.com tagline style. */
[style*="font-style: italic"],
[style*="fontStyle: italic"],
.script {
  font-family: var(--display) !important;
  font-style: italic !important;
  font-weight: 500 !important;
  color: var(--orange) !important;
  letter-spacing: -0.01em !important;
}
/* Give headlines breathing room below when they contain italic flourishes —
   Playfair italic descenders extend further than the line-box. */
h1:has([style*="font-style: italic"]),
h1:has(.script) {
  padding-bottom: 0.18em;
}
h2:has([style*="font-style: italic"]),
h2:has(.script) {
  padding-bottom: 0.12em;
}
/* Dark sections — keep orange but bump brightness */
.dark [style*="font-style: italic"],
.dark [style*="fontStyle: italic"],
.dark .script {
  color: var(--orange-2) !important;
}
/* On the orange sunset block, swap to white so it reads */
.bg-sunset [style*="font-style: italic"],
.bg-sunset [style*="fontStyle: italic"],
.bg-sunset .script {
  color: rgba(255,255,255,0.96) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--lime);                /* royal blue */
  color: var(--lime-3);                   /* white */
  border-color: var(--lime-2);
}
.btn--primary:hover { background: var(--lime-2); }
.btn--dark {
  background: var(--ink);
  color: var(--paper);
}
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(10,14,26,0.18);
}
.btn--ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.24);
}
.btn--lg { padding: 16px 26px; font-size: 15px; }
.btn--block { width: 100%; justify-content: center; }
.btn .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  font-size: 11px;
}
.btn--dark .arrow,
.btn--ghost-light .arrow { background: rgba(255,255,255,0.16); color: var(--paper); }
.btn--ghost .arrow { background: rgba(0,0,0,0.06); color: var(--ink); }

/* Tag / badge */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  background: rgba(10,14,26,0.06);
  color: var(--ink);
  white-space: nowrap;
}
.tag--dark { background: rgba(255,255,255,0.08); color: var(--paper); }
.tag--lime { background: var(--lime); color: var(--lime-3); }
.tag--orange { background: var(--orange); color: #fff; }
.tag--dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink);
}
.tag--lime.tag--dot::before { background: var(--lime-3); }
.tag--orange.tag--dot::before { background: #fff; }
.tag--dark.tag--dot::before { background: var(--orange); }

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
}
.card--dark {
  background: var(--ink);
  border-color: var(--hairline-dk);
  color: var(--paper);
}
.card--lavender {
  background: var(--lavender);
  border-color: transparent;
  color: var(--lavender-3);
}
.card--lime {
  background: var(--lime);
  border-color: var(--lime-2);
  color: var(--lime-3);
}

/* Image placeholder — stylized (carries a neon-toned tint for portraits) */
.imgph {
  position: relative;
  background:
    linear-gradient(135deg, rgba(10,14,26,0.04), rgba(10,14,26,0.08)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(10,14,26,0.04) 12px 13px);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  overflow: hidden;
}
.imgph--portrait {
  background:
    radial-gradient(circle at 30% 30%, rgba(48,85,238,0.45), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(245,90,42,0.4), transparent 55%),
    linear-gradient(135deg, #1a1f3a, #2a1638);
  color: rgba(255,255,255,0.85);
}
.imgph--dark {
  background:
    linear-gradient(135deg, #232328, #15151a),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,0.04) 12px 13px);
  color: rgba(255,255,255,0.6);
}
.imgph__chip {
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  font-size: 10px;
  color: var(--ink);
}
.imgph--dark .imgph__chip,
.imgph--portrait .imgph__chip {
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.9);
}

/* Logo placeholder pill — for client logo strip */
.logo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 12px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: none;
  letter-spacing: -0.01em;
}

/* Utility */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { align-items: center; }
.grow { flex: 1; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }

.dark { background: var(--ink); color: var(--paper); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--paper); }
.dark .h-eyebrow { color: rgba(255,255,255,0.6); }
.dark .h-eyebrow::before { background: var(--orange); }

/* Number / chart-y display */
.bignum {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.02em;
  line-height: 0.95;
}

/* Inline svg chart line */
.spark { width: 100%; height: auto; display: block; }

/* Form inputs (light bg) */
input[type="email"] {
  font-family: var(--body);
}
input[type="email"]:focus {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* ─────────────────────────────────────────────────────────
   Squishy pricing cards — hover scale + morphing SVG bgs
   ──────────────────────────────────────────────────────── */
.sq-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: transform 0.9s cubic-bezier(0.68, -0.55, 0.27, 1.55),
              box-shadow 0.5s ease;
  cursor: pointer;
  isolation: isolate;
}
.sq-card:hover {
  transform: scale(1.04);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5);
}
.sq-card--featured {
  transform: translateY(-12px);
}
.sq-card--featured:hover {
  transform: translateY(-12px) scale(1.04);
}

/* Content above the morphing SVG */
.sq-card__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sq-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: transform 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.sq-card:hover .sq-card__bg--1 { transform: scale(1.5); }
.sq-card:hover .sq-card__bg--2 { transform: scale(1.05); }
.sq-card:hover .sq-card__bg--3 { transform: scale(1.25); }

/* SVG shapes inside each bg variant */
.sq-shape {
  transition: transform 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.2s;
  transform-origin: center;
}

/* Variant 1 — circle morphs into a flatter ellipse + ellipse stretches */
.sq-card:hover .sq-shape--circle1 { transform: translateY(-25px) scaleY(0.5); }
.sq-card:hover .sq-shape--ellipse1 { transform: translateY(-25px) scaleY(2.25); }

/* Variant 2 — two rounded rectangles swap places + rotate */
.sq-shape--rect2a { transform-origin: 90px 76px; }
.sq-shape--rect2b { transform-origin: 230px 295px; }
.sq-card:hover .sq-shape--rect2a { transform: translateY(207px) rotate(90deg) scaleX(2); }
.sq-card:hover .sq-shape--rect2b { transform: translateY(-207px) rotate(90deg) scaleX(2); }

/* Variant 3 — three diamond paths slide up in sequence */
.sq-card:hover .sq-shape--diamond3a { transform: translateY(-50px); transition-delay: 0.3s; }
.sq-card:hover .sq-shape--diamond3b { transform: translateY(-50px); transition-delay: 0.2s; }
.sq-card:hover .sq-shape--diamond3c { transform: translateY(-50px); transition-delay: 0.1s; }

/* Price scales from 0.85 to 1.0 on hover, anchored top-left */
.sq-price {
  display: block;
  transform: scale(0.85);
  transform-origin: top left;
  transition: transform 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.sq-card:hover .sq-price {
  transform: scale(1);
}

/* Button at the bottom, absolutely positioned so hover doesn't push it */
.sq-cta {
  position: relative;
  z-index: 2;
  margin-top: auto;
}
.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.10);
  color: #166534;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(34, 197, 94, 0.20);
  font-family: var(--body);
  white-space: nowrap;
}
.online-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.online-dot::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.45);
  animation: online-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.online-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: online-blink 1.6s ease-in-out infinite;
}
@keyframes online-ping {
  0% { transform: scale(0.85); opacity: 0.75; }
  80%, 100% { transform: scale(2.4); opacity: 0; }
}
@keyframes online-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ─────────────────────────────────────────────────────────
   Gradient backgrounds & grain — for warm, lit surfaces
   ──────────────────────────────────────────────────────── */

/* Hero / soft surfaces: saturated sweeping gradient — sky-blue base with
   bold orange and teal radial spots. Reads aggressive, lit, almost CRT.
   Keep the bottom-third lighter so partner logos / fine print stay legible. */
.bg-warm-glow {
  background:
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(245, 90, 42, 0.85) 0%, rgba(245, 90, 42, 0.20) 35%, transparent 62%),
    radial-gradient(ellipse 45% 45% at 5% 92%, rgba(14, 90, 110, 0.32) 0%, rgba(48, 85, 238, 0.14) 38%, transparent 65%),
    radial-gradient(ellipse 35% 30% at 78% 72%, rgba(255, 162, 51, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255, 226, 200, 0.10) 0%, transparent 70%),
    linear-gradient(180deg, var(--lavender) 0%, #d3e3f1 60%, #e3eef9 100%);
}

/* Sunset card: saturated orange-red sweep with teal slice — used on the
   lead-magnet block. Heavy contrast like the reference. */
.bg-sunset {
  background:
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(14, 58, 74, 0.85) 0%, rgba(14, 90, 110, 0.4) 30%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(255, 162, 51, 0.9) 0%, rgba(245, 90, 42, 0.4) 40%, transparent 65%),
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(196, 30, 14, 0.75) 0%, transparent 60%),
    linear-gradient(135deg, #ff7849 0%, var(--orange) 35%, var(--red-deep) 75%, #6b1208 100%);
}

/* Dark with saturated brand-color radial glows — for FinalCTA / dramatic
   sections. High-contrast, aggressive like the reference image. */
.bg-dark-glow {
  background:
    radial-gradient(ellipse 45% 55% at 15% 20%, rgba(14, 90, 110, 0.85) 0%, rgba(14, 90, 110, 0.30) 35%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 80%, rgba(245, 90, 42, 0.80) 0%, rgba(196, 30, 14, 0.35) 35%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 70% 25%, rgba(255, 162, 51, 0.45) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, #1a1a26 0%, #060814 70%);
}

/* Cool, teal-leaning glow — for the Process band. Saturated teal sweep
   with an orange flare in the far corner. */
.bg-cool-glow {
  background:
    radial-gradient(ellipse 50% 50% at 10% 15%, rgba(14, 90, 110, 0.55) 0%, rgba(48, 85, 238, 0.25) 35%, transparent 62%),
    radial-gradient(ellipse 55% 50% at 92% 88%, rgba(245, 90, 42, 0.50) 0%, rgba(255, 162, 51, 0.20) 35%, transparent 62%),
    linear-gradient(180deg, var(--lavender) 0%, #cfdfee 100%);
}

/* Pale sky glow — bone surface with bolder warmth */
.bg-paper-glow {
  background:
    radial-gradient(ellipse 50% 55% at 88% 12%, rgba(245, 90, 42, 0.35) 0%, rgba(255, 162, 51, 0.12) 35%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 12% 88%, rgba(14, 90, 110, 0.30) 0%, rgba(48, 85, 238, 0.12) 35%, transparent 60%),
    linear-gradient(180deg, var(--bone) 0%, #ece8e2 100%);
}

/* Aggressive grain — SVG noise overlay that adds heavy film-like texture
   like the reference. Two layers: a fine grain and a coarser noise. */
.grain {
  position: relative;
}
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.85;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.72 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 1;
}
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'><filter id='n2'><feTurbulence type='fractalNoise' baseFrequency='0.35' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.85 0'/></filter><rect width='100%' height='100%' filter='url(%23n2)'/></svg>");
  z-index: 1;
}
.grain > * { position: relative; z-index: 2; }
.grain--strong::after { opacity: 0.95; }
.grain--strong::before { opacity: 0.55; }

/* Gradient-ring card border — paints a thin gradient outline around any card.
   Apply to a relatively-positioned card; the ring sits just outside its edge. */
.ring-glow {
  position: relative;
  isolation: isolate;
}
.ring-glow::before {
  content: '';
  position: absolute;
  inset: -2.5px;
  border-radius: inherit;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--orange) 0%, #ff9a6a 35%, var(--lime) 70%, rgba(255,255,255,0.2) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}
.ring-glow::after {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245,90,42,0.65) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(48,85,238,0.4) 0%, transparent 55%);
  filter: blur(22px);
  z-index: -1;
  pointer-events: none;
}
.ring-glow > *:not(.sq-card__bg) { position: relative; z-index: 1; }

/* Soft corner glow — for medium-sized cards to feel "lit from outside" */
.corner-glow {
  position: relative;
}
.corner-glow::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 90% 10%, rgba(245,90,42,0.35) 0%, transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(48,85,238,0.30) 0%, transparent 30%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

/* Dotted texture for tile corners (like ennAI ref) */
.dots-tr,
.dots-bl {
  position: relative;
}
.dots-tr::after,
.dots-bl::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 80px;
  pointer-events: none;
  background-image: radial-gradient(circle, currentColor 1px, transparent 1.5px);
  background-size: 10px 10px;
  opacity: 0.25;
}
.dots-tr::after { top: 16px; right: 16px; }
.dots-bl::after { bottom: 16px; left: 16px; }
