/* ========================================
   RESET & ROOT VARIABLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --bg-secondary: #111111;
    --text: #ffffff;
    --text-muted: #8b8b8b;
    --accent: #ff6b6b;
    --accent-light: #ff8787;
    --accent-dark: #e55555;
    --border: #222222;
    --success: #4ade80;
    --warning: #fbbf24;
    --max-width: 1200px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.nav-cta {
    padding: 0.5rem 1.25rem;
    background: var(--accent);
    color: var(--bg) !important;
    border-radius: 50px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--accent-light);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding: 10rem 0 8rem;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -1;
}

#hero-email-form.email-form {
    margin: 0 auto 2.5rem;
}

.world-map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.3;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -300px;
    left: 10%;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-light);
    bottom: -200px;
    right: 10%;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid var(--accent);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.email-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.75rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

/* ========================================
   COMMON LAYOUT
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--accent);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   FORMS & INPUTS
   ======================================== */
.email-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.email-input {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}

.email-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    background: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    border: none;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========================================
   TRUST BADGES
   ======================================== */
.trust-badges {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.trust-icon {
    color: var(--success);
    font-size: 1.25rem;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

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

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card.feature-highlight {
    background: linear-gradient(135deg, var(--bg), rgba(255, 107, 107, 0.05));
    border-color: rgba(255, 107, 107, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

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

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

/* Add-ons Preview */
.addons-preview {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    text-align: center;
}

.addons-preview h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
}

.addon-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.addon-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.addon-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Tooltip styles */
.addon-pill[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text);
    white-space: normal;
    min-width: 200px;
    max-width: 320px;
    width: max-content;
    text-align: center;
    z-index: 100;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: tooltipFadeIn 0.3s forwards;
    pointer-events: none;
    line-height: 1.4;
}

.addon-pill[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--accent);
    margin-bottom: -5px;
    opacity: 0;
    animation: tooltipFadeIn 0.3s forwards;
}

@keyframes tooltipFadeIn {
    to {
        opacity: 1;
    }
}

/* ========================================
   COMPARISON SECTION
   ======================================== */
.comparison-section {
    padding: 8rem 0;
    background: var(--bg);
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 3rem;
}

.comparison {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: 1rem;
    overflow: hidden;
}

.comparison thead {
    background: var(--bg);
}

.comparison th {
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.comparison th.highlight {
    background: var(--accent);
    color: var(--bg);
}

.comparison td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.comparison td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text);
}

.comparison td.highlight {
    background: rgba(255, 107, 107, 0.1);
    color: var(--accent);
    font-weight: 600;
}

.check {
    color: var(--success);
}

.cross {
    color: #ff4444;
}

/* Savings Calculator */
.savings-calculator {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(255, 107, 107, 0.05));
    border: 2px solid var(--accent);
    border-radius: 1rem;
    text-align: center;
}

.calculator-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.calculator-inputs {
    display: grid;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.slider-group {
    text-align: left;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.slider-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent);
}

.slider {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    border: none;
}

.savings-result {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success);
    margin: 1.5rem 0 0.5rem;
}

.savings-detail {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem auto 0;
}

.pricing-card {
    padding: 2.5rem 2rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 1rem;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

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

.pricing-card.featured {
    border-color: var(--accent);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.pricing-features i {
    color: var(--success);
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

.pricing-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    text-align: center;
}

.pricing-note p {
    margin: 0;
    color: var(--text-muted);
}

.pricing-note strong {
    color: var(--accent);
}

/* ========================================
   TECHNICAL SECTION
   ======================================== */
.technical-section {
    padding: 8rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tech-card {
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: all 0.3s;
}

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

.tech-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tech-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-card li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.tech-card li:last-child {
    border-bottom: none;
}

.tech-card strong {
    color: var(--text);
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1.5rem;
    margin: 0 auto;
}

.faq-item {
    padding: 2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

.faq-item h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 600;
}

.faq-item p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* FAQ Show/Hide functionality */
.faq-hidden {
    display: none;
}

.faq-show-more {
    text-align: center;
    margin-top: 2rem;
}

.faq-show-more .btn i {
    transition: transform 0.3s;
}

.faq-show-more .btn.expanded i {
    transform: rotate(180deg);
}

.faq-cta {
    margin-top: 3rem;
    text-align: center;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: 0.5rem;
}

.faq-cta p {
    margin: 0;
    color: var(--text-muted);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
    padding: 8rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(255, 107, 107, 0.05));
    border: 2px solid var(--accent);
    border-radius: 1.5rem;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 4rem 0 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-social {
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.formkit-alert {
    display: none;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    list-style: none;
    animation: slideDown 0.3s ease-out;
}

.formkit-alert:not(:empty) {
    display: block;
}

.formkit-alert-error {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1), rgba(255, 68, 68, 0.05));
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff6b6b;
}

.formkit-alert-success {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(74, 222, 128, 0.05));
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: var(--success);
    position: relative;
    padding-left: 3rem;
}

.formkit-alert-success::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--success);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

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

/* Override ConvertKit's inline styles for our forms */
.email-form .formkit-fields {
    display: flex !important;
    gap: 1rem;
    width: 100%;
}

.email-form .formkit-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.email-form .formkit-submit[data-active] .formkit-spinner {
    display: flex !important;
}

.email-form .formkit-submit[data-active] span {
    opacity: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    animation: fadeInUp 0.8s ease-out;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 8rem 0 6rem;
    }

    section {
        padding: 4rem 0;
    }

    .email-form {
        flex-direction: column;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .faq-item:hover {
        transform: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .addon-pills {
        gap: 0.5rem;
    }

    .trust-badges {
        gap: 1.5rem;
    }

    .faq-grid {
        gap: 1rem;
    }

    .comparison th,
    .comparison td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Mobile form stacking fix */
@media (max-width: 768px) {
    .email-form,
    .email-form .formkit-fields {
        flex-direction: column !important;
        width: 100% !important;
    }

    .email-form .formkit-input,
    .email-form .formkit-submit {
        width: 100% !important;
        margin: 0.5rem 0 !important;
    }

    #hero-email-form,
    #cta-email-form {
        display: flex !important;
        flex-direction: column !important;
    }
}