/* ==========================================================================
   YAKAMI TECH LTD — Corporate Website Stylesheet
   Dependency-free. No external fonts or CDNs (privacy-by-design).
   ========================================================================== */

:root {
  --bg: #0B0F19;
  --bg-elev: #0F1523;
  --bg-soft: #131B2D;
  --surface: rgba(19, 27, 45, 0.55);
  --surface-strong: rgba(15, 21, 35, 0.92);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #E6EAF2;
  --text-strong: #FFFFFF;
  --muted: #9AA6B8;
  --subtle: #7D8AA3;
  --blue: #3B82F6;
  --blue-600: #2563EB;
  --cyan: #22D3EE;
  --grad: linear-gradient(135deg, #3B82F6 0%, #22D3EE 100%);
  --grad-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.16) 0%, rgba(34, 211, 238, 0.10) 100%);
  --success: #34D399;
  --danger: #F87171;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 12px 40px -12px rgba(34, 211, 238, 0.35);
  --header-h: 72px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(34, 211, 238, 0.06), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { color: var(--text-strong); font-weight: 600; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--cyan); color: #04111F; font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

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

.icon {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #04111F; box-shadow: 0 8px 24px -10px rgba(34, 211, 238, 0.6); }
.btn-primary:hover { box-shadow: var(--glow); }
.btn-secondary { background: rgba(255, 255, 255, 0.04); border-color: var(--border-strong); color: var(--text-strong); }
.btn-secondary:hover { border-color: rgba(34, 211, 238, 0.55); background: rgba(34, 211, 238, 0.06); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; transform: none; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgba(11, 15, 25, 0.82);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text-strong); }
.brand-mark { width: 38px; height: 38px; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: 0.06em; line-height: 1; }
.brand-name span { color: var(--cyan); margin-left: 6px; font-weight: 600; }
.brand-sub { display: block; font-size: 10px; letter-spacing: 0.18em; color: var(--subtle); font-weight: 600; margin-top: 4px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-list a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-list a:hover, .nav-list a.is-active { color: var(--text-strong); background: rgba(255, 255, 255, 0.04); }
.nav-list a.is-active { color: var(--cyan); }

.nav-toggle {
  display: none; position: relative;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03);
}
.nav-toggle-bar {
  position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px;
  background: var(--text-strong); transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle-bar:nth-child(1) { top: 14px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 24px 24px 40px;
    background: var(--surface-strong);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 14px 12px; font-size: 17px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-cta { width: 100%; min-height: 52px; }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 104px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(19, 27, 45, 0.35), rgba(19, 27, 45, 0.15)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--cyan); }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.lead { font-size: 18px; color: var(--muted); }

@media (max-width: 767px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .lead { font-size: 16.5px; }
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Cards (glass) ---------- */
.card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 20px 50px -30px rgba(34, 211, 238, 0.45); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); }
.card-icon {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 22px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--cyan);
}
@media (max-width: 767px) { .card { padding: 24px; } }

.check-list { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 15px; }
.check-list .icon { color: var(--cyan); margin-top: 3px; width: 17px; height: 17px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag {
  display: inline-flex; align-items: center;
  padding: 5px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: #BFD7FF; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.25);
}

.note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 22px; padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 238, 0.06); border: 1px solid rgba(34, 211, 238, 0.2);
  font-size: 14px; color: var(--muted);
}
.note .icon { color: var(--cyan); margin-top: 2px; }
.note p { margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 88px) 0 72px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 640px; height: 640px; right: -160px; top: -120px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 65%);
  filter: blur(20px);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 640px; margin-bottom: 28px; }

.badge-row { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--text);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-strong);
}
.badge .icon { width: 16px; height: 16px; color: var(--cyan); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.trust-bar { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--border); }
.trust-label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); font-weight: 600; margin-bottom: 18px; }
.trust-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.trust-list li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 12px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--text);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
}
.trust-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(34, 211, 238, 0.7); }

