/* ═══════════════════════════════════════════════════════════════════
   Quantra AI — Marketing Website Styles
   Dark theme with neon green accent • Apple-inspired design
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --bg-primary: #03060A;
    --bg-secondary: #0D1117;
    --bg-card: #161B22;
    --bg-card-hover: #1C2128;
    --accent: #00FF87;
    --accent-dim: rgba(0, 255, 135, 0.1);
    --accent-glow: rgba(0, 255, 135, 0.3);
    --text-primary: #F0F6FC;
    --text-secondary: #8B949E;
    --text-tertiary: #6E7681;
    --border: rgba(255, 255, 255, 0.1);
    --gold: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* ─────────────────────────────────────────────────────────────────────
   HEADER / NAVIGATION
   ───────────────────────────────────────────────────────────────────── */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(3, 6, 10, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--text-primary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 980px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: #00E67A;
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent-dim);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: 0.3s;
}

/* ─────────────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────────────── */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-dim), transparent),
        var(--bg-primary);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 255, 135, 0.2);
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, var(--accent), #00CC6A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.app-store-badge {
    height: 54px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* iPhone 17 Pro Max Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.iphone-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.iphone-17-pro {
    position: relative;
    width: 290px;
    height: 600px;
    border-radius: 54px;
    padding: 10px;
    background: linear-gradient(145deg, #2a2a2c, #1a1a1c);
    box-shadow: 
        0 60px 120px -30px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    animation: iphoneFloat 6s ease-in-out infinite;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* iPhone color variants */
.iphone-17-pro.color-black,
.iphone-17-pro {
    background: linear-gradient(145deg, #2a2a2c, #1a1a1c);
}

.iphone-17-pro.color-white {
    background: linear-gradient(145deg, #e8e8ed, #d4d4d9);
}

.iphone-17-pro.color-white .iphone-shine {
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 50%);
}

.iphone-17-pro.color-desert {
    background: linear-gradient(145deg, #c4a77d, #9a7d5a);
}

@keyframes iphoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Side buttons */
.iphone-button {
    position: absolute;
    background: linear-gradient(145deg, #3a3a3c, #2a2a2c);
    border-radius: 2px;
    transition: background 0.4s ease;
}

.iphone-17-pro.color-white .iphone-button {
    background: linear-gradient(145deg, #c8c8cd, #a8a8ad);
}

.iphone-17-pro.color-desert .iphone-button {
    background: linear-gradient(145deg, #a88a62, #887050);
}

.iphone-button-silent {
    left: -3px;
    top: 120px;
    width: 3px;
    height: 30px;
}

.iphone-button-volume-up {
    left: -3px;
    top: 170px;
    width: 3px;
    height: 50px;
}

.iphone-button-volume-down {
    left: -3px;
    top: 230px;
    width: 3px;
    height: 50px;
}

.iphone-button-power {
    right: -3px;
    top: 180px;
    width: 3px;
    height: 80px;
}

/* Frame shine effect */
.iphone-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 54px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Screen */
.iphone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 46px;
    overflow: hidden;
    position: relative;
}

/* Dynamic Island */
.dynamic-island {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 126px;
    height: 36px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
}

.island-camera {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #1a1a2e 30%, #0a0a1a 70%);
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.8);
}

/* Screen glow effect */
.screen-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 255, 135, 0.1), transparent 70%);
    pointer-events: none;
    transition: background 0.5s ease;
    z-index: 1;
}

/* Home indicator */
.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    z-index: 10;
}

/* Screen carousel */
.screen-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 60px 16px 30px;
}

.app-screen {
    position: absolute;
    top: 60px;
    left: 16px;
    right: 16px;
    bottom: 30px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-screen.active {
    opacity: 1;
    transform: translateX(0);
}

.app-screen.exit {
    opacity: 0;
    transform: translateX(-100%);
}

/* ── Screen 1: Home Dashboard ────────────────────────────────────────── */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.app-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--accent);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.market-mood {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 12px;
}

