/* =============================================================================
   TrinityFX Website — Draft v0.1
   Full-width marketing site, distinct from gate-ui's narrow app shell.
   Color system derived from the logo: deep blue -> sky blue gradient.
   Fonts: Sora (display/headings) + Inter (body) — modern fintech pairing.
   ============================================================================= */

:root {
  --tfx-navy:        #071B2E;
  --tfx-blue-dark:   #0B4F91;
  --tfx-blue:        #1A7FC4;
  --tfx-blue-light:  #2CA8E0;
  --tfx-sky:         #7FD4F5;
  --tfx-ink:         #0E1B26;
  --tfx-muted:       #5B6B78;
  --tfx-bg:          #FFFFFF;
  --tfx-bg-muted:    #F4F8FB;
  --tfx-border:      #E3ECF3;
  --tfx-success:     #16A34A;

  --tfx-grad: linear-gradient(135deg, var(--tfx-blue-dark) 0%, var(--tfx-blue) 45%, var(--tfx-blue-light) 100%);
  --tfx-grad-soft: linear-gradient(135deg, rgba(11,79,145,0.08) 0%, rgba(44,168,224,0.08) 100%);

  --tfx-font-display: 'Sora', system-ui, sans-serif;
  --tfx-font-body: 'Inter', system-ui, sans-serif;

  --tfx-max-width: 1280px;
  --tfx-radius: 14px;
  --tfx-shadow: 0 8px 30px rgba(7, 27, 46, 0.08);
  --tfx-shadow-lg: 0 20px 60px rgba(7, 27, 46, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--tfx-font-body);
  color: var(--tfx-ink);
  background: var(--tfx-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--tfx-font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--tfx-navy);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 16px; color: var(--tfx-muted); }

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

img { max-width: 100%; display: block; }

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

.tfx-eyebrow {
  display: inline-block;
  font-family: var(--tfx-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tfx-blue);
  margin-bottom: 14px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.tfx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--tfx-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.tfx-btn-primary {
  background: var(--tfx-grad);
  color: #fff;
  box-shadow: 0 6px 20px rgba(26, 127, 196, 0.35);
}
.tfx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(26, 127, 196, 0.45); }
.tfx-btn-outline {
  background: transparent;
  color: var(--tfx-blue-dark);
  border-color: var(--tfx-border);
}
.tfx-btn-outline:hover { border-color: var(--tfx-blue); background: var(--tfx-grad-soft); }
.tfx-btn-ghost {
  background: transparent;
  color: var(--tfx-ink);
}
.tfx-btn-ghost:hover { color: var(--tfx-blue-dark); }
.tfx-btn-lg { padding: 15px 30px; font-size: 1rem; }
.tfx-btn-block { width: 100%; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.tfx-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tfx-border);
}
.tfx-nav-inner {
  max-width: var(--tfx-max-width);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.tfx-brand { display: flex; align-items: center; gap: 10px; }
.tfx-logo { width: 34px; height: 30px; }
.tfx-brand-name {
  font-family: var(--tfx-font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--tfx-navy);
}
.tfx-brand-accent { color: var(--tfx-blue); }

.tfx-nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.tfx-nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--tfx-ink);
  transition: color 0.15s ease;
}
.tfx-nav-links a:hover { color: var(--tfx-blue); }

.tfx-nav-cta { display: flex; align-items: center; gap: 12px; }
.tfx-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.tfx-nav-toggle span {
  display: block; width: 22px; height: 2px; margin: 5px 0;
  background: var(--tfx-navy); border-radius: 2px;
}
.tfx-nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--tfx-border);
}
.tfx-nav-mobile a { padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--tfx-border); }
.tfx-nav-mobile.tfx-open { display: flex; }

