/* ================================================================
   RideLink Web V2 — Premium Design System
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors — AOS App (Solo Green → Group Mint) */
    --primary: #00E5FF;
    --primary-glow: rgba(0, 229, 255, 0.35);
    --accent: #00E676;
    --accent-glow: rgba(0, 230, 118, 0.3);
    --gradient-brand: linear-gradient(90deg, #00E676, #00E5FF);

    /* Backgrounds */
    --bg-void: #000000;
    --bg-dark: #0a0a0f;
    --bg-card: #111118;
    --bg-elevated: #1a1a24;

    /* Text */
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);

    /* Spacing */
    --section-padding: 140px;
    --container-max: 1200px;

    /* Motion */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration-normal: 0.6s;
    --duration-slow: 1s;
}

/* ================================================================
   Reset & Base
   ================================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Pretendard', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================================================================
   Layout
   ================================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section {
    position: relative;
    padding: var(--section-padding) 0;
    overflow: hidden;
}

/* ================================================================
   Typography
   ================================================================ */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 2rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.2rem;
    height: 2px;
    background: var(--gradient-brand);
    transform: translateY(-50%);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.75;
}

.text-center {
    text-align: center;
}

.text-center .section-desc {
    margin: 0 auto;
}

.text-center .section-label {
    padding-left: 0;
}

.text-center .section-label::before {
    display: none;
}

/* ================================================================
   Navigation
   ================================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 1000;
    transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
    background: transparent;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom-color: var(--glass-border);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.5);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--gradient-brand);
    color: #000;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px var(--primary-glow);
}

/* ================================================================
   Hero
   ================================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('hero_bg.png') center/cover no-repeat;
    opacity: 0.35;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            var(--bg-void) 100%);
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.2);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-void);
}

.btn-primary:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

/* ================================================================
   Scroll Reveal
   ================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity var(--duration-normal) var(--ease-out-expo),
        transform var(--duration-normal) var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ================================================================
   Features Section
   ================================================================ */
.section-features {
    background: var(--bg-dark);
}

.section-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.feature-card {
    position: relative;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(ellipse at top left, rgba(0, 242, 255, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    border-color: rgba(0, 242, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-emoji {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: block;
    filter: saturate(0.85);
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.feature-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 242, 255, 0.15);
}

/* Wide card spanning 2 cols */
.feature-card-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.feature-card-wide .feature-visual {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.waveform-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--gradient-brand);
    animation: waveform 1.5s ease-in-out infinite alternate;
}

.waveform-bar:nth-child(1) {
    width: 60%;
    animation-delay: 0s;
}

.waveform-bar:nth-child(2) {
    width: 90%;
    animation-delay: 0.2s;
}

.waveform-bar:nth-child(3) {
    width: 45%;
    animation-delay: 0.4s;
}

.waveform-bar:nth-child(4) {
    width: 75%;
    animation-delay: 0.6s;
}

.waveform-bar:nth-child(5) {
    width: 55%;
    animation-delay: 0.8s;
}

@keyframes waveform {
    0% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }

    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* ================================================================
   Stats / Data Section
   ================================================================ */
.section-data {
    background: var(--bg-void);
    position: relative;
}

.section-data::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.data-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: end;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    padding: 2rem;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: rgba(0, 242, 255, 0.15);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number .text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-unit {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.7;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Physics Card */
.physics-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.physics-card {
    padding: 2rem;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: border-color 0.3s;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.physics-card:hover {
    border-color: rgba(0, 242, 255, 0.15);
}

.physics-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.physics-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.formula {
    display: inline-block;
    font-family: 'Courier New', 'Fira Code', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 242, 255, 0.06);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 242, 255, 0.12);
    margin-top: 0.75rem;
    letter-spacing: 0.05em;
}

.physics-card.highlight {
    border-color: rgba(0, 242, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.03), rgba(112, 0, 255, 0.03));
}

/* ================================================================
   CTA / Download Section
   ================================================================ */
.section-cta {
    background: var(--bg-dark);
    padding: 160px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.04), transparent 60%);
    pointer-events: none;
}

.cta-icon {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    overflow: hidden;
    margin: 0 auto 3rem;
    border: 2px solid rgba(0, 242, 255, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 242, 255, 0.08);
    transition: transform 0.4s var(--ease-out-expo);
}

.cta-icon:hover {
    transform: scale(1.05);
}

.cta-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.cta-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.store-btn {
    height: 52px;
    display: flex;
    align-items: center;
    position: relative;
    transition: transform 0.3s var(--ease-out-expo);
    border-radius: 8px;
    overflow: hidden;
}

.store-btn img {
    height: 100%;
    width: auto;
}

.store-btn:hover {
    transform: scale(1.06);
}

.store-btn.disabled {
    filter: grayscale(1) opacity(0.4);
    cursor: default;
}

.store-btn.disabled:hover {
    transform: none;
}

.coming-soon {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
}

/* ================================================================
   Footer
   ================================================================ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card-wide {
        grid-column: span 2;
    }

    .data-layout {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-wide {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .data-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .nav-cta span {
        display: none;
    }

    .section-cta {
        padding: 100px 0;
    }

    .cta-icon {
        width: 100px;
        height: 100px;
        border-radius: 24px;
        margin-bottom: 2rem;
    }

    .cta-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .cta-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .physics-card {
        padding: 1.5rem;
    }

    .physics-card h4 {
        font-size: 1rem;
    }

    .physics-card p {
        font-size: 0.85rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .store-btn {
        height: 46px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }

    .hero {
        padding: 90px 0 50px;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .feature-emoji {
        font-size: 2rem;
    }

    .section-cta {
        padding: 80px 0;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        height: 42px;
    }

    .coming-soon {
        bottom: -18px;
        font-size: 0.6rem;
    }

    .formula {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .footer {
        padding: 30px 0;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }

    .navbar.scrolled {
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
    }
}