:root {
    --accent: #c7d62d;
    --accent-dark: #aab922;
    --dark: #1f2a33;
    --dark-soft: #283641;
    --light: #f2f2f2;
    --white: #ffffff;
    --text: #162028;
    --muted: #66727c;
    --border: rgba(31, 42, 51, 0.12);
    --shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
    --radius: 22px;
    --radius-sm: 14px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; color: var(--muted); }
h1, h2, h3, h4 {
    margin: 0 0 1rem;
    line-height: 1.1;
    color: var(--text);
}
h1, h2 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}
.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}
.section { padding: 88px 0; }
.section-light { background: var(--light); }
.section-dark {
    background: linear-gradient(135deg, var(--dark), var(--dark-soft));
    color: var(--white);
}
.section-dark h2,
.section-dark p,
.section-dark li,
.section-dark .diagram-caption { color: var(--white); }
.section-heading { margin-bottom: 2.5rem; }
.section-heading.center { text-align: center; }
.section-label,
.eyebrow,
.section-label-dark {
    display: inline-block;
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
.section-label,
.eyebrow { color: var(--accent-dark); }
.section-label-dark { color: var(--accent); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid rgba(31, 42, 51, 0.06);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 1rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 1.85rem;
}
.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #e4f05a);
    color: var(--dark);
    font-weight: 800;
    box-shadow: var(--shadow);
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 1rem; letter-spacing: 0.05em; }
.brand-text small { color: var(--muted); }
.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.site-nav a {
    position: relative;
    font-weight: 600;
    color: var(--muted);
}
.site-nav a.active,
.site-nav a:hover { color: var(--text); }
.site-nav a.active::after,
.site-nav a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.45rem;
    height: 3px;
    border-radius: 100px;
    background: var(--accent);
}
.site-nav .btn::after,
.site-nav .nav-cta::after { display: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.25s ease;
    border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 12px 30px rgba(199, 214, 45, 0.28);
}
.btn-primary:hover { background: #d7e746; }
.btn-secondary {
    border-color: var(--border);
    background: rgba(255,255,255,0.75);
}
.text-link {
    color: var(--text);
    font-weight: 700;
}
.text-link.dark { color: var(--dark); }

.hero {
    padding: 96px 0 72px;
    background:
        radial-gradient(circle at top right, rgba(199,214,45,0.22), transparent 24%),
        linear-gradient(180deg, #f9fbef 0%, #ffffff 42%);
}
.hero-grid,
.split-section,
.contact-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
}
.hero h1,
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.hero-copy p { font-size: 1.08rem; max-width: 62ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 2rem; }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.hero-stats div,
.mini-card,
.service-card,
.info-panel,
.detail-card,
.form-card,
.contact-info-card,
.cta-banner,
.diagram-card,
.image-card,
.floating-card {
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}
.hero-stats div { padding: 1rem; }
.hero-stats strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}
.hero-stats span { color: var(--muted); font-size: 0.92rem; }
.hero-visual { position: relative; }
.image-card {
    min-height: 480px;
    padding: 1.5rem;
    background: linear-gradient(160deg, var(--dark), #354553);
    overflow: hidden;
}
.image-badge {
    display: inline-flex;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(199,214,45,0.16);
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 700;
}
.screen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.screen-grid span,
.contact-placeholder {
    display: block;
    min-height: 130px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05)),
        linear-gradient(135deg, rgba(199,214,45,0.42), rgba(255,255,255,0.12));
    border: 1px solid rgba(255,255,255,0.12);
}
.floating-card {
    position: absolute;
    right: -1rem;
    bottom: 1.5rem;
    max-width: 280px;
    padding: 1.2rem 1.3rem;
}

.page-hero {
    padding: 86px 0 32px;
    background: linear-gradient(180deg, #f9fbef 0%, #fff 100%);
}
.page-hero.small h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); }

