/* =========================================================================
   Speedi-KMS Website - Design System & Modern Dark Aesthetic
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #090D16;
    --bg-surface: #0F172A;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-hover: rgba(51, 65, 85, 0.8);
    --border-color: rgba(148, 163, 184, 0.12);
    --border-highlight: rgba(96, 165, 250, 0.3);

    --primary: #2563EB;
    --primary-light: #3B82F6;
    --primary-glow: rgba(37, 99, 235, 0.35);
    
    --success: #10B981;
    --success-glow: rgba(16, 185, 129, 0.25);
    --warning: #F59E0B;
    --danger: #EF4444;

    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-subtle: #64748B;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 65%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, .brand-title {
    font-family: 'Outfit', sans-serif;
    color: #FFFFFF;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Header & Nav */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(9, 13, 22, 0.85);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), #1D4ED8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.brand-title {
    font-size: 20px;
    letter-spacing: -0.5px;
}

.badge-tag {
    font-size: 11px;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary-light);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: var(--text-muted);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.hero-title {
    font-size: 50px;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, #60A5FA, #3B82F6, #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

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

/* App Screenshot Wrapper */
.screenshot-container {
    max-width: 960px;
    margin: 30px auto 70px;
    position: relative;
}

.screenshot-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 80%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

.screenshot-card {
    position: relative;
    z-index: 1;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

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

.window-header {
    background: #131D31;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.window-dots {
    display: flex;
    gap: 8px;
}

.dot-circle {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.window-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.app-image-wrapper {
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #090E17;
    position: relative;
}

.app-preview-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Fallback Mockup UI when user hasn't loaded custom screenshot */
.mockup-ui {
    padding: 30px;
    width: 100%;
}

.mock-card {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 18px;
    text-align: left;
}

.mock-status-pill {
    background: #064E3B;
    border: 1px solid #059669;
    color: #34D399;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* What It Activates Grid */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.edition-list {
    list-style: none;
    margin-top: 14px;
}

.edition-list li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 5px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.edition-list li:last-child {
    border-bottom: none;
}

.edition-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    font-size: 12px;
}

/* Steps section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.step-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
}

.step-number {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: rgba(96, 165, 250, 0.25);
    margin-bottom: 8px;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.step-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* API Section */
.api-box {
    background: #090E17;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 30px;
}

.code-block {
    background: #030712;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    color: #93C5FD;
    overflow-x: auto;
    margin-top: 12px;
}

/* Download CTA Banner */
.download-banner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    margin: 50px 0 80px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-subtle);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 34px;
    }
    .nav-links {
        display: none;
    }
    .hero {
        padding: 50px 0 40px;
    }
    .download-banner {
        padding: 40px 20px;
    }
}
