/* ============================================================
   Koraii — Landing page styles
   "Marine Solar" — deep-sea blue with solar-amber accents
   ============================================================ */

:root {
  /* Brand palette — Deep Sea blue + Solar Amber */
  --navy:        #004ac6;   /* primary — deep sea */
  --navy-deep:   #00308a;   /* deeper sea */
  --blue:        #2563eb;   /* primary container — bright blue */
  --azure:       #3b82f6;   /* azure accent */
  --azure-light: #93b4ff;   /* light accent (on dark) */
  --ice:         #e7eeff;   /* cool blue tint */
  --ice-soft:    #f4f7fe;   /* page surface */

  /* Solar accent — used sparingly for warmth/glows */
  --amber:       #fea619;
  --amber-deep:  #c77b06;

  --ink:        #161a22;    /* near-black text */
  --ink-soft:   #444b5a;    /* secondary text */
  --muted:      #626a88;    /* muted labels — AA-safe (~5:1 on surfaces) */
  --white:      #ffffff;
  --line:       #dde4f3;    /* soft blue-gray border */

  /* Semantic / signal */
  --success:    #0a7d4e;    /* positive — AA on white (5.2:1) */
  --danger:     #c0392b;    /* error — AA on white (5.4:1) */
  --live:       #10b981;    /* decorative "live" pulse dot (non-text) */

  --grad:      linear-gradient(120deg, #003ea8 0%, #2563eb 60%, #3b82f6 100%);
  --grad-cta:  linear-gradient(120deg, #003ea8 0%, #2563eb 55%, #3169e3 100%); /* button fill — keeps white text ≥4.5:1 across the whole gradient */
  --grad-soft: linear-gradient(125deg, #001f57 0%, #003ea8 55%, #1645a8 100%); /* darker end so light copy on the Why panel clears AA */

  --shadow-sm: 0 2px 8px rgba(0, 58, 168, .07);
  --shadow-md: 0 14px 40px rgba(0, 58, 168, .13);
  --shadow-lg: 0 30px 70px rgba(0, 58, 168, .18);

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --maxw: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-brand: "Albert Sans", system-ui, sans-serif; /* Albert Sans — Koraii wordmark (header/footer/wheel), nav, CTA buttons + section headlines */
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ice-soft);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--blue); color: var(--white); }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -.02em; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }

.section { padding-block: clamp(72px, 10vw, 130px); scroll-margin-top: 78px; }

/* Small technical "mono" label — used for eyebrows, kickers, chips */
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; }

/* ---------------- Buttons ---------------- */
.btn {
  --btn-pad: 15px 28px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-brand); font-weight: 600; font-size: 1rem;
  padding: var(--btn-pad); border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-sm { --btn-pad: 11px 20px; font-size: .94rem; }

.btn-primary {
  position: relative; overflow: hidden;
  background: var(--grad-cta); color: var(--white);
  box-shadow: 0 10px 26px rgba(0, 74, 198, .34);
}
/* hover lifts + a warm "sun-kissed" inner glow */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 74, 198, .42), inset 0 0 26px rgba(254, 166, 25, .42);
}
/* a light streak sweeps across the pill once per hover */
.btn-primary::after {
  content: ""; position: absolute; top: -2px; bottom: -2px; left: -45%; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.btn-primary:hover::after { animation: shine .7s var(--ease); }
@keyframes shine { to { transform: skewX(-18deg) translateX(440%); } }

.btn-ghost { background: rgba(255,255,255,.6); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); border-color: var(--azure); transform: translateY(-2px); }

