:root {
  --tcx-bg: #f7f8fc;
  --tcx-surface: #ffffff;
  --tcx-ink: #0f172a;
  --tcx-muted: #64748b;
  --tcx-border: #e5e7f5;
  --tcx-radius: 16px;

  --tcx-primary: #4f46e5;
  --tcx-primary-dark: #4338ca;
  --tcx-accent: #0891b2;
  --tcx-accent-2: #7c3aed;
  --tcx-gradient: linear-gradient(135deg, var(--tcx-primary) 0%, var(--tcx-accent-2) 55%, var(--tcx-accent) 100%);
}

* { box-sizing: border-box; }

body.tcx-landing {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--tcx-ink);
  background: var(--tcx-bg);
  line-height: 1.6;
}

.tcx-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* -------- Nav -------- */
.tcx-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 252, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tcx-border);
}
.tcx-nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.tcx-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tcx-ink); font-weight: 800; font-size: 1.15rem; }
.tcx-brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--tcx-gradient);
  flex-shrink: 0;
}
.tcx-brand img.tcx-brand-mark { object-fit: contain; background: none; }
.tcx-nav-links { display: flex; align-items: center; gap: 26px; }
.tcx-nav-links a { color: var(--tcx-muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.tcx-nav-links a:hover { color: var(--tcx-ink); }
@media (max-width: 860px) { .tcx-nav-links { display: none; } }

.tcx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 11px 22px; font-weight: 700; font-size: 0.93rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
  white-space: nowrap;
}
.tcx-btn-primary { background: var(--tcx-gradient); color: #fff; box-shadow: 0 8px 20px -6px rgba(79,70,229,.55); }
.tcx-btn-primary:hover { filter: brightness(1.06); box-shadow: 0 10px 24px -6px rgba(79,70,229,.65); }
.tcx-btn-outline { background: #fff; color: var(--tcx-ink); border-color: var(--tcx-border); }
.tcx-btn-outline:hover { border-color: var(--tcx-primary); color: var(--tcx-primary); }
.tcx-btn-block { width: 100%; }
.tcx-btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.tcx-login-form { display: flex; gap: 6px; align-items: center; }
.tcx-login-form input {
  width: 118px; padding: 9px 10px; border: 1px solid var(--tcx-border); border-radius: 8px; font-size: 0.82rem;
}
@media (max-width: 620px) { .tcx-login-form { display: none; } }

/* -------- Hero -------- */
.tcx-hero { position: relative; padding: 92px 0 60px; overflow: hidden; text-align: center; }
.tcx-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 640px; z-index: -1;
  background:
    radial-gradient(480px 320px at 18% 20%, rgba(79,70,229,.16), transparent 65%),
    radial-gradient(520px 340px at 85% 10%, rgba(8,145,178,.14), transparent 65%),
    radial-gradient(420px 300px at 55% 60%, rgba(124,58,237,.10), transparent 65%);
}
.tcx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--tcx-border); border-radius: 999px;
  padding: 7px 16px; font-size: 0.82rem; font-weight: 700; color: var(--tcx-primary-dark);
  box-shadow: 0 4px 14px -6px rgba(15,23,42,.12);
}
.tcx-eyebrow svg { width: 15px; height: 15px; }
.tcx-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em;
  margin: 22px auto 18px; max-width: 780px; line-height: 1.12;
}
.tcx-hero .tcx-gradient-text {
  background: var(--tcx-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tcx-hero p.tcx-lead { max-width: 620px; margin: 0 auto 30px; color: var(--tcx-muted); font-size: 1.08rem; }
.tcx-hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }

.tcx-stat-row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; color: var(--tcx-muted); font-size: 0.88rem; font-weight: 600; margin-bottom: 56px; }
.tcx-stat-row span { display: inline-flex; align-items: center; gap: 7px; }
.tcx-stat-row svg { width: 16px; height: 16px; color: var(--tcx-accent); flex-shrink: 0; }

.tcx-hero-shot {
  position: relative; max-width: 880px; margin: 0 auto; border-radius: 20px; overflow: hidden;
  background: #fff; border: 1px solid var(--tcx-border);
  box-shadow: 0 40px 80px -30px rgba(30,27,75,.35), 0 10px 24px -12px rgba(30,27,75,.15);
}
.tcx-hero-shot img { display: block; width: 100%; height: auto; }

/* -------- Proof strip -------- */
.tcx-proof {
  border-top: 1px solid var(--tcx-border); border-bottom: 1px solid var(--tcx-border);
  background: #fff;
}
.tcx-proof-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  padding: 22px 0;
}
.tcx-proof-item {
  display: flex; align-items: center; gap: 9px; padding: 6px 26px;
  border-left: 1px solid var(--tcx-border); font-size: 0.86rem; font-weight: 600; color: var(--tcx-ink);
}
.tcx-proof-item:first-child { border-left: none; }
.tcx-proof-item svg { width: 18px; height: 18px; color: var(--tcx-primary); flex-shrink: 0; }
@media (max-width: 700px) { .tcx-proof-item { border-left: none; padding: 6px 14px; } }

