/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary: #0f766e;
    --primary-light: #14b8a6;
    --primary-dark: #0d5e57;
    --accent: #2dd4bf;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    --bg-dark2: #1e293b;
    --text: #1e293b;
    --text-light: #64748b;
    --text-white: #f1f5f9;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }

/* === Navbar === */
.navbar {
    background: var(--bg-dark);
    color: var(--text-white);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 60px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-white); font-weight: 700; font-size: 1.25rem; }
.logo-icon { font-size: 1.5rem; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
    color: #94a3b8; text-decoration: none; padding: 8px 14px;
    border-radius: var(--radius); font-size: 0.9rem; font-weight: 500;
    transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-white); background: rgba(255,255,255,0.1); }
.menu-toggle { display: none; background: none; border: none; color: var(--text-white); font-size: 1.5rem; cursor: pointer; }

/* === Page Layout === */
.page-wrapper { min-height: calc(100vh - 60px); display: flex; flex-direction: column; }

/* === Hero === */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a2a4a 50%, var(--primary-dark) 100%);
    color: var(--text-white); padding: 80px 24px 60px; text-align: center;
}
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.2rem; color: #94a3b8; max-width: 700px; margin: 0 auto 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius);
    font-size: 1rem; font-weight: 600; text-decoration: none;
    transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary-light); color: var(--bg-dark); }
.btn-primary:hover { background: #5eead4; transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--text-white); border: 1px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

/* === Sections === */
.section { padding: 64px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-light); max-width: 600px; margin: 0 auto 48px; font-size: 1.1rem; }

/* === Features Grid === */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--bg-card); border-radius: var(--radius); padding: 32px;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    transition: all 0.3s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }

/* === Code Blocks === */
.code-block {
    background: var(--bg-dark); color: #e2e8f0; border-radius: var(--radius);
    padding: 20px 24px; overflow-x: auto; font-family: var(--mono); font-size: 0.875rem;
    line-height: 1.7; margin: 16px 0; position: relative;
}
.code-block .lang-tag {
    position: absolute; top: 8px; right: 12px;
    font-size: 0.7rem; color: #64748b; text-transform: uppercase; letter-spacing: 1px;
}

/* === Content Pages === */
.content-page { max-width: 900px; margin: 0 auto; padding: 48px 24px; flex: 1; }
.content-page h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; }
.content-page h2 { font-size: 1.5rem; font-weight: 600; margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.content-page h3 { font-size: 1.15rem; font-weight: 600; margin: 24px 0 8px; }
.content-page p { margin: 12px 0; color: var(--text); line-height: 1.7; }
.content-page ul, .content-page ol { margin: 12px 0 12px 24px; }
.content-page li { margin: 6px 0; line-height: 1.6; }
.content-page a { color: var(--primary); text-decoration: none; font-weight: 500; }
.content-page a:hover { text-decoration: underline; }

/* === Tables === */
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #f1f5f9; font-weight: 600; }

/* === Download Cards === */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.download-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; text-align: center; box-shadow: var(--shadow);
    transition: all 0.2s;
}
.download-card:hover { box-shadow: var(--shadow-lg); }
.download-card .os-icon { font-size: 2rem; margin-bottom: 8px; }
.download-card h4 { font-size: 1rem; margin-bottom: 4px; }
.download-card .os-desc { color: var(--text-light); font-size: 0.8rem; margin-bottom: 12px; }

/* === Role Tags === */
.role-tag {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 500; margin: 2px;
}
.role-dev { background: #dbeafe; color: #1e40af; }
.role-ops { background: #fce7f3; color: #9d174d; }
.role-gov { background: #d1fae5; color: #065f46; }
.role-strat { background: #fef3c7; color: #92400e; }
.role-ai { background: #e0e7ff; color: #3730a3; }

/* === Step Cards === */
.steps { counter-reset: step; }
.step-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 24px 24px 56px;
    margin-bottom: 16px; position: relative; box-shadow: var(--shadow);
}
.step-card::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 16px; top: 24px;
    width: 28px; height: 28px; background: var(--primary);
    color: white; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 0.85rem; font-weight: 700;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--text-light); }

/* === Footer === */
.footer {
    background: var(--bg-dark); color: var(--text-white);
    padding: 48px 24px 24px; margin-top: auto;
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h3 { font-size: 1.1rem; margin-bottom: 8px; }
.footer h4 { font-size: 0.9rem; margin-bottom: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.footer p { color: #94a3b8; font-size: 0.85rem; line-height: 1.6; }
.footer a { display: block; color: #94a3b8; text-decoration: none; font-size: 0.85rem; margin: 6px 0; transition: color 0.2s; }
.footer a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 32px; margin-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); color: #64748b; font-size: 0.8rem; max-width: 1100px; margin-left: auto; margin-right: auto; }

/* === Callout === */
.callout {
    padding: 16px 20px; border-radius: var(--radius); margin: 16px 0;
    border-left: 4px solid; font-size: 0.9rem;
}
.callout-info { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.callout-warning { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.callout-tip { background: #f0fdf4; border-color: #22c55e; color: #166534; }

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-dark); flex-direction: column; padding: 12px; }
    .nav-links.open { display: flex; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
}
