/* ============================================================
   Moana Digital — Design System v2
   Editorial · Pacific midnight · Sophisticated craft
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --c-bg:        #f6f8fb;
  --c-bg-2:      #eef3f8;
  --c-surface:   #ffffff;
  --c-line:      rgba(8, 23, 51, .08);
  --c-line-2:    rgba(8, 23, 51, .14);

  /* Ink */
  --c-ink:       #0a1f3d;
  --c-ink-2:    #2a3f63;
  --c-ink-3:    #5a6e90;
  --c-mute:     #8694b1;

  /* Brand — Pacific midnight + reef */
  --c-deep:      #050b1f;       /* Hero base */
  --c-deep-2:    #0a1635;
  --c-night:     #0d1b3d;
  --c-teal:      #0aa19a;        /* Reef teal */
  --c-aqua:      #4ce3d8;        /* Bright reef */
  --c-cyan:      #67d6ff;
  --c-violet:    #7c5cff;        /* Deep ocean */
  --c-coral:     #ff7a59;        /* Sunset accent */
  --c-amber:     #ffc36e;
  --c-sand:      #f4e8c8;

  /* Functional */
  --c-success:   #14906a;
  --c-error:     #d23b2a;

  /* Gradients */
  --grad-aurora: radial-gradient(60% 80% at 70% 0%, #7c5cff55 0%, transparent 60%),
                 radial-gradient(50% 70% at 0% 60%, #0aa19a55 0%, transparent 60%),
                 radial-gradient(45% 60% at 90% 80%, #ff7a5945 0%, transparent 60%);
  --grad-orb:    radial-gradient(circle at 30% 30%, #4ce3d8, #0aa19a 45%, #7c5cff 90%);
  --grad-text:   linear-gradient(110deg, #4ce3d8 0%, #67d6ff 35%, #ffc36e 70%, #ff7a59 100%);
  --grad-coral:  linear-gradient(135deg, #ff7a59 0%, #ffc36e 100%);
  --grad-card:   linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));

  /* Type */
  --f-sans:    "Sora", "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-display: "Instrument Serif", "Plus Jakarta Sans", "Sora", serif;
  --f-mono:    "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;

  /* Type scale (fluid) */
  --t-xs: clamp(.74rem, .72rem + .1vw, .8rem);
  --t-sm: clamp(.86rem, .82rem + .15vw, .92rem);
  --t-md: clamp(1rem, .95rem + .2vw, 1.075rem);
  --t-lg: clamp(1.15rem, 1.05rem + .4vw, 1.3rem);
  --t-h4: clamp(1.25rem, 1.1rem + .8vw, 1.55rem);
  --t-h3: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  --t-h2: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  --t-h1: clamp(2.6rem, 1.6rem + 4.5vw, 5.4rem);

  /* Layout */
  --maxw: 1240px;
  --pad: clamp(1.1rem, 3vw, 2.4rem);
  --gap: clamp(1rem, 2vw, 1.5rem);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(8,23,51,.05), 0 4px 12px rgba(8,23,51,.04);
  --shadow-2: 0 4px 14px rgba(8,23,51,.07), 0 18px 40px rgba(8,23,51,.08);
  --shadow-3: 0 24px 60px rgba(8,23,51,.16), 0 4px 14px rgba(8,23,51,.08);
  --shadow-glow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(76, 227, 216, .18);

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 180ms var(--ease);
  --t-base: 320ms var(--ease);
  --t-slow: 600ms var(--ease);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--t-md);
  font-feature-settings: "ss01", "cv01", "cv11";
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--c-aqua); color: var(--c-deep); }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: var(--c-teal); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-coral); }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 2rem 0; }

h1, h2, h3, h4 {
  margin: 0 0 1rem;
  color: var(--c-ink);
  letter-spacing: -0.022em;
  line-height: 1.08;
  font-weight: 500;
}
h1 { font-family: var(--f-display); font-size: var(--t-h1); font-weight: 400; letter-spacing: -0.035em; line-height: 1; }
h2 { font-family: var(--f-display); font-size: var(--t-h2); font-weight: 400; letter-spacing: -0.025em; line-height: 1.05; }
h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.018em; line-height: 1.15; }
h4 { font-size: var(--t-h4); font-weight: 600; }
p  { margin: 0 0 1rem; color: var(--c-ink-2); }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--dark {
  background: var(--c-deep);
  color: rgba(255,255,255,.86);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: white; }
.section--dark p { color: rgba(255,255,255,.7); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--c-teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(10,161,154,.12);
}
.section--dark .eyebrow { color: var(--c-aqua); }
.section--dark .eyebrow::before { background: var(--c-aqua); box-shadow: 0 0 0 4px rgba(76,227,216,.18); }

.lede {
  font-size: var(--t-lg);
  color: var(--c-ink-3);
  max-width: 60ch;
  line-height: 1.5;
}
.section--dark .lede { color: rgba(255,255,255,.72); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  max-width: none;
}
@media (max-width: 720px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.35rem;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: .94rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease-spring),
              background var(--t-base),
              box-shadow var(--t-base),
              border-color var(--t-base);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-ink);
  color: white;
  box-shadow: 0 6px 18px rgba(10,31,61,.18);
}
.btn-primary:hover { background: #16335f; color: white; box-shadow: 0 10px 28px rgba(10,31,61,.28); }

.btn-coral {
  background: var(--grad-coral);
  color: var(--c-deep);
  box-shadow: 0 8px 22px rgba(255,122,89,.32);
}
.btn-coral:hover { color: var(--c-deep); box-shadow: 0 14px 32px rgba(255,122,89,.42); }

.btn-secondary {
  background: var(--c-surface);
  color: var(--c-ink);
  border-color: var(--c-line-2);
}
.btn-secondary:hover { border-color: var(--c-ink); color: var(--c-ink); }

.btn-ghost {
  color: white;
  border-color: rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.04);
}
.btn-ghost:hover { color: white; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: 0;
  font-weight: 500;
  color: var(--c-ink);
  border-radius: 0;
}
.btn-link::after {
  content: "→";
  display: inline-block;
  transition: transform var(--t-fast) var(--ease-spring);
}
.btn-link:hover { color: var(--c-coral); }
.btn-link:hover::after { transform: translateX(4px); }
.section--dark .btn-link { color: var(--c-aqua); }

