:root {
    --bg-dark: #0a0b10;
    --bg-card: rgba(28, 30, 38, 0.4);
    --border-color: rgba(255, 255, 255, 0.12);
    
    --primary: #4285f4;
    --primary-hover: #1a73e8;
    --accent: #a142f4;
    --teal: #34a853;
    
    --text-main: #e8eaed;
    --text-muted: #9aa0a6;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease-in-out;
}

html.light-mode {
    --bg-dark: #ffffff;
    --bg-card: rgba(241, 243, 244, 0.7);
    --border-color: rgba(0, 0, 0, 0.12);
    
    --primary: #1a73e8;
    --primary-hover: #1558d6;
    --accent: #9334e6;
    --teal: #188038;
    
    --text-main: #202124;
    --text-muted: #5f6368;
}

html.light-mode .glow-bg {
    background: radial-gradient(circle, rgba(66, 133, 244, 0.15) 0%, rgba(248, 250, 252, 0) 70%);
}

html.light-mode .navbar.scrolled {
    background: rgba(248, 250, 252, 0.9);
}

html.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

html.light-mode .glass-container {
    background: rgba(15, 23, 42, 0.02);
}

html.light-mode .floating-card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

html.light-mode .path-line {
    background: rgba(15, 23, 42, 0.1);
}

html.light-mode .path-line::after {
    background: var(--text-main);
}

html.light-mode .benefit-visual,
html.light-mode .chart-bar {
    background: rgba(15, 23, 42, 0.05);
}

html.light-mode .site-footer {
    background: rgba(241, 245, 249, 0.8);
}

html.light-mode .newsletter-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(66, 133, 244, 0.05));
    border: 1px solid rgba(66, 133, 244, 0.2);
}

html.light-mode .newsletter-form input {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    border-color: rgba(15, 23, 42, 0.1);
}

.theme-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(66, 133, 244, 0.1);
    border-color: rgba(66, 133, 244, 0.3);
}

.theme-toggle .icon-dark {
    display: none;
}

html.light-mode .theme-toggle .icon-light {
    display: none;
}

html.light-mode .theme-toggle .icon-dark {
    display: block;
}

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

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

/* Background Effects */
.glow-bg {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.08) 0%, rgba(10, 11, 16, 0) 70%);
    z-index: -2; pointer-events: none;
}

.blob-bg {
    position: fixed; border-radius: 50%; filter: blur(100px);
    z-index: -1; opacity: 0.5; pointer-events: none;
}

.blob-1 { top: -10%; right: -5%; width: 400px; height: 400px; background: rgba(161, 66, 244, 0.15); }
.blob-2 { bottom: -10%; left: -5%; width: 500px; height: 500px; background: rgba(52, 168, 83, 0.1); }

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

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
.gradient-text {
    background: linear-gradient(135deg, var(--teal), var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.highlight { color: var(--primary); }
.badge {
    display: inline-block; padding: 0.5rem 1rem;
    background: rgba(66, 133, 244, 0.1); color: var(--primary);
    border: 1px solid rgba(66, 133, 244, 0.3); border-radius: 2rem;
    font-size: 0.875rem; font-weight: 600; margin-bottom: 1.5rem;
    text-transform: uppercase; letter-spacing: 0.05em;
}

/* Navigation */
.navbar { position: fixed; top: 0; width: 100%; padding: 1.5rem 0; z-index: 1000; transition: var(--transition); }
.navbar.scrolled { background: rgba(5, 10, 21, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); padding: 1rem 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 1rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.6rem 1.5rem; border-radius: 2rem; font-weight: 600;
    text-decoration: none; transition: var(--transition); cursor: pointer; border: none;
}
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-hover)); color: white; box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(66, 133, 244, 0.5); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--primary); }

/* Layout Utilities */
section { padding: 7rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; max-width: 700px; margin-inline: auto; }
.section-title { font-size: 3rem; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.125rem; color: var(--text-muted); }
.grid { display: grid; gap: 2rem; }