.mood-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.mood-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 700;
}

.mood-value.bullish {
    color: var(--accent);
}

.fear-greed {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 12px;
}

.fg-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.fg-meter {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.fg-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF4136, #FFDC00, var(--accent));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.fg-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.fg-value span {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 4px;
}

.top-movers {
    flex: 1;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 12px;
}

.movers-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.stock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stock-row:last-child {
    border-bottom: none;
}

.stock-info {
    display: flex;
    flex-direction: column;
}

.stock-symbol {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.stock-name {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.stock-change {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.stock-change.positive {
    color: var(--accent);
    background: var(--accent-dim);
}

/* ── Screen 2: Analysis Card ────────────────────────────────────────── */
.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.analysis-symbol {
    display: flex;
    flex-direction: column;
}

.symbol-badge {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.symbol-name {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.analysis-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.recommendation-card {
    background: linear-gradient(135deg, rgba(0, 255, 135, 0.15), rgba(0, 255, 135, 0.05));
    border: 1px solid rgba(0, 255, 135, 0.3);
    border-radius: 16px;
    padding: 16px;
}

.recommendation-card.buy {
    background: linear-gradient(135deg, rgba(0, 255, 135, 0.2), rgba(0, 255, 135, 0.05));
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    margin-bottom: 8px;
}

.rec-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rec-action {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
}

.rec-confidence {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.confidence-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

.confidence-value {
    font-weight: 700;
    color: var(--accent);
}

.price-targets {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 12px;
    margin-top: auto;
}

.target-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.target-row:last-child {
    border-bottom: none;
}

.target-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.target-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.target-value.highlight {
    color: var(--accent);
}

/* ── Screen 3: Scanner Alert ────────────────────────────────────────── */
.alert-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.alert-time {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.alert-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(0, 255, 135, 0.15), rgba(0, 255, 135, 0.05));
    border: 1px solid rgba(0, 255, 135, 0.3);
    border-radius: 14px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.alert-card.pulse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent);
    opacity: 0;
    animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.1; }
}

.alert-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.alert-symbol {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.alert-change {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 2px 8px;
    border-radius: 6px;
}

.alert-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.alert-recommendation {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 14px;
}

.alert-rec-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.alert-rec-result {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rec-buy-badge {
    background: var(--accent);
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 8px;
}

.rec-detail {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.alert-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.alert-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.alert-btn.primary {
    background: var(--accent);
    color: #000;
}

.alert-btn.secondary {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

/* Color selector */
.color-selector {
    display: flex;
    gap: 12px;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.color-dot.active::after {
    border-color: var(--accent);
}

.color-dot.black {
    background: linear-gradient(145deg, #2a2a2c, #1a1a1c);
    border-color: rgba(255,255,255,0.2);
}

.color-dot.white {
    background: linear-gradient(145deg, #e8e8ed, #d4d4d9);
    border-color: rgba(0,0,0,0.1);
}

.color-dot.desert {
    background: linear-gradient(145deg, #c4a77d, #9a7d5a);
    border-color: rgba(0,0,0,0.1);
}

.color-dot:hover {
    transform: scale(1.1);
}

/* ─────────────────────────────────────────────────────────────────────
   FEATURES SECTION
   ───────────────────────────────────────────────────────────────────── */

.section {
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 255, 135, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-dim);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────────────
   PRICING SECTION
   ───────────────────────────────────────────────────────────────────── */

.pricing-section {
    background: var(--bg-secondary);
    padding: 120px 24px;
}

/* ── Billing Toggle ──────────────────────────────────────────────── */
.billing-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 4px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.billing-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 11px;
    background: transparent;
    color: #888;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.billing-btn:hover {
    color: #ccc;
}

.billing-btn.active {
    background: rgba(0, 255, 136, 0.12);
    color: #00ff88;
    box-shadow: 0 2px 12px rgba(0, 255, 136, 0.15);
}

.save-badge {
    font-size: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.yearly-save-badge {
    display: none;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.pricing-price {
    transition: transform 0.2s ease;
}

.pricing-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 32px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-card.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(0, 255, 135, 0.05), var(--bg-card));
    box-shadow: 0 0 60px -20px var(--accent-glow);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    padding: 6px 16px;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.pricing-card.featured .pricing-name {
    color: var(--accent);
}

.pricing-card.elite .pricing-name {
    color: var(--gold);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.pricing-currency {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--accent);
    margin-top: 2px;
}

.pricing-card.featured .pricing-features li svg {
    stroke: var(--accent);
}

.pricing-card.elite .pricing-features li svg {
    stroke: var(--gold);
}

.pricing-cta {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pricing-card .pricing-cta {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.pricing-card .pricing-cta:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-secondary);
}

.pricing-card.featured .pricing-cta {
    background: var(--accent);
    color: #000;
    border: none;
}

.pricing-card.featured .pricing-cta:hover {
    background: #00E67A;
}

.pricing-card.elite .pricing-cta {
    background: linear-gradient(135deg, var(--gold), #FFA500);
    color: #000;
    border: none;
}

/* ─────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────── */

footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 24px 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 16px;
    display: block;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-column ul a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.footer-credit {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.footer-credit a {
    color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────────────
   CONTENT PAGES (Privacy, Terms, Support)
   ───────────────────────────────────────────────────────────────────── */

.page-hero {
    padding: 140px 24px 60px;
    text-align: center;
    background: 
        radial-gradient(ellipse 60% 40% at 50% 0%, var(--accent-dim), transparent),
        var(--bg-primary);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.page-hero .last-updated {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 120px;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--accent);
}

.content-section h2:first-of-type {
    margin-top: 0;
}

.content-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-section ul {
    list-style: none;
    margin-bottom: 24px;
}

.content-section ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.content-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* FAQ Section */
.faq-list {
    margin-top: 32px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 24px;
    margin: 0;
}

/* Contact Card */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-top: 48px;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.contact-card a {
    color: var(--accent);
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-card.featured {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .iphone-mockup {
        width: 240px;
        height: 500px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 80px 20px;
    }
    
    .pricing-section {
        padding: 80px 20px;
    }
    
    .footer-main {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .pricing-card {
        padding: 32px 24px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   HOW IT WORKS — Flow Diagram
   ═══════════════════════════════════════════════════════════════════════ */

.flow-section {
    overflow: hidden;
}

.flow-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ── Layer Label ─────────────────────────────────────────────────────── */
.layer-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}
.layer-label span {
    color: var(--accent);
    margin-left: 6px;
}

/* ── Flow Layer (general) ────────────────────────────────────────────── */
.flow-layer {
    width: 100%;
    max-width: 700px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.flow-layer.flow-visible {
    opacity: 1;
    transform: translateY(0);
}
.flow-layer-2.flow-visible { transition-delay: 0.15s; }
.flow-layer-3.flow-visible { transition-delay: 0.3s; }

/* ── Flow Node (card) ────────────────────────────────────────────────── */
.flow-node {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.flow-node:hover {
    border-color: rgba(0, 255, 135, 0.25);
    box-shadow: 0 0 30px rgba(0, 255, 135, 0.06);
}

.node-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.node-icon svg {
    width: 24px;
    height: 24px;
}

.node-source .node-icon { background: rgba(0, 150, 255, 0.12); }
.node-source .node-icon svg { stroke: #0096FF; }

.node-engine .node-icon { background: var(--accent-dim); }
.node-engine .node-icon svg { stroke: var(--accent); }

.node-ai .node-icon { background: rgba(191, 90, 242, 0.12); }
.node-ai .node-icon svg { stroke: #BF5AF2; }

.node-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.node-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.node-badge {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 150, 255, 0.1);
    color: #0096FF;
    border: 1px solid rgba(0, 150, 255, 0.2);
}
.engine-badge {
    background: var(--accent-dim) !important;
    color: var(--accent) !important;
    border-color: rgba(0, 255, 135, 0.2) !important;
}
.ai-badge {
    background: rgba(191, 90, 242, 0.1) !important;
    color: #BF5AF2 !important;
    border-color: rgba(191, 90, 242, 0.2) !important;
}

/* ── Flow Streams (data types) ───────────────────────────────────────── */
.flow-streams {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.stream-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.stream-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #0096FF;
    animation: streamPulse 2s ease-in-out infinite;
}
.stream-item:nth-child(2) .stream-dot { animation-delay: 0.3s; }
.stream-item:nth-child(3) .stream-dot { animation-delay: 0.6s; }

@keyframes streamPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

/* ── Flow Connector (line between layers) ────────────────────────────── */
.flow-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}
.flow-connector.flow-visible {
    opacity: 1;
}

.connector-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), rgba(0, 255, 135, 0.2));
    border-radius: 1px;
    position: relative;
}
.connector-optional .connector-line {
    background: linear-gradient(to bottom, #BF5AF2, rgba(191, 90, 242, 0.2));
    border-style: dashed;
}

.connector-particles {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    left: -1px;
    animation: particleFlow 2s linear infinite;
    box-shadow: 0 0 6px var(--accent);
}
.particle:nth-child(2) { animation-delay: 0.65s; }
.particle:nth-child(3) { animation-delay: 1.3s; }

.connector-optional .particle {
    background: #BF5AF2;
    box-shadow: 0 0 6px #BF5AF2;
}

@keyframes particleFlow {
    0% { top: -4px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 40px; opacity: 0; }
}

.connector-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-top: 4px;
    letter-spacing: 0.5px;
}
.connector-optional .connector-label {
    color: #BF5AF2;
}

/* ── Engine Indicators Grid ──────────────────────────────────────────── */
.engine-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.indicator-group {
    background: rgba(0, 255, 135, 0.03);
    border: 1px solid rgba(0, 255, 135, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
}
.group-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.group-title svg {
    stroke: var(--accent);
    flex-shrink: 0;
}
.indicator-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.ind-tag {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(0, 255, 135, 0.06);
    color: var(--text-secondary);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* ── Engine Output (composite score) ─────────────────────────────────── */
.engine-output {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 135, 0.06), rgba(0, 255, 135, 0.02));
    border: 1px solid rgba(0, 255, 135, 0.15);
    border-radius: 12px;
}
.output-score {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.score-ring {
    width: 44px;
    height: 44px;
    transform: rotate(-90deg);
}
.ring-bg {
    stroke: rgba(255, 255, 255, 0.08);
}
.ring-fill {
    stroke: var(--accent);
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent);
}
.output-details {
    display: flex;
    flex-direction: column;
}
.output-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.output-signal {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.3px;
}

/* ── AI Outputs ──────────────────────────────────────────────────────── */
.ai-outputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}
.ai-output-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(191, 90, 242, 0.04);
    border: 1px solid rgba(191, 90, 242, 0.1);
    border-radius: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.ai-output-icon {
    font-size: 1rem;
}

/* ── Flow Stats (bottom counters) ────────────────────────────────────── */
.flow-stats {
    max-width: 900px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0 24px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.flow-stats.flow-visible {
    opacity: 1;
    transform: translateY(0);
}
.flow-stat {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
.flow-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1px;
}
.stat-plus, .stat-unit {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ── Responsive: Flow Diagram ────────────────────────────────────────── */
@media (max-width: 768px) {
    .engine-indicators {
        grid-template-columns: repeat(2, 1fr);
    }
    .ai-outputs {
        grid-template-columns: 1fr;
    }
    .flow-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .node-badge {
        position: static;
        transform: none;
        margin-left: auto;
    }
    .flow-node {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .engine-indicators {
        grid-template-columns: 1fr;
    }
    .flow-stats {
        grid-template-columns: 1fr 1fr;
    }
    .stat-number {
        font-size: 1.6rem;
    }
}
