:root {
    /* Base Variables (Dark Theme Default) */
    --bg: #080A10;
    --surface: #0d1424;
    --surface-secondary: #0a0f1a;
    --primary: #38bdf8;
    --primary-hover: #7dd3fc;
    --secondary: #f472b6;
    --text: #aeb8c7;
    --heading: #f8fafc;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    
    /* Font */
    --font-heading: 'Fraunces', serif;
    --font-body: 'Manrope', sans-serif;
    
    /* Layout */
    --container: 1100px;
    --nav-height: 80px;
    
    /* Spacing & Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.theme-light {
    --bg: #fffbf7;
    --surface: #f0f5fb;
    --surface-secondary: #edf2f8;
    --primary: #2d6a9f;
    --primary-hover: #1e4d75;
    --secondary: #b06b8b;
    --text: #586a7e;
    --heading: #1e2d3f;
    --border: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.12);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

/* Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body { 
    font-family: var(--font-body); 
    background-color: var(--bg); 
    color: var(--text); 
    line-height: 1.7; 
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.8rem 1.8rem; border-radius: 999px;
    font-weight: 600; font-size: 0.95rem;
    transition: all 0.25s ease; cursor: pointer; border: 1.5px solid transparent;
}
.btn-primary {
    background-color: var(--primary); color: var(--bg);
}
.btn-primary:hover {
    background-color: var(--primary-hover); transform: translateY(-2px);
}
.btn-secondary {
    background-color: transparent; border-color: var(--border-strong); color: var(--heading);
}
.btn-secondary:hover {
    border-color: var(--primary); color: var(--primary);
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--heading); line-height: 1.2; font-weight: 500; }
.section-heading { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; letter-spacing: -0.02em; }
.eyebrow { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 0.5rem; display: block; }
.text-center { text-align: center; }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; height: var(--nav-height); background: rgba(var(--bg), 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); z-index: 100; display: flex; align-items: center; }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav-logo { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: var(--heading); }
.nav-menu { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-link { font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--primary); }
.nav-cta { padding: 0.6rem 1.4rem; background: var(--primary); color: var(--bg); border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--primary-hover); color: var(--bg); }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.bar { width: 25px; height: 2px; background: var(--heading); transition: 0.3s; }

/* Section Base */
.section { padding: 6rem 0; position: relative; }
.bg-secondary { background-color: var(--surface-secondary); }
.section-header { max-width: 600px; margin-bottom: 4rem; }
.section-subtext { font-size: 1.1rem; color: var(--text); }

/* Hero Section */
.hero { padding-top: calc(var(--nav-height) + 4rem); min-height: 90vh; display: flex; align-items: center; position: relative; }
.hero::before { content: ''; position: absolute; top: -10%; left: -10%; width: 50%; height: 50%; background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, transparent 70%); border-radius: 50%; z-index: -1; }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-copy { max-width: 540px; }
.hero-title { font-size: clamp(2.5rem, 5vw, 3.8rem); margin-bottom: 1.5rem; }
.hero-lead { font-size: 1.15rem; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-panel { position: relative; }
.hero-portrait-frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; position: relative; }
.portrait-media { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; bottom: -20px; left: -20px; background: var(--surface); border: 1px solid var(--border); padding: 1.2rem 1.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow); font-weight: 600; color: var(--heading); font-size: 0.95rem; }

/* About Section */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-quote blockquote { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--heading); line-height: 1.3; font-style: italic; position: relative; padding-left: 2rem; border-left: 4px solid var(--primary); }

/* Service Grid */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 2.5rem; transition: transform 0.3s, border-color 0.3s; }
.service-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.service-number { display: block; font-family: var(--font-heading); font-size: 1.5rem; color: var(--primary); margin-bottom: 1rem; opacity: 0.8; }
.service-card .card-title { margin-bottom: 1rem; font-size: 1.3rem; }

/* Comparison Section */
.comparison-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.comparison-card { padding: 2.5rem; border-radius: var(--radius-md); border: 1px solid var(--border); }
.comparison-card-muted { background: var(--surface-secondary); }
.comparison-card-accent { background: rgba(56, 189, 248, 0.05); border-color: rgba(56, 189, 248, 0.2); }
.theme-light .comparison-card-accent { background: rgba(45, 106, 159, 0.05); border-color: rgba(45, 106, 159, 0.2); }
.mini-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-bottom: 1.5rem; color: var(--heading); }
.comparison-card ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.comparison-card ul li { position: relative; padding-left: 1.5rem; }
.comparison-card-muted ul li::before { content: '×'; position: absolute; left: 0; color: var(--text); opacity: 0.5; font-weight: bold; }
.comparison-card-accent ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: bold; }

/* FAQ Section */
.faq-section .section-header { margin: 0 auto 4rem; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary { padding: 1.5rem 2rem; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 500; color: var(--heading); cursor: pointer; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 2rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--primary); transition: transform 0.3s; }
.faq-item[open] summary::after { content: '−'; transform: translateY(-50%) rotate(180deg); }
.faq-item p { padding: 0 2rem 1.5rem; margin: 0; }

/* Articles Grid */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s; text-decoration: none; }
.article-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.article-image { aspect-ratio: 1/1; background: var(--surface-secondary); position: relative; overflow: hidden; }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-card:hover .article-image img { transform: scale(1.05); }
.article-body { padding: 1.5rem; }
.article-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 0.5rem; font-weight: 700; }
.article-preview { font-size: 1.1rem; line-height: 1.4; color: var(--heading); margin-bottom: 1rem; font-family: var(--font-body); font-weight: 600; }

.skeleton { animation: pulse 1.5s infinite; background: linear-gradient(90deg, var(--surface) 0px, var(--surface-secondary) 50%, var(--surface) 100%); background-size: 200% 100%; }
@keyframes pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Closing Panel */
.closing-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 5rem 4rem; text-align: center; max-width: 900px; margin: 0 auto; position: relative; overflow: hidden; }
.closing-panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top, rgba(56,189,248,0.05), transparent 70%); pointer-events: none; }
.closing-panel .section-heading { margin-bottom: 1.5rem; }
.closing-actions { margin-top: 2.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-layout { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-brand { font-family: var(--font-heading); font-size: 1.5rem; color: var(--heading); margin-bottom: 0.5rem; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; font-size: 0.85rem; }
.footer-links { display: flex; gap: 1.5rem; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 992px) {
    .hero-layout, .about-layout, .comparison-layout { grid-template-columns: 1fr; gap: 3rem; }
    .hero { min-height: auto; padding-bottom: 4rem; }
    .hero-panel { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-menu { position: absolute; top: var(--nav-height); left: -100%; flex-direction: column; background: var(--bg); width: 100%; padding: 2rem; transition: 0.3s; border-bottom: 1px solid var(--border); }
    .nav-menu.active { left: 0; }
    .hamburger { display: flex; }
    .closing-panel { padding: 3rem 1.5rem; }
    .footer-layout { flex-direction: column; align-items: flex-start; }
    .footer-meta { align-items: flex-start; }
}
