:root {
    --bg: #0b1220;
    --bg-alt: #0e1729;
    --fg: #e6edf6;
    --muted: #9aa7bd;
    --accent: #4ea1ff;
    --accent-2: #8b5cf6;
    --card: #15203a;
    --card-hover: #1a2747;
    --border: #1f2c4c;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.65;
}

a { color: var(--accent); }

/* ------- Header / Nav ------- */
header {
    position: sticky;
    top: 0;
    background: rgba(11, 18, 32, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.nav-links a {
    color: var(--fg);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent); }

/* ------- Hero ------- */
.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 7rem 1.5rem 6rem;
}
.hero-compact { padding: 5rem 1.5rem 4rem; }

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(78, 161, 255, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 92, 246, 0.12), transparent 60%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><path d='M0 30 H60 M30 0 V60' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/><circle cx='30' cy='30' r='1.5' fill='%234ea1ff' fill-opacity='0.3'/></svg>");
    background-size: auto, auto, 60px 60px;
    pointer-events: none;
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}

.hero-content {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(78, 161, 255, 0.08);
    border: 1px solid rgba(78, 161, 255, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 60%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--muted);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ------- Buttons ------- */
.cta {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    background: var(--accent);
    color: #04101f;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(78, 161, 255, 0.6);
}
.cta-secondary {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border);
}
.cta-secondary:hover {
    border-color: var(--accent);
    box-shadow: none;
}

/* ------- Section ------- */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}
.section.alt {
    background: var(--bg-alt);
    max-width: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section.alt > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.section h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
    text-align: center;
}

.section-lead {
    color: var(--muted);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

/* ------- Service cards ------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.card:hover {
    border-color: var(--accent);
    background: var(--card-hover);
    transform: translateY(-3px);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(78, 161, 255, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(78, 161, 255, 0.3);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.card-icon svg {
    width: 24px;
    height: 24px;
}

.card h3 {
    color: var(--fg);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}
.card p { color: var(--muted); font-size: 0.97rem; }

/* ------- About page prose ------- */
.prose p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: var(--muted);
    margin-bottom: 1.1rem;
    font-size: 1.05rem;
}
.prose h2 { margin-bottom: 1.75rem; }

/* ------- Pillars (About page) ------- */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}
.pillar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}
.pillar h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}
.pillar p {
    color: var(--muted);
    font-size: 0.97rem;
    margin: 0;
}

/* ------- CTA band ------- */
.cta-band-inner {
    text-align: center;
    padding: 1rem 0;
}
.cta-band-inner h2 { margin-bottom: 0.75rem; }
.cta-band-inner p {
    color: var(--muted);
    margin-bottom: 1.75rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* ------- Contact ------- */
.contact-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    text-align: center;
}
.contact-card a { color: var(--accent); }

/* ------- Footer ------- */
footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

/* ------- Responsive tweaks ------- */
@media (max-width: 540px) {
    nav { padding: 0.85rem 1rem; }
    .nav-links { gap: 1rem; }
    .hero { padding: 5rem 1.25rem 4rem; }
    .section { padding: 3.5rem 1.25rem; }
}
