/* Reset & Variables */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #09090b;
    --bg-elevated: #18181b;
    --bg-subtle: #27272a;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-subtle: #71717a;
    --red: #dc2626;
    --red-light: #ef4444;
    --red-glow: rgba(220, 38, 38, 0.4);
    --gradient-start: #dc2626;
    --gradient-end: #991b1b;
}

html {
    scroll-behavior: smooth;
}

#general {
    scroll-margin-top: 60px;
}

#how-it-works,
#features,
#faq,
#download {
    scroll-margin-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle noise texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 1000;
}

/* Gradient orbs */
.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    opacity: 0.6;
}

.gradient-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
    opacity: 0.4;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.nav-links {
    display: flex;
    gap: 32px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    padding: 10px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--bg-subtle);
    border-color: var(--border-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 4px 16px -4px var(--red-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 8px 24px -4px var(--red-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--border-hover);
}

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

.btn-white:hover {
    background: #f4f4f5;
    transform: translateY(-2px);
}

/* Hero */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    padding-bottom: 40px;
    position: relative;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-logo {
    width: 140px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 20px 40px rgba(220, 38, 38, 0.3));
    animation: floatLogo 4s ease-in-out infinite;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(44px, 9vw, 88px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    text-align: center;
    white-space: nowrap;
}

.title-static {
    color: var(--text);
}

.title-dynamic-wrapper {
    display: inline-block;
    text-align: left;
    min-width: 5ch;
}

.title-dynamic {
    display: inline-block;
    color: var(--red-light);
    will-change: transform, opacity;
}

.title-dynamic.animating {
    animation: textSwap 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes textSwap {
    0% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    40% {
        opacity: 0;
        transform: translateY(-20px);
        filter: blur(4px);
    }
    60% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 0 28px 0;
    line-height: 1.7;
    text-align: center;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}


/* Sections */
.section {
    padding: 120px 0;
}

.section-alt {
    background: var(--bg-elevated);
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--red-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

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

.step-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--red-light);
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* Features */
.features-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.feature-card:hover {
    border-color: var(--border-hover);
}

.feature-large {
    grid-column: 1 / -1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--red-light);
}

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

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

/* Safety */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.safety-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.safety-card:hover {
    border-color: var(--border-hover);
}

.safety-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 12px;
    flex-shrink: 0;
    color: var(--red-light);
}

.safety-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

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

/* Notice */
.notice-section {
    padding: 60px 0;
}

.notice-card {
    display: flex;
    gap: 20px;
    padding: 24px 28px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 14px;
}

.notice-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--red-light);
}

