/*
Theme Name: TapeFlow Landing
Theme URI: https://tapeflow.net
Author: TapeFlow
Author URI: https://tapeflow.net
Description: A single-page landing theme for TapeFlow — Trade Nation Analytics & Journal.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: All Rights Reserved
License URI: https://tapeflow.net
Text Domain: tapeflow
*/

/* ── RESET ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #08090f;
    color: #f3f4f6;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ── VARIABLES ────────────────────────────────────────────────────── */
:root {
    --bg-color: #08090f;
    --card-bg: rgba(18, 22, 41, 0.6);
    --border-color: rgba(255, 255, 255, 0.06);
    --primary: #f13a4a;
    --primary-glow: rgba(241, 58, 74, 0.35);
    --secondary: #00a878;
    --secondary-glow: rgba(0, 168, 120, 0.35);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --success: #00a878;
    --danger: #f13a4a;
    --gold: #f0b90b;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────────────── */
.tf-landing-wrap h1,
.tf-landing-wrap h2,
.tf-landing-wrap h3,
.tf-landing-wrap h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ── LAYOUT ───────────────────────────────────────────────────────── */
.tf-landing-wrap {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    width: 100%;
}
.tf-landing-wrap section[id] { scroll-margin-top: 96px; }

.bg-glow-1 {
    position: absolute; top: -10%; left: -10%; width: 50%; height: 60%;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(8,9,15,0) 70%);
    z-index: 1; pointer-events: none; filter: blur(80px);
}
.bg-glow-2 {
    position: absolute; top: 40%; right: -10%; width: 50%; height: 60%;
    background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(8,9,15,0) 70%);
    z-index: 1; pointer-events: none; filter: blur(80px);
}
.container {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
    position: relative; z-index: 2;
}

/* ── HEADER ───────────────────────────────────────────────────────── */
.tf-landing-wrap header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 100;
    background: rgba(8, 9, 15, 0.7);
}
.tf-landing-wrap .nav-container { display: flex; justify-content: space-between; align-items: center; }

.tf-landing-wrap .logo {
    display: flex; align-items: center; gap: 12px;
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 24px;
    color: var(--text-main); text-decoration: none;
}
.tf-landing-wrap .logo-badge {
    width: 32px; height: 32px; border-radius: 6px;
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.tf-landing-wrap .logo-badge::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 50%; height: 100%; background-color: var(--primary);
}
.tf-landing-wrap .logo-badge::after {
    content: ''; position: absolute; top: 0; right: 0;
    width: 50%; height: 100%; background-color: var(--secondary);
}
.tf-landing-wrap .logo-badge svg {
    position: relative; z-index: 3; width: 20px; height: 20px;
    fill: #ffffff; filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.5));
}

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-weight: 500;
    font-size: 15px; transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--text-main); }