/* Hero Section */
.hero { padding-top: 10rem; padding-bottom: 6rem; min-height: 100vh; display: flex; align-items: center; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-title { font-size: 4rem; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 500px; }
.hero-cta { display: flex; gap: 1rem; margin-bottom: 2rem; }

.hero-visual { position: relative; perspective: 1000px; }
.glass-container {
    position: relative; border-radius: 1rem; padding: 1rem;
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateY(-5deg) rotateX(5deg); transition: transform 0.5s ease;
}
.glass-container:hover { transform: rotateY(0deg) rotateX(0deg); }
.dashboard-img { width: 100%; border-radius: 0.5rem; display: block; }
.floating-card {
    position: absolute; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(10px);
    border: 1px solid var(--border-color); border-radius: 0.75rem; padding: 1rem; display: flex; align-items: center; gap: 1rem;
    animation: float 6s ease-in-out infinite; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.card-1 { top: -20px; right: -30px; }
.card-label { font-size: 0.75rem; color: var(--text-muted); display:block; }
.card-value { font-weight: 700; color: var(--teal); font-family: var(--font-heading); }

/* Features */
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature-card { padding: 2.5rem; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4); border-color: rgba(66, 133, 244, 0.4); }
.icon-box {
    width: 3rem; height: 3rem; background: rgba(66, 133, 244, 0.1); border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem;
    border: 1px solid rgba(66, 133, 244, 0.2);
}
.feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.feature-card p { color: var(--text-muted); }

/* Unified Gateway */
.split-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.benefit-list { list-style: none; margin-top: 2rem; }
.benefit-list li { margin-bottom: 1.5rem; display: flex; align-items: flex-start; gap: 1rem; color: var(--text-muted); }
.benefit-list li strong { color: var(--text-main); display: block; margin-bottom: 0.25rem; }
.check { color: var(--teal); background: rgba(52, 168, 83, 0.1); padding: 0.25rem; border-radius: 50%; margin-top: 0.125rem; }

.gateway-diagram {
    position: relative; height: 350px; background: var(--bg-card); border-radius: 1.5rem;
    border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.node { padding: 1rem 2rem; border-radius: 0.5rem; font-weight: 600; position: absolute; z-index: 2; }
.node.central { background: linear-gradient(135deg, var(--primary), var(--accent)); left: 20px; }
.node.endpoint { right: 20px; display: flex; flex-direction: column; align-items: center; }
.node.endpoint.cheap { top: 80px; border-left: 3px solid var(--teal); }
.node.endpoint.premium { bottom: 80px; border-left: 3px solid var(--accent); }
.path-line { position: absolute; height: 2px; background: rgba(255, 255, 255, 0.1); left: 160px; z-index: 1; }
.path-1 { width: 200px; top: 110px; transform: rotate(-15deg); transform-origin: left center; }
.path-2 { width: 200px; bottom: 110px; transform: rotate(15deg); transform-origin: left center; }
.path-line::after {
    content: ''; position: absolute; top: -2px; left: 0; width: 10px; height: 6px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 10px 2px var(--teal); animation: pulse-path 3s infinite linear;
}
.path-2::after { box-shadow: 0 0 10px 2px var(--accent); animation-duration: 4.5s; animation-delay: 1s; }

@keyframes pulse-path { 0% { left: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* Benefits Section */
.benefit-grid { grid-template-columns: 1fr 1fr; }
.benefit-card { display: flex; flex-direction: column; overflow: hidden; }
.benefit-visual { height: 150px; background: rgba(0,0,0,0.2); display: flex; align-items: flex-end; justify-content: center; gap: 1rem; padding: 2rem; border-bottom: 1px solid var(--border-color); }
.benefit-content { padding: 2.5rem; }
.benefit-content h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.benefit-content p { color: var(--text-muted); }
.chart-bar { width: 40px; height: 100%; background: rgba(255,255,255,0.05); border-radius: 0.5rem 0.5rem 0 0; position: relative; }
.chart-bar .fill { position: absolute; bottom: 0; width: 100%; border-radius: inherit; background: linear-gradient(to top, var(--primary), var(--accent)); }
.f-1 { height: 40%; } .f-2 { height: 60%; } .f-3 { height: 90%; }

.esg-visual { align-items: center; }
.circle-ring {
    width: 100px; height: 100px; border-radius: 50%; border: 6px solid rgba(20, 184, 166, 0.2);
    border-top-color: var(--teal); display: flex; align-items: center; justify-content: center; animation: spin 10s linear infinite;
}
.inner-circle { width: 60px; height: 60px; background: var(--bg-card); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--teal); animation: spin 10s linear infinite reverse; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Audience Grid */
.audience-grid { grid-template-columns: repeat(4, 1fr); }
.audience-card { padding: 2rem; border-left: 2px solid var(--border-color); transition: var(--transition); }
.audience-card:hover { border-left-color: var(--primary); background: linear-gradient(to right, rgba(66, 133, 244, 0.05), transparent); }
.audience-card h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.audience-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Limitations Grid */
.limitations-grid { grid-template-columns: repeat(3, 1fr); }
.limit-card { padding: 2.5rem; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.limit-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4); border-color: rgba(66, 133, 244, 0.4); }
.limit-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.limit-card p { color: var(--text-muted); }

/* Contact Section */
.contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info { padding: 3rem; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.contact-links { list-style: none; margin-bottom: 2rem; }
.contact-links li { margin-bottom: 1rem; }
.contact-links a { color: var(--text-main); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; transition: var(--transition); }
.contact-links a:hover { color: var(--primary); transform: translateX(5px); }
.mt-2 { margin-top: 2rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }
.about-author p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.95rem; }

.newsletter-box { padding: 3rem; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(66, 133, 244, 0.05)); border: 1px solid rgba(66, 133, 244, 0.2); }
.newsletter-box h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--primary); }
.newsletter-box p { color: var(--text-muted); margin-bottom: 2rem; }
.newsletter-form { display: flex; gap: 1rem; margin-bottom: 1rem; }
.newsletter-form input { flex: 1; padding: 1rem 1.5rem; border-radius: 0.75rem; border: 1px solid var(--border-color); background: rgba(0,0,0,0.2); color: white; font-family: var(--font-body); outline: none; transition: var(--transition); }
.newsletter-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2); }
.privacy-note { font-size: 0.8rem !important; opacity: 0.7; margin-bottom: 0 !important; }