.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------------- Brand mark ---------------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-name { font-family: var(--font-brand); font-weight: 800; font-size: 1.42rem; color: var(--navy); letter-spacing: -.02em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); display: grid; place-items: center; flex: none;
  box-shadow: 0 6px 16px rgba(0, 74, 198, .30);
}
.brand-mark-inner {
  width: 15px; height: 15px; border-radius: 5px; background: var(--white);
  transition: border-radius .4s var(--ease), transform .4s var(--ease);
}
/* playful micro-moment: the mark's square softens into a coral "drop" on hover */
.brand:hover .brand-mark-inner { border-radius: 50%; transform: rotate(180deg) scale(1.08); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 247, 254, .72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--font-brand); font-weight: 500; color: var(--ink-soft); font-size: .98rem; position: relative; transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after { transform: scaleX(1); }
/* scrollspy: the section currently in view keeps its underline lit */
.nav a.is-active { color: var(--navy); }
.nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: 1.5px solid var(--line); border-radius: 100px;
  padding: 7px 14px; min-height: 44px; cursor: pointer; font-family: var(--font-mono); font-weight: 600; font-size: .8rem; letter-spacing: .03em;
  color: var(--muted); transition: border-color .2s;
}
.lang-toggle:hover { border-color: var(--azure); }
.lang-opt { transition: color .2s; }
.lang-opt.is-active { color: var(--navy); }
.lang-sep { color: var(--line); }

/* Mobile nav toggle */
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; min-width: 44px; min-height: 44px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO — Marine Solar coastal canvas
   ============================================================ */
.hero { position: relative; padding-block: clamp(64px, 9vw, 120px); overflow: hidden; }

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* soft solar (amber) + marine (blue) light sources */
.blob { position: absolute; border-radius: 50%; }
.blob-solar {
  width: 540px; height: 540px; top: -170px; right: -110px; opacity: .55; filter: blur(80px);
  background: radial-gradient(circle, rgba(254, 166, 25, .55), transparent 68%);
  animation: float1 16s ease-in-out infinite;
}
.blob-marine {
  width: 480px; height: 480px; bottom: -160px; left: -130px; opacity: .42; filter: blur(95px);
  background: radial-gradient(circle, rgba(0, 74, 198, .6), transparent 70%);
  animation: float2 20s ease-in-out infinite;
}

/* fine marine grid, fading toward the product visual */
.grid-glow {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(37,99,235,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.14) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  opacity: .6;
}

/* Coral & wave artwork blended into the hero: mix-blend multiply drops the
   white so only the coral/waves tint the canvas, and a soft radial mask keeps
   it anchored to the edges and clear of the headline copy. */
.coral-bg {
  position: absolute; z-index: 0; pointer-events: none;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
}
/* Brand-recoloured coral + wave artwork (deep-sea blue + amber) as a soft
   full-bleed texture. multiply drops its white; low opacity keeps it subtle,
   so filling the wide hero with a square image shows no visible crop. A gentle
   diagonal fade keeps the top-left headline area the cleanest. */
.coral-bg-right {
  inset: 0;
  /* 13 KB WebP for modern browsers, optimized PNG fallback for the rest */
  background-image: url("../Assets/coral-hero-brand-opt.png");
  background-image: -webkit-image-set(url("../Assets/coral-hero-brand.webp") type("image/webp"), url("../Assets/coral-hero-brand-opt.png") type("image/png"));
  background-image: image-set(url("../Assets/coral-hero-brand.webp") type("image/webp"), url("../Assets/coral-hero-brand-opt.png") type("image/png"));
  background-position: center;
  background-size: cover;
  opacity: .2;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(115deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.7) 30%, #000 60%);
          mask-image: linear-gradient(115deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.7) 30%, #000 60%);
}
.coral-bg-left { display: none; }

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 30px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, -20px); } }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 60px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-weight: 600; font-size: .76rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--navy);
  background: rgba(37,99,235,.09); padding: 7px 15px; border-radius: 100px; margin-bottom: 22px;
  border: 1px solid rgba(37,99,235,.12);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(254,166,25,.22); }