/* Hero console visual */
.console {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(19, 27, 45, 0.9), rgba(11, 15, 25, 0.9));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 80px -30px rgba(34, 211, 238, 0.45);
  overflow: hidden;
  font-family: var(--font-mono); font-size: 13px;
}
.console-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.console-dot { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.console-dot:nth-child(1) { background: #F87171; }
.console-dot:nth-child(2) { background: #FBBF24; }
.console-dot:nth-child(3) { background: #34D399; }
.console-title { margin-left: 10px; color: var(--subtle); font-size: 12.5px; }
.console-body { padding: 20px 20px 8px; }
.pipeline { list-style: none; display: grid; gap: 12px; }
.pipeline li { display: flex; align-items: center; gap: 12px; color: var(--text); }
.pipeline li > span:not(.step-icon) { margin-left: auto; color: var(--subtle); font-size: 12px; }
.pipeline .step-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(52, 211, 153, 0.14); color: var(--success); }
.pipeline .step-icon .icon { width: 13px; height: 13px; stroke-width: 3; }
.pipeline .is-running .step-icon { background: rgba(34, 211, 238, 0.14); color: var(--cyan); }
.pipeline .is-running .step-icon::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
.console-progress { height: 4px; margin: 18px 0 4px; border-radius: 4px; background: rgba(148, 163, 184, 0.15); overflow: hidden; }
.console-progress::after { content: ""; display: block; height: 100%; width: 82%; background: var(--grad); border-radius: 4px; animation: load 3.2s ease-in-out infinite alternate; }
@keyframes load { from { width: 62%; } to { width: 94%; } }
.console-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); margin-top: 16px; }
.console-metrics div { padding: 16px 18px; border-right: 1px solid var(--border); }
.console-metrics div:last-child { border-right: 0; }
.console-metrics dt { color: var(--subtle); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.console-metrics dd { margin: 6px 0 0; color: var(--text-strong); font-size: 14px; font-weight: 600; }

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }
}
@media (max-width: 767px) {
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .trust-bar { margin-top: 56px; }
  .cta-row .btn { width: 100%; }
  .console-metrics { grid-template-columns: 1fr; }
  .console-metrics div { border-right: 0; border-bottom: 1px solid var(--border); }
  .console-metrics div:last-child { border-bottom: 0; }
}

/* ---------- Services ---------- */
.service-card .service-num { position: absolute; top: 28px; right: 28px; font-family: var(--font-mono); font-size: 13px; color: var(--subtle); }

/* ---------- Solutions / process ---------- */
.solution-card h3 { font-size: 19px; }
.solution-card p { font-size: 15px; margin-bottom: 0; }

.process { margin-top: 72px; }
.process-title { font-size: 24px; margin-bottom: 28px; }
.process-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.process-steps li {
  counter-increment: step; position: relative;
  padding: 28px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
}
.process-steps li::before {
  content: "0" counter(step);
  display: block; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--cyan);
}
.process-steps h4 { font-size: 17px; margin-bottom: 8px; }
.process-steps p { color: var(--muted); font-size: 14.5px; margin: 0; }
@media (max-width: 1023px) { .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .process-steps { grid-template-columns: 1fr; } }