.kbd {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .15rem .45rem;
  font-family: var(--f-mono);
  font-size: .7rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px;
  color: rgba(255,255,255,.78);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 0;
  background: rgba(246, 248, 251, .72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base), padding var(--t-base);
}
.nav.is-stuck {
  border-bottom-color: var(--c-line);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
.brand-logo {
  width: clamp(136px, 14vw, 194px);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--c-ink-3);
  font-size: .92rem;
  font-weight: 500;
  position: relative;
  transition: color var(--t-fast);
}
.nav-links a:hover { color: var(--c-ink); }
.nav-links a.active { color: var(--c-ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: -22px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line);
  background: white;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--c-ink);
  margin: 4px auto;
  transition: transform var(--t-fast);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--c-deep);
  color: white;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(5rem, 10vw, 8rem);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-aurora);
  filter: blur(40px);
  z-index: -2;
  animation: aurora 18s ease-in-out infinite alternate;
}
.hero::after {
  /* Dot grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 30%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}
@keyframes aurora {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  50%  { transform: translate3d(2%, 1%, 0) scale(1.05); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1); }
}

.hero h1 { color: white; max-width: 14ch; }
.hero h1 .accent {
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}
.hero p { color: rgba(255,255,255,.78); font-size: var(--t-lg); max-width: 52ch; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem .85rem .35rem .4rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-pill);
  font-size: .82rem;
  color: rgba(255,255,255,.86);
  margin-bottom: 1.6rem;
  backdrop-filter: blur(12px);
}
.hero-pill .dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-aqua);
  position: relative;
}
.hero-pill .dot::before, .hero-pill .dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: var(--c-aqua);
  opacity: .35;
  animation: pulse 2.4s ease-out infinite;
}
.hero-pill .dot::after { animation-delay: 1.2s; }
@keyframes pulse {
  0%   { transform: scale(1); opacity: .55; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-actions {
  display: flex; gap: .8rem; flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}
.hero-meta strong { display: block; color: white; font-weight: 600; font-size: 1rem; margin-bottom: .15rem; letter-spacing: -0.015em; }

/* Hero product card — Talanoa AI conversation */
.hero-card {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glow);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform var(--t-slow);
}
.hero-card:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.hero-card-head {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-card-head .badge {
  padding: .2rem .55rem;
  background: rgba(76,227,216,.14);
  color: var(--c-aqua);
  border: 1px solid rgba(76,227,216,.3);
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-card-head .title {
  font-weight: 600; color: white;
}
.hero-card-head .meta {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: .72rem;
  color: rgba(255,255,255,.5);
}
.bubble {
  display: flex;
  gap: .65rem;
  margin-bottom: .8rem;
  animation: rise .6s var(--ease) both;
}
.bubble:nth-child(1) { animation-delay: .15s; }
.bubble:nth-child(2) { animation-delay: .55s; }
.bubble:nth-child(3) { animation-delay: 1.05s; }
.bubble:nth-child(4) { animation-delay: 1.55s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.bubble .av {
  flex: 0 0 28px; width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad-orb);
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 700;
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.bubble.user .av { background: linear-gradient(135deg, #ff7a59, #ffc36e); }
.bubble .msg {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  padding: .55rem .85rem;
  border-radius: 12px 12px 12px 4px;
  font-size: .88rem;
  color: rgba(255,255,255,.9);
  max-width: 32ch;
  line-height: 1.45;
}
.bubble.user { flex-direction: row-reverse; }
.bubble.user .msg { border-radius: 12px 12px 4px 12px; background: rgba(76,227,216,.12); border-color: rgba(76,227,216,.25); color: white; }
.bubble.system .msg { background: transparent; border-style: dashed; color: rgba(255,255,255,.55); font-family: var(--f-mono); font-size: .76rem; }
.hero-card-foot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: .72rem;
  color: rgba(255,255,255,.55);
}
.hero-card-foot .live {
  display: inline-flex; align-items: center; gap: .35rem;
}
.hero-card-foot .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #4ce3a8;
  box-shadow: 0 0 0 4px rgba(76,227,168,.18);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .4; } }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  opacity: .8;
}
.scroll-cue .line {
  display: inline-block;
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.6), transparent);
  background-size: 100% 200%;
  animation: scroll-line 2.2s linear infinite;
}
@keyframes scroll-line {
  from { background-position: 0 -100%; }
  to   { background-position: 0 100%; }
}

/* ---------- Trust strip (honest) ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  margin-top: -3.5rem;
  position: relative;
  z-index: 5;
}
.trust .cell {
  padding: 1.5rem 1.6rem;
  border-right: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.trust .cell:last-child { border-right: 0; }
.trust .cell .v {
  font-family: var(--f-display);
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  line-height: 1;
}
.trust .cell .l {
  font-weight: 600;
  font-size: .92rem;
  color: var(--c-ink);
}
.trust .cell .n {
  font-size: .8rem;
  color: var(--c-mute);
  margin-top: .15rem;
}

/* ---------- Marquee (region tags) ---------- */
.marquee {
  overflow: hidden;
  position: relative;
  padding: 1.2rem 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg-2);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--f-mono);
  font-size: .82rem;
  color: var(--c-ink-3);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.marquee-track span { display: inline-flex; align-items: center; gap: .6rem; }
.marquee-track span::after { content: "·"; color: var(--c-mute); }
.marquee-track .m-icon {
  display: inline-flex;
  align-items: center;
  color: var(--c-aqua);
  opacity: 0.8;
}
.marquee-track .m-icon svg { width: 14px; height: 14px; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: var(--gap);
}
.bento-cell {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.bento-cell:hover {
  border-color: var(--c-ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.bento-cell .kicker {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-ink-3);
}
.bento-cell h3 { margin: .5rem 0 .35rem; font-size: 1.4rem; }
.bento-cell p  { margin: 0; font-size: .94rem; color: var(--c-ink-3); }
.bento-cell .more {
  margin-top: 1rem;
}

.bento-cell.size-3 { grid-column: span 3; }
.bento-cell.size-2 { grid-column: span 2; }
.bento-cell.size-4 { grid-column: span 4; }
.bento-cell.size-6 { grid-column: span 6; }
.bento-cell.tall   { grid-row: span 2; }

.bento-cell.dark {
  background: var(--c-deep);
  color: white;
  border-color: rgba(255,255,255,.08);
}
.bento-cell.dark h3 { color: white; }
.bento-cell.dark p  { color: rgba(255,255,255,.7); }
.bento-cell.dark .kicker { color: var(--c-aqua); }
.bento-cell.feature {
  background:
    radial-gradient(circle at 100% 0%, rgba(124,92,255,.25), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(10,161,154,.3), transparent 55%),
    var(--c-deep);
  color: white;
  border-color: rgba(255,255,255,.1);
}
.bento-cell.feature h3 { color: white; }
.bento-cell.feature p  { color: rgba(255,255,255,.78); }
.bento-cell.feature .kicker { color: var(--c-aqua); }

/* Decorative orb in bento */
.bento-orb {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--grad-orb);
  filter: blur(48px);
  opacity: .55;
  pointer-events: none;
}
.bento-orb.tr { top: -60px; right: -60px; }
.bento-orb.bl { bottom: -80px; left: -60px; }

/* ---------- Service cards / generic card ---------- */
.card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.card:hover {
  border-color: var(--c-ink);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.card .kicker {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-ink-3);
}
.card h3 { margin: .5rem 0 .5rem; }
.card .features {
  list-style: none;
  padding: 0; margin: 1rem 0 0;
  display: grid; gap: .4rem;
}
.card .features li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: .55rem;
  font-size: .9rem;
  color: var(--c-ink-2);
  line-height: 1.45;
}
.card .features li::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-teal), var(--c-aqua));
  margin-top: .25rem;
  display: block;
  position: relative;
}
.card .features li::after {
  content: "";
  width: 6px; height: 3px;
  border-left: 1.5px solid white;
  border-bottom: 1.5px solid white;
  transform: rotate(-45deg);
  position: absolute;
  margin-top: 5.5px; margin-left: 4px;
}