.hero-title { font-family: var(--font-brand); font-size: clamp(2.3rem, 5.2vw, 3.8rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.hero-title .grad { color: var(--navy); }
.hero-sub { margin-top: 22px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 36ch; text-wrap: pretty; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Honest friction-reducers under the CTA — reassurance the hero copy lacked */
.hero-assure { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 24px; }
.hero-assure .assure-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .03em; color: var(--muted);
}
.hero-assure .assure-item::before {
  content: ""; flex: none; width: 15px; height: 15px; border-radius: 50%;
  background: rgba(37,99,235,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%23004ac6' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
}

/* ---- Load choreography — one signature entrance, pure CSS so it always fires ---- */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(24px); filter: blur(7px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.hero-copy > * { animation: heroRise .8s var(--ease) both; }
.hero-copy .eyebrow { animation-delay: .05s; }
/* the two headline lines land one after the other */
.hero-copy .hero-title { animation: none; }
.hero-title span { display: block; animation: heroRise .8s var(--ease) both; }
.hero-title span:first-child { animation-delay: .15s; }
.hero-title .grad { animation-delay: .27s; }
.hero-copy .hero-sub { animation-delay: .39s; }
.hero-copy .hero-cta { animation-delay: .51s; }
.hero-copy .hero-assure { animation-delay: .63s; }

/* ---- Animated product visual ---- */
.hero-visual { position: relative; min-height: 470px; }

@keyframes deviceIn {
  from { opacity: 0; transform: translateY(34px) scale(.96); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.device {
  position: absolute;
  /* opaque fill (was a translucent backdrop-filter card) so the perpetual
     rise animation doesn't re-sample the backdrop every frame */
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-lg);
  border-top: 1px solid rgba(255,255,255,.7);
  border-left: 1px solid rgba(255,255,255,.7);
  border-right: 1px solid rgba(0,74,198,.07);
  border-bottom: 1px solid rgba(0,74,198,.07);
}

/* avatars share a circular, bordered look everywhere in the visual */
.hero-visual img { border-radius: 50%; object-fit: cover; background: var(--ice); display: block; }

/* --- Analytics dashboard --- */
.device-dashboard {
  width: 86%; border-radius: var(--radius); top: 4%; left: 0; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 15px;
  /* entrance first; the perpetual rise starts once it has settled */
  animation: deviceIn .9s var(--ease) .35s both, rise 7s ease-in-out infinite 1.5s;
}
.dash-top { display: flex; align-items: center; gap: 12px; }
.dash-heading { display: flex; flex-direction: column; line-height: 1.25; margin-right: auto; }
.dash-title { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--ink); letter-spacing: -.01em; }
.dash-sub { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); letter-spacing: .02em; }
.dash-live {
  display: inline-flex; align-items: center; gap: 6px; font-size: .66rem; font-weight: 600;
  color: var(--blue); background: rgba(37,99,235,.1); padding: 4px 9px; border-radius: 100px;
  font-family: var(--font-mono); letter-spacing: .03em;
}
.dash-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: pulse 1.8s infinite; }
.dash-avatar { width: 34px; height: 34px; border: 2px solid var(--white); box-shadow: var(--shadow-sm); }

.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: rgba(244,247,254,.7); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; display: flex; flex-direction: column; gap: 2px; }
.kpi-label { font-family: var(--font-mono); font-size: .64rem; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.kpi-value { font-family: var(--font-head); font-weight: 800; font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-trend { font-size: .68rem; font-weight: 600; }
.kpi-trend.up { color: var(--success); }

.dash-chart { height: 84px; }
.dash-chart svg { width: 100%; height: 100%; display: block; }
.dash-chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.dash-chart .dot { fill: var(--white); stroke: var(--azure); stroke-width: 3; }
.dash-chart .line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s var(--ease) forwards .9s; }
.dash-chart .area { opacity: 0; animation: fadeIn 1.4s ease forwards 2s; }

.ava-stack { display: flex; align-items: center; }
.ava-stack img { width: 30px; height: 30px; border: 2px solid var(--white); margin-left: -9px; }
.ava-stack img:first-child { margin-left: 0; }

/* --- Mobile app screen --- */
.device-phone {
  width: 31%; border-radius: 26px; right: 0; bottom: 0; padding: 12px 12px 16px;
  animation: deviceIn .9s var(--ease) .55s both, rise 7s ease-in-out infinite 2.4s;
}
.phone-notch { display: block; width: 34%; height: 5px; background: var(--line); border-radius: 100px; margin: 2px auto 12px; }
.phone-screen { display: flex; flex-direction: column; gap: 11px; padding: 0 3px; }
.pscreen-head { display: flex; align-items: center; gap: 9px; }
.pscreen-head img { width: 40px; height: 40px; border: 2px solid var(--ice); }
.pscreen-id { display: flex; flex-direction: column; line-height: 1.2; }
.pscreen-id strong { font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--ink); }
.pscreen-id small { font-family: var(--font-mono); font-size: .64rem; color: var(--muted); }
.pscreen-stat { background: rgba(244,247,254,.7); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.pscreen-stat-label { font-family: var(--font-mono); font-size: .64rem; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.pscreen-stat-value { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--navy); margin: 1px 0 9px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 32px; }
.mini-bars span { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--grad); opacity: .85; }
.pscreen-row { display: flex; align-items: center; gap: 8px; }
.pscreen-row .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-blue { background: var(--navy); }
.dot-azure { background: var(--azure); }
.row-line { flex: 1; height: 8px; border-radius: 5px; background: var(--ice); }
.row-line.short { max-width: 60%; }
.row-tag { font-family: var(--font-mono); font-size: .58rem; font-weight: 600; color: var(--muted); background: var(--ice); padding: 2px 6px; border-radius: 6px; }
.row-tag.up { color: var(--success); background: rgba(16,185,129,.12); }

/* --- Floating social-proof card --- */
.device-note {
  display: flex; align-items: center; gap: 12px; left: -3%; bottom: 3%;
  border-radius: 100px; padding: 11px 18px 11px 13px; z-index: 3;
  animation: deviceIn .9s var(--ease) .75s both, rise 7s ease-in-out infinite 3.1s;
}
.device-note .ava-stack img { border-color: var(--white); }
.note-body { display: flex; flex-direction: column; line-height: 1.25; }
.note-body strong { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--ink); }
.note-body small { font-family: var(--font-mono); font-size: .66rem; color: var(--muted); }

