:root {
    --bg: #0a0d11;
    --bg-soft: #101723;
    --panel: rgba(13, 23, 36, 0.8);
    --text: #e8f0ff;
    --muted: #9cb2d1;
    --line: rgba(115, 160, 255, 0.28);
    --blue: #41b4ff;
    --purple: #8c62ff;
    --green: #2ff2bc;
    --max: 1120px;
    --radius: 18px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at 80% -10%, rgba(140, 98, 255, 0.25), transparent 45%),
        radial-gradient(circle at 10% 0%, rgba(65, 180, 255, 0.18), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family: "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    line-height: 1.45;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    inset: 0;
    opacity: 0.13;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

.container {
    margin: 0 auto;
    max-width: var(--max);
    padding: 0 1rem;
}

.loader {
    align-items: center;
    backdrop-filter: blur(8px);
    background: rgba(8, 10, 15, 0.92);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    inset: 0;
    justify-content: center;
    position: fixed;
    transition: opacity 0.45s ease;
    z-index: 200;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-mark {
    color: var(--text);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.loader p {
    color: var(--muted);
    font-size: 0.92rem;
}

.site-shell {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.site-shell.is-ready {
    opacity: 1;
    transform: translateY(0);
}

.topbar {
    backdrop-filter: blur(8px);
    background: rgba(7, 10, 15, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 40;
}

.nav-wrap {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 4rem;
}

.brand {
    align-items: center;
    color: var(--text);
    display: flex;
    gap: 0.45rem;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.brand-rv {
    color: var(--green);
    font-weight: 700;
}

.brand-data {
    font-weight: 600;
}

.menu-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    padding: 0.4rem 0.8rem;
}

.nav-links {
    background: rgba(7, 10, 15, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: none;
    list-style: none;
    margin-top: 0.6rem;
    padding: 0.6rem;
    position: absolute;
    right: 1rem;
    top: 3.4rem;
    width: min(15rem, calc(100vw - 2rem));
}

.nav-links.open {
    display: grid;
    gap: 0.25rem;
}

.nav-links a {
    border-radius: 8px;
    color: var(--muted);
    display: block;
    padding: 0.55rem 0.65rem;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(65, 180, 255, 0.15);
    color: var(--text);
}

main {
    padding-bottom: 4rem;
}

section {
    padding: 4.5rem 0;
}

h1 {
    font-size: clamp(2rem, 7vw, 3.75rem);
    line-height: 1.03;
    margin-top: 0.4rem;
}

h2 {
    font-size: clamp(1.45rem, 4vw, 2.2rem);
    margin-bottom: 0.7rem;
}

.kicker {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: capitalize;
}

.kicker-highlight {
    color: var(--green);
}

.hero-grid {
    display: grid;
    gap: 1.5rem;
}

.hero-copy {
    color: var(--muted);
    margin-top: 1rem;
    max-width: 44ch;
}

.hero-link {
    border: 1px solid rgba(65, 180, 255, 0.7);
    border-radius: 999px;
    color: var(--text);
    display: inline-block;
    margin-top: 1.4rem;
    padding: 0.62rem 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-link:hover {
    box-shadow: 0 0 0 6px rgba(65, 180, 255, 0.12);
    transform: translateY(-2px);
}

.telemetry {
    background: var(--panel);
    border: 1px solid rgba(65, 180, 255, 0.2);
    border-radius: var(--radius);
    display: grid;
    gap: 0.5rem;
    padding: 1rem;
}

.telemetry-row {
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    font-size: 0.9rem;
    justify-content: space-between;
    padding: 0.6rem 0;
}

.telemetry-row:last-child {
    border-bottom: 0;
}

.telemetry-row strong {
    color: var(--blue);
    font-weight: 600;
}

.panel {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.panel.alt {
    background: rgba(16, 23, 35, 0.48);
}

.section-copy {
    color: var(--muted);
    margin-bottom: 1.1rem;
    max-width: 62ch;
}

.card-grid {
    display: grid;
    gap: 0.95rem;
    grid-template-columns: 1fr;
}

.card {
    background: linear-gradient(145deg, rgba(65, 180, 255, 0.08), rgba(140, 98, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1rem;
    transition: transform 0.23s ease, border-color 0.23s ease;
}

.card:hover {
    border-color: rgba(47, 242, 188, 0.62);
    transform: translateY(-4px);
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
}

.card p {
    color: var(--muted);
    font-size: 0.94rem;
}

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(65, 180, 255, 0.2), rgba(255, 255, 255, 0.06));
    background-size: 200% 100%;
    border-radius: 14px;
    min-height: 102px;
    animation: sweep 1.2s infinite linear;
}

@keyframes sweep {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.about,
.contact {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about p,
.contact p {
    color: var(--muted);
    max-width: 68ch;
}

.contact-wrap {
    align-items: flex-start;
    display: grid;
    gap: 0.7rem;
}

.mail-link {
    color: var(--text);
    display: inline-block;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mail-link:hover {
    color: var(--green);
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

@media (min-width: 760px) {
    .menu-button {
        display: none;
    }

    .nav-links {
        background: transparent;
        border: 0;
        display: flex;
        margin-top: 0;
        padding: 0;
        position: static;
        width: auto;
    }

    .nav-links a {
        padding: 0.35rem 0.6rem;
    }

    .hero-grid {
        align-items: center;
        grid-template-columns: 1.2fr 0.8fr;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    section {
        padding: 5.5rem 0;
    }
}

/* Back to home link for separate pages */
.back-home {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 600;
    transition: color 0.3s;
}

.back-home:hover {
    color: #764ba2;
}

/* Page content wrapper */
.page-container {
    min-height: 100vh;
    padding-top: 60px;
}

h1 {
    color: #667eea;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.content-section {
    background: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-section h3 {
    color: #667eea;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.content-section li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pricing-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.pricing-card h3 {
    margin-top: 0;
}

.price {
    font-size: 2.5rem;
    color: #667eea;
    font-weight: bold;
    margin: 1rem 0;
}

.pricing-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.pricing-card li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.pricing-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}
