/* Design System & Variables */
:root {
    --bg-main: hsl(220, 15%, 8%);
    --bg-card: hsl(220, 12%, 14%);
    --bg-card-glass: rgba(25, 27, 31, 0.75);
    
    --accent-orange: hsl(28, 95%, 53%);
    --accent-orange-glow: rgba(255, 122, 0, 0.3);
    
    --alert-red: hsl(0, 85%, 55%);
    --alert-red-glow: rgba(255, 59, 48, 0.4);
    
    --text-main: hsl(220, 20%, 96%);
    --text-muted: hsl(220, 12%, 65%);
    --text-dark: hsl(220, 15%, 12%);
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border-orange: rgba(255, 122, 0, 0.2);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), hsl(20, 95%, 45%));
    color: var(--text-main);
    box-shadow: 0 4px 15px var(--accent-orange-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Header */
.main-header {
    background: rgba(18, 20, 23, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent-orange);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-selector {
    position: relative;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 130px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 1001;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.lang-dropdown.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-dropdown button {
    background: none;
    border: none;
    color: var(--text-muted);
    text-align: left;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
    width: 100%;
}

.lang-dropdown button:hover {
    background: rgba(255, 122, 0, 0.08);
    color: var(--accent-orange);
}

.lang-dropdown button.active-lang {
    background: rgba(255, 122, 0, 0.12);
    color: var(--accent-orange);
    font-weight: 600;
}

.btn-nav {
    padding: 8px 20px;
    font-size: 0.9rem;
    background: rgba(255, 122, 0, 0.1);
    color: var(--accent-orange);
    border: 1px solid var(--border-orange);
}

.btn-nav:hover {
    background: var(--accent-orange);
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    padding-top: 160px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 80% 20%, rgba(255, 122, 0, 0.08), transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(255, 59, 48, 0.04), transparent 40%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background: rgba(255, 122, 0, 0.12);
    color: var(--accent-orange);
    border: 1px solid var(--border-orange);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-specs {
    display: flex;
    gap: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* TFT Simulator */
.hero-simulator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tft-wrapper {
    width: 100%;
    max-width: 480px;
    perspective: 1000px;
}

.tft-bezel {
    background: linear-gradient(135deg, #2a2d32, #18191c);
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5),
                inset 0 2px 5px rgba(255,255,255,0.1),
                inset 0 -2px 5px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.tft-screen {
    background-color: #0c0e11;
    border-radius: 10px;
    aspect-ratio: 5/3;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border: 2px solid #000;
    transition: var(--transition-smooth);
}

/* Flashing alarm effect */
.tft-screen.radar-alarm-active {
    animation: flashRed 1s infinite alternate;
}

@keyframes flashRed {
    0% {
        box-shadow: inset 0 0 10px var(--alert-red);
        border-color: #000;
    }
    100% {
        box-shadow: inset 0 0 40px var(--alert-red);
        border-color: var(--alert-red);
    }
}

.tft-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 6px;
}

.tft-conn-status {
    color: #4cd964;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tft-conn-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #4cd964;
    border-radius: 50%;
}

.tft-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Dashboard States */
.dashboard-normal {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.speedo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.speedo-val {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 4rem;
    line-height: 1;
    color: var(--text-main);
}

.speedo-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: -4px;
}

.gear-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 8px;
}

.gear-val {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--accent-orange);
    line-height: 1;
}

.gear-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

.rpm-curve {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 30px;
    opacity: 0.8;
}

.rpm-svg {
    width: 100%;
    height: 100%;
}

/* TBT Navigation Mode */
.dashboard-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.nav-arrow-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-arrow {
    width: 54px;
    height: 54px;
    color: var(--accent-orange);
}

.nav-text {
    display: flex;
    flex-direction: column;
}

.nav-dist {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-main);
}

.nav-street {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.nav-eta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 6px;
}

.eta-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 600;
}

.eta-time {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Radar warning state */
.dashboard-radar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-warning-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.radar-icon {
    font-size: 2.2rem;
    margin-bottom: 4px;
}

.radar-msg {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-main);
    line-height: 1.2;
}

.radar-limit {
    font-size: 0.85rem;
    color: var(--accent-orange);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 4px;
}

.radar-speed-excess {
    background-color: var(--alert-red);
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    margin-top: 8px;
    box-shadow: 0 4px 10px var(--alert-red-glow);
}

.tft-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 6px;
    font-weight: 500;
}