@keyframes rise { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ============================================================
   TESTIMONIAL STRIP — real client proof (Eco Taxi 972)
   ============================================================ */
.strip { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: var(--white); }
/* faint echo of the hero's two light sources ties the band to the brand canvas */
.strip::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 88% 0%, rgba(254, 166, 25, .07), transparent 34%),
    radial-gradient(circle at 6% 100%, rgba(0, 74, 198, .06), transparent 40%);
}
.strip-inner { position: relative; padding-block: clamp(56px, 7vw, 88px); }

.testimonial-figure { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.testimonial-mark {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--grad); color: var(--white); box-shadow: 0 10px 24px rgba(0, 74, 198, .28);
  display: grid; place-items: center;
  font-family: var(--font-brand); font-weight: 800; font-size: 2.1rem; line-height: 1;
}
/* optical centering — the curly quote glyph sits high on its baseline */
.testimonial-mark { padding-top: .55em; }
.testimonial-quote { margin: 0; }
.testimonial-quote p {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.45; letter-spacing: -.01em; color: var(--navy); text-wrap: balance;
}
.testimonial-source { display: inline-flex; align-items: center; gap: 13px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--ice); color: var(--navy); border: 1.5px solid rgba(37, 99, 235, .25);
  font-family: var(--font-brand); font-weight: 800; font-size: .82rem; letter-spacing: .02em;
}
.testimonial-id { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.35; }
.testimonial-name { font-family: var(--font-head); font-weight: 700; font-size: .98rem; color: var(--ink); }
.testimonial-role { font-family: var(--font-mono); font-weight: 500; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   SECTION HEADS
   ============================================================ */
.section-head { max-width: 660px; margin-bottom: 56px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 600; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
}
.kicker::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--amber); }
.kicker-light { color: var(--azure-light); }
.section-title { font-family: var(--font-brand); font-size: clamp(1.8rem, 3.6vw, 2.7rem); color: var(--ink); text-wrap: balance; }
.section-lead { margin-top: 18px; font-size: 1.12rem; color: var(--ink-soft); text-wrap: pretty; }
.section-lead-light { color: rgba(255,255,255,.82); }