/* ---------- Plan cards ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex; flex-direction: column;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.plan:hover { border-color: var(--c-ink); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.plan.featured {
  background: var(--c-deep);
  color: white;
  border-color: var(--c-deep);
  box-shadow: 0 30px 60px rgba(10,31,61,.25);
}
.plan.featured h3, .plan.featured .price { color: white; }
.plan.featured p, .plan.featured .billing, .plan.featured .features li { color: rgba(255,255,255,.78); }
.plan.featured .features li::before { background: linear-gradient(135deg, var(--c-coral), var(--c-amber)); }
.plan.featured .badge {
  background: var(--grad-coral);
  color: var(--c-deep);
}
.plan .badge {
  position: absolute;
  top: -12px; right: 24px;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--c-ink); color: white;
  padding: .35rem .7rem;
  border-radius: var(--r-pill);
}
.plan .name {
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-ink-3);
}
.plan h3 { font-size: 1.5rem; margin: .35rem 0 .65rem; }
.plan .price {
  font-family: var(--f-display);
  font-size: 2.3rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--c-ink);
  margin-bottom: .25rem;
}
.plan .billing { font-size: .82rem; color: var(--c-mute); }
.plan p { margin-top: .85rem; }
.plan .features {
  list-style: none;
  padding: 1.1rem 0 0;
  margin: 1.1rem 0 0;
  border-top: 1px solid var(--c-line);
  display: grid; gap: .55rem;
  flex: 1;
}
.plan.featured .features { border-top-color: rgba(255,255,255,.12); }
.plan .features li {
  display: grid; grid-template-columns: 14px 1fr; gap: .55rem;
  font-size: .92rem; color: var(--c-ink-2);
  align-items: start;
}
.plan .features li::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-teal), var(--c-aqua));
  margin-top: .2rem;
  position: relative;
}
.plan .plan-cta { margin-top: 1.25rem; }

/* ---------- Region cards ---------- */
.regions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.region-card {
  position: relative;
  display: block;
  padding: 1.6rem;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  color: var(--c-ink);
  overflow: hidden;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.region-card:hover {
  color: var(--c-ink);
  transform: translateY(-3px);
  border-color: var(--c-ink);
  box-shadow: var(--shadow-2);
}
.region-card::after {
  content: "";
  position: absolute;
  inset: auto -50px -50px auto;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--grad-orb);
  opacity: .12;
  filter: blur(8px);
  transition: transform var(--t-slow), opacity var(--t-base);
}
.region-card:hover::after { transform: scale(1.4); opacity: .22; }
.region-card .flag { font-size: 1.6rem; line-height: 1; }
.region-card h3 { margin: .8rem 0 .25rem; font-size: 1.25rem; }
.region-card .meta {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: .65rem;
}
.region-card .arrow {
  position: absolute;
  top: 1.6rem; right: 1.6rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--c-line-2);
  display: grid; place-items: center;
  color: var(--c-ink-3);
  transition: transform var(--t-fast) var(--ease-spring), border-color var(--t-fast), color var(--t-fast);
}
.region-card:hover .arrow {
  transform: rotate(-45deg);
  border-color: var(--c-ink);
  color: var(--c-ink);
}

