/* ===== CSS Variables ===== */
:root {
    --color-bg-primary: #0D0D14;
    --color-bg-secondary: #1A1A2E;
    --color-bg-tertiary: #16213E;
    --color-accent: #00D9FF;
    --color-accent-dark: #0099CC;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #A0AEC0;
    --color-text-muted: #718096;
    --color-success: #00C853;
    --color-error: #FF5252;
    --color-warning: #FFB300;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-glass: rgba(26, 26, 46, 0.8);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Utility Classes ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    margin-bottom: 16px;
    padding: 8px 16px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 100px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #A0AEC0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 {
    transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
    transition-delay: 0.4s;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(13, 13, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(13, 13, 20, 0.98);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.8));
    }
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-normal);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-bg-primary);
    background: var(--color-accent);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.3);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 30%, rgba(0, 217, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
    animation: gradient-pulse 8s ease-in-out infinite;
}

@keyframes gradient-pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Floating particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 15s linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 24px;
    padding: 10px 20px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 100px;
    animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
    }
}

.hero-text h1 {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D9FF 50%, #0099CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 40px;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-number.counting {
    animation: count-pulse 0.3s ease;
}

@keyframes count-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 217, 255, 0.35);
}

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

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

/* ===== Phone Mockup ===== */
.hero-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #2D2D3A 0%, #1A1A2E 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 40px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: float-phone 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes float-phone {

    0%,
    100% {
        transform: translateY(0) rotateY(-5deg);
    }

    50% {
        transform: translateY(-20px) rotateY(5deg);
    }
}

.phone-frame.large {
    width: 320px;
    height: 660px;
    animation: none;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--color-bg-secondary);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(1.05);
}

.phone-screen img.active {
    opacity: 1;
    transform: scale(1);
}

#hero-screen {
    opacity: 1;
    transform: scale(1);
}

.mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* ===== Live Splash Screen Preview ===== */
.splash-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #0D0D14 0%, #1A1A2E 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.splash-preview.active {
    opacity: 1;
    pointer-events: auto;
}

/* Circuit board pattern */
.splash-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: circuit-move 20s linear infinite;
}

@keyframes circuit-move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 20px 20px;
    }
}

.splash-logo {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logo-entrance 1.5s ease-out forwards;
}

@keyframes logo-entrance {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.splash-logo svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.8));
}

.splash-logo .bolt-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw-bolt 2s ease forwards 0.5s;
}

@keyframes draw-bolt {
    to {
        stroke-dashoffset: 0;
    }
}

.splash-logo .bolt-fill {
    opacity: 0;
    animation: fill-bolt 0.5s ease forwards 2s;
}

@keyframes fill-bolt {
    to {
        opacity: 1;
    }
}

.splash-title {
    margin-top: 24px;
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: 4px;
    opacity: 0;
    animation: title-fade 1s ease forwards 2.2s;
}

@keyframes title-fade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash-tagline {
    margin-top: 8px;
    font-size: 12px;
    color: var(--color-text-secondary);
    letter-spacing: 2px;
    opacity: 0;
    animation: title-fade 1s ease forwards 2.5s;
}

.splash-loader {
    position: absolute;
    bottom: 60px;
    width: 120px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    opacity: 0;
    animation: loader-fade 0.5s ease forwards 2.8s;
}

@keyframes loader-fade {
    to {
        opacity: 1;
    }
}

.splash-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent), #00FFE0);
    border-radius: 3px;
    animation: loader-progress 2s ease forwards 3s;
}

@keyframes loader-progress {
    to {
        width: 100%;
    }
}

.splash-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.splash-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0;
    animation: splash-float 3s ease-in-out infinite;
}

@keyframes splash-float {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* ===== Overview Section ===== */
.overview {
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}

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

.overview-card {
    padding: 32px;
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.overview-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 255, 0.1);
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    color: var(--color-accent);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.overview-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

.overview-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.overview-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ===== Screens Section ===== */
.screens {
    background: var(--color-bg-secondary);
}

.screen-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: -1;
}

.tab-btn:hover {
    color: var(--color-text-primary);
    border-color: rgba(0, 217, 255, 0.3);
}

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

.tab-btn.active::before {
    width: 200px;
    height: 200px;
}

.screen-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.screen-info {
    position: relative;
}

.screen-content {
    display: none;
    animation: slideIn 0.5s ease;
}

.screen-content.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.screen-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.screen-content>p {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.screen-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.screen-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--color-text-secondary);
    opacity: 0;
    animation: featureFade 0.5s ease forwards;
}

.screen-features li:nth-child(1) {
    animation-delay: 0.1s;
}