/* -------- Sections -------- */
.tcx-section { padding: 88px 0; }
.tcx-section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.tcx-eyebrow-label {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--tcx-accent); margin-bottom: 12px;
}
.tcx-section-head h2 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 12px; }
.tcx-section-head p { color: var(--tcx-muted); margin: 0; }

/* -------- Bento feature grid -------- */
.tcx-bento {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 20px;
}
.tcx-bento-card {
  background: #fff; border: 1px solid var(--tcx-border); border-radius: var(--tcx-radius);
  padding: 26px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.tcx-bento-card.tcx-bento-lg { grid-column: span 2; grid-row: span 2; }
.tcx-bento-card.tcx-bento-lg::after {
  content: ""; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,.10), transparent 70%);
}
.tcx-bento-icon {
  width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: var(--tcx-gradient); color: #fff; flex-shrink: 0;
}
.tcx-bento-icon svg { width: 22px; height: 22px; }
.tcx-bento-card h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.tcx-bento-card.tcx-bento-lg h3 { font-size: 1.3rem; }
.tcx-bento-card p { margin: 0; color: var(--tcx-muted); font-size: 0.88rem; }
@media (max-width: 900px) {
  .tcx-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .tcx-bento-card.tcx-bento-lg { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
  .tcx-bento { grid-template-columns: 1fr; }
  .tcx-bento-card, .tcx-bento-card.tcx-bento-lg { grid-column: span 1; grid-row: span 1; min-height: 150px; }
}

/* -------- Timeline steps -------- */
.tcx-timeline { position: relative; display: flex; justify-content: space-between; gap: 24px; margin-top: 20px; }
.tcx-timeline::before {
  content: ""; position: absolute; top: 23px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--tcx-primary), var(--tcx-accent));
  opacity: .3;
}
.tcx-tl-step { position: relative; flex: 1; text-align: center; padding-top: 0; }
.tcx-tl-num {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 18px; position: relative; z-index: 1;
  background: var(--tcx-gradient); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; box-shadow: 0 8px 18px -6px rgba(79,70,229,.5);
}
.tcx-tl-step h3 { font-size: 1.05rem; margin: 0 0 8px; }
.tcx-tl-step p { color: var(--tcx-muted); font-size: 0.88rem; margin: 0; max-width: 260px; margin: 0 auto; }
@media (max-width: 760px) {
  .tcx-timeline { flex-direction: column; gap: 32px; }
  .tcx-timeline::before { display: none; }
}

/* -------- Pricing -------- */
.tcx-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 40px; font-weight: 600; font-size: 0.92rem; }
.tcx-switch { width: 46px; height: 26px; border-radius: 999px; background: var(--tcx-border); border: none; position: relative; cursor: pointer; padding: 0; }
.tcx-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s ease; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.tcx-switch.is-on { background: var(--tcx-gradient); }
.tcx-switch.is-on::after { transform: translateX(20px); }
.tcx-save-badge { background: #ecfeff; color: var(--tcx-accent); border-radius: 999px; padding: 2px 9px; font-size: 0.72rem; font-weight: 800; margin-left: 6px; }

.tcx-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; align-items: stretch; }
.tcx-plan { background: #fff; border: 1px solid var(--tcx-border); border-radius: var(--tcx-radius); padding: 30px; display: flex; flex-direction: column; position: relative; }
.tcx-plan.is-featured { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--tcx-gradient) border-box; border-width: 2px; border-style: solid; box-shadow: 0 20px 40px -20px rgba(79,70,229,.35); }
.tcx-plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--tcx-gradient); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 5px 14px; border-radius: 999px; }
.tcx-plan-name { font-weight: 800; font-size: 1.1rem; margin: 4px 0 4px; }
.tcx-plan-desc { color: var(--tcx-muted); font-size: 0.85rem; margin: 0 0 18px; min-height: 20px; }
.tcx-plan-price { font-size: 2.3rem; font-weight: 800; margin: 0 0 4px; }
.tcx-plan-price span { font-size: 0.85rem; font-weight: 600; color: var(--tcx-muted); }
.tcx-plan-trial { color: var(--tcx-accent); font-size: 0.82rem; font-weight: 700; margin: 0 0 22px; }
.tcx-plan-features { list-style: none; padding: 0; margin: 0 0 26px; flex-grow: 1; }
.tcx-plan-features li { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 0.88rem; color: var(--tcx-ink); border-top: 1px solid var(--tcx-border); }
.tcx-plan-features li:first-child { border-top: none; }
.tcx-plan-features li::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; background: var(--tcx-accent); mask: none; }