/* ---------- Process / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.step {
  padding: 1.6rem;
  border-left: 1px solid var(--c-line);
  position: relative;
}
.step .num {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--c-ink-3);
  margin-bottom: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.step .num::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--c-teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(10,161,154,.12);
}
.step h3 { font-size: 1.2rem; margin: .35rem 0 .55rem; }
.step p { margin: 0; font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  background: var(--c-deep);
  color: white;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(124,92,255,.3), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(10,161,154,.35), transparent 55%);
  z-index: -1;
}
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  z-index: -1;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
}
.cta h2 { color: white; margin-bottom: .65rem; max-width: 18ch; }
.cta p  { color: rgba(255,255,255,.78); margin: 0; max-width: 50ch; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-shell {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-1);
}
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--c-ink);
  margin-bottom: .4rem;
  letter-spacing: -0.005em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: .8rem .95rem;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-ink);
  box-shadow: 0 0 0 4px rgba(10,31,61,.08);
}
.field .err { color: var(--c-error); font-size: .82rem; margin-top: .35rem; }

.flash {
  padding: .85rem 1rem;
  border-radius: var(--r-sm);
  margin: 1rem 0;
  font-size: .9rem;
  border: 1px solid transparent;
}
.flash.success { background: #e6f6ee; color: #0d5d3f; border-color: #b9e3cd; }
.flash.error   { background: #fdecea; color: #8a261b; border-color: #f1bdb6; }
.flash.info    { background: #e8f1f9; color: #18466e; border-color: #bcd4e8; }

/* ---------- Footer ---------- */
.footer {
  background: var(--c-deep);
  color: rgba(255,255,255,.7);
  padding: clamp(4rem, 7vw, 6rem) 0 2rem;
  margin-top: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(circle, rgba(76,227,216,.15), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: 2rem;
  position: relative;
}
.footer h4 {
  font-family: var(--f-mono);
  color: white;
  font-size: .76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1rem;
}
.footer a {
  display: block;
  padding: .25rem 0;
  color: rgba(255,255,255,.65);
  font-size: .92rem;
  transition: color var(--t-fast);
}
.footer a:hover { color: var(--c-aqua); }
.footer .brand { color: white; }
.footer .brand-logo {
  width: clamp(170px, 20vw, 230px);
}
.footer-newsletter input {
  width: 100%;
  padding: .65rem .85rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: white;
  border-radius: var(--r-sm);
  font: inherit;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter input:focus { outline: none; border-color: var(--c-aqua); }
.footer-newsletter button {
  width: 100%;
  margin-top: .55rem;
  padding: .7rem 1rem;
  background: white;
  color: var(--c-deep);
  border-radius: var(--r-pill);
  font-weight: 500;
  transition: background var(--t-fast);
}
.footer-newsletter button:hover { background: var(--c-aqua); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero::before, .marquee-track, .bubble, .scroll-cue .line { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Tag chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  font-size: .8rem;
  color: var(--c-ink-2);
}
.chip-dark {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
}

/* ============================================================
   Build pipeline animation — Idea → Design → Mockup → Live
   Cycles through 4 stacked browser-like frames
   ============================================================ */
.pipeline {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glow);
  transform: perspective(1400px) rotateY(-5deg) rotateX(3deg);
  transition: transform var(--t-slow);
  overflow: hidden;
}
.pipeline:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }

.pipeline-head {
  display: flex; align-items: center; gap: .6rem;
  padding-bottom: .9rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pipeline-head .badge {
  padding: .2rem .55rem;
  background: rgba(76,227,216,.14);
  color: var(--c-aqua);
  border: 1px solid rgba(76,227,216,.3);
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pipeline-head .label {
  font-weight: 600; color: white; font-size: .92rem;
  font-variant-numeric: tabular-nums;
}
.pipeline-head .stage-name {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  margin-left: auto;
}

/* Stage progress dots */
.pipeline-stages {
  display: flex; gap: .4rem;
  margin-bottom: 1rem;
}
.pipeline-stages .seg {
  flex: 1; height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.pipeline-stages .seg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--c-aqua), var(--c-cyan));
  transform: translateX(-100%);
  animation: seg-fill 16s linear infinite;
}
.pipeline-stages .seg:nth-child(1)::after { animation-delay: 0s; }
.pipeline-stages .seg:nth-child(2)::after { animation-delay: 4s; }
.pipeline-stages .seg:nth-child(3)::after { animation-delay: 8s; }
.pipeline-stages .seg:nth-child(4)::after { animation-delay: 12s; }
@keyframes seg-fill {
  0%   { transform: translateX(-100%); }
  6.25% { transform: translateX(0); }     /* fills over 4s of 16s = 25% */
  25%  { transform: translateX(0); }
  100% { transform: translateX(0); }       /* stays full */
}

/* Stage stack */
.pipeline-stage-wrap {
  position: relative;
  height: 280px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.06);
}
.stage {
  position: absolute; inset: 0;
  padding: 1rem;
  opacity: 0;
  animation: stage-cycle 16s ease-in-out infinite;
}
.stage:nth-child(1) { animation-delay: 0s; }
.stage:nth-child(2) { animation-delay: 4s; }
.stage:nth-child(3) { animation-delay: 8s; }
.stage:nth-child(4) { animation-delay: 12s; }
@keyframes stage-cycle {
  0%, 25%   { opacity: 1; transform: scale(1); }
  28%, 100% { opacity: 0; transform: scale(.97); }
}

/* Stage 1: Idea (sketch / sticky notes) */
.stage-idea {
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,.04) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.04) 23px 24px),
    #0a1530;
}
.stage-idea .sketch-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: .8rem;
  letter-spacing: -0.02em;
}
.stage-idea .notes {
  display: grid; grid-template-columns: 1fr 1fr; gap: .55rem;
}
.stage-idea .note {
  padding: .55rem .65rem;
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: .72rem;
  line-height: 1.35;
  transform: rotate(-1.5deg);
  box-shadow: 0 4px 8px rgba(0,0,0,.3);
}
.stage-idea .note:nth-child(2) { transform: rotate(2deg); }
.stage-idea .note:nth-child(3) { transform: rotate(1deg); }
.stage-idea .note:nth-child(4) { transform: rotate(-2deg); }
.stage-idea .note.y { background: #ffd87a; color: #4a3700; }
.stage-idea .note.p { background: #ff9aa8; color: #5a0e1a; }
.stage-idea .note.b { background: #9bcfff; color: #0a2a52; }
.stage-idea .note.g { background: #b6e8c4; color: #073a1f; }
.stage-idea .arrows {
  position: absolute; bottom: 12px; right: 14px;
  font-family: var(--f-mono); font-size: .65rem;
  color: rgba(255,255,255,.45);
}

/* Stage 2: Design (wireframe) */
.stage-design {
  background:
    radial-gradient(circle at 90% 10%, rgba(124,92,255,.18), transparent 50%),
    #0a1530;
  display: grid; gap: .5rem;
  grid-template-columns: 1fr 1fr 1fr; grid-auto-rows: min-content;
  align-content: start;
}
.wf {
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: 6px;
  height: 14px;
}
.wf.tall { height: 60px; grid-column: span 2; }
.wf.box  { height: 80px; }
.wf.btn  {
  height: 22px; width: 70px;
  background: rgba(76,227,216,.18);
  border: 1px dashed rgba(76,227,216,.4);
  border-radius: var(--r-pill);
}
.wf.full { grid-column: 1 / -1; }
.wf.t1 { width: 60%; }
.wf.t2 { width: 80%; }

/* Stage 3: Mockup (full-colour design) */
.stage-mockup {
  background:
    radial-gradient(circle at 0% 100%, rgba(10,161,154,.25), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(255,122,89,.2), transparent 50%),
    #0a1530;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .55rem;
}
.mu-bar { display: flex; align-items: center; gap: .4rem; font-family: var(--f-mono); font-size: .65rem; color: rgba(255,255,255,.5); }
.mu-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }
.mu-bar .dot.r { background: #ff7a59; } .mu-bar .dot.y { background: #ffc36e; } .mu-bar .dot.g { background: #4ce3a8; }
.mu-bar .url { margin-left: auto; padding: .15rem .5rem; background: rgba(255,255,255,.06); border-radius: 4px; }
.mu-hero {
  background: linear-gradient(135deg, rgba(124,92,255,.4), rgba(10,161,154,.4));
  border-radius: 8px;
  padding: .75rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.mu-h {
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.mu-row { display: flex; gap: .4rem; }
.mu-pill {
  padding: .2rem .55rem;
  border-radius: var(--r-pill);
  font-size: .62rem;
  font-family: var(--f-mono);
  background: rgba(255,255,255,.18);
  color: white;
}
.mu-pill.coral { background: var(--grad-coral); color: var(--c-deep); font-weight: 600; }
.mu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.mu-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  height: 38px;
  position: relative;
  overflow: hidden;
}
.mu-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.3));
}

/* Stage 4: Live (functional app + global reach) */
.stage-live {
  background:
    radial-gradient(circle at 50% 50%, rgba(76,227,216,.15), transparent 60%),
    #0a1530;
  display: grid; gap: .5rem;
  grid-template-rows: auto auto 1fr;
}
.live-bar {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--f-mono); font-size: .65rem;
  color: rgba(255,255,255,.6);
}
.live-bar .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #4ce3a8;
  box-shadow: 0 0 0 4px rgba(76,227,168,.18);
  animation: blink 1.6s ease-in-out infinite;
}
.live-bar .url { margin-left: auto; padding: .15rem .5rem; background: rgba(76,227,168,.1); color: var(--c-aqua); border-radius: 4px; }