.screen-features li:nth-child(2) {
    animation-delay: 0.2s;
}

.screen-features li:nth-child(3) {
    animation-delay: 0.3s;
}

.screen-features li:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes featureFade {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.screen-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
}

.screen-display {
    display: flex;
    justify-content: center;
}

/* ===== Features Section ===== */
.features {
    background: var(--color-bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: rgba(22, 33, 62, 0.3);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 217, 255, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover::after {
    left: 100%;
}

.feature-card.highlight {
    grid-column: span 1;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(22, 33, 62, 0.3) 100%);
    border-color: rgba(0, 217, 255, 0.2);
}

.feature-number {
    font-size: 48px;
    font-weight: 800;
    color: rgba(0, 217, 255, 0.15);
    position: absolute;
    top: 16px;
    right: 24px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-number {
    color: rgba(0, 217, 255, 0.3);
    transform: scale(1.1);
}

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

.feature-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
}

.feature-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    padding: 4px 12px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-tag {
    background: rgba(0, 217, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

/* ===== Technology Section ===== */
.tech {
    background: var(--color-bg-secondary);
}

.tech-architecture {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.arch-layer {
    width: 100%;
    max-width: 800px;
    padding: 32px;
    background: rgba(13, 13, 20, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    transition: all 0.4s ease;
}

.arch-layer:hover {
    transform: scale(1.02);
    border-color: rgba(0, 217, 255, 0.2);
}

.arch-layer.highlight {
    border-color: rgba(0, 217, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(13, 13, 20, 0.6) 100%);
}

.arch-layer h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.tech-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tech-item {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-4px);
}

.tech-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.tech-desc {
    font-size: 13px;
    color: var(--color-text-muted);
}

.arch-connector {
    display: flex;
    justify-content: center;
    opacity: 0.5;
    animation: connector-pulse 2s ease-in-out infinite;
}

@keyframes connector-pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

/* ===== Design System Section ===== */
.design-system {
    background: var(--color-bg-primary);
}

.design-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.design-block {
    padding: 32px;
    background: rgba(22, 33, 62, 0.3);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
}

.design-block:hover {
    border-color: rgba(0, 217, 255, 0.2);
}

.design-block h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.color-swatches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.swatch {
    height: 100px;
    border-radius: var(--border-radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.swatch:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.swatch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swatch:hover::before {
    opacity: 1;
}

.swatch-name {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.swatch-hex {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'SF Mono', monospace;
}

.type-samples {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.type-sample {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.type-sample:hover {
    padding-left: 10px;
    border-bottom-color: var(--color-accent);
}

.type-sample:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.type-label {
    font-size: 13px;
    color: var(--color-text-muted);
}

.type-preview {
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.type-sample:hover .type-preview {
    color: var(--color-accent);
}

.type-preview.h1 {
    font-size: 24px;
    font-weight: 700;
}

.type-preview.h2 {
    font-size: 20px;
    font-weight: 600;
}

.type-preview.body {
    font-size: 16px;
    font-weight: 400;
}

.type-preview.caption {
    font-size: 12px;
    font-weight: 500;
}

/* ===== Footer ===== */
.footer {
    padding: 64px 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-text {
    font-size: 14px;
    color: var(--color-text-secondary);
    max-width: 400px;
    margin: 0 auto 24px;
}

.footer-divider {
    width: 48px;
    height: 1px;
    background: var(--color-border);
    margin: 0 auto 24px;
}

.footer-copyright {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 56px;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

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

    .screen-showcase {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .screen-info {
        order: 2;
        text-align: center;
    }

    .screen-display {
        order: 1;
    }

    .screen-features {
        align-items: center;
    }

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

    .tech-items {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
    }

    .phone-frame.large {
        width: 280px;
        height: 580px;
    }

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

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

    .feature-card.highlight {
        grid-column: span 1;
    }

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

    .color-swatches {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .screen-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        width: 100%;
    }
}

/* ==========================================================================
   DEVELOPER DOCUMENTATION & TIMELINE
   ========================================================================== */

/* Docs Section */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.docs-card {
    border-radius: var(--border-radius-lg);
    padding: 40px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(22, 33, 62, 0.4);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Gradient Border Effect */
.docs-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.3s;
}

.docs-card:hover::before {
    background: linear-gradient(135deg, var(--color-accent), rgba(0, 153, 204, 0.5));
}

.docs-card:hover {
    transform: translateY(-8px);
    background: rgba(22, 33, 62, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: transparent;
    /* Handled by pseudo-element */
}

.docs-card.highlight-card {
    border-color: var(--color-accent);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(22, 33, 62, 0.4) 100%);
}

.docs-card.highlight-card::after {
    content: 'Recommended';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--color-accent);
    color: var(--color-bg-primary);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 40px;
    transform: rotate(45deg);
    text-transform: uppercase;
}

.btn-snippet {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-snippet:hover {
    background: var(--color-accent);
    color: var(--color-bg-primary);
}

.docs-subsection {
    margin-top: 60px;
    border-top: 1px solid var(--color-border);
    padding-top: 40px;
}

.docs-subsection h3 {
    font-size: 24px;
    color: var(--color-text-primary);
    margin-bottom: 10px;
}

.docs-subsection p {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

/* Code Block Styles */
.code-block-container {
    background: #0d1117;
    /* GitHub Dark Dimmed bg */
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text-muted);
    font-family: monospace;
}

.badge {
    background: #238636;
    /* Green badge */
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.code-block-container pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
}

.code-block-container code {
    font-family: 'Courier New', monospace;
    color: #e6edf3;
}

/* Accordion Styles */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(22, 33, 62, 0.4);
}

.accordion-header {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header svg {
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header svg {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.accordion-content p,
.accordion-content pre {
    padding: 20px;
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.accordion-content pre {
    background: #0d1117;
    padding: 15px;
    margin: 0 20px 20px;
    border-radius: 6px;
    overflow-x: auto;
}

.docs-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 24px;
}

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

.docs-content p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.docs-content ul,
.docs-content ol {
    padding-left: 20px;
}

.docs-content li {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.docs-content strong {
    color: var(--color-text-primary);
}

.docs-content code {
    background: rgba(0, 217, 255, 0.1);
    color: var(--color-accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
}

/* Timeline Section */
.timeline-container {
    margin-top: 64px;
    padding: 40px 0;
    overflow-x: auto;
}

.timeline-track {
    display: flex;
    min-width: 900px;
    position: relative;
    padding-bottom: 60px;
}

.timeline-track::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.timeline-month {
    flex: 1;
    position: relative;
    padding: 0 20px;
}

.month-label {
    position: absolute;
    bottom: -40px;
    left: 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.milestone-items {
    height: 240px;
    position: relative;
}

.milestone-item {
    position: absolute;
    left: var(--offset);
    bottom: 0;
    width: 220px;
}

.milestone-dot {
    width: 14px;
    height: 14px;
    background: var(--color-accent);
    border: 3px solid var(--color-bg-primary);
    border-radius: 50%;
    position: absolute;
    bottom: -7px;
    left: 0;
    z-index: 5;
    box-shadow: 0 0 15px var(--color-accent);
}

.milestone-content {
    padding-bottom: 30px;
    padding-left: 20px;
    border-left: 1px dashed rgba(0, 217, 255, 0.3);
}

.milestone-item.highlight .milestone-dot {
    background: #00C853;
    box-shadow: 0 0 20px #00C853;
}

.milestone-item.highlight .milestone-content {
    border-left-color: rgba(0, 200, 83, 0.5);
}

.milestone-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.milestone-content p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--color-bg-secondary);
    margin: 5% auto;
    width: 80%;
    max-width: 800px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s;
    overflow: hidden;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.02);
}

.modal-header h3 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 18px;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.2);
    color: var(--color-accent);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--color-accent);
}

.btn-copy svg {
    width: 14px;
    height: 14px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-text-primary);
}

.modal-body {
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body pre {
    margin: 0;
    padding: 20px;
    background: #0d1117;
    color: #e6edf3;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
}

/* Responsive adjustments for new sections */
@media (max-width: 992px) {
    .timeline-container {
        overflow-x: visible;
    }

    .timeline-track {
        flex-direction: column;
        min-width: auto;
        padding-left: 40px;
        padding-bottom: 0;
    }

    .timeline-track::after {
        width: 2px;
        height: 100%;
        left: 0;
        bottom: 0;
        background: linear-gradient(180deg, var(--color-accent) 0%, rgba(255, 255, 255, 0.1) 100%);
    }

    .timeline-month {
        padding: 40px 0 20px 0;
    }

    .month-label {
        position: relative;
        bottom: auto;
        left: auto;
        display: block;
        margin-bottom: 30px;
        margin-left: -40px;
        background: var(--color-bg-secondary);
        padding: 5px 10px;
        border-radius: 4px;
        width: fit-content;
    }

    .milestone-items {
        height: auto;
    }

    .milestone-item {
        position: relative;
        left: 0 !important;
        bottom: auto;
        width: 100%;
        margin-bottom: 40px;
    }

    .milestone-dot {
        left: -47px;
        bottom: auto;
        top: 4px;
    }

    .milestone-content {
        padding-bottom: 0;
    }
}