@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

/* ===== Design Tokens ===== */
:root {
  --ink: #0f1114;
  --ink-soft: #1a1d23;
  --muted: #5c6370;
  --muted-light: #8b919d;
  --line: rgba(0, 0, 0, .06);
  --surface: #f5f7fa;
  --surface-warm: #fafbfd;
  --blue: #2563eb;
  --blue-soft: #3b82f6;
  --blue-glow: rgba(37, 99, 235, .10);
  --indigo: #4f46e5;
  --purple: #7c3aed;
  --cyan: #06b6d4;
  --green: #059669;
  --max: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.05), 0 1px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.04);
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
  --transition-fast: .15s cubic-bezier(.4, 0, .2, 1);
}

/* ===== Reset & Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.container {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
}
.mark {
  width: 26px;
  height: 26px;
  position: relative;
  transition: transform var(--transition);
}
.brand:hover .mark { transform: rotate(90deg); }
.mark:before, .mark:after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1.8px solid var(--ink);
  border-radius: 2px;
  transform: rotate(45deg);
  transition: all var(--transition);
}
.mark:after {
  inset: 7px;
  background: var(--ink);
  border-radius: 1px;
}
.brand:hover .mark:before { border-color: var(--blue); }
.brand:hover .mark:after { background: var(--blue); }
.links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.links a {
  position: relative;
  transition: color var(--transition-fast);
}
.links a:hover { color: var(--ink); }
.links a:not(.button):after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--blue);
  border-radius: 1px;
  transition: width var(--transition);
}
.links a:not(.button):hover:after { width: 100%; }
.links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.links a[aria-current="page"]:not(.button):after {
  width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

/* ===== Buttons ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: #fff;
  transition: all var(--transition);
}
.button.primary {
  background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.1);
}
.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.2), 0 2px 6px rgba(0,0,0,.12);
}
.button:not(.primary):hover {
  transform: translateY(-1px);
  border-color: var(--blue-soft);
  color: var(--blue);
  box-shadow: 0 4px 16px var(--blue-glow);
}
.menu { display: none; background: none; border: 0; font: inherit; }
.menu[aria-expanded="true"] { color: var(--blue); font-weight: 600; }

/* ===== Hero ===== */
.hero {
  padding: 130px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f4ff 0%, #fff 60%, #fff 100%);
}
.hero:before {
  content: "";
  position: absolute;
  width: 1100px;
  height: 700px;
  left: 50%;
  top: -350px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 30% 70%, rgba(37, 99, 235, .12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(124, 58, 237, .08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(6, 182, 212, .06) 0%, transparent 50%);
  pointer-events: none;
  animation: heroGlow 12s ease-in-out infinite alternate;
}
.hero:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
@keyframes heroGlow {
  0% { opacity: .7; transform: translateX(-50%) scale(1) rotate(0deg); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.06) rotate(1deg); }
}

.eyebrow {
  font: 500 11px/1 Geist Mono, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow:before {
  content: "";
  width: 20px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 1px;
}

h1 {
  font-size: clamp(44px, 6.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -.05em;
  margin: 26px auto;
  max-width: 900px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ink) 20%, #334155 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -.04em;
  margin: 0 0 18px;
  font-weight: 600;
}
.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Signal (hero bottom bar) ===== */
.signal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.signal > div {
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.signal strong {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue);
}
.signal span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
  position: relative;
}
.section:nth-child(even):not(.dark) {
  background: var(--surface);
}
.section.dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  color: #e2e8f0;
}
.section.dark .eyebrow { color: var(--cyan); }
.section.dark .eyebrow:before { background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.section.dark h2 { color: #f1f5f9; }
.section.dark .section-head > p { color: #94a3b8; }
.section.dark .trust-item {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
}
.section.dark .trust-item strong { color: #f1f5f9; }
.section.dark .trust-item span { color: #94a3b8; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head > p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15.5px;
  margin: 0;
  padding-bottom: 6px;
}

/* ===== Feature Cards (grid3) ===== */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid3 .card {
  padding: 36px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  transition: all var(--transition);
  background: #fff;
  overflow: hidden;
}
.grid3 .card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--indigo), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.grid3 .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, .12);
}
.grid3 .card:hover:before {
  transform: scaleX(1);
}
.num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 11px/1 Geist Mono, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(124,58,237,.06));
  padding: 5px 10px;
  border-radius: 5px;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -.02em;
}
.card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
  font-size: 14.5px;
}

/* ===== Workflow ===== */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  padding: 30px 24px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: all var(--transition);
}
.step:hover {
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, .15);
}
.step > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  border: 1px solid rgba(37, 99, 235, .15);
  font: 600 14px Geist Mono, monospace;
  color: var(--blue);
  margin-bottom: 18px;
  transition: all var(--transition);
}
.step:hover > span {
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(37, 99, 235, .3);
  transform: scale(1.05);
}
.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.step p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== Trust List (company section) ===== */
.trust-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.trust-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--transition);
}
.trust-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.trust-item strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.trust-item span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  background: var(--surface);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}
.footer-nav a { transition: color var(--transition-fast); }
.footer-nav a:hover { color: var(--blue); }
.legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted-light);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner p { margin: 0; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; font-size: 13px; color: var(--muted); }
.footer-links a { transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--blue); }