.live-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
}
.live-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: .5rem .65rem;
}
.live-stat .v {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1;
}
.live-stat .l {
  font-family: var(--f-mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: .25rem;
}

.live-globe {
  position: relative;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(76,227,216,.18) 0%, transparent 60%),
    rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
.live-globe::before {
  /* concentric rings */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 28%, rgba(76,227,216,.18) 28.5%, transparent 29%),
    radial-gradient(circle at 50% 50%, transparent 42%, rgba(76,227,216,.12) 42.5%, transparent 43%),
    radial-gradient(circle at 50% 50%, transparent 56%, rgba(76,227,216,.08) 56.5%, transparent 57%);
}
.live-globe .ping {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-aqua);
  box-shadow: 0 0 0 0 rgba(76,227,216,.6);
  animation: ping 2.4s ease-out infinite;
}
.live-globe .ping.p1 { top: 30%; left: 22%; animation-delay: .2s; }
.live-globe .ping.p2 { top: 55%; left: 70%; animation-delay: .9s; background: var(--c-coral); box-shadow: 0 0 0 0 rgba(255,122,89,.6); }
.live-globe .ping.p3 { top: 38%; left: 55%; animation-delay: 1.5s; background: var(--c-amber); box-shadow: 0 0 0 0 rgba(255,195,110,.6); }
.live-globe .ping.p4 { top: 62%; left: 35%; animation-delay: 2.1s; }
@keyframes ping {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 currentColor; }
  100% { transform: scale(1); box-shadow: 0 0 0 18px transparent; }
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes pan-grid {
  from { background-position: 0 0; }
  to { background-position: 100% 100%; }
}

@keyframes bounce {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

.live-globe .label {
  position: absolute; left: 12px; top: 10px;
  font-family: var(--f-mono); font-size: .62rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.live-globe .reach {
  position: absolute; right: 12px; bottom: 10px;
  font-family: var(--f-display); font-style: italic;
  color: white; font-size: .95rem;
}

@media (prefers-reduced-motion: reduce) {
  .stage, .pipeline-stages .seg::after, .live-globe .ping { animation: none !important; }
  .stage:nth-child(4) { opacity: 1; }
}

/* ============================================================
   Industries grid — service businesses we digitise
   ============================================================ */
.industries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.industry {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  overflow: hidden;
}
.industry:hover {
  transform: translateY(-3px);
  border-color: var(--c-ink);
  box-shadow: var(--shadow-2);
}
.industry::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--grad-orb);
  opacity: 0;
  filter: blur(8px);
  transition: opacity var(--t-base);
}
.industry:hover::before { opacity: .15; }
.industry .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  background: rgba(10,161,154,.08);
  border: 1px solid rgba(10,161,154,.2);
  border-radius: 12px;
  color: var(--c-aqua);
  box-shadow: 0 4px 12px rgba(10,161,154,.15);
  transition: all var(--t-base);
}
.industry:hover .icon-wrap {
  background: var(--c-aqua);
  color: var(--c-deep);
  box-shadow: 0 8px 24px rgba(10,161,154,.3);
  transform: translateY(-2px);
}
.industry .icon-wrap svg {
  width: 24px;
  height: 24px;
}
.industry h3 {
  font-size: 1.15rem;
  margin: 0 0 .3rem;
  letter-spacing: -0.015em;
}
.industry .sub {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--c-mute);
  margin-bottom: .85rem;
  display: block;
}
.industry p {
  margin: 0;
  font-size: .92rem;
  color: var(--c-ink-3);
  line-height: 1.5;
}
.industry .out {
  list-style: none;
  padding: 1rem 0 0;
  margin: 1rem 0 0;
  border-top: 1px solid var(--c-line);
  display: grid; gap: .35rem;
}
.industry .out li {
  font-size: .82rem;
  color: var(--c-ink-2);
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: .4rem;
  align-items: start;
}
.industry .out li::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-teal), var(--c-aqua));
  margin-top: .3rem;
}

  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  font-size: .8rem;
  color: var(--c-ink-2);
}
.chip-dark {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento-cell.size-3 { grid-column: span 2; }
  .bento-cell.size-4 { grid-column: span 4; }
  .regions { grid-template-columns: repeat(3, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { transform: none; max-width: 480px; }
  .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust .cell:nth-child(2) { border-right: 0; }
  .trust .cell:nth-child(1), .trust .cell:nth-child(2) { border-bottom: 1px solid var(--c-line); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-logo {
    width: 156px;
  }
  .footer .brand-logo {
    width: min(204px, 100%);
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem var(--pad);
    gap: 1rem;
    border-top: 1px solid var(--c-line);
    box-shadow: var(--shadow-2);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .bento { grid-template-columns: 1fr; }
  .bento-cell.size-3, .bento-cell.size-4 { grid-column: span 1; }
  .regions { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust .cell { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .trust .cell:last-child { border-bottom: 0; }
}

/* ============================================================
   Live Demo Mockups — Device frames + animated UIs
   ============================================================ */

/* --- Grid layout --- */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: 3rem;
}

.demo-device { text-align: center; }
.demo-label { margin-top: 1.5rem; text-align: left; }
.demo-label h3 { font-size: 1.15rem; margin: .4rem 0 .3rem; }
.demo-label p { font-size: .88rem; color: var(--c-ink-3); margin: 0; }
.demo-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-teal);
  background: rgba(10,161,154,.08);
  padding: .2rem .6rem;
  border-radius: 100px;
}

/* --- Phone Frame --- */
.phone-frame {
  width: 280px;
  margin: 0 auto;
  border-radius: 36px;
  background: #0d1b3d;
  padding: 0;
  box-shadow: 0 25px 60px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
  position: relative;
}
.phone-notch {
  width: 120px;
  height: 28px;
  background: #0d1b3d;
  border-radius: 0 0 18px 18px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  font-size: .65rem;
  color: white;
  margin-top: -20px;
  position: relative;
  z-index: 5;
}

/* --- Desktop Frame --- */
.desktop-frame {
  border-radius: 12px;
  background: #0f172a;
  box-shadow: 0 25px 60px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
}
.desktop-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.chrome-dots { display: flex; gap: 6px; }
.chrome-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28c840; }
.chrome-url {
  flex: 1;
  text-align: center;
  font-size: .7rem;
  color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.05);
  padding: 4px 12px;
  border-radius: 6px;
  font-family: var(--f-mono);
}

/* === CHATBOT APP === */
.chat-app {
  display: flex;
  flex-direction: column;
  height: 480px;
  background: linear-gradient(180deg, #0d1b3d, #0a1635);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.chat-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--c-teal), var(--c-violet));
  border-radius: 50%;
  display: grid; place-items: center;
}
.chat-avatar svg { width: 20px; height: 20px; }
.chat-name { color: white; font-weight: 600; font-size: .85rem; }
.chat-status { font-size: .68rem; color: rgba(255,255,255,.5); display: flex; align-items: center; gap: 5px; }
.chat-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ce3a8;
  box-shadow: 0 0 0 3px rgba(76,227,168,.2);
  animation: pulse 2s infinite;
}
.chat-messages {
  flex: 1;
  overflow: hidden;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .78rem;
  line-height: 1.45;
}
.chat-bubble.bot {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px 16px 16px 4px;
}
.chat-bubble.user {
  background: linear-gradient(135deg, var(--c-teal), rgba(76,227,216,.7));
  color: white;
  border-radius: 16px 16px 4px 16px;
}
.chat-card {
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}
.chat-card-img {
  height: 60px;
  background: linear-gradient(135deg, rgba(76,227,216,.15), rgba(124,92,255,.15));
}
.chat-card-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .72rem;
}
.chat-card-body strong { color: white; }
.chat-card-body span { color: rgba(255,255,255,.5); }
.chat-price {
  color: var(--c-aqua) !important;
  font-weight: 700;
}
.chat-confirm {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: .72rem;
  color: rgba(255,255,255,.6);
}
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.chat-input {
  flex: 1;
  padding: 8px 14px;
  background: rgba(255,255,255,.06);
  border-radius: 20px;
  color: rgba(255,255,255,.3);
  font-size: .78rem;
}
.chat-send {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--c-teal), var(--c-violet));
  border-radius: 50%;
  display: grid; place-items: center;
}
.chat-send svg { width: 14px; height: 14px; }