/* ============================================================
   SERVICES
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 30px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,.4); }

/* a soft marine glow follows the pointer across the card (JS sets --mx/--my) */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, -20%), rgba(37, 99, 235, .13), transparent 62%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover::after { opacity: 1; }

.card-featured { border-color: rgba(37,99,235,.5); box-shadow: var(--shadow-md); }
.card-featured::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .7;
}
.card-badge {
  position: absolute; top: -13px; left: 30px; background: var(--grad-cta); color: var(--white);
  font-family: var(--font-mono); font-weight: 600; font-size: .68rem; letter-spacing: .05em;
  padding: 6px 14px; border-radius: 100px; box-shadow: 0 6px 16px rgba(0,74,198,.35);
}

.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(37,99,235,.16), rgba(0,74,198,.1));
  color: var(--navy); margin-bottom: 22px;
  transition: transform .35s var(--ease);
}
.card:hover .card-icon { transform: translateY(-3px) scale(1.06) rotate(-3deg); }
.card-icon svg { width: 28px; height: 28px; }
.card-title { font-size: 1.4rem; color: var(--ink); margin-bottom: 12px; }
.card-text { color: var(--ink-soft); font-size: 1rem; text-wrap: pretty; }
.card-list { margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.card-list li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: .96rem; }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(37,99,235,.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23004ac6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ============================================================
   APPROACH
   ============================================================ */
.approach { background: var(--white); border-block: 1px solid var(--line); }

/* Split layout: heading + lede on the left; the method wheel on the right with
   the four step names arranged around it (the reference's loop diagram). */
.approach-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 72px); align-items: center; }

/* The method wheel: a 3×3 grid that seats the four step names at the cardinals
   around a central ring. The ring carries compass ticks, a clockwise amber
   spark of light (CSS motion-path), flow arrows, and the Koraii mark. */
.approach-visual { width: 100%; }
.method-wheel {
  list-style: none; margin: 0 auto; padding: 0; position: relative; max-width: 760px;
  display: grid;
  grid-template-columns: 1fr clamp(210px, 48%, 330px) 1fr;
  grid-template-rows: repeat(3, auto);
  place-items: center; gap: clamp(.5rem, 1.6vw, 1.1rem);
}
/* each node stacks a bold name over a short muted hint, aligned toward its side */
.method-wheel-node { display: flex; flex-direction: column; gap: 5px; max-width: 22ch; }
.method-wheel-name {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink); letter-spacing: -.01em; line-height: 1.1; transition: color .2s var(--ease);
}
.method-wheel-hint { font-family: var(--font-body); font-size: .82rem; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.method-wheel-node:hover .method-wheel-name { color: var(--navy); }

.method-wheel-node--top { grid-area: 1 / 2; text-align: center; align-items: center; }
.method-wheel-node--right { grid-area: 2 / 3; text-align: left; align-items: flex-start; justify-self: start; }
.method-wheel-node--bottom { grid-area: 3 / 2; text-align: center; align-items: center; }
.method-wheel-node--left { grid-area: 2 / 1; text-align: right; align-items: flex-end; justify-self: end; }

.method-wheel-circle { grid-area: 2 / 2; place-self: center; position: relative; width: 100%; aspect-ratio: 1; }
.method-wheel-circle::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(37,99,235,.09), rgba(244,247,254,0) 70%);
}
.method-wheel-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.method-wheel-ring { fill: none; stroke: var(--navy); stroke-width: 1; opacity: .3; }
/* the 8 minor ticks carry the solar accent; the 4 cardinals stay marine */
.method-wheel-tick { stroke: var(--amber); stroke-width: 1.1; opacity: .66; }
.method-wheel-tick--cardinal { stroke: var(--navy); stroke-width: 1.5; opacity: .5; }
.method-wheel-dot { fill: var(--amber); opacity: 0; filter: drop-shadow(0 0 2px rgba(254,166,25,.9)) drop-shadow(0 0 5px rgba(254,166,25,.45)); }

