/* ============================================================
   Ilium Systems LLC — landing page styles
   ============================================================ */

:root {
    --ilium-bg: #070b14;
    --ilium-bg-soft: #0b1220;
    --ilium-surface: #0f172a;
    --ilium-border: rgba(148, 163, 184, 0.16);
    --ilium-text: #e2e8f0;
    --ilium-muted: #94a3b8;
    --ilium-accent: #38bdf8;
    --ilium-accent-2: #818cf8;
    --ilium-accent-3: #22d3ee;
    --ilium-grad: linear-gradient(100deg, #38bdf8 0%, #818cf8 55%, #22d3ee 100%);
    --ilium-radius: 16px;
    --ilium-shadow: 0 20px 50px -20px rgba(2, 8, 23, 0.9);
}

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

body {
    background: var(--ilium-bg);
    color: var(--ilium-text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: rgba(56, 189, 248, 0.35);
    color: #fff;
}

/* ---------- Navbar ---------- */
.ilium-navbar {
    background: rgba(7, 11, 20, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
    padding: 0.9rem 0;
}

.ilium-navbar.scrolled {
    background: rgba(7, 11, 20, 0.92);
    border-bottom-color: var(--ilium-border);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--ilium-grad);
    color: #06121f;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.brand-text {
    font-weight: 700;
    font-size: 1.05rem;
    color: #f1f5f9;
    letter-spacing: -0.01em;
}

.ilium-navbar .nav-link {
    color: var(--ilium-muted);
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.ilium-navbar .nav-link:hover,
.ilium-navbar .nav-link:focus {
    color: #f1f5f9;
    background: rgba(148, 163, 184, 0.08);
}

/* ---------- Buttons ---------- */
.ilium-btn-primary {
    background: var(--ilium-grad);
    border: none;
    color: #06121f;
    font-weight: 700;
    border-radius: 10px;
    transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.2s ease;
    box-shadow: 0 8px 24px -10px rgba(56, 189, 248, 0.55);
}

.ilium-btn-primary:hover,
.ilium-btn-primary:focus {
    color: #06121f;
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 12px 30px -10px rgba(56, 189, 248, 0.7);
}

.ilium-btn-ghost {
    background: transparent;
    border: 1px solid var(--ilium-border);
    color: var(--ilium-text);
    font-weight: 600;
    border-radius: 10px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.ilium-btn-ghost:hover,
.ilium-btn-ghost:focus {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.08);
    color: #f1f5f9;
    transform: translateY(-1px);
}

.ilium-btn-light {
    background: #f8fafc;
    border: none;
    color: #0b1220;
    font-weight: 700;
    border-radius: 10px;
    transition: transform 0.15s ease, box-shadow 0.25s ease;
}

.ilium-btn-light:hover,
.ilium-btn-light:focus {
    color: #0b1220;
    transform: translateY(-1px);
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    padding: 140px 0 90px;
    position: relative;
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(129, 140, 248, 0.16), transparent 60%),
        radial-gradient(700px 420px at 0% 20%, rgba(56, 189, 248, 0.12), transparent 60%),
        var(--ilium-bg);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.95rem;
    border: 1px solid var(--ilium-border);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    color: var(--ilium-muted);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15); }
    50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.05); }
}

.hero-title {
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #f8fafc;
    margin-bottom: 1.25rem;
}

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

.hero-sub {
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--ilium-muted);
    max-width: 34rem;
}

.hero-sub strong {
    color: #cbd5e1;
    font-weight: 600;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--ilium-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--ilium-muted);
    margin-top: 0.15rem;
}

/* ---------- Hero terminal panel ---------- */
.hero-panel {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(11, 18, 32, 0.95));
    border: 1px solid var(--ilium-border);
    border-radius: var(--ilium-radius);
    box-shadow: var(--ilium-shadow);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-4deg) rotateX(1.5deg);
    transition: transform 0.4s ease;
}

.hero-panel:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.panel-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--ilium-border);
    background: rgba(2, 6, 16, 0.5);
}