.notice-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.notice-content p {
    font-size: 14px;
    color: var(--text-muted);
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.faq-item {
    padding: 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

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

/* CTA Section */
.cta-section {
    padding: 120px 0;
}

.cta-card {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.05;
}

.cta-logo {
    width: 120px;
    height: auto;
    margin-bottom: 24px;
    position: relative;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.cta-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}

.cta-card > p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 32px;
    position: relative;
}

.cta-card .btn {
    position: relative;
}

.cta-note {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    opacity: 0.7;
    position: relative;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

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

.footer-logo {
    height: 64px;
    width: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

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

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

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-subtle);
}

/* Responsive - Tablet */
@media (max-width: 968px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-large {
        grid-column: 1;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 48px;
    }
    
    .footer-links {
        gap: 48px;
        flex-wrap: wrap;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav {
        padding: 12px 0;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-links {
        display: none;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .nav-cta {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .hero {
        padding-top: 80px;
        padding-bottom: 60px;
        min-height: auto;
    }
    
    .hero-logo {
        width: 100px;
        margin-bottom: 12px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 12px 6px 10px;
        margin-bottom: 12px;
    }
    
    .hero-title {
        font-size: 36px;
        white-space: normal;
        margin-bottom: 12px;
    }
    
    .title-dynamic-wrapper {
        display: block;
        text-align: center;
        min-width: auto;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
        padding: 0 8px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
        margin-bottom: 0;
    }
    
    .hero-cta .btn {
        width: 100%;
        padding: 14px 24px;
    }
    
    .section {
        padding: 64px 0;
    }
    
    .section-label {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .step-card {
        padding: 24px 20px;
    }
    
    .step-card h3 {
        font-size: 16px;
    }
    
    .step-card p {
        font-size: 13px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .feature-card h3 {
        font-size: 16px;
    }
    
    .feature-card p {
        font-size: 14px;
    }
    
    .safety-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .safety-card {
        padding: 20px;
        gap: 16px;
    }
    
    .safety-icon {
        width: 44px;
        height: 44px;
    }
    
    .safety-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .safety-card h3 {
        font-size: 15px;
    }
    
    .safety-card p {
        font-size: 13px;
    }
    
    .notice-section {
        padding: 40px 0;
    }
    
    .notice-card {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        text-align: center;
    }
    
    .notice-icon {
        width: 32px;
        height: 32px;
        margin: 0 auto;
    }
    
    .notice-content h3 {
        font-size: 14px;
    }
    
    .notice-content p {
        font-size: 13px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .faq-item h3 {
        font-size: 15px;
    }
    
    .faq-item p {
        font-size: 13px;
    }
    
    .cta-section {
        padding: 64px 0;
    }
    
    .cta-card {
        padding: 48px 24px;
        border-radius: 20px;
    }
    
    .cta-logo {
        width: 80px;
        margin-bottom: 20px;
    }
    
    .cta-card h2 {
        font-size: 26px;
        margin-bottom: 8px;
    }
    
    .cta-card > p {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .cta-card .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .cta-note {
        font-size: 12px;
    }
    
    .footer {
        padding: 48px 0 32px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .footer-brand {
        text-align: center;
        max-width: 100%;
    }
    
    .footer-logo {
        height: 48px;
        margin-bottom: 12px;
    }
    
    .footer-brand p {
        font-size: 13px;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        width: 100%;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col h4 {
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .footer-col a {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding-top: 24px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 400px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

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

/* Base state for animated elements */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Visible state */
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade up animation (default) */
[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(40px);
}

[data-animate="fade-up"].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in animation */
[data-animate="fade-in"] {
    opacity: 0;
    transform: none;
}

[data-animate="fade-in"].visible {
    opacity: 1;
}

/* Scale up animation */
[data-animate="scale-up"] {
    opacity: 0;
    transform: scale(0.9);
}

[data-animate="scale-up"].visible {
    opacity: 1;
    transform: scale(1);
}

/* Slide from left */
[data-animate="slide-left"] {
    opacity: 0;
    transform: translateX(-40px);
}

[data-animate="slide-left"].visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
[data-animate="slide-right"] {
    opacity: 0;
    transform: translateX(40px);
}

[data-animate="slide-right"].visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered delays for grid items */
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }
[data-animate-delay="6"] { transition-delay: 0.6s; }

/* Hero specific animations - these play immediately */
.hero [data-animate] {
    transition-delay: 0s;
}

.hero .hero-logo[data-animate] {
    transition-delay: 0.1s;
}

.hero .hero-badge[data-animate] {
    transition-delay: 0.2s;
}

.hero .hero-title[data-animate] {
    transition-delay: 0.3s;
}

.hero .hero-subtitle[data-animate] {
    transition-delay: 0.4s;
}

.hero .hero-cta[data-animate] {
    transition-delay: 0.5s;
}

/* Section headers */
.section-label[data-animate],
.section-title[data-animate] {
    transition-delay: 0s;
}

.section-title[data-animate] {
    transition-delay: 0.1s;
}

/* CTA card special animation */
.cta-card[data-animate="scale-up"] {
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    [data-animate].visible {
        opacity: 1;
        transform: none;
    }
}
