:root {
    --bg-main: #030307;
    --bg-card: rgba(13, 13, 23, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 208, 0, 0.35);
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --accent-1: #FFD000;
    --accent-2: #FF9100;
    --glow: rgba(255, 208, 0, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 145, 0, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.02) 1px, transparent 0);
    background-size: 100% 100%, 28px 28px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Glow backgrounds ─────────────────────────────── */
.glow-bg {
    position: fixed;
    top: -20vh;
    left: -20vw;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}
.glow-bg-2 {
    top: auto;
    bottom: -20vh;
    left: auto;
    right: -20vw;
    background: radial-gradient(circle, rgba(255, 145, 0, 0.05) 0%, transparent 70%);
}

/* ── Typography ────────────────────────────────────── */
h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Navbar ────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
    background: rgba(3, 3, 7, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}
.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.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-main); }
.nav-btn {
    color: var(--text-main) !important;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}
.nav-btn:hover {
    border-color: var(--accent-1) !important;
    background: rgba(255, 208, 0, 0.05) !important;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
    color: #020208;
    box-shadow: 0 8px 24px rgba(255, 208, 0, 0.18);
}
.btn-primary:hover {
    box-shadow: 0 12px 36px rgba(255, 208, 0, 0.35);
    transform: translateY(-2px);
}
.btn-secondary {
    background: rgba(255,255,255,0.02);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.06);
}

/* ── Layout ────────────────────────────────────────── */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
section { padding: 100px 0; }

.section-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 56px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 140px;
    padding-bottom: 80px;
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 145, 0, 0.08);
    color: var(--accent-1);
    border: 1px solid rgba(255, 145, 0, 0.25);
    padding: 6px 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 28px;
}
.hero-title {
    font-size: clamp(40px, 6.5vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-subtitle {
    font-size: clamp(17px, 2vw, 19px);
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 44px;
    line-height: 1.75;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Gateways Section ─────────────────────────────── */
.gateways-section {
    padding: 60px 0;
}
.gateways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}
.gateway-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 440px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.gateway-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(255, 208, 0, 0.08);
}
.card-glow {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 208, 0, 0.12) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.card-glow.cg-owncast {
    background: radial-gradient(circle, rgba(255, 145, 0, 0.12) 0%, transparent 70%);
}
.gateway-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    z-index: 1;
}
.platform-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}
.status-badge.live {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.2);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pulse-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #2ed573;
    border-radius: 50%;
    animation: live-pulse 1.8s infinite;
}
@keyframes live-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(46, 213, 115, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 213, 115, 0); }
}
.gateway-body {
    z-index: 1;
    margin-bottom: 32px;
}
.gateway-body h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}
.gateway-body p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
}
.spec-list {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.spec-list li {
    font-size: 13.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}
.spec-list li::before {
    content: '✓';
    color: var(--accent-1);
    font-weight: 700;
    font-size: 15px;
}
.gateway-footer {
    z-index: 1;
}
.launch-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
    color: #030307;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(255, 208, 0, 0.15);
    transition: all 0.2s ease;
}
.launch-btn:hover {
    box-shadow: 0 8px 24px rgba(255, 208, 0, 0.35);
    transform: translateY(-1px);
}

/* Upcoming Connectors Roadmap (Deleted) */

/* ── Feature cards (How it works) ──────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 56px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 28px;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}
.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 145, 0, 0.1);
    border: 1px solid rgba(255, 145, 0, 0.2);
    color: var(--accent-1);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ── Diagram (How it works) ────────────────────────── */
.diagram-container {
    max-width: 900px;
    margin: 3.5rem auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
}
.diagram-container:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 195, 0, 0.25);
    box-shadow: 0 12px 40px 0 rgba(255, 195, 0, 0.08);
}
.diagram-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ── Why Arc ───────────────────────────────────────── */
.why-arc { background: none; }
.why-arc-inner {
    max-width: 780px;
    margin: 0 auto;
}
.why-arc .section-title { text-align: left; }
.why-arc-content {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.why-arc-content p {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.85;
}
.why-arc-content strong {
    color: var(--text-main);
    font-weight: 600;
}

/* ── Footer ────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-main); }

/* ── Scroll animations ─────────────────────────────── */
.hidden {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.show {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-actions { flex-direction: column; width: 100%; max-width: 320px; }
    .nav-links { gap: 16px; }
    .nav-links a:not(.nav-btn) { display: none; }
    .footer-content { flex-direction: column; text-align: center; }
    .why-arc .section-title { text-align: center; }
    .gateways-grid { grid-template-columns: 1fr; }
}