.panel-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.panel-dot.red { background: #f87171; }
.panel-dot.yellow { background: #fbbf24; }
.panel-dot.green { background: #34d399; }

.panel-title {
    margin-left: auto;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    color: var(--ilium-muted);
}

.panel-code {
    margin: 0;
    padding: 1.25rem 1.25rem 1rem;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.82rem;
    line-height: 1.85;
    color: #cbd5e1;
    white-space: pre-wrap;
    word-break: break-word;
}

.panel-code .c-ok { color: #34d399; font-weight: 600; }
.panel-code .c-dim { color: #64748b; }

.panel-foot {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--ilium-border);
    background: rgba(2, 6, 16, 0.4);
}

.pill {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.7rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--ilium-border);
    color: var(--ilium-muted);
    background: rgba(15, 23, 42, 0.6);
}

.pill-ok {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.08);
}

/* ---------- Sections ---------- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background:
        radial-gradient(700px 380px at 100% 0%, rgba(129, 140, 248, 0.07), transparent 60%),
        var(--ilium-bg-soft);
    border-top: 1px solid var(--ilium-border);
    border-bottom: 1px solid var(--ilium-border);
}

.section-head {
    max-width: 46rem;
    margin-bottom: 3.5rem;
}

.eyebrow {
    display: inline-block;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ilium-accent);
    margin-bottom: 0.9rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #f8fafc;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ilium-muted);
}

/* ---------- Service cards ---------- */
.ilium-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.75), rgba(11, 18, 32, 0.9));
    border: 1px solid var(--ilium-border);
    border-radius: var(--ilium-radius);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.ilium-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 24px 50px -24px rgba(56, 189, 248, 0.25);
}

.ilium-card-featured {
    background:
        radial-gradient(400px 200px at 100% 0%, rgba(129, 140, 248, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(11, 18, 32, 0.95));
    border-color: rgba(129, 140, 248, 0.35);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--ilium-accent);
    margin-bottom: 1.1rem;
}

.card-icon svg {
    width: 26px;
    height: 26px;
}

.ilium-card .card-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
}

.ilium-card .card-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--ilium-muted);
    margin-bottom: 1rem;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
    display: grid;
    gap: 0.5rem;
}

.card-list li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.86rem;
    color: #cbd5e1;
}

.card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--ilium-grad);
}

/* ---------- Features (Why) ---------- */
.feature {
    height: 100%;
    padding: 1.5rem;
    border-radius: var(--ilium-radius);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--ilium-border);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.feature:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(15, 23, 42, 0.8);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(129, 140, 248, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.3);
    color: var(--ilium-accent-2);
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ilium-muted);
    margin: 0;
}

/* ---------- Process steps ---------- */
.step {
    position: relative;
    height: 100%;
    padding: 1.75rem 1.5rem;
    border-radius: var(--ilium-radius);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--ilium-border);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.step:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.35);
}

.step-num {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    background: var(--ilium-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ilium-muted);
    margin: 0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
    position: relative;
    padding: 3.25rem 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(129, 140, 248, 0.3);
    background:
        radial-gradient(600px 300px at 90% 120%, rgba(56, 189, 248, 0.18), transparent 60%),
        radial-gradient(500px 260px at 10% -20%, rgba(129, 140, 248, 0.22), transparent 60%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(11, 18, 32, 0.95));
    overflow: hidden;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
    margin-bottom: 0.6rem;
}

.cta-sub {
    font-size: 1rem;
    color: var(--ilium-muted);
    margin: 0;
}

/* ---------- Contact ---------- */
.contact-lines {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-line {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--ilium-border);
}

.contact-label {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ilium-accent);
    min-width: 64px;
}

.contact-line a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
}

.contact-line a:hover {
    color: var(--ilium-accent);
}

.contact-line span:not(.contact-label) {
    color: #e2e8f0;
    font-weight: 500;
}

.ilium-form {
    padding: 2rem;
    border-radius: var(--ilium-radius);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.75), rgba(11, 18, 32, 0.9));
    border: 1px solid var(--ilium-border);
}

.ilium-form .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
}

.ilium-form .form-control,
.ilium-form .form-select {
    background: rgba(2, 6, 16, 0.55);
    border: 1px solid var(--ilium-border);
    color: #e2e8f0;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ilium-form .form-control::placeholder {
    color: #475569;
}

.ilium-form .form-control:focus,
.ilium-form .form-select:focus {
    background: rgba(2, 6, 16, 0.75);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
    color: #f1f5f9;
}

.ilium-form .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.4rem;
}

.ilium-form .form-select option {
    background: #0b1220;
    color: #e2e8f0;
}

.form-note {
    font-size: 0.88rem;
    color: #34d399;
    font-weight: 500;
}

/* ---------- Footer ---------- */
.ilium-footer {
    background: #05080f;
    border-top: 1px solid var(--ilium-border);
}

.footer-tag {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--ilium-muted);
    max-width: 22rem;
    margin: 0;
}

.footer-head {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-bottom: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.footer-links a {
    color: var(--ilium-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--ilium-accent);
}

.footer-bottom {
    border-top: 1px solid var(--ilium-border);
    font-size: 0.82rem;
    color: #64748b;
}

.footer-mono {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-badge .dot { animation: none; }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
    .hero {
        padding: 120px 0 70px;
    }
    .hero-panel {
        transform: none;
    }
    .section {
        padding: 72px 0;
    }
    .cta-banner {
        padding: 2.5rem 1.75rem;
    }
    .ilium-form {
        padding: 1.5rem;
    }
}