/* ── BUTTONS ──────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px;
    text-decoration: none; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); cursor: pointer;
}
.btn:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, #007654 100%);
    color: white; box-shadow: 0 4px 14px rgba(0,168,120,0.3); border: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,168,120,0.5); }
.btn-secondary {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color); color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* ── HERO ─────────────────────────────────────────────────────────── */
.hero { padding: 88px 0 56px 0; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-text h1 {
    font-size: 54px; line-height: 1.12; margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 40%, #a7f3d0 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-text p { font-size: 18px; color: var(--text-muted); margin-bottom: 36px; max-width: 560px; }
.hero-cta { display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-meta { display: flex; align-items: center; gap: 24px; color: var(--text-muted); font-size: 13px; flex-wrap: wrap; }
.hero-meta div { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--secondary); }

/* ── HUD MOCKUP ───────────────────────────────────────────────────── */
.hud-mockup {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 24px; backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); position: relative;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); }
}
@media (prefers-reduced-motion: reduce) {
    .hud-mockup, .hud-pulse { animation: none; }
}
.hud-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 12px;
    font-size: 15px; font-weight: 600;
}
.hud-pulse {
    width: 8px; height: 8px; background-color: var(--secondary); border-radius: 50%;
    animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(0,168,120,0.7); }
    70% { box-shadow: 0 0 0 8px rgba(0,168,120,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,168,120,0); }
}
.hud-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.hud-stat-card {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px; padding: 12px;
}
.hud-stat-label {
    font-size: 11px; color: var(--text-muted); margin-bottom: 4px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.hud-stat-val { font-size: 18px; font-weight: 700; font-family: 'Outfit', sans-serif; }
.hud-stat-val.profit { color: var(--secondary); }
.hud-stat-val.points { color: var(--secondary); }
.hud-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; padding: 8px 10px; border-radius: 6px;
    background: rgba(255,255,255,0.02); margin-bottom: 8px;
}
.hud-row .tick { color: var(--secondary); font-weight: 700; }
.hud-gauge-label { color: var(--gold); font-weight: 600; }
.hud-tags { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.hud-tag {
    padding: 4px 8px; border-radius: 4px; font-size: 11px;
    background: rgba(241,58,74,0.15); border: 1px solid rgba(241,58,74,0.2); color: #f87171;
}
.hud-tag.cyan { background: rgba(0,168,120,0.15); border-color: rgba(0,168,120,0.2); color: #34d399; }
.hud-tag.green { background: rgba(0,168,120,0.15); border-color: rgba(0,168,120,0.2); color: #34d399; }

/* ── PRIVACY BANNER ───────────────────────────────────────────────── */
.privacy-banner {
    background: linear-gradient(90deg, rgba(241,58,74,0.08) 0%, rgba(0,168,120,0.08) 100%);
    border: 1px solid rgba(0,168,120,0.15); border-radius: 12px;
    padding: 20px; display: flex; gap: 16px; align-items: center; margin-bottom: 40px;
}
.privacy-banner svg { color: var(--secondary); flex-shrink: 0; width: 32px; height: 32px; }
.privacy-banner h3 { font-size: 16px; margin-bottom: 4px; color: var(--text-main); }
.privacy-banner p { font-size: 14px; color: var(--text-muted); }

/* ── WHY SECTION ──────────────────────────────────────────────────── */
.why { padding: 64px 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.why h2 { font-size: 38px; margin-bottom: 20px; }
.why .lede { font-size: 17px; color: var(--text-muted); margin-bottom: 20px; }
.why .lede strong { color: var(--text-main); }
.why-points { display: flex; flex-direction: column; gap: 20px; }
.why-point {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 20px 24px;
}
.why-point h3 { font-size: 16px; margin-bottom: 6px; }
.why-point p { font-size: 14px; color: var(--text-muted); }
.why-point h3 span { color: var(--secondary); margin-right: 8px; }

/* ── FEATURES ─────────────────────────────────────────────────────── */
.features { padding: 72px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 40px; margin-bottom: 16px; color: var(--text-main); }
.section-header p { font-size: 16px; color: var(--text-muted); max-width: 640px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 32px; backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0,168,120,0.3);
    box-shadow: 0 10px 30px rgba(0,168,120,0.05);
}
.feature-icon-wrapper {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(0,168,120,0.08);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px; color: var(--secondary);
}
.feature-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--text-main); }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── PRICING ──────────────────────────────────────────────────────── */
.pricing {
    padding: 72px 0; background: rgba(255,255,255,0.01);
    border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
.pricing-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; max-width: 880px; margin: 0 auto; align-items: stretch; }
.price-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 36px; display: flex; flex-direction: column;
}
.price-card.premium {
    border-color: rgba(0,168,120,0.45);
    box-shadow: 0 0 40px rgba(0,168,120,0.12);
    position: relative;
}
.price-card.premium .badge {
    position: absolute; top: -12px; right: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; padding: 4px 12px; border-radius: 100px;
}
.price-card h3 { font-size: 22px; margin-bottom: 4px; }
.price-card .price { font-family: 'Outfit', sans-serif; font-size: 38px; font-weight: 800; margin: 12px 0 2px 0; }
.price-card .price small { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.price-card .price-note { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 14px; color: var(--text-muted); align-items: flex-start; }
.price-card li svg { color: var(--secondary); flex-shrink: 0; margin-top: 3px; }
.price-card li strong { color: var(--text-main); font-weight: 600; }

/* ── INSTALL ──────────────────────────────────────────────────────── */
.installation { padding: 72px 0; }
.install-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.step-list { display: flex; flex-direction: column; gap: 32px; }
.step-item { display: flex; gap: 20px; }
.step-number {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px; flex-shrink: 0;
    box-shadow: 0 0 10px var(--primary-glow);
}
.step-content h3 { font-size: 18px; margin-bottom: 6px; color: var(--text-main); }
.step-content p { font-size: 14px; color: var(--text-muted); }
.step-content code {
    background: rgba(255,255,255,0.06); border-radius: 4px; padding: 1px 6px;
    font-size: 13px; color: var(--secondary);
}

/* ── CTA / FOOTER ─────────────────────────────────────────────────── */
.cta-section { padding: 100px 0; text-align: center; position: relative; }
.cta-content { max-width: 680px; margin: 0 auto; }
.cta-content h2 {
    font-size: 46px; margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 40%, #a7f3d0 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cta-content p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; }
.tf-landing-wrap footer {
    padding: 40px 0; border-top: 1px solid var(--border-color);
    text-align: center; color: var(--text-muted); font-size: 13px;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 968px) {
    .hero-grid { grid-template-columns: 1fr; gap: 56px; text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-cta, .hero-meta { justify-content: center; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .install-grid, .why-grid, .pricing-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
    .hero-text h1 { font-size: 38px; }
    .section-header h2, .why h2 { font-size: 30px; }
    .cta-content h2 { font-size: 34px; }
    .features-grid { grid-template-columns: 1fr; }
    .tf-landing-wrap .logo span { display: none; }
    .nav-links { gap: 14px; }
    .nav-links a.nav-plain { display: none; }
}
