/* ==========================================================================
   Txform.ph — design system
   Carried over from the live bundle: navy #0B2447 + green #19A974,
   Plus Jakarta Sans (display) / Inter (body) / JetBrains Mono (code bits).
   ========================================================================== */

:root {
  /* Brand — navy scale */
  --navy-900: #0B2447;
  --navy-800: #132F5C;
  --navy-700: #24406B;
  --navy-600: #3E5680;
  --navy-500: #5A6E90;

  /* Brand — green / mint */
  --green: #19A974;
  --green-600: #148A5F;
  --green-700: #0F6B4A;
  --mint: #7FE0BB;

  /* Neutrals */
  --paper: #F7F9FC;
  --surface: #EDF1F7;
  --white: #FFFFFF;
  --ink: #0B2447;
  --muted: #465570;
  --muted-light: #B9C4D6;
  --line: #E2E8F1;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --text-hero: clamp(2.75rem, 1.4rem + 6vw, 4.75rem);
  --text-h2: clamp(2rem, 1.2rem + 3vw, 3rem);
  --text-h3: clamp(1.35rem, 1.1rem + 1vw, 1.6rem);
  --text-lead: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem);

  /* Spacing / rhythm */
  --space-section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 3px rgba(11, 36, 71, 0.08);
  --shadow: 0 12px 32px -12px rgba(11, 36, 71, 0.18);
  --shadow-lg: 0 32px 64px -24px rgba(11, 36, 71, 0.35);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 260ms;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ------------------------------------------------------------------ layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: var(--space-section); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow.on-dark { color: var(--mint); }

.section-head { max-width: 44ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: var(--text-h2); font-weight: 800; margin-top: 0.75rem; }
.section-head p { color: var(--muted); font-size: var(--text-lead); margin-top: 1rem; }
.on-dark .section-head p, .panel-dark .section-head p { color: var(--muted-light); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 8px 20px -8px rgba(25, 169, 116, 0.7); }
.btn-primary:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(25, 169, 116, 0.8); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-600); transform: translateY(-2px); }
.btn-ghost.on-dark { color: var(--white); border-color: rgba(255,255,255,0.25); }
.btn-ghost.on-dark:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }
.btn:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 249, 252, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 2rem; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; }
.brand-logo { height: 32px; width: auto; display: block; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: #fff; display: grid; place-items: center; flex: none; overflow: hidden; }
.brand-mark img { width: 26px; height: 26px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--muted); transition: color var(--dur) var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 0.4rem; cursor: pointer; color: var(--ink); }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem;
    position: absolute; top: 68px; left: 0; right: 0; padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-cta { margin-left: auto; }
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(25,169,116,0.30), transparent 60%),
    radial-gradient(50% 50% at 12% 90%, rgba(127,224,187,0.14), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; padding-block: clamp(4rem, 8vw, 7.5rem); }
.hero h1 { font-size: var(--text-hero); font-weight: 800; max-width: 15ch; margin-top: 1.5rem; }
.hero h1 .accent { color: var(--mint); }
.hero-lead { font-size: var(--text-lead); color: var(--muted-light); max-width: 52ch; margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 3rem; }
.chip {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
  padding: 0.45rem 0.9rem; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: var(--mint);
}

/* ------------------------------------------------------------------ trust bar */
.trustbar { background: var(--navy-800); color: var(--muted-light); }
.trustbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; padding-block: 1.5rem; }
.trustbar strong { color: var(--white); font-family: var(--font-display); }

/* ------------------------------------------------------------------ steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.step { position: relative; padding: 1.75rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--green-600); font-weight: 500; }
.step h3 { font-size: var(--text-h3); margin: 0.75rem 0 0.5rem; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ------------------------------------------------------------------ feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature + .feature { margin-top: clamp(4rem, 8vw, 7rem); }
.feature.reverse .feature-media { order: -1; }
.feature h3 { font-size: var(--text-h2); font-weight: 800; margin: 0.75rem 0 1rem; }
.feature p { color: var(--muted); font-size: var(--text-lead); }
.feature-list { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.feature-list li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--muted); }
.feature-list svg { flex: none; margin-top: 0.2rem; color: var(--green); }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
}

/* stylized product "screens" — pure CSS, no image assets needed */
.mock {
  border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); padding: 1.25rem; overflow: hidden;
}
.feature-shot {
  width: 100%; height: auto; display: block; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--white);
}
.mock-dark { background: var(--navy-800); border-color: var(--navy-700); color: var(--white); }
.mock-bar { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-dark .mock-bar i { background: var(--navy-700); }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 0.5rem; font-size: 0.9rem; }
.mock-dark .mock-row { background: var(--navy-700); }
.mock-file { font-family: var(--font-mono); font-size: 0.85rem; }
.pill { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; padding: 0.25rem 0.6rem; border-radius: 999px; }
.pill-green { background: rgba(25,169,116,0.14); color: var(--green-700); }
.pill-amber { background: rgba(214,158,46,0.16); color: #9C6B12; }

/* ------------------------------------------------------------------ dark panel */
.panel-dark { background: var(--navy-900); color: var(--white); }
.panel-dark .eyebrow { color: var(--mint); }

/* ------------------------------------------------------------------ security grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.card {
  padding: 1.75rem; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card.on-dark { background: var(--navy-800); border-color: var(--navy-700); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(25,169,116,0.12); color: var(--green); display: grid; place-items: center; margin-bottom: 1rem; }
.card.on-dark .card-icon { background: rgba(127,224,187,0.14); color: var(--mint); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card.on-dark p { color: var(--muted-light); }

/* ------------------------------------------------------------------ pricing */
.price-card {
  max-width: 460px; margin-inline: auto; text-align: center;
  padding: clamp(2rem, 5vw, 3rem); border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.price-amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 1.5rem + 4vw, 3.75rem); color: var(--ink); letter-spacing: -0.03em; }
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-list { margin: 1.75rem 0; display: grid; gap: 0.8rem; text-align: left; }
.price-list li { display: flex; gap: 0.65rem; color: var(--muted); }
.price-list svg { color: var(--green); flex: none; }

/* ------------------------------------------------------------------ FAQ */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; color: var(--green); transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 0.9rem; }

/* ------------------------------------------------------------------ CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--white); border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 0%, rgba(127,224,187,0.2), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: var(--text-h2); font-weight: 800; max-width: 18ch; margin-inline: auto; }
.cta-band p { color: var(--muted-light); margin: 1rem auto 2rem; max-width: 40ch; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--navy-900); color: var(--muted-light); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; }
.footer-brand .brand { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 1rem; }
.footer-col a { display: block; padding: 0.35rem 0; font-size: 0.95rem; color: rgba(255,255,255,0.78); transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--mint); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--navy-700); font-size: 0.85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ legal / content pages */
.doc { max-width: 760px; margin-inline: auto; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); font-weight: 800; }
.doc .updated { color: var(--muted); font-size: 0.9rem; margin-top: 0.75rem; }
.doc h2 { font-size: 1.4rem; font-weight: 700; margin: 2.5rem 0 0.75rem; }
.doc h3 { font-size: 1.1rem; font-weight: 700; margin: 1.75rem 0 0.5rem; }
.doc p, .doc li { color: var(--muted); margin-bottom: 1rem; }
.doc ul { list-style: disc; padding-left: 1.25rem; }
.doc li { margin-bottom: 0.5rem; }
.doc a { color: var(--green-600); text-decoration: underline; }

/* utilities */
.center { text-align: center; }
.mt-auto { margin-top: auto; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
