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

:root {
  --ink-900: #0b1220;
  --ink-800: #131c2e;
  --ink-700: #1e293b;
  --ink-600: #334155;
  --ink-500: #475569;
  --ink-400: #64748b;
  --ink-300: #94a3b8;
  --ink-200: #cbd5e1;
  --ink-100: #e2e8f0;
  --ink-50: #f8fafc;
  --white: #ffffff;

  --brand-700: #1e3a8a;
  --brand-600: #1d4ed8;
  --brand-500: #2563eb;
  --brand-50: #eff6ff;

  --pos-600: #0e7b62;
  --pos-50: #ecfdf6;
  --cad-600: #256e96;
  --cad-50: #eef8fc;
  --fx-600: #6b2fa6;
  --fx-50: #f6effc;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-500); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-500);
  max-width: 640px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink-900);
  color: var(--white);
}
.btn-primary:hover { background: var(--brand-600); }

.btn-secondary {
  background: var(--white);
  color: var(--ink-800);
  border-color: var(--ink-200);
}
.btn-secondary:hover { border-color: var(--ink-400); background: var(--ink-50); }

.btn-ghost {
  background: transparent;
  color: inherit;
  padding: 8px 4px;
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-100);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-900);
}

.brand img { height: 30px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-400);
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-600);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink-900); }

.nav-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink-900); border-radius: 2px; }

/* Hero */
.hero {
  padding: 84px 0 64px;
  background: linear-gradient(180deg, var(--ink-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--ink-100);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { max-width: 620px; }
.stat-row { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.stat b { display: block; font-size: 1.7rem; color: var(--ink-900); font-weight: 800; }
.stat span { font-size: 0.85rem; color: var(--ink-400); }

.hero-panel {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}
.hero-panel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 10px;
  border-radius: var(--radius-md);
}
.hero-panel-row + .hero-panel-row { margin-top: 4px; }
.hero-panel-row:hover { background: var(--ink-50); }
.mini-icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.hero-panel-row div p { margin: 0; font-size: 0.82rem; color: var(--ink-400); }
.hero-panel-row div b { font-size: 0.95rem; color: var(--ink-900); }

.hero-panel-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 44px 28px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.hero-panel-cta:hover { transform: translateY(-3px); }
.hero-panel-icons { display: flex; }
.hero-panel-icons img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 3px solid var(--white);
  margin-left: -14px;
  box-shadow: var(--shadow-sm);
}
.hero-panel-icons img:first-child { margin-left: 0; }
.hero-panel-cta b { font-size: 1.1rem; color: var(--ink-900); }
.hero-panel-cta p { font-size: 0.88rem; color: var(--ink-400); margin: 0; max-width: 230px; }
.hero-panel-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--ink-900);
  transition: background 0.15s ease, color 0.15s ease;
}
.hero-panel-cta:hover .hero-panel-arrow { background: var(--brand-50); color: var(--brand-600); }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin: 0 0 48px; text-align: left; }
.alt-bg { background: var(--ink-50); }

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

.product-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px;
  margin: 0 auto;
}

.product-card {
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--white);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ink-200);
}

.product-icon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 22px; }

.product-card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 14px;
  width: fit-content;
}
.tag-pos { background: var(--pos-50); color: var(--pos-600); }
.tag-cad { background: var(--cad-50); color: var(--cad-600); }
.tag-fx { background: var(--fx-50); color: var(--fx-600); }

.product-card h3 { margin-bottom: 8px; }
.product-card p { flex-grow: 1; margin-bottom: 20px; }
.product-card .card-link { font-weight: 600; font-size: 0.9rem; color: var(--ink-900); display: inline-flex; align-items: center; gap: 6px; }
.product-card .card-link .arrow { transition: transform 0.15s ease; }
.product-card:hover .card-link .arrow { transform: translateX(3px); }

/* Feature grid (used on product pages + about) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-item {
  padding: 26px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  background: var(--white);
}
.feature-item h4 { font-size: 1rem; margin-bottom: 6px; }
.feature-item p { margin: 0; font-size: 0.92rem; }
.feature-item .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-300);
  margin-bottom: 10px;
  display: block;
}

/* Product page hero */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-400);
  margin-bottom: 28px;
}
.back-link:hover { color: var(--ink-900); }