/* motion-path orbit — degrades gracefully: hidden where unsupported, resting at
   the top for reduced-motion, clockwise loop otherwise */
@supports (offset-path: circle()) {
  .method-wheel-dot {
    opacity: 1;
    offset-path: path("M 50 4 A 46 46 0 1 1 50 96 A 46 46 0 1 1 50 4");
    offset-distance: 0%;
  }
  @media (prefers-reduced-motion: no-preference) {
    .method-wheel-dot { animation: koraiiOrbit 20s linear infinite; }
  }
}
@keyframes koraiiOrbit { to { offset-distance: 100%; } }

/* the amber spark "ignites" each step name as it passes (20s orbit ÷ 4 nodes) */
@media (prefers-reduced-motion: no-preference) {
  @supports (offset-path: circle()) {
    .method-wheel-name { animation: nodePass 20s linear infinite; }
    .method-wheel-node--top .method-wheel-name { animation-delay: 0s; }
    .method-wheel-node--right .method-wheel-name { animation-delay: 5s; }
    .method-wheel-node--bottom .method-wheel-name { animation-delay: 10s; }
    .method-wheel-node--left .method-wheel-name { animation-delay: 15s; }
  }
}
@keyframes nodePass {
  0%   { text-shadow: 0 0 16px rgba(254, 166, 25, .65), 0 0 3px rgba(254, 166, 25, .4); }
  16%  { text-shadow: 0 0 16px rgba(254, 166, 25, 0), 0 0 3px rgba(254, 166, 25, 0); }
  100% { text-shadow: 0 0 16px rgba(254, 166, 25, 0), 0 0 3px rgba(254, 166, 25, 0); }
}

/* four arrow-beads sit on the ring's diagonals, pointing the clockwise turn */
.method-wheel-arrow {
  position: absolute; width: 24px; height: 24px; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 50%;
  color: var(--blue); font-size: 12px; line-height: 1; box-shadow: var(--shadow-sm); user-select: none;
}
.method-wheel-arrow--ne { top: 14.6%; left: 85.4%; }
.method-wheel-arrow--se { top: 85.4%; left: 85.4%; }
.method-wheel-arrow--sw { top: 85.4%; left: 14.6%; }
.method-wheel-arrow--nw { top: 14.6%; left: 14.6%; }

.method-wheel-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.method-wheel-center-mark { font-family: var(--font-brand); font-weight: 800; font-size: clamp(1.15rem, 2.4vw, 1.45rem); color: var(--navy); letter-spacing: -.02em; }

/* phones: stack the names under the wheel */
@media (max-width: 520px) {
  .method-wheel { grid-template-columns: 1fr; max-width: 300px; gap: 12px; }
  .method-wheel-node { grid-area: auto; text-align: center; justify-self: center; align-items: center; max-width: 34ch; }
  .method-wheel-circle { grid-area: auto; order: 0; width: min(220px, 72vw); }
  .method-wheel-node--top { order: 1; }
  .method-wheel-node--right { order: 2; }
  .method-wheel-node--bottom { order: 3; }
  .method-wheel-node--left { order: 4; }
}

/* ============================================================
   WHY KORAII
   ============================================================ */
