/* ===== Base ===== */
:root {
    --bg-dark: #0d1117;
    --bg-dark-card: #161b22;
    --bg-light: #f6f8fa;
    --bg-light-card: #ffffff;
    --accent: #58a6ff;
    --accent-gradient: linear-gradient(135deg, #58a6ff, #a371f7);
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --border-dark: #30363d;
    --border-light: #d0d7de;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-primary);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ===== Typography helpers ===== */
.fw-800 { font-weight: 800; }

.brand-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-secondary { color: var(--text-secondary) !important; }

/* ===== Navbar ===== */
.navbar {
    background: rgba(13, 17, 23, 0.85) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
}
.navbar .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color .2s;
}
.navbar .nav-link:hover { color: var(--accent); }

/* ===== Sections ===== */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

.section-dark { background: var(--bg-dark); }
.section-light { background: var(--bg-dark-card); }

.section-label,
.hero-label {
    text-transform: uppercase;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: .75rem;
}

/* ===== Hero ===== */
.hero-section {
    background: var(--bg-dark);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(88,166,255,.08) 0%, transparent 70%);
    top: -100px; right: -100px;
    pointer-events: none;
}

.hero-content .lead { max-width: 820px; }

/* ===== Tech badges ===== */
.tech-stack .badge {
    background: var(--bg-dark-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-dark);
    font-weight: 500;
    font-size: .85rem;
    padding: .45em .9em;
    margin-right: .5rem;
    margin-bottom: .5rem;
}

/* ===== Code preview ===== */
.code-preview {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    overflow: hidden;
}
.code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(0,0,0,.2);
}
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot.red   { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }
.code-filename {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--text-secondary);
}
.code-content {
    margin: 0;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-mono);
    font-size: .875rem;
    line-height: 1.7;
    color: var(--text-primary);
    overflow-x: auto;
}
.code-content .kw  { color: #ff7b72; }
.code-content .str { color: #a5d6ff; }
.code-content .num { color: #79c0ff; }

/* ===== Buttons ===== */
.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}
.btn-primary:hover {
    background: #79b8ff;
    border-color: #79b8ff;
}
.btn-gradient {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    transition: opacity .2s, transform .2s;
}
.btn-gradient:hover {
    opacity: .88;
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline-light {
    border-color: var(--border-dark);
    color: var(--text-secondary);
    font-weight: 600;
}
.btn-outline-light:hover {
    background: var(--bg-dark-card);
    border-color: var(--accent);
    color: var(--accent);
}
.btn-dark {
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    color: var(--text-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.btn-dark:hover {
    background: var(--bg-dark-card);
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== Service cards ===== */
.card-service {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: border-color .25s, transform .25s;
}
.card-service:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.card-service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.card-service h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .75rem;
}
.card-service p {
    color: var(--text-secondary);
    font-size: .95rem;
    margin: 0;
    line-height: 1.6;
}

/* ===== Feature list (opensource section) ===== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: .75rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.github-icon { flex-shrink: 0; }

/* ===== Feature cards (why us) ===== */
.card-feature {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
}
.card-feature-num {
    font-family: var(--font-mono);
    font-size: .85rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: .75rem;
}
.card-feature h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.card-feature p {
    color: var(--text-secondary);
    font-size: .9rem;
    margin: 0;
    line-height: 1.6;
}

/* ===== Comparison cards ===== */
.card-compare {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: border-color .25s, transform .25s;
}
.card-compare:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.card-compare h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .75rem;
}
.card-compare p {
    color: var(--text-secondary);
    font-size: .95rem;
    margin: 0;
    line-height: 1.6;
}

/* ===== Founder ===== */
.founder-bio {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}
.founder-bio a {
    color: var(--accent);
    text-decoration: none;
}
.founder-bio a:hover {
    text-decoration: underline;
}

/* ===== Honeypot (hidden from humans) ===== */
.form-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ===== Contact form ===== */
.contact-form .form-label {
    color: var(--text-secondary);
    font-size: .85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: .4rem;
}
.contact-form .form-control {
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    color: var(--text-primary);
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: .95rem;
    transition: border-color .2s;
}
.contact-form .form-control:focus {
    background: var(--bg-dark);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 2px rgba(88, 166, 255, .15);
}
.contact-form .form-control::placeholder {
    color: #484f58;
}
.form-message {
    padding: 2rem 0;
}
.form-message-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.form-message h3 {
    font-weight: 700;
    margin-bottom: .5rem;
}

/* ===== Contact cards ===== */
.card-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color .25s, transform .25s;
    min-width: 220px;
    flex: 1 1 0;
}
.card-contact:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    color: var(--text-primary);
}
.card-contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.card-contact-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}
.card-contact-value {
    font-weight: 600;
    font-size: .95rem;
}

/* ===== Footer ===== */
.footer-section {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .hero-section .display-3 { font-size: 2.2rem; }
    .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}
@media (max-width: 575.98px) {
    .hero-section .display-3 { font-size: 1.8rem; }
    .card-contact { width: 100%; }
}

/* ===== Smooth scroll ===== */
html { scroll-behavior: smooth; }
