/* TradeForm Theme — main.css
 * Mirrors the approved React frontend design tokens & components.
 */

:root {
	--tf-ink: #0F172A;
	--tf-ink-soft: #475569;
	--tf-accent: #14B8A6;
	--tf-accent-soft: #CCFBF1;
	--tf-surface: #F8FAFC;
	--tf-hairline: #E5E7EB;
	--tf-white: #ffffff;
	--tf-radius: 14px;
	--tf-radius-lg: 32px;
	--tf-shadow-1: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
	--tf-shadow-2: 0 8px 24px -8px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.04);
	--tf-shadow-3: 0 30px 60px -20px rgba(15,23,42,.18), 0 10px 24px -12px rgba(15,23,42,.10);
	--tf-glow-teal: 0 20px 60px -20px rgba(20,184,166,.55);
	--tf-max: 1400px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter Tight", ui-sans-serif, system-ui, sans-serif; color: var(--tf-ink); background: #fff; line-height: 1.5; font-feature-settings: "ss01","cv11"; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--tf-accent); color: #fff; }

.tf-skip { position: absolute; left: -9999px; }
.tf-skip:focus { left: 1rem; top: 1rem; background: var(--tf-ink); color: #fff; padding: .75rem 1rem; border-radius: 8px; z-index: 100; }

.tf-container { max-width: var(--tf-max); margin: 0 auto; padding: 0 clamp(1.25rem, 2vw, 2rem); }
.tf-mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; letter-spacing: .04em; }
.tf-muted { color: var(--tf-ink-soft); font-size: 15px; line-height: 1.6; }

/* Header */
.tf-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(16px) saturate(140%); background: color-mix(in oklab, white 78%, transparent); border-bottom: 1px solid var(--tf-hairline); }
.tf-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .9rem 0; }
.tf-logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; letter-spacing: -.01em; }
.tf-logo__mark { width: 32px; height: 32px; background: var(--tf-ink); border-radius: 8px; display: grid; place-items: center; }
.tf-logo__mark span { width: 10px; height: 10px; background: var(--tf-accent); border-radius: 3px; display: block; }
.tf-logo__text { font-size: 15px; }
.tf-nav-list { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--tf-ink-soft); }
.tf-nav-list a:hover { color: var(--tf-ink); }
@media (max-width: 900px) { .tf-nav { display: none; } }

/* Buttons */
.tf-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .95rem 1.5rem; border-radius: 999px; font-weight: 500; font-size: 14.5px; transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease, background .3s; cursor: pointer; border: 0; }
.tf-btn--ink { background: var(--tf-ink); color: #fff; box-shadow: var(--tf-shadow-2); }
.tf-btn--ink:hover { transform: translateY(-2px); box-shadow: var(--tf-shadow-3); }
.tf-btn--teal { background: var(--tf-accent); color: #fff; box-shadow: var(--tf-glow-teal); }
.tf-btn--teal:hover { transform: translateY(-2px); }
.tf-btn--ghost { color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); }
.tf-btn--ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* Typography */
.tf-display, .tf-h2, .tf-h3 { font-family: "Instrument Serif", ui-serif, Georgia, serif; font-weight: 400; letter-spacing: -.025em; line-height: .96; margin: 0; }
.tf-display { font-size: clamp(2.4rem, 6vw, 5rem); }
.tf-display--xl { font-size: clamp(2.6rem, 7vw, 6rem); }
.tf-display--lg { font-size: clamp(2.4rem, 6vw, 5rem); }
.tf-h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
.tf-h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.tf-h4 { font-family: "Inter Tight", sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .5rem; }
.tf-italic { font-style: italic; color: rgba(255,255,255,.85); }
.tf-section .tf-italic, .tf-cta .tf-italic { color: inherit; opacity: .85; }
.tf-lead { max-width: 640px; margin-top: 1.75rem; font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,.72); }
.tf-eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: var(--tf-ink-soft); }
.tf-eyebrow--dark { color: rgba(255,255,255,.55); }
.tf-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); color: rgba(255,255,255,.75); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; backdrop-filter: blur(8px); }
.tf-dot { width: 6px; height: 6px; background: var(--tf-accent); border-radius: 999px; }

/* Hero */
.tf-hero--dark { position: relative; overflow: hidden; background: var(--tf-ink); color: #fff; padding: 10rem 0 7rem; isolation: isolate; }
.tf-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.tf-glow { position: absolute; border-radius: 9999px; filter: blur(90px); pointer-events: none; }
.tf-glow--a { width: 460px; height: 460px; top: -140px; left: -80px; background: rgba(20,184,166,.35); }
.tf-glow--b { width: 500px; height: 500px; bottom: -180px; right: -100px; background: rgba(255,255,255,.06); }
.tf-grain { position: absolute; inset: 0; opacity: .35; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); mix-blend-mode: overlay; }

/* Sections */
.tf-section { padding: clamp(4rem, 8vw, 8rem) 0; }
.tf-section--tight { padding: 2rem 0; }
.tf-section--surface { background: var(--tf-surface); }
.tf-section__head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.tf-link { color: var(--tf-ink); font-weight: 500; font-size: 14px; }
.tf-link:hover { color: var(--tf-accent); }

/* Grids */
.tf-grid { display: grid; gap: 1.25rem; }
.tf-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px) { .tf-grid--3 { grid-template-columns: 1fr; } }

/* Cards */
.tf-card { display: block; padding: 1.75rem; border-radius: var(--tf-radius); background: #fff; border: 1px solid var(--tf-hairline); box-shadow: var(--tf-shadow-1); transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s, border-color .3s; }
.tf-card--lift:hover { transform: translateY(-6px); box-shadow: var(--tf-shadow-3); border-color: color-mix(in oklab, var(--tf-accent) 35%, var(--tf-hairline)); }
.tf-card__num { font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .12em; color: var(--tf-ink-soft); margin-bottom: 1.5rem; }
.tf-card__media { border-radius: 12px; overflow: hidden; margin-bottom: 1.25rem; aspect-ratio: 4/3; background: var(--tf-surface); }
.tf-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tf-card--pkg { display: flex; flex-direction: column; gap: 1rem; }
.tf-chip { align-self: flex-start; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--tf-accent); background: var(--tf-accent-soft); padding: .3rem .75rem; border-radius: 999px; }
.tf-price { font-family: "Instrument Serif", serif; font-size: 2rem; }

/* Outcomes */
.tf-outcomes { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (max-width:700px){ .tf-outcomes { grid-template-columns: 1fr; } }
.tf-outcomes li { display: flex; gap: .75rem; align-items: start; font-size: 15.5px; color: var(--tf-ink-soft); }
.tf-check { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; background: var(--tf-accent); position: relative; margin-top: 3px; }
.tf-check::after { content: ""; position: absolute; left: 5px; top: 3px; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }

/* FAQ */
.tf-faq { display: flex; flex-direction: column; border-top: 1px solid var(--tf-hairline); margin-top: 2rem; }
.tf-faq__item { border-bottom: 1px solid var(--tf-hairline); }
.tf-faq__item summary { padding: 1.5rem 0; cursor: pointer; font-size: 17px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.tf-faq__item summary::after { content: "+"; font-size: 22px; color: var(--tf-accent); }
.tf-faq__item[open] summary::after { content: "–"; }
.tf-faq__body { padding: 0 0 1.5rem; color: var(--tf-ink-soft); line-height: 1.6; }

/* CTA */
.tf-cta { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--tf-radius-lg); background: var(--tf-ink); color: #fff; padding: clamp(3.5rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4rem); text-align: center; }
.tf-cta__inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.tf-cta__body { max-width: 560px; margin: 1.75rem auto 2rem; color: rgba(255,255,255,.7); font-size: 15.5px; line-height: 1.6; }
.tf-cta .tf-hero__actions { justify-content: center; }

/* Footer */
.tf-footer { background: #fff; border-top: 1px solid var(--tf-hairline); padding: 4rem 0 2rem; }
.tf-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; }
@media (max-width: 900px) { .tf-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tf-footer__grid { grid-template-columns: 1fr; } }
.tf-footer__intro { max-width: 22rem; color: var(--tf-ink-soft); font-size: 14px; margin: 1.5rem 0; line-height: 1.6; }
.tf-footer__contact { display: flex; flex-direction: column; gap: .35rem; font-size: 13px; color: var(--tf-ink-soft); }
.tf-footer__contact a:hover { color: var(--tf-ink); }
.tf-footer__list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-direction: column; gap: .75rem; color: var(--tf-ink-soft); font-size: 14px; }
.tf-footer__list a:hover { color: var(--tf-ink); }
.tf-footer__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; max-width: 20rem; }
.tf-tag { font-size: 12px; color: var(--tf-ink-soft); padding: .25rem .625rem; border: 1px solid var(--tf-hairline); border-radius: 999px; }
.tf-footer__meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--tf-hairline); font-size: 12px; color: var(--tf-ink-soft); }

/* Prose */
.tf-prose { max-width: 780px; margin: 0 auto; font-size: 17px; line-height: 1.75; color: #334155; }
.tf-prose h2 { font-family: "Instrument Serif", serif; font-size: 2rem; margin: 2.5rem 0 1rem; color: var(--tf-ink); }
.tf-prose h3 { font-family: "Instrument Serif", serif; font-size: 1.5rem; margin: 2rem 0 .75rem; color: var(--tf-ink); }
.tf-prose a { color: var(--tf-accent); border-bottom: 1px solid currentColor; }
.tf-prose ul, .tf-prose ol { padding-left: 1.25rem; margin: 1rem 0; }
.tf-prose blockquote { border-left: 3px solid var(--tf-accent); padding-left: 1rem; color: var(--tf-ink-soft); font-style: italic; }
.tf-featured { border-radius: 16px; margin-bottom: 2rem; }
.tf-media { border-radius: var(--tf-radius-lg); overflow: hidden; box-shadow: var(--tf-shadow-3); }

/* Reveal animation */
.tf-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.tf-reveal.is-visible { opacity: 1; transform: translateY(0); }

.tf-input { width: 100%; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--tf-hairline); background: #fff; font-size: 15px; font-family: inherit; }
.tf-input:focus { outline: 2px solid var(--tf-accent); outline-offset: 2px; }