/* the deep-sea panel floats free of the page edges — a rounded slab of ocean */
.why {
  background: var(--grad-soft); color: var(--white); position: relative; overflow: hidden;
  margin-inline: clamp(10px, 2.5vw, 34px);
  border-radius: clamp(26px, 4vw, 46px);
  box-shadow: var(--shadow-lg);
}
.why::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 82% 14%, rgba(254,166,25,.16), transparent 38%),
    radial-gradient(circle at 12% 88%, rgba(255,255,255,.12), transparent 42%);
}
/* the two light sources drift slowly, like sun through water */
@media (prefers-reduced-motion: no-preference) {
  .why::after { animation: aurora 26s ease-in-out infinite alternate; }
}
@keyframes aurora {
  from { transform: translate3d(-2%, -2%, 0) scale(1.06); }
  to   { transform: translate3d(2%, 3%, 0) scale(1.14); }
}
.why-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 70px); align-items: center; }
.why-copy .section-title { color: var(--white); }
.why-copy .btn { margin-top: 30px; }
.why-points { display: flex; flex-direction: column; gap: 18px; }
.why-points li { position: relative; overflow: hidden; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 24px 26px; transition: transform .3s var(--ease), background .3s; }
.why-points li:hover { transform: translateX(6px); background: rgba(255,255,255,.13); }
/* pointer-following light on the dark tiles (JS sets --mx/--my) */
.why-points li::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 255, 255, .14), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.why-points li:hover::after { opacity: 1; }
.why-points h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 6px; text-wrap: balance; }
.why-points p { color: rgba(255,255,255,.78); font-size: .98rem; text-wrap: pretty; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 70px); align-items: start; }
.contact-direct { margin-top: 26px; font-size: 1rem; color: var(--ink-soft); }
.contact-direct a { color: var(--navy); font-weight: 600; border-bottom: 1.5px solid rgba(37,99,235,.4); }
.contact-direct a:hover { border-color: var(--azure); }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--ice-soft); transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--azure); background: var(--white);
  box-shadow: 0 0 0 4px rgba(37,99,235,.16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }

.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-actions .btn { padding-inline: 34px; }
.form-status { font-size: .94rem; font-weight: 500; margin: 0; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

/* Trust + "what happens next" note under the submit row */
.form-note {
  margin: 4px 0 0; display: flex; align-items: flex-start; gap: 9px;
  font-family: var(--font-mono); font-size: .72rem; line-height: 1.55; letter-spacing: .02em; color: var(--muted);
}
.form-note::before {
  content: ""; flex: none; width: 15px; height: 15px; margin-top: 1px; border-radius: 50%;
  background: rgba(37,99,235,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%23004ac6' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
}

/* Scannable value props beside the form (reuses the ticked .card-list look) */
.contact-assure { margin-top: 26px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding-block: 50px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.brand-footer .brand-name { color: var(--white); }
.brand-footer .brand-mark { box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.footer-tag { margin-top: 10px; font-size: .9rem; color: rgba(255,255,255,.55); font-family: var(--font-mono); letter-spacing: .02em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { font-size: .95rem; transition: color .2s; }
.footer-nav a:hover { color: var(--white); }
.footer-copy { font-size: .88rem; color: rgba(255,255,255,.5); width: 100%; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }

/* ============================================================
   SCROLL REVEAL
   Hidden state only applies once JS has tagged <html class="js">,
   so content is never gated on scripts loading.
   ============================================================ */
html.js .reveal {
  opacity: 0; transform: translateY(26px); filter: blur(7px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; max-width: 520px; margin-top: 10px; }
  .why-inner, .contact-inner, .approach-inner { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
}

/* In the 2-up band, center the lone trailing service card so three cards in two
   columns don't leave an empty cell beside it. */
@media (min-width: 561px) and (max-width: 980px) {
  .cards > .card:last-child:nth-child(odd) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px);
  }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--white); padding: 16px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .35s var(--ease); z-index: 40;
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--ice); }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
}

@media (max-width: 560px) {
  .cards, .contact-form { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
  .header-actions { gap: 10px; }

  /* keep the full-bleed coral texture (no crop) but even fainter on phones */
  .coral-bg-right { opacity: .15; }

  /* Simplify the hero mockup into a clean vertical stack on phones */
  .hero-visual { min-height: 0; }
  .device-dashboard, .device-note { position: static; animation: none; }
  .device-dashboard { width: 100%; }
  .device-note { width: max-content; max-width: 100%; margin: 16px auto 0; }
  .device-phone { display: none; }
}

/* ============================================================
   ACCESSIBILITY — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; filter: none; }
}

/* Focus visibility */
:focus-visible { outline: 3px solid var(--azure); outline-offset: 2px; border-radius: 4px; }

/* Skip link — visually hidden until keyboard focus */
.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: var(--font-head); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }
