/* Linear.app / Dribbble Inspired Ultra-Modern Theme */
:root {
    --bg-deep: #050814;
    --bg-card: rgba(255, 255, 255, 0.02);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(99, 102, 241, 0.3);
    --primary-indigo: #4f46e5;
    --primary-glow: #818cf8;
    --accent-cyan: #38bdf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

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

body {
    font-family: var(--font-stack); color: var(--text-main); background-color: var(--bg-deep);
    line-height: 1.6; overflow-x: hidden; position: relative; -webkit-font-smoothing: antialiased;
}

.aurora-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora-1, .aurora-2, .aurora-3 { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4; animation: float 20s infinite alternate ease-in-out; }
.aurora-1 { width: 600px; height: 600px; background: rgba(79, 70, 229, 0.15); top: -200px; left: -100px; }
.aurora-2 { width: 500px; height: 500px; background: rgba(56, 189, 248, 0.1); bottom: -100px; right: -100px; animation-delay: -5s; }
.aurora-3 { width: 400px; height: 400px; background: rgba(139, 92, 246, 0.1); top: 40%; left: 40%; animation-delay: -10s; }

@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 30px) scale(1.1); } }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
h1, h2, h3, h4 { color: var(--white); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; }

.futuristic-navbar {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(5, 8, 20, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color); z-index: 1000;
}
.nav-container { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.nav-brand { font-size: 1.25rem; font-weight: 800; color: var(--white); display: flex; align-items: center; gap: 8px; }
.brand-icon { color: var(--primary-glow); }
.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--white);
    padding: 8px 20px; border-radius: 8px; font-weight: 500; font-size: 0.9rem; transition: all 0.3s ease;
}
.nav-cta:hover { background: var(--white); color: var(--bg-deep); }

.hero { padding: 180px 0 100px 0; text-align: center; position: relative; }
.hero-content { display: flex; flex-direction: column; align-items: center; }
.hero .badge {
    background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.3); color: var(--primary-glow);
    padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 30px; letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}
.hero h1 {
    font-size: 4rem; margin-bottom: 24px; max-width: 900px;
    background: linear-gradient(180deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px auto; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; }
.cta-button { padding: 12px 32px; border-radius: 8px; font-weight: 600; font-size: 1rem; transition: all 0.3s ease; }
.cta-button.primary-glow {
    background: var(--primary-indigo); color: var(--white);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.4), inset 0 1px 1px rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.1);
}
.cta-button.primary-glow:hover { background: var(--primary-glow); box-shadow: 0 0 40px rgba(79, 70, 229, 0.6); transform: translateY(-1px); }
.cta-button.outline { background: rgba(255,255,255,0.03); color: var(--white); border: 1px solid var(--border-color); }
.cta-button.outline:hover { background: rgba(255,255,255,0.08); }

.hero-visual { position: relative; width: 400px; height: 350px; margin: 0 auto; perspective: 1000px; }
.globe-container {
    width: 250px; height: 250px; margin: 50px auto 0; position: relative;
    transform-style: preserve-3d; animation: float-globe 6s ease-in-out infinite alternate;
}
.globe-sphere { width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(99, 102, 241, 0.2); box-shadow: inset 0 0 40px rgba(99, 102, 241, 0.3), 0 0 60px rgba(99, 102, 241, 0.1); position: absolute; }
.globe-equator, .globe-meridian { position: absolute; border: 1px dashed rgba(165, 180, 252, 0.3); border-radius: 50%; }
.globe-equator { width: 100%; height: 60px; top: 50%; left: 0; transform: translateY(-50%) rotateX(70deg); animation: rotate-eq 20s linear infinite; }
.globe-meridian { width: 80px; height: 100%; top: 0; left: 50%; transform: translateX(-50%) rotateY(70deg); animation: rotate-mer 25s linear infinite; }
.globe-routes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.route-path { fill: none; stroke: url(#route-gradient); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 100; animation: dash 3s linear infinite; }
.telemetry {
    position: absolute; background: rgba(5, 8, 20, 0.7); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main); font-family: 'SF Mono', Consolas, monospace; font-size: 0.75rem;
    padding: 8px 16px; border-radius: 8px; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.5); z-index: 10;
}
.ping-dot { width: 6px; height: 6px; background: #10b981; border-radius: 50%; box-shadow: 0 0 10px #10b981; animation: blink 2s infinite; }
.t-1 { top: 20%; left: -10%; animation: float 5s infinite alternate ease-in-out; }
.t-2 { bottom: 30%; right: -20%; animation: float 6s infinite alternate-reverse ease-in-out; }
.t-3 { top: 10%; right: 0%; animation: float 4s infinite alternate ease-in-out; }

@keyframes rotate-eq { to { transform: translateY(-50%) rotateX(70deg) rotateZ(360deg); } }
@keyframes rotate-mer { to { transform: translateX(-50%) rotateY(70deg) rotateZ(360deg); } }
@keyframes float-globe { 0% { transform: translateY(0); } 100% { transform: translateY(-15px); } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

section { padding: 60px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }

.bento-grid, .use-cases-grid { display: grid; grid-auto-rows: minmax(280px, auto); gap: 24px; margin-top: 40px; }
.bento-grid { grid-template-columns: repeat(3, 1fr); }
.use-cases-grid { grid-template-columns: repeat(2, 1fr); }

.bento-card {
    background: var(--bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color); border-radius: 24px; padding: 32px; position: relative; overflow: hidden;
    display: flex; flex-direction: column; transition: border-color 0.3s, box-shadow 0.3s;
}
.bento-card::before, .faq-item-modern::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(99, 102, 241, 0.12), transparent 40%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 0;
}
.bento-card:hover, .faq-item-modern:hover { border-color: rgba(99, 102, 241, 0.4); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.bento-card:hover::before, .faq-item-modern:hover::before { opacity: 1; }
.bento-content { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }

.card-network { grid-column: span 2; grid-row: span 2; }
.card-security { grid-column: span 1; grid-row: span 1; }
.card-platform { grid-column: span 1; grid-row: span 1; }

.bento-header { margin-bottom: 20px; }
.icon-hairline { width: 32px; height: 32px; stroke: var(--primary-glow); fill: none; stroke-width: 1.5; margin-bottom: 16px; }
.bento-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.bento-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

.network-visual { margin-top: auto; display: flex; flex-direction: column; gap: 20px; }
.node-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.node-chip {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); padding: 6px 12px; border-radius: 30px;
    font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; cursor: default; transition: all 0.2s;
}
.node-chip:hover { border-color: var(--primary-indigo); color: var(--white); background: rgba(99, 102, 241, 0.1); }
.node-chip.active { border-color: var(--primary-indigo); color: var(--white); box-shadow: 0 0 10px rgba(99, 102, 241, 0.3); }
.live-waveform { width: 100%; height: 60px; margin-top: 10px; }
.waveform-path { fill: none; stroke: var(--accent-cyan); stroke-width: 2; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw-wave 4s linear infinite; }
@keyframes draw-wave { 0% { stroke-dashoffset: 400; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -400; } }

.security-visual { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.protocol-badge {
    background: rgba(16, 185, 129, 0.05); border: 1px solid rgba(16, 185, 129, 0.2); color: #34d399;
    padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; font-family: monospace; display: flex; justify-content: space-between;
}
.dynamic-glow-box { margin-top: 10px; padding: 15px; border-radius: 8px; text-align: center; font-size: 0.85rem; background: rgba(255,255,255,0.02); position: relative; overflow: hidden; }
.dynamic-glow-box::after { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(transparent, transparent, transparent, var(--primary-indigo)); animation: border-spin 4s linear infinite; z-index: -1; }
.dynamic-glow-inner { background: #0b1120; border-radius: 6px; padding: 10px; }
@keyframes border-spin { 100% { transform: rotate(360deg); } }

.os-logos { display: flex; justify-content: space-between; margin-top: auto; padding: 10px 0; }
.os-logo { width: 36px; height: 36px; fill: var(--text-muted); transition: all 0.3s; opacity: 0.6; }
.os-logo:hover { fill: var(--white); opacity: 1; filter: drop-shadow(0 0 8px rgba(255,255,255,0.5)); transform: translateY(-3px); }

.pricing-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.price-card { background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid var(--border-color); padding: 40px 32px; border-radius: 24px; position: relative; transition: all 0.3s; }
.price-card.popular { border-color: var(--primary-glow); background: linear-gradient(180deg, rgba(79, 70, 229, 0.08) 0%, rgba(255,255,255,0.02) 100%); box-shadow: 0 10px 40px rgba(79, 70, 229, 0.15); }
.badge-popular { position: absolute; top: 20px; right: 20px; background: rgba(99, 102, 241, 0.15); color: var(--primary-glow); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; border: 1px solid rgba(99, 102, 241, 0.3); }
.price-card h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 12px; color: var(--text-muted); }
.price-card .price { font-size: 3.5rem; font-weight: 700; color: var(--white); margin-bottom: 24px; letter-spacing: -0.05em; }
.price-card .price span { font-size: 1.1rem; color: var(--text-muted); font-weight: normal; }
.price-card ul { list-style: none; margin-bottom: 32px; }
.price-card ul li { padding: 10px 0; color: var(--text-main); font-size: 0.95rem; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.price-card ul li:last-child { border: none; }
.price-card ul li svg { width: 16px; height: 16px; stroke: var(--primary-glow); fill: none; stroke-width: 2; flex-shrink: 0;}
.price-btn { display: block; width: 100%; text-align: center; padding: 12px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; transition: all 0.3s; }
.price-btn.solid { background: var(--white); color: var(--bg-deep); }
.price-btn.solid:hover { background: #e2e8f0; }
.price-btn.outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.price-btn.outline:hover { background: rgba(255,255,255,0.05); border-color: var(--white); }

.review-card { display: flex; flex-direction: column; }
.review-text { font-size: 1.05rem; font-style: italic; color: var(--text-main); margin-bottom: 24px; line-height: 1.6; }
.reviewer { display: flex; align-items: center; gap: 16px; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px;}
.reviewer-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-indigo), var(--accent-cyan)); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: bold; color: var(--white); flex-shrink: 0; }
.reviewer-info strong { display: block; color: var(--white); font-size: 1rem; margin-bottom: 2px;}
.reviewer-info span { color: var(--text-muted); font-size: 0.85rem; }

.faq-list { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
.faq-item-modern { background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid var(--border-color); padding: 30px; border-radius: 16px; transition: border-color 0.3s; position: relative; overflow: hidden; }
.faq-item-modern h3 { font-size: 1.15rem; color: var(--white); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; position: relative; z-index: 1;}
.faq-item-modern h3::before { content: 'Q.'; color: var(--accent-cyan); font-weight: 800; font-size: 1.3rem;}
.faq-item-modern p { color: var(--text-muted); margin: 0; padding-left: 32px; line-height: 1.6; position: relative; z-index: 1;}

/* Article Styles for SEO content */
.article-content { max-width: 800px; padding: 140px 24px 80px; margin: 0 auto; min-height: 80vh; position: relative; z-index: 2; }
.article-content h1 { font-size: 2.2rem; color: var(--white); margin-bottom: 16px; line-height: 1.3; }
.article-content .meta { color: var(--accent-cyan); font-size: 0.9rem; margin-bottom: 40px; border-bottom: 1px solid var(--border-color); padding-bottom: 16px; font-family: 'SF Mono', Consolas, monospace; }
.article-content h2 { font-size: 1.6rem; margin-top: 50px; margin-bottom: 20px; color: var(--white); border-left: 4px solid var(--primary-glow); padding-left: 12px;}
.article-content p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 24px; color: var(--text-muted); }
.article-content strong { color: var(--primary-glow); font-weight: 600; }
.article-content a.in-text { color: var(--accent-cyan); text-decoration: none; border-bottom: 1px solid rgba(56, 189, 248, 0.4); transition: border-color 0.3s; }
.article-content a.in-text:hover { border-color: var(--white); color: var(--white); }

footer { border-top: 1px solid var(--border-color); padding: 60px 0 30px 0; margin-top: 80px; position: relative; z-index: 2; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 40px; margin-bottom: 30px; }
.footer-brand h2 { font-size: 1.25rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; }
.footer-links ul { list-style: none; display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); transition: color 0.3s; font-size: 0.85rem; }
.footer-links a:hover { color: var(--white); }
.copyright { text-align: center; font-size: 0.8rem; color: #475569; }

@media (max-width: 992px) {
    .bento-grid, .use-cases-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .card-network, .card-security, .card-platform { grid-column: span 1; grid-row: auto; }
    .pricing-table { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero { padding: 140px 0 60px; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .nav-links { display: none; }
    .pricing-table { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 24px; align-items: center; text-align: center; }
    .footer-links ul { flex-wrap: wrap; justify-content: center; }
    .section-title { font-size: 2rem; }
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; color: var(--text-muted);
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; transition: all 0.3s;
}
.theme-toggle-btn:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: rgba(255,255,255,0.2); }
body.light-mode .theme-toggle-btn { border-color: rgba(0,0,0,0.15); color: var(--text-muted); }
body.light-mode .theme-toggle-btn:hover { background: rgba(0,0,0,0.05); color: var(--text-main); }
.theme-icon { width: 18px; height: 18px; }

/* Light Mode Variables & Overrides */
body.light-mode {
    --bg-deep: #f8fafc;
    --bg-card: rgba(0, 0, 0, 0.02);
    --border-color: rgba(0, 0, 0, 0.1);
    --border-glow: rgba(99, 102, 241, 0.3);
    --primary-indigo: #4338ca;
    --primary-glow: #4f46e5;
    --accent-cyan: #0284c7;
    --text-main: #0f172a;
    --text-muted: #475569;
    --white: #020617;
}

body.light-mode .futuristic-navbar { background: rgba(248, 250, 252, 0.8); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
body.light-mode .hero h1 { background: linear-gradient(180deg, #0f172a 0%, #4338ca 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.light-mode .globe-sphere { border-color: rgba(99, 102, 241, 0.4); box-shadow: inset 0 0 40px rgba(99, 102, 241, 0.2), 0 0 60px rgba(99, 102, 241, 0.1); }
body.light-mode .globe-equator, body.light-mode .globe-meridian { border-color: rgba(99, 102, 241, 0.4); }
body.light-mode .telemetry { background: rgba(255, 255, 255, 0.9); box-shadow: 0 8px 20px rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); }
body.light-mode .price-card.popular { background: linear-gradient(180deg, rgba(79, 70, 229, 0.05) 0%, rgba(255,255,255,1) 100%); }
body.light-mode .node-chip { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
body.light-mode .dynamic-glow-inner { background: #ffffff; }
body.light-mode .reviewer-avatar { color: #ffffff; }
body.light-mode .nav-cta { background: var(--primary-indigo); color: #ffffff; border-color: var(--primary-indigo); }
body.light-mode .nav-cta:hover { background: var(--primary-glow); color: #ffffff; }
body.light-mode .cta-button.outline { color: var(--text-main); border-color: var(--border-color); }
body.light-mode .cta-button.outline:hover { background: rgba(0,0,0,0.05); }
body.light-mode .price-btn.outline { color: var(--text-main); border-color: rgba(0,0,0,0.2); }
body.light-mode .price-btn.outline:hover { background: rgba(0,0,0,0.05); border-color: var(--text-main); }
body.light-mode .read-more { color: var(--primary-indigo); }
body.light-mode .article-content h1, body.light-mode .article-content h2 { color: var(--text-main); }
body.light-mode .aurora-bg { opacity: 0.6; }
