@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    color-scheme: dark;
    --bg-primary: #06070f;
    --bg-secondary: #101228;
    --accent: #7c5cff;
    --accent-soft: rgba(124, 92, 255, 0.2);
    --text-primary: #f5f6ff;
    --text-muted: rgba(245, 246, 255, 0.68);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(140% 140% at 12% 16%, rgba(124, 92, 255, 0.26) 0%, transparent 55%),
                radial-gradient(120% 150% at 88% -10%, rgba(16, 198, 255, 0.18) 0%, transparent 60%),
                linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 40px 24px;
    display: flex;
    justify-content: center;
}

.page {
    position: relative;
    width: 100%;
    max-width: 1180px;
    padding: 56px clamp(24px, 6vw, 80px);
    border-radius: 36px;
    background: rgba(6, 7, 15, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 96px;
}

.glow {
    position: absolute;
    filter: blur(60px);
    opacity: 0.9;
    z-index: -1;
}

.glow.one {
    top: -160px;
    left: -140px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.5) 0%, transparent 70%);
}

.glow.two {
    bottom: -200px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(16, 198, 255, 0.35) 0%, transparent 70%);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    letter-spacing: 0.16em;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.brand::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, #7c5cff, #54e0ff);
    box-shadow: 0 0 18px rgba(124, 92, 255, 0.45);
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

nav a:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

nav a.active,
nav a[aria-current="page"] {
    color: var(--text-primary);
    position: relative;
}

nav a.active::after,
nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.platform-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

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

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

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

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

main {
    display: flex;
    flex-direction: column;
    gap: 96px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.hero-title {
    font-size: clamp(3.2rem, 6vw, 5.2rem);
    line-height: 1.1;
    font-weight: 600;
    max-width: 800px;
}

.hero-title span {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(124, 92, 255, 0.35);
}

.hero-text {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 700px;
}

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

.cta {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.cta.primary {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    border: none;
}

.cta.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.cta.primary:active {
    transform: translateY(-1px) scale(1);
}

.cta.secondary {
    color: var(--text-primary);
    border: 2px solid rgba(102, 126, 234, 0.4);
    background: rgba(102, 126, 234, 0.05);
    backdrop-filter: blur(10px);
}

.cta.secondary:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.8);
    background: rgba(102, 126, 234, 0.15);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.cta.secondary:active {
    transform: translateY(-1px) scale(1);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.metric-card {
    padding: 28px 24px;
    border-radius: 20px;
    border: 1px solid rgba(124, 92, 255, 0.2);
    background: rgba(12, 15, 32, 0.5);
    backdrop-filter: blur(12px);
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 255, 0.4);
}

.metric-card h3 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent);
}

.metric-card span {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 600;
}

.section-heading p {
    max-width: 420px;
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.feature-card {
    position: relative;
    border-radius: 24px;
    padding: 28px;
    background: rgba(12, 15, 32, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(84, 224, 255, 0.06));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 255, 0.32);
}

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

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(124, 92, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.2rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.dual-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.panel {
    border-radius: 28px;
    padding: 32px;
    background: rgba(10, 12, 26, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    gap: 18px;
}

.panel h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.panel ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.panel li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.panel li::before {
    content: "•";
    color: var(--accent);
    font-size: 1.4rem;
    line-height: 1;
}

.stack {
    border-radius: 32px;
    padding: 36px;
    background: rgba(8, 10, 22, 0.72);
    border: 1px solid rgba(124, 92, 255, 0.16);
    display: grid;
    gap: 24px;
}

.stack-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stack-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-muted);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    gap: 18px;
}

footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

@media (max-width: 1040px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stack-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    body {
        padding: 32px 18px;
    }

    .page {
        padding: 44px clamp(20px, 7vw, 48px);
        gap: 72px;
    }

    .hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dual-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .platform-nav {
        display: flex;
        justify-content: flex-end;
    }

    .hamburger {
        display: flex;
        z-index: 101;
    }

    .platform-nav nav {
        position: fixed;
        top: 80px;
        right: 24px;
        background: rgba(8, 9, 20, 0.98);
        border: 1px solid rgba(124, 92, 255, 0.35);
        border-radius: 20px;
        padding: 20px;
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
        min-width: 220px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
        z-index: 100;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(20px);
    }

    .platform-nav nav.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .platform-nav nav a {
        color: var(--text-muted);
        font-size: 0.95rem;
        padding: 8px 0;
        transition: color 0.2s ease;
    }

    .platform-nav nav a:hover,
    .platform-nav nav a:focus-visible {
        color: var(--text-primary);
    }
}

@media (max-width: 640px) {
    body {
        padding: 24px 16px;
    }

    .page {
        border-radius: 28px;
        gap: 56px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .section-heading h2 {
        text-align: center;
    }

    .section-heading p {
        text-align: center;
        max-width: 100%;
    }

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

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

    .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .cta {
        width: 100%;
        justify-content: center;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
