/* ========================================
   CSS Reset & Base Styles
   ======================================== */

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

:root {
    /* Colors */
    --bg: #070A12;
    --bg2: #0B1022;
    --card: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.12);
    --text: #EAF0FF;
    --muted: rgba(234, 240, 255, 0.72);
    --accent1: #4F7BFF;
    --accent2: #7A4DFF;
    --accent3: #D86BFF;
    
    /* Gradients */
    --gradient: linear-gradient(135deg, var(--accent1), var(--accent2), var(--accent3));
    --gradient-hover: linear-gradient(135deg, #5A86FF, #8A5DFF, #E285FF);
    
    /* Spacing */
    --section-padding: 120px;
    --container-padding: 24px;
    
    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========================================
   Animations
   ======================================== */

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

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(79, 123, 255, 0.3),
                    0 0 40px rgba(122, 77, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(79, 123, 255, 0.5),
                    0 0 60px rgba(122, 77, 255, 0.3);
    }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in.visible {
    animation: fadeInUp 0.8s ease forwards;
}

/* ========================================
   Navbar
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(11, 16, 34, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.logo img {
    height: 36px;
    width: auto;
}

.logo-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient);
    border-radius: 8px;
    display: block;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

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

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-system);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 123, 255, 0.3);
}

.btn-gradient {
    background: var(--gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 123, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent1);
    background: rgba(79, 123, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.stars {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 70% 40%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 4s ease-in-out infinite;
    opacity: 0.4;
    pointer-events: none;
}

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

.hero-content {
    animation-delay: 0.2s;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge .separator {
    color: var(--accent2);
}

.hero-title {
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--muted);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 540px;
}

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

.hero-image {
    position: relative;
    animation-delay: 0.4s;
}

.glow-frame {
    position: relative;
    border-radius: 22px;
    padding: 4px;
    background: var(--gradient);
    animation: glow 3s ease-in-out infinite;
}

.glow-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    background: var(--bg2);
}

/* ========================================
   Social Proof
   ======================================== */

.social-proof {
    padding: 60px 0;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.proof-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent1);
    transform: translateY(-2px);
}

.proof-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 123, 255, 0.1);
    border-radius: 10px;
    color: var(--accent1);
}

.proof-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* ========================================
   Section Headers
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-tagline {
    font-size: 18px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   How It Works
   ======================================== */

.how-it-works {
    padding: var(--section-padding) 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.step-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--icon-color);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.step-icon {
    width: 64px;
    height: 64px;
    background: rgba(79, 123, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--icon-color);
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    background: var(--icon-color);
    color: white;
    transform: scale(1.1);
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.step-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

/* ========================================
   Safety Section
   ======================================== */

.safety {
    padding: var(--section-padding) 0;
    background: var(--bg2);
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.safety-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.safety-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(79, 123, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent1);
}

.safety-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.safety-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.safety-note {
    background: rgba(216, 107, 255, 0.08);
    border: 1px solid rgba(216, 107, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: start;
}

.note-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.note-content {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
}

.note-content strong {
    color: var(--accent3);
}

/* ========================================
   Features Section
   ======================================== */

.features {
    padding: var(--section-padding) 0;
}

.features-wrapper {
    display: grid;
    gap: 48px;
}

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

.feature-item {
    display: flex;
    gap: 16px;
    align-items: start;
}

.feature-bullet {
    width: 8px;
    height: 8px;
    background: var(--gradient);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
}

.feature-item h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.feature-item p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.feature-highlight {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.highlight-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-highlight h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-highlight p {
    font-size: 16px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   FAQ Section
   ======================================== */

.faq {
    padding: var(--section-padding) 0;
    background: var(--bg2);
}

.faq-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.faq-left h2 {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 20px;
}

.faq-left p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

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

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

.faq-icon {
    flex-shrink: 0;
    color: var(--accent1);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

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

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

.faq-answer p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
}

/* ========================================
   Final CTA
   ======================================== */

.final-cta {
    padding: var(--section-padding) 0;
}

.cta-panel {
    background: var(--gradient);
    border-radius: 24px;
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.cta-content h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.cta-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-form {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.form-group input {
    flex: 1;
    padding: 16px 24px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 16px;
    font-family: var(--font-system);
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
}

.form-group button {
    padding: 16px 32px;
    background: white;
    color: var(--accent2);
    font-weight: 700;
    white-space: nowrap;
}

.form-group button:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    margin-top: 20px;
    animation: fadeInUp 0.5s ease;
}

.success-message.show {
    display: flex;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
    background: var(--bg2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.footer-logo-fallback {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-fallback .logo-icon {
    width: 24px;
    height: 24px;
}

.footer-logo-fallback .logo-text {
    font-size: 18px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--muted);
}

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

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--muted);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 968px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .faq-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg2);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 24px;
        transition: right 0.3s ease;
        align-items: flex-start;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 12px 0;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .cta-panel {
        padding: 48px 24px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 20px;
        --section-padding: 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .proof-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .safety-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
}

/* ========================================
   Accessibility & Focus States
   ======================================== */

*:focus-visible {
    outline: 2px solid var(--accent1);
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent1);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