/* Chat message animation - appear one by one */
.chat-animate-1 { opacity: 0; animation: chatFadeIn .5s ease forwards .6s; }
.chat-animate-2 { opacity: 0; animation: chatFadeIn .5s ease forwards 2s; }
.chat-animate-3 { opacity: 0; animation: chatFadeIn .5s ease forwards 3.5s; }
.chat-animate-4 { opacity: 0; animation: chatFadeIn .5s ease forwards 5.5s; }
.chat-animate-5 { opacity: 0; animation: chatFadeIn .5s ease forwards 7s; }
.chat-animate-6 { opacity: 0; animation: chatFadeIn .4s ease forwards 9s, chatFadeOut .4s ease forwards 10s; }

@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes chatFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Typing dots */
.typing-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  animation: typingBounce .8s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* === DASHBOARD APP === */
.dashboard-app {
  display: flex;
  height: 340px;
}
.dash-sidebar {
  width: 50px;
  background: rgba(255,255,255,.03);
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 6px;
}
.dash-logo {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--c-teal), var(--c-violet));
  border-radius: 8px;
  display: grid; place-items: center;
  color: white;
  font-weight: 800;
  font-size: .7rem;
  margin-bottom: 8px;
}
.dash-nav-item {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: rgba(255,255,255,.3);
  transition: all .2s;
}
.dash-nav-item.active {
  background: rgba(76,227,216,.1);
  color: var(--c-aqua);
}
.dash-nav-item svg { width: 16px; height: 16px; }