/* ---------- Case studies ---------- */
.case-card { display: flex; flex-direction: column; }
.case-sector { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.case-metric {
  margin: 4px 0 20px; padding: 16px 18px; border-radius: 12px;
  background: var(--grad-soft); border: 1px solid rgba(59, 130, 246, 0.25);
}
.case-metric strong { display: block; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.case-metric span { font-size: 13.5px; color: var(--muted); }
.case-detail { margin: 0; }
.case-detail dt { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-strong); margin-top: 14px; }
.case-detail dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.case-card .tag-row { margin-top: auto; padding-top: 22px; }
.disclaimer { margin-top: 28px; font-size: 13.5px; color: var(--subtle); text-align: center; }

/* ---------- Pricing ---------- */
.billing-toggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 5px; margin: 8px auto 0; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-strong);
}
.toggle-btn {
  position: relative; z-index: 1;
  min-width: 150px; min-height: 42px; padding: 0 18px;
  border: 0; border-radius: 10px; background: transparent;
  font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: color 0.25s ease;
}
.toggle-btn.is-active { color: #04111F; }
.toggle-thumb {
  position: absolute; z-index: 0; top: 5px; left: 5px; bottom: 5px;
  width: calc(50% - 5px); border-radius: 10px; background: var(--grad);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.billing-toggle[data-mode="project"] .toggle-thumb { transform: translateX(100%); }
.toggle-wrap { text-align: center; margin-bottom: 48px; }
.toggle-hint { margin: 14px 0 0; font-size: 14px; color: var(--subtle); }
@media (max-width: 480px) { .toggle-btn { min-width: 0; padding: 0 12px; } .billing-toggle { width: 100%; } }

.price-card { display: flex; flex-direction: column; padding: 36px 32px; }
.price-card.is-featured { border-color: rgba(34, 211, 238, 0.55); box-shadow: var(--glow); background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), rgba(255, 255, 255, 0.015)); }
.featured-badge {
  position: absolute; top: -13px; left: 32px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  background: var(--grad); color: #04111F;
  opacity: 0; transform: translateY(4px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.price-card.is-featured .featured-badge { opacity: 1; transform: none; }
.price-type { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.price-card h3 { font-size: 20px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 18px 0 6px; }
.price-amount { font-size: 38px; font-weight: 800; color: var(--text-strong); letter-spacing: -0.03em; line-height: 1.1; }
.price-unit { font-size: 15px; color: var(--muted); }
.price-from { font-size: 14px; color: var(--muted); width: 100%; }
.price-note { min-height: 48px; font-size: 14px; color: var(--subtle); margin: 0 0 6px; }
.price-card .check-list { margin-bottom: 30px; }
.price-card .btn { margin-top: auto; }

.billing-info {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin-top: 40px; padding: 28px 32px; border-radius: var(--radius);
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
}
.billing-info h4 { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 8px; }
.billing-info h4 .icon { color: var(--cyan); }
.billing-info p { margin: 0; font-size: 14.5px; color: var(--muted); }
.billing-info a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) { .billing-info { grid-template-columns: 1fr; } }

/* ---------- About & governance ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.mission { font-size: 22px; line-height: 1.5; color: var(--text-strong); font-weight: 500; margin-bottom: 24px; }
.about-copy p { color: var(--muted); }
.principles { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.principles li { padding-left: 16px; border-left: 2px solid rgba(34, 211, 238, 0.5); }
.principles strong { display: block; margin-bottom: 4px; }
.principles span { color: var(--muted); font-size: 14.5px; }

.registration-statement {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 32px; padding: 20px 22px; border-radius: var(--radius-sm);
  background: var(--grad-soft); border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--text-strong); font-weight: 500;
}
.registration-statement .icon { color: var(--cyan); margin-top: 2px; }
.registration-statement p { margin: 0; }

.facts { padding: 0; overflow: hidden; }
.facts-head { padding: 22px 28px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.facts-head h3 { margin: 0; font-size: 17px; }
.facts-head .icon { color: var(--cyan); }
.facts dl { margin: 0; }
.facts dl div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 28px; border-bottom: 1px solid var(--border); }
.facts dl div:last-child { border-bottom: 0; }
.facts dt { color: var(--subtle); font-size: 13.5px; font-weight: 600; }
.facts dd { margin: 0; color: var(--text); font-size: 14.5px; }
@media (max-width: 1023px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .facts dl div { grid-template-columns: 1fr; gap: 2px; padding: 14px 22px; }
  .facts-head { padding: 20px 22px; }
}

.governance { margin-top: 72px; }
.governance .card h3 { font-size: 18px; }
.governance .card p { font-size: 14.5px; margin: 0; }
.scope-statement { margin-top: 24px; font-size: 14px; color: var(--subtle); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); transition: border-color 0.2s ease, background-color 0.2s ease; }
.faq-item.is-open { border-color: rgba(59, 130, 246, 0.4); background: rgba(59, 130, 246, 0.05); }
.faq-q { margin: 0; font-size: 17px; }
.faq-q button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; border: 0; background: transparent; text-align: left;
  font-weight: 600; color: var(--text-strong); border-radius: var(--radius);
}
.faq-q .icon { color: var(--cyan); transition: transform 0.3s ease; }
.faq-item.is-open .faq-q .icon { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { padding: 0 24px 22px; margin: 0; color: var(--muted); }
.faq-a a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.js .faq-a { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.3s ease, visibility 0s linear 0.3s; }
.js .faq-item.is-open .faq-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.3s ease, visibility 0s; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.info-item .card-icon { margin: 0; width: 44px; height: 44px; flex-shrink: 0; }
.info-item h3 { font-size: 15px; margin-bottom: 4px; }
.info-item p, .info-item address { margin: 0; font-style: normal; color: var(--muted); font-size: 15px; }
.info-item a { color: var(--cyan); }
.info-item a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-card { padding: 36px; }
@media (max-width: 767px) { .form-card { padding: 24px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.field label .req { color: var(--cyan); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: rgba(11, 15, 25, 0.6); color: var(--text-strong);
  font-size: 15px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2322D3EE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select option { background: var(--bg-elev); color: var(--text-strong); }
.field input::placeholder, .field textarea::placeholder { color: #6E7B93; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2); }
.field-error { min-height: 0; margin: 0; font-size: 13px; color: var(--danger); }
.field-error:empty { display: none; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.checkbox input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; accent-color: var(--cyan); flex-shrink: 0; }
.checkbox a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-footer small { color: var(--subtle); font-size: 13px; max-width: 360px; }
.form-status { margin: 16px 0 0; font-size: 14px; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(4, 17, 31, 0.3); border-top-color: #04111F; animation: spin 0.8s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
.btn[aria-busy="true"] .btn-icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: 32px 8px; }
.form-success[hidden] { display: none; }
.success-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 20px; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.4); color: var(--success); }
.success-icon .icon { width: 30px; height: 30px; }
.form-success h3 { font-size: 22px; }
.form-success p { color: var(--muted); max-width: 460px; margin: 0 auto 24px; }
.form-success a { color: var(--cyan); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-footer .btn { width: 100%; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 12, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.2s ease; }
.modal-dialog {
  position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 48px); overflow-y: auto;
  border-radius: var(--radius-lg); border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #121A2C, #0C111D);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8), 0 0 80px -40px rgba(34, 211, 238, 0.5);
  padding: 36px;
  opacity: 0; transform: translateY(12px) scale(0.98); transition: opacity 0.2s ease, transform 0.2s ease;
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-dialog { opacity: 1; transform: none; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03); color: var(--text-strong);
}
.modal-close:hover { border-color: var(--cyan); }
.modal-head { margin-bottom: 24px; padding-right: 48px; }
.modal-head h2 { font-size: 26px; margin-bottom: 6px; }
.modal-head p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 640px) { .modal { padding: 0; place-items: end stretch; } .modal-dialog { max-height: 94vh; border-radius: 20px 20px 0 0; padding: 28px 20px; } }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.cta-band p { margin: 0; color: var(--muted); }
@media (max-width: 767px) { .cta-band { padding: 32px 24px; } .cta-band .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: #080B13; padding: 72px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.8fr 1fr 1.1fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin-top: 18px; max-width: 360px; }
.footer-col h3 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-strong); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-col address { font-style: normal; color: var(--muted); }
.footer-col address a { color: var(--cyan); }
.legal-notice {
  margin-top: 48px; padding: 24px 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
  color: var(--muted); font-size: 13.5px; line-height: 1.7;
}
.legal-notice h3 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.legal-notice p { margin: 0; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 32px; padding: 24px 0 32px; border-top: 1px solid var(--border);
  color: var(--subtle); font-size: 13.5px;
}
.footer-bottom p { margin: 0; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: calc(var(--header-h) + 64px) 0 40px; border-bottom: 1px solid var(--border); }
.legal-hero h1 { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 12px; }
.legal-hero p { color: var(--muted); margin: 0; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.breadcrumb { list-style: none; display: flex; gap: 8px; font-size: 14px; color: var(--subtle); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--subtle); }

.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding: 56px 0 96px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.legal-toc h2 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.legal-toc ol { list-style: none; display: grid; gap: 4px; }
.legal-toc a { display: block; padding: 5px 0; font-size: 14px; color: var(--muted); }
.legal-toc a:hover { color: var(--cyan); }

.legal-content { max-width: 800px; }
.legal-content section { padding-bottom: 12px; }
.legal-content h2 { font-size: 23px; margin: 40px 0 14px; padding-top: 8px; }
.legal-content section:first-child h2 { margin-top: 0; }
.legal-content h3 { font-size: 17px; margin: 24px 0 10px; }
.legal-content p, .legal-content li { color: #C3CBD8; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 8px; }
.legal-content a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal-content address { font-style: normal; color: #C3CBD8; padding: 16px 20px; border-left: 2px solid var(--cyan); background: rgba(34, 211, 238, 0.04); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 1em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.25em; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.legal-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.legal-content th, .legal-content td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--border); color: #C3CBD8; }
.legal-content th { background: rgba(255, 255, 255, 0.03); color: var(--text-strong); font-weight: 600; }
.legal-content tr:last-child td { border-bottom: 0; }
.legal-summary { padding: 20px 22px; border-radius: var(--radius); background: var(--grad-soft); border: 1px solid rgba(59, 130, 246, 0.3); margin-bottom: 32px; }
.legal-summary p { margin: 0; color: var(--text); }
@media (max-width: 1023px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; max-height: none; }
}

/* ---------- Print (useful for underwriters saving policies) ---------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer .footer-grid, .legal-toc, .skip-link, .nav-toggle { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .legal-hero { padding-top: 0; }
  .legal-content p, .legal-content li, .legal-content td, .legal-content th, h1, h2, h3 { color: #000 !important; }
  .legal-layout { display: block; padding: 0; }
}