/* Dashboard Component */
.dashboard-interface { display: flex; min-height: 550px; border-radius: 1.5rem; overflow: hidden; background: rgba(0,0,0,0.1); }
.dashboard-sidebar { width: 280px; background: rgba(15, 23, 42, 0.4); border-right: 1px solid var(--border-color); padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.tab-btn { background: transparent; color: var(--text-muted); border: 1px solid transparent; text-align: left; padding: 1rem 1.25rem; font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; cursor: pointer; border-radius: 0.75rem; transition: var(--transition); }
.tab-btn:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.05); }
.tab-btn.active { color: var(--primary); background: rgba(66, 133, 244, 0.1); border-color: rgba(66, 133, 244, 0.2); font-weight: 600; }

.dashboard-content { flex: 1; padding: 3rem; overflow-y: auto; }
.tab-pane { display: none; animation: fade-in 0.4s ease; }
.tab-pane.active { display: block; }

.tab-pane h3 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--text-main); border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; display: inline-block; }
.tab-pane p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7; }
.clean-list { list-style: none; padding-left: 0; margin-bottom: 1.5rem; }
.clean-list li { margin-bottom: 1rem; padding-left: 1.5rem; position: relative; color: var(--text-muted); }
.clean-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: bold; }
.grid-list { display: grid; gap: 1rem; }
.grid-list li { padding-left: 0; padding: 1rem 1.5rem; background: rgba(255,255,255,0.03); border-radius: 0.5rem; border: 1px solid var(--border-color); display: flex; align-items: center; gap: 1rem; }
.grid-list li::before { display: none; }
.icon { font-size: 1.5rem; }