/* Simulator controls */
.simulator-controls {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.sim-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sim-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-main);
}

.sim-btn.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--text-main);
    box-shadow: 0 4px 10px var(--accent-orange-glow);
}

.sim-btn.alert.active {
    background: var(--alert-red);
    border-color: var(--alert-red);
    box-shadow: 0 4px 10px var(--alert-red-glow);
}

/* Section Common Styles */
.section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 36px;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-orange);
}

/* Problem Cards */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Solution Split */
.solution-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.solution-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.solution-item {
    display: flex;
    gap: 20px;
}

.item-icon {
    background: rgba(255,122,0,0.1);
    color: var(--accent-orange);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    flex-shrink: 0;
    border: 1px solid var(--border-orange);
}

.item-text h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.item-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.solution-image-container {
    display: flex;
    justify-content: center;
}

.glass-card {
    background: var(--bg-card-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.glass-card h4 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.flow-step {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.flow-step:last-child {
    margin-bottom: 0;
}

.step-num {
    background-color: var(--accent-orange);
    color: var(--text-main);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.flow-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Comparison Table */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: var(--bg-card);
    font-size: 0.95rem;
}

.comparison-table th, .comparison-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    background-color: rgba(255,255,255,0.02);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.highlight-col {
    background-color: rgba(255, 122, 0, 0.03);
    color: var(--text-main);
    border-left: 1px solid rgba(255, 122, 0, 0.1);
    border-right: 1px solid rgba(255, 122, 0, 0.1);
}

th.highlight-col {
    background-color: rgba(255, 122, 0, 0.06);
    color: var(--accent-orange);
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent-orange);
    transition: var(--transition-smooth);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 20px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Download / CTA Section */
.download-section {
    background: linear-gradient(180deg, transparent, rgba(255, 122, 0, 0.05));
    text-align: center;
}

.download-card {
    background: linear-gradient(145deg, var(--bg-card), hsl(220, 12%, 10%));
    border: 1px solid var(--accent-orange);
    border-radius: 24px;
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(255, 122, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.download-card > * {
    position: relative;
    z-index: 2;
}

.badge-waitlist {
    display: inline-block;
    background: rgba(255, 122, 0, 0.12);
    border: 1px solid var(--border-orange);
    color: var(--accent-orange);
    padding: 6px 16px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.1); }
    50% { box-shadow: 0 0 10px 2px rgba(255, 122, 0, 0.2); }
}

.download-card h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.download-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    margin-bottom: 20px;
}

.download-subtext {
    font-size: 0.8rem !important;
    color: rgba(255,255,255,0.4) !important;
    margin-bottom: 0 !important;
}

/* Footer */
.main-footer {
    background-color: #0b0c0e;
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 20px;
}

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

.footer-links a:hover {
    color: var(--text-main);
}

.legal-disclaimer {
    color: rgba(255,255,255,0.25);
    line-height: 1.5;
    text-align: justify;
}

.hidden {
    display: none !important;
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .solution-split {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .solution-image-container {
        order: -1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem !important;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Waitlist Form Styling */
.waitlist-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 20px auto;
    width: 100%;
}

.waitlist-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 20px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.waitlist-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px var(--accent-orange-glow);
}

.waitlist-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border-radius: 8px;
    padding: 16px;
    max-width: 500px;
    margin: 0 auto 20px auto;
    font-size: 1rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

.waitlist-error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: var(--alert-red);
    border-radius: 8px;
    padding: 16px;
    max-width: 500px;
    margin: 0 auto 20px auto;
    font-size: 1rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .waitlist-form {
        flex-direction: column;
    }
}