/* ===== Page Hero (subpages) ===== */
.page-hero {
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8faff 0%, #fff 50%, #faf5ff 100%);
}
.page-hero:before {
  content: "";
  position: absolute;
  width: 600px;
  height: 400px;
  left: -150px;
  top: -80px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, .08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero:after {
  content: "";
  position: absolute;
  width: 400px;
  height: 300px;
  right: -100px;
  bottom: -50px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, .05) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero h1 {
  max-width: 720px;
  margin: 24px 0;
  text-align: left;
  font-size: clamp(36px, 5vw, 56px);
}
.page-hero .lede {
  margin: 0;
  text-align: left;
}

/* ===== Content Layout (subpages) ===== */
.content {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 60px;
  padding: 60px 0 100px;
  max-width: var(--max);
  margin: auto;
  width: min(var(--max), calc(100% - 48px));
}
.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  font: 500 11px/2.4 Geist Mono, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding-left: 16px;
  border-left: 2px solid linear-gradient(180deg, var(--blue), var(--purple));
  border-image: linear-gradient(180deg, var(--blue), var(--purple)) 1;
}
.toc a {
  display: block;
  color: inherit;
  transition: color var(--transition-fast);
}
.toc a:hover { color: var(--blue); }
.prose h2 {
  font-size: 22px;
  letter-spacing: -.02em;
  margin: 48px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.prose h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.prose p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 18px;
  font-size: 15px;
}
.prose ul, .prose ol {
  color: var(--muted);
  line-height: 1.75;
  padding-left: 20px;
  font-size: 15px;
}
.prose li { margin-bottom: 8px; }
.prose li strong { color: var(--ink); }

/* ===== Badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  border: 1px solid rgba(37, 99, 235, .2);
  color: var(--blue);
  background: linear-gradient(135deg, rgba(37,99,235,.04), rgba(124,58,237,.03));
  margin-bottom: 16px;
}

/* ===== Contact Box ===== */
.contact-box {
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: var(--radius);
  padding: 32px;
  margin: 0 0 36px;
}
.contact-box h2 {
  font-size: 20px;
  margin: 12px 0 8px;
  color: var(--blue);
  border: none;
  padding: 0;
}
.contact-box p { color: var(--muted); margin: 0; }

/* ===== Features (legacy) ===== */
.features {
  padding: 100px 0;
  position: relative;
  background: var(--surface);
}
.grid { display: grid; gap: 24px; }
.thirds { grid-template-columns: repeat(3, 1fr); }
.features .card,
.grid.thirds .card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.features .card:before,
.grid.thirds .card:before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  opacity: 0;
  transition: opacity var(--transition);
}
.features .card:hover,
.grid.thirds .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, .12);
}
.features .card:hover:before,
.grid.thirds .card:hover:before { opacity: 1; }

/* ===== CTA Section ===== */
.cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, #f8faff 0%, #faf5ff 50%, #f0fdfa 100%);
}
.cta h2 { max-width: 680px; margin: 0 auto 16px; }
.cta p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
  font-size: 16px;
}

/* ===== Product details & company profile ===== */
.detail-grid,
.company-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 32px;
}
.detail-grid > div,
.company-facts > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-warm);
}
.detail-grid strong,
.company-facts strong { font-size: 14px; color: var(--ink); }
.detail-grid span,
.company-facts span { font-size: 13px; line-height: 1.55; color: var(--muted); }
.company-facts span {
  font: 500 10px/1.4 Geist Mono, monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
}
.notice {
  padding: 24px;
  margin: 28px 0;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #f4f7ff;
}
.notice p { margin: 8px 0 0; }
.leader-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px;
  margin: 20px 0 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8faff, #fff);
}
.leader-monogram {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink), #334155);
  color: white;
  font: 600 18px Geist Mono, monospace;
}
.leader-card h3 { margin: 2px 0 4px; font-size: 20px; }
.prose .leader-role { color: var(--blue); font-weight: 600; margin-bottom: 12px; }
.section.dark .button:not(.primary) { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }

@media (max-width: 600px) {
  .detail-grid, .company-facts { grid-template-columns: 1fr; }
  .leader-card { grid-template-columns: 1fr; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .thirds { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr 1fr; gap: 16px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .signal { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr; }
  .content {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 20px;
    padding-right: 20px;
  }
  .toc {
    position: static;
    border-left: none;
    border-image: none;
    padding-left: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
  }
  .hero { padding: 80px 0 60px; }
  .page-hero { padding: 70px 0 40px; }
  h1 { font-size: clamp(32px, 8vw, 52px); }
  .links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 18px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    z-index: 200;
  }
  .links.open { display: flex; }
  .links .button { width: 100%; }
  .menu { display: block; }
  .footer-top,
  .legal { align-items: flex-start; flex-direction: column; gap: 20px; }
  .footer-nav { flex-wrap: wrap; gap: 14px 20px; }
  .legal { line-height: 1.6; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 60px 0; }
  .workflow { grid-template-columns: 1fr; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .button, .card, .mark, .step, .trust-item, .links a:after { transition: none; }
  .hero:before { animation: none; }
}

@media print {
  .nav { position: static; backdrop-filter: none; }
  .hero:before, .hero:after, .page-hero:before, .page-hero:after { display: none; }
  .hero, .section.dark, .page-hero, .cta { background: #fff !important; color: #000 !important; }
}