.features-grid-small { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.feat-box { background: rgba(0,0,0,0.2); border: 1px solid var(--border-color); padding: 1.5rem; border-radius: 1rem; }
.feat-box h4 { margin-bottom: 1rem; color: var(--primary); font-size: 1.1rem; }
.feat-box ul { padding-left: 1.2rem; color: var(--text-muted); font-size: 0.9rem; }
.feat-box li { margin-bottom: 0.5rem; }

.code-block { background: #0a0b10; border-radius: 1rem; padding: 1.5rem; border: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 0.75rem; font-family: monospace; font-size: 0.9rem; color: #a142f4; }
.code-block code { display: block; padding-bottom: 0.5rem; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.code-block code:last-child { border-bottom: none; padding-bottom: 0; }
.code-block strong { color: var(--primary); font-weight: normal; }

.formula-box { background: rgba(52, 168, 83, 0.05); border: 1px solid rgba(52, 168, 83, 0.3); border-left: 4px solid var(--teal); padding: 1.5rem; border-radius: 0.5rem; margin-top: 2rem; font-family: monospace; }
.formula-box code { display: block; color: var(--teal); font-size: 0.95rem; margin-top: 0.5rem; }
.formula-box p { margin-bottom: 0; font-family: var(--font-body); color: var(--text-main); }

.dash-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dash-mock { background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); border-radius: 0.5rem; padding: 1.5rem; }
.dash-mock h4 { color: var(--text-main); font-size: 1rem; margin-bottom: 1rem; pb-2; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.dash-mock ul { padding-left: 1rem; color: var(--text-muted); font-size: 0.85rem; }

@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

html.light-mode .dashboard-sidebar { background: rgba(248, 250, 252, 0.8); }
html.light-mode .code-block { background: #f1f5f9; color: var(--accent); }
html.light-mode .feat-box, html.light-mode .dashboard-interface { background: rgba(255,255,255,0.5); }
html.light-mode .grid-list li { background: rgba(255,255,255,0.8); }

/* Dashboard Tables */
.table-container { overflow-x: auto; background: var(--bg-card); border-radius: 0.5rem; border: 1px solid var(--border-color); }
.quality-table { width: 100%; border-collapse: collapse; text-align: left; }
.quality-table th { padding: 1rem; color: var(--primary); border-bottom: 1px solid var(--border-color); background: rgba(0,0,0,0.2); }
.quality-table td { padding: 1rem; font-size: 0.95rem; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,0.05); }
.quality-table tr:last-child td { border-bottom: none; }
html.light-mode .quality-table th { background: rgba(255,255,255,0.6); border-bottom-color: rgba(0,0,0,0.1); }
html.light-mode .quality-table td { border-bottom-color: rgba(0,0,0,0.05); }

/* Footer */
.site-footer { border-top: 1px solid var(--border-color); padding: 4rem 0 2rem; background: rgba(5, 10, 21, 0.8); }
.footer-container { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-muted); margin-top: 1rem; max-width: 300px; }
.footer-links { display: flex; gap: 4rem; justify-content: flex-end; }
.link-group { display: flex; flex-direction: column; gap: 1rem; }
.link-group h4 { margin-bottom: 0.5rem; color: var(--text-main); }
.link-group a { color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.link-group a:hover { color: var(--primary); }
.footer-bottom { text-align: center; color: var(--text-muted); padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); }

/* Animations */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-container, .split-container { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { margin-inline: auto; }
    .hero-cta { justify-content: center; }
    .benefit-list li { text-align: left; }
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .hero-title { font-size: 2.5rem; }
    .feature-grid, .benefit-grid, .limitations-grid, .contact-grid, .footer-container { grid-template-columns: 1fr; }
    .audience-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .footer-links { justify-content: flex-start; flex-direction: column; gap: 2rem; }
    
    .dashboard-interface { flex-direction: column; }
    .dashboard-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); flex-direction: row; overflow-x: auto; padding: 1rem; white-space: nowrap; }
    .tab-btn { padding: 0.75rem 1rem; }
    .dashboard-content { padding: 1.5rem; }
    .features-grid-small { grid-template-columns: 1fr; }
    .dash-preview-grid { grid-template-columns: 1fr; }
}
