/* ===================================================================
   Dojito — landing page
   Light, modern studio aesthetic (clean base + navy accent bands)
   Approachable for small-business owners, premium tech feel retained.
   =================================================================== */

:root {
  /* brand */
  --navy:       #0B1F3A;
  --navy-2:     #0A1A30;
  --blue:       #2952E3;
  --blue-bright:#1f43c9;
  --amber:      #FFB020;
  --amber-ink:  #3a2600;

  /* light surface system */
  --bg:    #FFFFFF;
  --bg-2:  #F5F7FB;
  --panel: #FFFFFF;
  --card:  #FFFFFF;

  /* text */
  --text:   #0B1F3A;
  --text-2: #51617D;
  --text-3: #8696B3;

  /* on dark bands */
  --d-text:   #EAF0FB;
  --d-text-2: #A9B7D4;

  /* lines */
  --line:   #E5E9F2;
  --line-2: #D3DAE8;

  --radius:    16px;
  --radius-sm: 10px;
  --container: 1160px;
  --shadow:    0 1px 2px rgba(11, 31, 58, 0.04), 0 10px 26px -14px rgba(11, 31, 58, 0.16);
  --shadow-lg: 0 20px 44px -18px rgba(41, 82, 227, 0.26);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, .brand-word {
  font-family: 'Sora', 'Noto Sans KR', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* scroll-progress bar */
.scrollbar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  z-index: 250;
  background: linear-gradient(90deg, var(--blue), var(--amber));
  transition: width 0.1s linear;
}

/* anchor links shouldn't hide section tops under the sticky header */
[id] { scroll-margin-top: 84px; }

/* back-to-top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -10px rgba(11, 31, 58, 0.55);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.15s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 540px) { .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; } }

/* film grain — subtle texture for depth */
.grain {
  position: fixed; inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

/* shine sweep on hover (primary / amber) */
.btn-primary, .btn-amber { position: relative; overflow: hidden; }
.btn-primary::after, .btn-amber::after {
  content: "";
  position: absolute; top: 0; left: -130%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn-primary:hover::after, .btn-amber:hover::after { animation: btnShine 0.7s ease; }
@keyframes btnShine { to { left: 140%; } }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(41, 82, 227, 0.7);
}
.btn-primary:hover { background: var(--blue-bright); box-shadow: 0 12px 28px -10px rgba(41, 82, 227, 0.8); }

.btn-amber { background: var(--amber); color: var(--amber-ink); box-shadow: 0 8px 22px -10px rgba(255, 176, 32, 0.6); }
.btn-amber:hover { filter: brightness(1.04); }

.btn-ghost {
  background: #fff;
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--blue); color: var(--blue); }

.btn-lg { padding: 15px 26px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { display: inline-flex; }
.brand-word { font-size: 21px; font-weight: 800; color: var(--navy); }
.brand-word .to { color: var(--blue); }

.nav-links { display: flex; gap: 28px; margin: 0 auto; }
.nav-links a { position: relative; font-size: 14.5px; color: var(--text-2); font-weight: 500; transition: color 0.15s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.22s var(--ease); }
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--text-3);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 7px 11px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.lang-toggle button.on { background: var(--blue); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(880px 460px at 80% -10%, rgba(41, 82, 227, 0.12), transparent 60%),
    radial-gradient(640px 400px at 8% 6%, rgba(255, 176, 32, 0.11), transparent 58%);
  background-size: 150% 150%;
  pointer-events: none;
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora { 0% { background-position: 0% 0%; } 100% { background-position: 100% 55%; } }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 31, 58, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 58, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(720px 420px at 72% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(720px 420px at 72% 0%, #000 0%, transparent 72%);
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }

/* hero "path" (道) that draws itself in */
.hero-path {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  width: min(400px, 32vw);
  height: auto;
  z-index: 1;
  pointer-events: none;
}
/* start state (hidden) — animations run when JS adds .play, and replay
   every time the hero re-enters the viewport */
.hp-road { stroke-dasharray: 560; stroke-dashoffset: 560; opacity: 0.55; }
.hp-dot { opacity: 0; }
.hp-d1 { --o: 0.5; } .hp-d2 { --o: 0.75; } .hp-d3 { --o: 1; } .hp-d4 { --o: 1; }
.hp-sun, .hp-glow { transform-box: fill-box; transform-origin: center; opacity: 0; }
.hero-path.play .hp-road { animation: hpDraw 2s var(--ease) 0.2s forwards; }
.hero-path.play .hp-d1 { animation: hpFade 0.5s ease 0.5s forwards; }
.hero-path.play .hp-d2 { animation: hpFade 0.5s ease 0.8s forwards; }
.hero-path.play .hp-d3 { animation: hpFade 0.5s ease 1.1s forwards; }
.hero-path.play .hp-d4 { animation: hpFade 0.5s ease 1.4s forwards; }
.hero-path.play .hp-glow { animation: hpFade 1s ease 1.8s forwards; }
.hero-path.play .hp-sun { animation: hpPop 0.6s var(--ease) 1.7s forwards, sunBreath 3.4s ease-in-out 2.4s infinite; }
@keyframes hpDraw { to { stroke-dashoffset: 0; } }
@keyframes hpPop { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }
@keyframes hpFade { to { opacity: var(--o, 1); } }
@keyframes sunBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (max-width: 1080px) { .hero-path { display: none; } }

.eyebrow {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 7px 13px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: rgba(41, 82, 227, 0.06);
  margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(40px, 6.4vw, 74px);
  font-weight: 800;
  margin-bottom: 24px;
  max-width: 640px;
  color: var(--navy);
  background: linear-gradient(100deg, #0B1F3A 0%, #0B1F3A 38%, #3a63ee 50%, #0B1F3A 62%, #0B1F3A 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleSheen 7s linear infinite;
}
@keyframes titleSheen { to { background-position: -220% center; } }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--text-2); max-width: 660px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-trust { font-size: 14px; color: var(--text-3); display: inline-flex; align-items: center; gap: 9px; }
.hero-trust::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: livepulse 2.4s ease-out infinite;
}
@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ---------- Section shared ---------- */
section { position: relative; }
.section-eyebrow {
  font-family: 'Sora', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin-bottom: 14px; color: var(--navy); }
.section-lead { color: var(--text-2); max-width: 640px; margin-bottom: 8px; }

/* ---------- Works-with strip ---------- */
.logostrip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.logostrip-inner { display: flex; align-items: center; justify-content: center; gap: 10px 22px; flex-wrap: wrap; padding: 15px 24px; }
.ls-label { font-family: 'Sora', sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.ls-names { font-family: 'Sora', sans-serif; font-size: 14.5px; font-weight: 600; color: var(--text-2); letter-spacing: 0.01em; }

/* ---------- Problem / cost wedge ---------- */
.problem { padding: 84px 0; border-top: 1px solid var(--line); }
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 18px;
  margin-top: 40px;
}
.compare-col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
}
.compare-col h3 { font-size: 18px; margin-bottom: 18px; }
.compare-col ul { list-style: none; }
.compare-col li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: 15px; }
.compare-col li:last-child { margin-bottom: 0; }
.compare-col.old { background: var(--bg-2); }
.compare-col.old h3 { color: var(--text-2); }
.compare-col.old li { color: var(--text-2); }
.compare-col.old li::before {
  content: "✕"; position: absolute; left: 0; top: 0;
  color: #c2410c; font-weight: 700; font-size: 13px;
}
.compare-col.new {
  background: linear-gradient(165deg, rgba(41, 82, 227, 0.06), #fff 60%);
  border-color: rgba(41, 82, 227, 0.4);
  box-shadow: var(--shadow);
}
.compare-col.new h3 { color: var(--navy); }
.compare-col.new li { color: var(--navy); font-weight: 500; }
.compare-col.new li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--blue); font-weight: 700;
}
.compare-vs {
  align-self: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-3);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- How ---------- */