/* ── Sections (full-width shell, constrained inner content) ────────────── */
.tfx-section { padding: 88px 32px; width: 100%; }
.tfx-section-inner { max-width: var(--tfx-max-width); margin: 0 auto; }
.tfx-section-lead { max-width: 640px; font-size: 1.08rem; margin-bottom: 44px; }
.tfx-section-muted { background: var(--tfx-bg-muted); }
.tfx-section-dark { background: var(--tfx-navy); }
.tfx-section-dark h2, .tfx-section-dark .tfx-eyebrow { color: #fff; }
.tfx-section-dark .tfx-eyebrow { color: var(--tfx-sky); }
.tfx-section-dark p { color: rgba(255,255,255,0.72); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.tfx-hero {
  position: relative;
  padding: 140px 32px 100px;
  overflow: hidden;
  background: var(--tfx-navy);
}
.tfx-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 500px at 85% -10%, rgba(44,168,224,0.35), transparent 60%),
    radial-gradient(600px 400px at 10% 110%, rgba(11,79,145,0.5), transparent 60%);
}
.tfx-hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.tfx-hero .tfx-eyebrow { color: var(--tfx-sky); }
.tfx-hero h1 { color: #fff; }
.tfx-hero-lead { color: rgba(255,255,255,0.75); font-size: 1.15rem; max-width: 640px; margin: 0 auto 36px; }
.tfx-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.tfx-hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.tfx-hero-stats div { display: flex; flex-direction: column; align-items: center; }
.tfx-hero-stats strong { font-family: var(--tfx-font-display); font-size: 1.4rem; color: #fff; }
.tfx-hero-stats span { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ── Trust strip ─────────────────────────────────────────────────────── */
.tfx-trust { background: var(--tfx-bg-muted); border-bottom: 1px solid var(--tfx-border); padding: 16px 32px; }
.tfx-trust-inner {
  max-width: var(--tfx-max-width); margin: 0 auto;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  font-size: 0.85rem; font-weight: 600; color: var(--tfx-blue-dark);
}
.tfx-trust-dot { color: var(--tfx-border); }

/* ── Grids / cards ───────────────────────────────────────────────────── */
.tfx-grid { display: grid; gap: 24px; }
.tfx-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tfx-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tfx-grid-4 { grid-template-columns: repeat(4, 1fr); }

.tfx-card {
  background: #fff;
  border: 1px solid var(--tfx-border);
  border-radius: var(--tfx-radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tfx-card:hover { transform: translateY(-4px); box-shadow: var(--tfx-shadow); border-color: var(--tfx-blue-light); }
.tfx-card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.tfx-card-link { color: var(--tfx-blue); font-weight: 600; font-size: 0.9rem; }

.tfx-about-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--tfx-radius);
  padding: 24px;
}
.tfx-about-card h3 { color: #fff; }

.tfx-market-card {
  background: #fff;
  border: 1px solid var(--tfx-border);
  border-radius: var(--tfx-radius);
  padding: 28px;
}

/* ── Split layout (copy + visual) ────────────────────────────────────── */
.tfx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tfx-split-reverse .tfx-split-visual { order: 2; }
.tfx-check-list { list-style: none; padding: 0; margin: 0 0 28px; }
.tfx-check-list li {
  padding-left: 30px; position: relative; margin-bottom: 12px;
  color: rgba(255,255,255,0.85); font-size: 0.95rem;
}
.tfx-check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--tfx-sky); font-weight: 700;
}

.tfx-chart-mock {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--tfx-radius);
  height: 320px;
  position: relative;
  overflow: hidden;
  padding: 20px;
}
.tfx-chart-mock-line {
  position: absolute; inset: 20px 20px 20px 20px;
  background:
    linear-gradient(180deg, rgba(44,168,224,0.15), transparent 70%);
  clip-path: polygon(0% 80%, 12% 65%, 24% 72%, 36% 48%, 48% 55%, 60% 30%, 72% 38%, 84% 18%, 100% 26%, 100% 100%, 0% 100%);
  background-color: rgba(44,168,224,0.18);
}
.tfx-chart-mock-line::after {
  content: ""; position: absolute; inset: 0;
}
.tfx-chart-mock-badge {
  position: absolute; top: 20px; left: 20px;
  background: rgba(7,27,46,0.6); border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 14px; border-radius: 999px; font-size: 0.82rem; color: #fff; font-weight: 600;
}
.tfx-up { color: #4ADE80; margin-left: 4px; }

.tfx-learn-mock {
  height: 280px; border-radius: var(--tfx-radius);
  background: var(--tfx-grad-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}

/* ── Pricing ─────────────────────────────────────────────────────────── */
.tfx-pricing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 24px; }
.tfx-price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--tfx-border);
  border-radius: var(--tfx-radius);
  padding: 28px 22px;
  display: flex; flex-direction: column;
}
.tfx-price-highlight {
  border-color: var(--tfx-blue);
  box-shadow: var(--tfx-shadow-lg);
  transform: scale(1.03);
}
.tfx-price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--tfx-grad); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; letter-spacing: 0.04em;
}
.tfx-price-tagline { font-size: 0.85rem; margin-bottom: 16px; }
.tfx-price-amount { font-family: var(--tfx-font-display); font-size: 2rem; font-weight: 800; color: var(--tfx-navy); margin-bottom: 6px; }
.tfx-price-currency { font-size: 1.1rem; vertical-align: top; margin-right: 2px; }
.tfx-price-period { font-size: 0.95rem; font-weight: 500; color: var(--tfx-muted); }
.tfx-price-band { font-size: 0.8rem; color: var(--tfx-blue); font-weight: 600; margin-bottom: 20px; }
.tfx-price-features { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.tfx-price-features li {
  padding-left: 22px; position: relative; margin-bottom: 10px; font-size: 0.85rem; color: var(--tfx-ink);
}
.tfx-price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--tfx-success); font-weight: 700; }
.tfx-pricing-note { text-align: center; font-size: 0.85rem; color: var(--tfx-muted); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.tfx-faq-list { max-width: 780px; }
.tfx-faq-item {
  border-bottom: 1px solid var(--tfx-border);
  padding: 18px 0;
}
.tfx-faq-item summary {
  cursor: pointer; font-weight: 600; font-family: var(--tfx-font-display);
  font-size: 1.02rem; color: var(--tfx-navy); list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.tfx-faq-item summary::-webkit-details-marker { display: none; }
.tfx-faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--tfx-blue); }
.tfx-faq-item[open] summary::after { content: "–"; }
.tfx-faq-item p { margin-top: 12px; }