.product-hero { padding: 56px 0 64px; border-bottom: 1px solid var(--ink-100); }
.product-hero-top { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.product-hero-icon { width: 68px; height: 68px; border-radius: 16px; }
.product-hero h1 { margin-bottom: 6px; }
.product-hero .category { font-size: 0.95rem; color: var(--ink-400); font-weight: 500; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 100px;
  border: 1px solid var(--ink-200);
  color: var(--ink-600);
  margin-bottom: 20px;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.status-live .dot { background: #16a34a; }
.status-dev .dot { background: #d97706; }

.platform-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.platform-chip {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-600);
  border: 1px solid var(--ink-200);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--ink-900);
  box-shadow: var(--shadow-lg);
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--ink-900);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
}
.price-card-head p { font-size: 0.87rem; margin-bottom: 18px; }
.price-amount { display: block; margin-bottom: 20px; }
.price-amount .amount { font-size: 1.9rem; font-weight: 800; color: var(--ink-900); letter-spacing: -0.02em; }
.price-amount small { display: block; font-size: 0.8rem; font-weight: 500; color: var(--ink-400); margin-top: 2px; }
.price-card .btn { margin-bottom: 22px; }
.price-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.price-features li { font-size: 0.9rem; color: var(--ink-600); padding-left: 24px; position: relative; }
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--pos-600);
  font-weight: 700;
}
.renewal-note {
  font-size: 0.78rem;
  color: var(--ink-400);
  line-height: 1.5;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--ink-200);
}

.coming-soon-note {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 16px 22px;
  background: var(--brand-50);
  border: 1px dashed var(--ink-200);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-600);
}
.coming-soon-note strong { color: var(--ink-900); }

.comparison-wrap { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.comparison-table th, .comparison-table td {
  padding: 15px 14px;
  text-align: center;
  border-bottom: 1px solid var(--ink-100);
  font-size: 0.88rem;
}
.comparison-table th { color: var(--ink-900); font-weight: 700; }
.comparison-table td:first-child, .comparison-table th:first-child { text-align: left; color: var(--ink-700); font-weight: 500; }
.comparison-table .yes { color: var(--pos-600); font-weight: 700; }
.comparison-table .no { color: var(--ink-300); }
.comparison-table thead th { padding-bottom: 18px; }

.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--ink-100);
  padding: 20px 0;
}
.faq-item summary {
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--ink-400); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 14px 0 0; font-size: 0.92rem; }
.pricing-note { text-align: center; font-size: 0.85rem; color: var(--ink-400); margin-top: 28px; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--ink-100); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 16px 0; vertical-align: top; }
.spec-table td:first-child { width: 220px; font-weight: 600; color: var(--ink-900); font-size: 0.92rem; }
.spec-table td:last-child { color: var(--ink-500); font-size: 0.92rem; }

/* CTA band */
.cta-band {
  background: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: var(--white);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--ink-300); max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 8px; }
.cta-band .btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.25); }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.cta-band .btn-primary { background: var(--white); color: var(--ink-900); }
.cta-band .btn-primary:hover { background: var(--brand-50); }

/* About page */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { padding: 28px; border-radius: var(--radius-md); border: 1px solid var(--ink-100); }
.value-card .num { font-family: var(--font-mono); color: var(--brand-600); font-weight: 600; font-size: 0.85rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-card {
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 16px;
}
.contact-card h4 { margin-bottom: 4px; }
.feedback-form { max-width: 640px; margin: 0 auto; background: var(--white); }
.contact-card .value { font-size: 1.05rem; font-weight: 600; color: var(--ink-900); }
.contact-card .hint { font-size: 0.85rem; color: var(--ink-400); margin-top: 4px; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-800); margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-200);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-50);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--ink-400); margin-top: 12px; }

/* Footer */
.site-footer { background: var(--ink-900); color: var(--ink-300); padding: 64px 0 28px; margin-top: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand img { height: 26px; filter: brightness(0) invert(1); margin-bottom: 14px; opacity: 0.9; }
.footer-brand p { color: var(--ink-400); font-size: 0.9rem; max-width: 260px; }
.footer-col h5 {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--ink-300); font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--ink-400);
  flex-wrap: wrap;
  gap: 12px;
}

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 560px; margin: 0 auto; }
  .price-card.featured { order: -1; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn-secondary { display: none; }
  .nav-toggle { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .stat-row { gap: 26px; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  section { padding: 60px 0; }
  .spec-table td:first-child { width: 140px; }
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--white);
  z-index: 99;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.mobile-nav a { display: block; padding: 16px 4px; font-size: 1.15rem; font-weight: 600; color: var(--ink-900); border-bottom: 1px solid var(--ink-100); }
.mobile-nav .btn { margin-top: 24px; }