.how { padding: 84px 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.steps { display: flex; align-items: stretch; gap: 18px; margin-top: 40px; }
.step {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.step-num { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; color: var(--blue); letter-spacing: 0.08em; }
.step h3 { font-size: 21px; margin: 14px 0 10px; color: var(--navy); }
.step p { color: var(--text-2); font-size: 15px; }
.step-arrow { align-self: center; color: var(--text-3); font-size: 26px; font-family: 'Sora', sans-serif; }

/* ---------- Solutions ---------- */
.solutions { padding: 84px 0; border-top: 1px solid var(--line); }
.group-label {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 46px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.strength {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--amber-ink);
  background: rgba(255, 176, 32, 0.18);
  border: 1px solid rgba(255, 176, 32, 0.45);
  border-radius: 100px;
  padding: 3px 10px;
}
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  overflow: hidden;
}
.card { cursor: pointer; --glow: rgba(41, 82, 227, 0.12); }
.cards.g2 .card { --glow: rgba(217, 119, 6, 0.13); }
.cards.g3 .card { --glow: rgba(13, 148, 136, 0.13); }
/* cursor-following spotlight (glow tracks the mouse, color per group) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.card .more {
  display: inline-block;
  margin-top: 14px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.card:hover .more, .card:focus-visible .more { opacity: 1; transform: none; }
@media (hover: none) { .card .more { opacity: 1; transform: none; } }
.card.featured { border-color: rgba(41, 82, 227, 0.4); background: linear-gradient(165deg, rgba(41, 82, 227, 0.07), #fff 58%); }
.card-ico {
  display: inline-flex;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(41, 82, 227, 0.08);
  border: 1px solid rgba(41, 82, 227, 0.16);
  color: var(--blue);
  margin-bottom: 16px;
}
.card-ico svg { width: 22px; height: 22px; stroke: currentColor; }
/* group accents — one hue per category (blue / amber / teal) */
.cards.g2 .card-ico { background: rgba(217, 119, 6, 0.12); border-color: rgba(217, 119, 6, 0.26); color: #b9740a; }
.cards.g3 .card-ico { background: rgba(13, 148, 136, 0.12); border-color: rgba(13, 148, 136, 0.26); color: #0d9488; }
.card h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 9px; line-height: 1.25; color: var(--navy); }
.card p { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 11.5px; color: var(--text-3); border: 1px solid var(--line); border-radius: 100px; padding: 4px 10px; }
.badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #0a8f5b;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 100px;
  padding: 4px 10px;
}

/* ---------- AI band (dark contrast) ---------- */
.aiband {
  padding: 84px 0;
  background:
    radial-gradient(720px 340px at 50% -10%, rgba(41, 82, 227, 0.45), transparent 62%),
    linear-gradient(180deg, var(--navy), var(--navy-2));
  color: var(--d-text);
}
.aiband-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.aiband h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; margin-bottom: 18px; color: #fff; }
.aiband p { color: var(--d-text-2); font-size: 17px; margin-bottom: 30px; }

/* ---------- Why ---------- */
.why { padding: 84px 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 38px; }
.why-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.why-item h3 { font-size: 19px; margin-bottom: 9px; color: var(--navy); }
.why-item h3::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--amber); margin-bottom: 16px; }
.why-item p { color: var(--text-2); font-size: 14.5px; }