/* -------- FAQ -------- */
.tcx-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.tcx-faq-item { background: #fff; border: 1px solid var(--tcx-border); border-radius: 14px; overflow: hidden; }
.tcx-faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 18px 22px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700; font-size: 0.96rem; color: var(--tcx-ink);
}
.tcx-faq-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--tcx-bg); display: flex; align-items: center; justify-content: center; transition: transform .15s ease; font-size: 1rem; color: var(--tcx-primary); }
.tcx-faq-item.is-open .tcx-faq-icon { transform: rotate(45deg); }
.tcx-faq-a { max-height: 0; overflow: hidden; transition: max-height .2s ease; }
.tcx-faq-item.is-open .tcx-faq-a { max-height: 240px; }
.tcx-faq-a p { margin: 0; padding: 0 22px 20px; color: var(--tcx-muted); font-size: 0.9rem; }

/* -------- CTA band -------- */
.tcx-cta-band { position: relative; overflow: hidden; padding: 80px 0; text-align: center; background: var(--tcx-gradient); color: #fff; }
.tcx-cta-band::before, .tcx-cta-band::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.08); filter: blur(10px);
}
.tcx-cta-band::before { top: -140px; left: -80px; }
.tcx-cta-band::after { bottom: -160px; right: -60px; }
.tcx-cta-band h2 { font-size: 2rem; font-weight: 800; margin: 0 0 12px; position: relative; }
.tcx-cta-band p { opacity: .92; margin: 0 0 28px; position: relative; }
.tcx-cta-band .tcx-btn-primary { background: #fff; color: var(--tcx-primary-dark); box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }
.tcx-cta-band .tcx-btn-outline { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.tcx-cta-band .tcx-btn-outline:hover { border-color: #fff; color: #fff; }

/* -------- Contact -------- */
.tcx-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .tcx-contact-grid { grid-template-columns: 1fr; } }
.tcx-contact-blurb h3 { font-size: 1.3rem; margin: 0 0 12px; }
.tcx-contact-blurb p { color: var(--tcx-muted); margin: 0 0 20px; }
.tcx-contact-blurb ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tcx-contact-blurb li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--tcx-ink); }
.tcx-contact-blurb li svg { width: 18px; height: 18px; color: var(--tcx-accent); flex-shrink: 0; margin-top: 2px; }

.tcx-form-card { background: #fff; border: 1px solid var(--tcx-border); border-radius: var(--tcx-radius); padding: 30px; }
.tcx-field { margin-bottom: 16px; }
.tcx-field label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; }
.tcx-field input, .tcx-field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--tcx-border); border-radius: 10px; font-size: 0.92rem;
  font-family: inherit; resize: vertical;
}
.tcx-field input:focus, .tcx-field textarea:focus { outline: 2px solid var(--tcx-primary); outline-offset: 1px; }
.tcx-alert { padding: 12px 16px; border-radius: 10px; font-size: 0.88rem; margin-bottom: 18px; }
.tcx-alert-success { background: #ecfeff; color: #0e7490; }
.tcx-alert-danger { background: #fef2f2; color: #b91c1c; }

/* -------- Standalone forms (register / register success) -------- */
.tcx-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .tcx-form-grid { grid-template-columns: 1fr; } }
.tcx-field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--tcx-border); border-radius: 10px; font-size: 0.92rem;
  font-family: inherit; background: #fff;
}
.tcx-subdomain-check { font-size: 0.82rem; margin-top: 6px; min-height: 1.2em; }
.tcx-subdomain-check.ok { color: #15803d; }
.tcx-subdomain-check.bad { color: #b91c1c; }
.tcx-input-suffix { display: flex; align-items: stretch; }
.tcx-input-suffix input { border-radius: 10px 0 0 10px; }
.tcx-input-suffix span {
  display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--tcx-border);
  border-left: none; border-radius: 0 10px 10px 0; background: var(--tcx-bg); color: var(--tcx-muted);
  font-size: 0.85rem; white-space: nowrap;
}
.tcx-standalone-section { padding: 64px 0 88px; }
.tcx-standalone-section .tcx-form-card { max-width: 520px; margin: 0 auto; }
.tcx-back-link { color: var(--tcx-muted); text-decoration: none; font-weight: 600; font-size: 0.88rem; }
.tcx-back-link:hover { color: var(--tcx-ink); }
.tcx-success-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--tcx-gradient); color: #fff; display: flex; align-items: center; justify-content: center;
}
.tcx-success-icon svg { width: 30px; height: 30px; }
.tcx-credential-box {
  background: var(--tcx-bg); border: 1px solid var(--tcx-border); border-radius: 12px;
  padding: 18px 20px; margin: 20px 0; font-size: 0.9rem;
}
.tcx-credential-box code { background: #fff; border: 1px solid var(--tcx-border); border-radius: 6px; padding: 2px 7px; }

/* -------- Footer -------- */
.tcx-footer { background: #0f172a; color: #cbd5e1; padding: 40px 0; }
.tcx-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; }
.tcx-footer a { color: #fff; text-decoration: none; }
.tcx-footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: #fff; }
.tcx-footer-brand .tcx-brand-mark { width: 26px; height: 26px; border-radius: 8px; }

/* -------- Reveal-on-scroll (fail-safe: visible by default) -------- */
.tcx-pre-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.tcx-pre-reveal.tcx-in-view { opacity: 1; transform: none; }