/* ── Contact ─────────────────────────────────────────────────────────── */
.tfx-contact-links { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.tfx-contact-link {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; background: #fff; border: 1px solid var(--tfx-border);
  border-radius: 12px; font-weight: 600; font-size: 0.92rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tfx-contact-link:hover { border-color: var(--tfx-blue); transform: translateX(4px); }
.tfx-contact-icon { font-size: 1.1rem; }

.tfx-contact-form {
  background: #fff; border: 1px solid var(--tfx-border);
  border-radius: var(--tfx-radius); padding: 32px; box-shadow: var(--tfx-shadow);
}
.tfx-form-row { margin-bottom: 18px; }
.tfx-form-row label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--tfx-navy); }
.tfx-form-row input,
.tfx-form-row select,
.tfx-form-row textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--tfx-border);
  border-radius: 8px; font-family: var(--tfx-font-body); font-size: 0.92rem;
  background: var(--tfx-bg-muted); resize: vertical;
}
.tfx-form-row input:focus,
.tfx-form-row select:focus,
.tfx-form-row textarea:focus {
  outline: none; border-color: var(--tfx-blue); background: #fff;
}
.tfx-form-status { margin: 14px 0 0; font-size: 0.85rem; min-height: 20px; }
.tfx-form-status.tfx-ok { color: var(--tfx-success); }
.tfx-form-status.tfx-err { color: #DC2626; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.tfx-footer { background: var(--tfx-navy); color: rgba(255,255,255,0.7); padding: 56px 32px 24px; }
.tfx-footer-inner {
  max-width: var(--tfx-max-width); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tfx-footer-brand p { margin-top: 8px; font-size: 0.85rem; }
.tfx-footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.tfx-footer-cols h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.tfx-footer-cols a { display: block; font-size: 0.88rem; margin-bottom: 10px; color: rgba(255,255,255,0.65); }
.tfx-footer-cols a:hover { color: #fff; }
.tfx-footer-bottom {
  max-width: var(--tfx-max-width); margin: 20px auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
}

/* ── Scroll-reveal (JS toggles .tfx-visible) ────────────────────────────── */
.tfx-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.tfx-reveal.tfx-visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .tfx-pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .tfx-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .tfx-nav-links, .tfx-nav-cta { display: none; }
  .tfx-nav-toggle { display: block; }
  .tfx-split, .tfx-split-reverse { grid-template-columns: 1fr; }
  .tfx-split-reverse .tfx-split-visual { order: 0; }
  .tfx-grid-3 { grid-template-columns: 1fr; }
  .tfx-price-highlight { transform: none; }
}
@media (max-width: 720px) {
  .tfx-section { padding: 64px 20px; }
  .tfx-hero { padding: 110px 20px 72px; }
  .tfx-nav-inner { padding: 12px 20px; }
  .tfx-pricing-grid { grid-template-columns: 1fr; }
  .tfx-grid-4, .tfx-grid-2 { grid-template-columns: 1fr; }
  .tfx-hero-stats { gap: 28px; }
  .tfx-footer-inner { flex-direction: column; }
}