.dash-main {
  flex: 1;
  padding: 14px 16px;
  overflow: hidden;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.dash-header h4 { color: white; font-size: .9rem; margin: 0; }
.dash-period { font-size: .68rem; color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); padding: 3px 8px; border-radius: 6px; }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.dash-stat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-stat-label { font-size: .6rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .05em; }
.dash-stat-value { font-size: 1.1rem; color: white; font-weight: 700; }
.dash-stat-change { font-size: .62rem; }
.dash-stat-change.up { color: #4ce3a8; }

/* Animated chart bars */
.dash-chart { margin-bottom: 12px; }
.chart-title { font-size: .68rem; color: rgba(255,255,255,.4); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
}
.chart-bar-wrap { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.chart-bar {
  width: 100%;
  height: var(--h);
  background: linear-gradient(to top, var(--c-teal), var(--c-aqua));
  border-radius: 4px 4px 0 0;
  position: relative;
  animation: chartGrow 1.5s ease forwards;
  transform-origin: bottom;
  transform: scaleY(0);
}
.chart-bar span {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .55rem;
  color: rgba(255,255,255,.3);
}

@keyframes chartGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* Recent bookings rows */
.dash-recent { }
.dash-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: .68rem;
}
.dash-customer { color: white; font-weight: 600; flex: 1; }
.dash-tour { color: rgba(255,255,255,.4); flex: 1; }
.dash-amount { color: var(--c-aqua); font-weight: 600; font-family: var(--f-mono); }
.dash-status {
  font-size: .58rem;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}
.dash-status.confirmed { background: rgba(76,227,168,.12); color: #4ce3a8; }
.dash-status.pending { background: rgba(255,195,110,.12); color: var(--c-amber); }

/* === BOOKING APP === */
.booking-app {
  display: flex;
  flex-direction: column;
  height: 480px;
  background: #0a1635;
  overflow: hidden;
}
.booking-hero-img {
  height: 140px;
  background: linear-gradient(135deg, rgba(10,161,154,.3) 0%, rgba(76,227,216,.2) 50%, rgba(124,92,255,.2) 100%);
  position: relative;
}
.booking-hero-img::after {
  content: "🐠🪸🐚";
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
  animation: floatEmoji 4s ease-in-out infinite;
}
@keyframes floatEmoji {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.booking-content {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.booking-badge {
  display: inline-block;
  width: fit-content;
  font-size: .65rem;
  font-weight: 700;
  background: rgba(255,195,110,.12);
  color: var(--c-amber);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 6px;
}
.booking-title { color: white; font-size: 1rem; margin: 0 0 6px; }
.booking-meta {
  display: flex;
  gap: 12px;
  font-size: .7rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 6px;
}
.booking-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.stars { color: var(--c-amber); font-size: .8rem; }
.rating-count { font-size: .68rem; color: rgba(255,255,255,.4); }
.booking-desc {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  line-height: 1.4;
  margin-bottom: 10px;
}
.booking-picker {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
.picker-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: .72rem;
}
.picker-row + .picker-row { border-top: 1px solid rgba(255,255,255,.06); }
.picker-label { color: rgba(255,255,255,.4); }
.picker-value { color: white; font-weight: 600; }
.booking-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.booking-price { color: white; font-size: 1.2rem; font-weight: 800; }
.booking-per { color: rgba(255,255,255,.4); font-size: .72rem; }
.booking-total { color: var(--c-aqua); font-weight: 700; font-size: .85rem; }
.booking-cta {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--c-teal), var(--c-aqua));
  color: white;
  font-weight: 700;
  font-size: .82rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.booking-cta::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}
.booking-trust {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  font-size: .65rem;
  color: rgba(255,255,255,.35);
}

/* Responsive demo grid */
@media (max-width: 1024px) {
  .demo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .demo-device.demo-desktop { grid-column: span 2; }
}
@media (max-width: 640px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .demo-device.demo-desktop { grid-column: span 1; }
  .phone-frame { width: 260px; }
  .dashboard-app { height: 280px; }
}

/* ============================================================
   Bento Card — Mini Live Graphics
   ============================================================ */

/* --- Mini Browser (Web Platforms card) --- */
.mini-browser {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 150px;
  border-radius: 8px;
  background: rgba(5,11,31,.85);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  z-index: 0;
}
.mini-chrome {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mc-dot { width: 5px; height: 5px; border-radius: 50%; }
.mc-dot.r { background: #ff5f57; }
.mc-dot.y { background: #ffbd2e; }
.mc-dot.g { background: #28c840; }
.mc-url {
  margin-left: auto;
  font-size: .48rem;
  color: rgba(255,255,255,.3);
  font-family: var(--f-mono);
}
.mini-page { padding: 6px; }
.mini-nav {
  height: 4px;
  width: 60%;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  margin-bottom: 5px;
}
.mini-hero-block {
  height: 28px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(10,161,154,.25), rgba(124,92,255,.15));
  margin-bottom: 5px;
  animation: miniHeroPulse 3s ease-in-out infinite;
}
@keyframes miniHeroPulse {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}
.mini-cards-row {
  display: flex;
  gap: 3px;
  margin-bottom: 5px;
}
.mini-card-sm {
  flex: 1;
  height: 18px;
  border-radius: 3px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.04);
}
.mini-code-line {
  height: 3px;
  border-radius: 2px;
  margin-bottom: 3px;
  background: rgba(76,227,216,.15);
  animation: codeType 2.5s ease-in-out infinite;
}
.mini-code-line.l1 { width: 80%; animation-delay: 0s; }
.mini-code-line.l2 { width: 55%; animation-delay: .4s; }
.mini-code-line.l3 { width: 70%; animation-delay: .8s; }
@keyframes codeType {
  0%   { width: 0; opacity: 0; }
  30%  { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: .4; }
}

/* --- Mini Phone (Mobile Apps card) --- */
.mini-phone {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 80px;
  height: 140px;
  border-radius: 14px;
  background: rgba(5,11,31,.85);
  border: 2px solid rgba(255,255,255,.1);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  z-index: 0;
}
.mini-phone-screen { padding: 6px 5px; }
.mini-phone-header {
  height: 4px;
  width: 50%;
  margin: 0 auto 5px;
  background: rgba(255,255,255,.12);
  border-radius: 2px;
}
.mini-phone-img {
  height: 35px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(76,227,216,.2), rgba(255,122,89,.15));
  margin-bottom: 5px;
}
.mini-phone-row {
  display: flex;
  gap: 3px;
  margin-bottom: 5px;
}
.mini-ph-btn {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: rgba(10,161,154,.3);
}
.mini-ph-btn.alt { background: rgba(255,255,255,.06); }
.mini-phone-list { display: flex; flex-direction: column; gap: 3px; }
.mini-ph-item {
  height: 8px;
  border-radius: 3px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.04);
}
.mini-phone-swipe {
  position: absolute;
  top: 30px;
  left: -5px;
  width: 90px;
  height: 40px;
  background: linear-gradient(90deg, transparent, rgba(76,227,216,.08), transparent);
  border-radius: 50%;
  animation: swipeRight 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes swipeRight {
  0%   { transform: translateX(-40px); opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateX(50px); opacity: 0; }
}

/* --- Brand Palette (Branding card) --- */
.brand-palette {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 0;
}
.bp-swatch {
  width: 40px;
  height: 10px;
  border-radius: 5px;
  animation: swatchPulse 4s ease-in-out infinite;
}
.bp-swatch.s1 { background: var(--c-teal); animation-delay: 0s; }
.bp-swatch.s2 { background: var(--c-violet); animation-delay: .3s; width: 32px; }
.bp-swatch.s3 { background: var(--c-coral); animation-delay: .6s; width: 36px; }
.bp-swatch.s4 { background: var(--c-amber); animation-delay: .9s; width: 28px; }
.bp-gradient {
  width: 40px;
  height: 24px;
  border-radius: 6px;
  margin-top: 2px;
  background: linear-gradient(135deg, var(--c-teal), var(--c-violet), var(--c-coral));
  background-size: 200% 200%;
  animation: gradShift 5s ease-in-out infinite;
}
@keyframes swatchPulse {
  0%, 100% { opacity: .5; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.15); }
}
@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Mini Gantt (Delivery & Strategy card) --- */
.mini-gantt {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 2rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  opacity: .18;
}
.gantt-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gantt-label {
  width: 56px;
  font-size: .55rem;
  color: var(--c-ink-3);
  text-align: right;
  flex-shrink: 0;
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.gantt-bar {
  height: 8px;
  border-radius: 4px;
  transform-origin: left;
  animation: ganttGrow 6s ease-in-out infinite;
}
.gb1 { width: 25%; background: var(--c-teal); animation-delay: 0s; }
.gb2 { width: 40%; background: var(--c-violet); animation-delay: .6s; }
.gb3 { width: 55%; background: var(--c-aqua); animation-delay: 1.2s; }
.gb4 { width: 30%; background: var(--c-coral); animation-delay: 1.8s; }
.gb5 { width: 20%; background: var(--c-amber); animation-delay: 2.4s; }
@keyframes ganttGrow {
  0%   { transform: scaleX(0); opacity: 0; }
  15%  { transform: scaleX(1); opacity: 1; }
  85%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; }
}
.gantt-cursor {
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: var(--c-coral);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(255,122,89,.4);
  animation: cursorSweep 6s ease-in-out infinite;
}
@keyframes cursorSweep {
  0%   { left: 65px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 90%; opacity: 0; }
}

/* ---------- Admin ---------- */
.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(92,209,214,.12), transparent 28%),
    radial-gradient(circle at top right, rgba(255,111,89,.08), transparent 24%),
    linear-gradient(180deg, #04101e 0%, #08192c 35%, #08162a 100%);
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: rgba(4,16,30,.82);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: white;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .01em;
}
.admin-brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--c-aqua), var(--c-coral));
  box-shadow: 0 0 0 8px rgba(92,209,214,.08);
}
.admin-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.admin-nav a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: .92rem;
  padding: .65rem .9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.admin-nav a:hover,