.info-panel,
.stack-cards {
    display: grid;
    gap: 1rem;
}
.mini-card { padding: 1.5rem; }
.mini-card.tall { min-height: 280px; }
.card-grid {
    display: grid;
    gap: 1.35rem;
}
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card {
    padding: 1.7rem;
    border: 1px solid var(--border);
}
.service-card.compact { min-height: 190px; }
.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent), #eff69d);
}
.accent-card {
    background: linear-gradient(135deg, var(--accent), #eff69d);
    color: var(--dark);
}
.accent-card p { color: rgba(31,42,51,0.86); }

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 0;
    display: grid;
    gap: 1rem;
}
.check-list li {
    position: relative;
    padding-left: 2rem;
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 1.4rem;
    height: 1.4rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(199,214,45,0.18);
    color: var(--accent);
    font-weight: 800;
}
.dark-checks li::before {
    background: rgba(199,214,45,0.22);
    color: var(--accent-dark);
}
.diagram-card {
    padding: 2rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
}
.network-placeholder {
    position: relative;
    min-height: 320px;
}
.network-placeholder span {
    position: absolute;
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(199,214,45,0.85), rgba(255,255,255,0.25));
    border: 1px solid rgba(255,255,255,0.18);
}
.network-placeholder span:nth-child(1) { top: 12%; left: 8%; }
.network-placeholder span:nth-child(2) { top: 0; right: 18%; }
.network-placeholder span:nth-child(3) { top: 40%; left: 38%; transform: scale(1.1); }
.network-placeholder span:nth-child(4) { bottom: 10%; left: 14%; }
.network-placeholder span:nth-child(5) { bottom: 0; right: 8%; }
.diagram-caption { margin-top: 1rem; }

.detail-card {
    padding: 1.8rem 2rem;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 2rem;
    border: 1px solid var(--border);
}
.detail-card ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
}
.stack-gap { display: grid; gap: 1.2rem; }

.cta-banner {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.contact-layout { align-items: start; }
.contact-info-card,
.form-card { padding: 2rem; border: 1px solid var(--border); }
.contact-list,
.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li,
.footer-contact li,
.footer-links li { margin-bottom: 0.8rem; color: var(--muted); }
.contact-form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 0.55rem; }
.form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label { font-weight: 700; font-size: 0.95rem; }
input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    font: inherit;
    color: var(--text);
    background: #fff;
}
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(199,214,45,0.22);
    border-color: var(--accent-dark);
}
.alert {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    margin-bottom: 1rem;
    font-weight: 600;
}
.alert.success { background: rgba(36, 199, 112, 0.12); color: #166a3f; }
.alert.error { background: rgba(214, 59, 59, 0.1); color: #8d2626; }
.honeypot { display: none; }

.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.82);
    padding-top: 64px;
}
.site-footer h4 { color: var(--white); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 1.5rem;
}
.footer-brand { margin-bottom: 1rem; }
.footer-copy { color: rgba(255,255,255,0.72); max-width: 36ch; }
.footer-links a,
.footer-contact a { color: rgba(255,255,255,0.8); }
.footer-links a:hover,
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
    margin-top: 2rem;
    padding: 1rem 0 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom p { color: rgba(255,255,255,0.62); margin: 0; }

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text);
    margin: 5px auto;
    transition: 0.25s ease;
}

@media (max-width: 1024px) {
    .card-grid.three,
    .card-grid.four,
    .footer-grid,
    .detail-card,
    .hero-grid,
    .split-section,
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .hero-stats { grid-template-columns: 1fr; }
    .floating-card { position: static; margin-top: 1rem; max-width: none; }
}

@media (max-width: 768px) {
    .section { padding: 68px 0; }
    .nav-toggle { display: inline-block; }
    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: #fff;
        border-radius: 20px;
        box-shadow: var(--shadow);
        border: 1px solid var(--border);
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 0.4rem 0; }
    .site-nav a.active::after,
    .site-nav a:hover::after { display: none; }
    .form-row.two { grid-template-columns: 1fr; }
    .cta-banner { flex-direction: column; align-items: flex-start; }
}