/* ---------- Contact ---------- */
.contact { padding: 100px 0; border-top: 1px solid var(--line); text-align: center; }
.contact-inner { max-width: 660px; margin: 0 auto; }
.contact-title { font-size: clamp(28px, 4.4vw, 46px); font-weight: 700; margin-bottom: 16px; color: var(--navy); }
.contact-sub { color: var(--text-2); font-size: 18px; margin-bottom: 30px; }
.contact-email { margin-top: 18px; color: var(--text-3); font-family: 'Sora', sans-serif; font-size: 14px; letter-spacing: 0.02em; }

/* ---------- Footer (dark, compact) ---------- */
.site-footer { padding: 34px 0 22px; background: var(--navy-2); color: var(--d-text-2); }
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px 32px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand-mini { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.footer-brand-mini .brand-word { color: #fff; font-size: 20px; }
.footer-brand-mini .brand-word .to { color: var(--amber); }
.footer-meaning { font-family: 'Sora', 'Noto Sans KR', sans-serif; font-size: 12.5px; color: #6b799a; letter-spacing: 0.01em; }
.footer-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--d-text-2); font-size: 14px; transition: color 0.15s var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-email { font-family: 'Sora', sans-serif; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-top: 16px;
}
.footer-copy { font-size: 12.5px; color: #6b799a; }
.footer-tag { font-family: 'Sora', sans-serif; font-size: 10.5px; letter-spacing: 0.18em; color: #6b799a; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .compare { grid-template-columns: 1fr; }
  .compare-vs { transform: rotate(90deg); margin: 2px auto; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { padding: 72px 0 64px; }
  .how, .solutions, .why { padding: 64px 0; }
}
@media (max-width: 540px) {
  .cards, .why-grid { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
}

/* ---------- Solution detail modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(11, 31, 58, 0.5); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.2s var(--ease); }
.modal.show .modal-overlay { opacity: 1; }
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 40px 80px -24px rgba(11, 31, 58, 0.45);
  padding: 34px 34px 32px;
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.modal.show .modal-dialog { transform: none; opacity: 1; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--text-2);
  font-size: 14px; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.modal-close:hover { background: var(--bg-2); color: var(--navy); border-color: var(--line-2); }

.modal-eyebrow {
  font-family: 'Sora', sans-serif; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue);
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px;
}
.modal-eyebrow::before { content: "✎"; font-size: 13px; }
.modal-title { font-size: 25px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.modal-tagline { color: var(--text-2); font-size: 15.5px; margin-bottom: 22px; }

/* the "field sketch": a blueprint-style flow pipeline */
.sketch {
  background:
    radial-gradient(circle at 1px 1px, rgba(41, 82, 227, 0.12) 1px, transparent 0) 0 0 / 18px 18px,
    var(--bg-2);
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  padding: 22px 18px;
  margin-bottom: 24px;
}
.sketch-art {
  display: flex;
  justify-content: center;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--line-2);
}
.sketch-art svg { width: 100%; max-width: 280px; height: auto; }
/* vertical stepper — each label gets full width, so it never wraps awkwardly */
.flow { list-style: none; }
.flow-node { position: relative; display: flex; align-items: center; gap: 13px; min-height: 44px; }
.flow-node:not(:last-child)::before {
  content: ""; position: absolute;
  left: 14px; top: 22px; height: 100%; width: 2px;
  background: var(--line-2); z-index: 0;
}
.flow-step {
  flex: 0 0 auto; z-index: 1;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.flow-label { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.4; }

.modal-sub {
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--navy); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.modal-sub::before { content: ""; width: 16px; height: 2px; background: var(--amber); border-radius: 2px; }
.modal-list { list-style: none; margin-bottom: 24px; }
.modal-list li { position: relative; padding-left: 24px; margin-bottom: 9px; color: var(--text-2); font-size: 14.5px; }
.modal-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 700; }
.modal-fit { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.modal-fit span { font-size: 12.5px; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 100px; padding: 5px 12px; }

.usecase {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255, 176, 32, 0.07);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 26px;
}
.usecase.real { background: rgba(16, 185, 129, 0.07); border-left-color: #10b981; }
.usecase-tag {
  flex: 0 0 auto;
  font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 700;
  color: var(--amber-ink); background: rgba(255, 176, 32, 0.2);
  border-radius: 100px; padding: 4px 10px; margin-top: 1px;
}
.usecase.real .usecase-tag { color: #0a8f5b; background: rgba(16, 185, 129, 0.15); }
.usecase p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.modal-cta { width: 100%; }

@media (max-width: 540px) {
  .modal-dialog { padding: 26px 20px 24px; }
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-on .reveal.in { opacity: 1; transform: none; }
.reveal-on .cards .reveal:nth-child(2), .reveal-on .why-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.reveal-on .cards .reveal:nth-child(3), .reveal-on .why-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.reveal-on .cards .reveal:nth-child(4), .reveal-on .why-grid .reveal:nth-child(4) { transition-delay: 0.21s; }

/* header gains a soft shadow once you scroll */
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(11, 31, 58, 0.18); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-on .reveal { opacity: 1 !important; transform: none !important; }
  .hp-road { stroke-dashoffset: 0 !important; }
  .hp-dot, .hp-sun, .hp-glow { opacity: 1 !important; transform: none !important; }
  .hero-title { background-position: 0 center !important; }
}