.admin-nav a.active {
  color: white;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
}
.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-user {
  color: rgba(255,255,255,.72);
  font-size: .9rem;
}
.admin-page {
  padding: 2rem 0 4rem;
}
.admin-login-section {
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
  padding: 2rem 0 4rem;
}
.admin-login-card,
.admin-panel {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.admin-login-card {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.1);
}
.admin-login-card p {
  color: rgba(255,255,255,.74);
  max-width: 50ch;
}
.admin-login-card h1,
.admin-panel h1,
.admin-panel h2,
.admin-panel h3,
.admin-page-head h1,
.admin-page-head h2,
.admin-page-head h3 {
  color: white;
}
.admin-login-card .field label {
  color: rgba(255,255,255,.82);
}
.admin-page-head .kicker,
.admin-panel .kicker {
  color: var(--c-aqua);
}
.admin-panel {
  padding: 1.25rem;
}
.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.admin-page-head p,
.admin-panel p,
.admin-list-meta,
.admin-detail-value {
  color: rgba(255,255,255,.74);
}
.admin-page-head h1,
.admin-panel h2,
.admin-panel h3 {
  margin-bottom: .35rem;
}
.admin-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.admin-kpi-grid,
.admin-grid,
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  display: grid;
  gap: 1rem;
}
.admin-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}
.admin-grid {
  grid-template-columns: 1.3fr .9fr;
  align-items: start;
}
.admin-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-kpi-value {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1;
  color: white;
  font-weight: 700;
}
.admin-kpi-label {
  font-size: .78rem;
  color: rgba(255,255,255,.54);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .6rem;
}
.admin-kpi-note,
.admin-empty {
  color: rgba(255,255,255,.68);
  font-size: .92rem;
}
.admin-list {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}
.admin-list-item {
  display: grid;
  gap: .15rem;
  padding: .95rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  color: inherit;
  text-decoration: none;
}
.admin-list-item:hover { color: inherit; }
.admin-list-item strong,
.admin-detail-value strong {
  color: white;
}
.admin-list-meta {
  font-size: .84rem;
}
.admin-login-card .field input,
.admin-login-card .field select,
.admin-login-card .field textarea {
  background: rgba(255,255,255,.96);
}
.admin-json-input {
  min-height: 34rem;
  font-family: var(--f-mono);
  line-height: 1.6;
  white-space: pre;
  background: rgba(255,255,255,.96);
}
.admin-chip {
  display: inline-flex;
  align-items: center;
  padding: .28rem .55rem;
  border-radius: 999px;
  background: rgba(92,209,214,.12);
  border: 1px solid rgba(92,209,214,.18);
  color: var(--c-aqua);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.admin-table-wrap {
  overflow-x: auto;
  border-radius: 22px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}
.admin-table th,
.admin-table td {
  padding: .95rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: top;
}
.admin-table th {
  color: rgba(255,255,255,.56);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.admin-table td {
  color: rgba(255,255,255,.88);
  font-size: .94rem;
}
.admin-table td small {
  display: block;
  margin-top: .25rem;
  color: var(--c-ink-3);
}
.admin-table a {
  color: var(--c-aqua);
  text-decoration: none;
}
.admin-table a:hover {
  color: white;
}
.admin-detail-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 1rem;
}
.admin-detail-label {
  display: block;
  margin-bottom: .4rem;
  color: rgba(255,255,255,.48);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.admin-detail-value {
  word-break: break-word;
}
.admin-message {
  white-space: pre-wrap;
  color: rgba(255,255,255,.9);
  line-height: 1.75;
}
.admin-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.admin-cms-section,
.admin-cms-group {
  display: grid;
  gap: 1rem;
}
.admin-cms-section-head {
  display: grid;
  gap: .2rem;
}
.admin-cms-section-head h2,
.admin-cms-section-head h3 {
  margin: 0;
}
.admin-cms-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-cms-group,
.admin-cms-list,
.admin-cms-field-full {
  grid-column: 1 / -1;
}
.admin-cms-group {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.admin-cms-list {
  display: grid;
  gap: .75rem;
}
.admin-cms-list-item {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.admin-cms-list-title {
  color: white;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .85rem;
}
.admin-cms-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
}
.admin-cms-list-actions {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}
.admin-cms-list-actions .btn {
  padding: .35rem .55rem;
  min-height: 34px;
}
.admin-cms-note {
  margin-top: .35rem;
  color: rgba(255,255,255,.56);
  font-size: .8rem;
}
.admin-json-details {
  display: grid;
  gap: .9rem;
}
.admin-json-details summary {
  cursor: pointer;
  color: white;
  font-weight: 600;
}
.admin-json-details summary::marker {
  color: var(--c-aqua);
}
.admin-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.admin-inline-form {
  margin: 0;
}

@media (max-width: 900px) {
  .admin-topbar-inner,
  .admin-page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-kpi-grid,
  .admin-grid,
  .admin-detail-grid,
  .admin-cms-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Billing pages ---------- */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card--soft {
  border-radius: 18px;
  border: 1px solid var(--c-line-2);
  background: var(--c-surface);
  box-shadow: var(--shadow-1);
}

.card--inner {
  border-radius: 14px;
  border: 1px dashed var(--c-line-2);
  background: var(--c-bg-2);
}

.card__body {
  padding: 1.25rem;
}

.table-wrap {
  overflow-x: auto;
}

.quote-public-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.quote-public-table th,
.quote-public-table td {
  border-bottom: 1px solid var(--c-line);
  padding: 0.7rem 0.5rem;
  text-align: left;
}

.quote-public-table th {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-ink-3);
}

.mb-16 {
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
