:root {
    --bg-1: #8ef3c0;
    --bg-2: #22d3ee;
    --text-main: #041317;
    --text-muted: rgba(4, 19, 23, 0.78);
    --card: rgba(255, 255, 255, 0.97);
    --card-soft: rgba(255, 255, 255, 0.94);
    --glass-bg: rgba(255, 255, 255, 0.97);
    --border-soft: rgba(255, 255, 255, 0.8);
    --accent: #22c55e;
    --accent-blue: #0ea5e9;
    --accent-dark: #022c22;
    --radius-lg: 28px;
    --radius-xl: 24px;
    --radius-pill: 999px;
    --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.32);
    --shadow-small: 0 12px 28px rgba(15, 23, 42, 0.18);
    --transition-fast: 200ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-med: 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    position: relative;
    background: transparent;
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

/* GLOBAL BACKGROUND */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 0% 0%, #bbf7d0 0, transparent 46%),
        radial-gradient(circle at 100% 100%, #38bdf8 0, transparent 40%),
        linear-gradient(135deg, var(--bg-1) 0%, #bef264 22%, #5eead4 55%, var(--bg-2) 100%);
    filter: saturate(1.05);
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(135deg,
            rgba(255, 255, 255, 0.18),
            transparent 35%,
            rgba(0, 0, 0, 0.2)),
        repeating-linear-gradient(0deg,
            rgba(255, 255, 255, 0.28),
            rgba(255, 255, 255, 0.28) 1px,
            transparent 1px,
            transparent 2px);
    mix-blend-mode: soft-light;
    opacity: 0.6;
    pointer-events: none;
}

/* legacy bg element (not used now) */
.bg {
    display: none;
}

/* LAYOUT */

.container {
    width: min(1120px, 100% - 48px);
    margin-inline: auto;
}

.section {
    padding: 90px 0;
}

.section-soft {
    padding: 82px 0;
}

.section-dark {
    padding: 90px 0 80px;
    background: radial-gradient(circle at 0 0, #16a34a 0, #0f172a 45%, #020617 100%);
    color: #f9fafb;
}

.section-title {
    margin: 0 0 10px;
    font-size: clamp(1.9rem, 2.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.section-subtitle {
    margin: 0 0 30px;
    max-width: 640px;
    color: var(--text-muted);
}

.section-title-light {
    color: #f9fafb;
}

.section-subtitle-light {
    color: rgba(226, 232, 240, 0.86);
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.96),
            rgba(255, 255, 255, 0.86));
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 14px;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.08em;
    color: var(--text-main);
    text-decoration: none;
}

.logo:link,
.logo:visited,
.logo:hover,
.logo:active {
    text-decoration: none;
    color: var(--text-main);
}

.logo span {
    color: var(--accent);
    margin-left: 2px;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 18px;
    font-size: 0.94rem;
}

.nav a {
    text-decoration: none;
    color: rgba(15, 23, 42, 0.7);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    transition: background var(--transition-fast), color var(--transition-fast),
        transform var(--transition-fast);
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-main);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    border: none;
    background: none;
    padding: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px 0;
    border-radius: 999px;
    background: var(--text-main);
}

/* HERO (HOME) */

.hero {
    padding-top: 110px;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
}

.eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(4, 19, 23, 0.7);
    margin-bottom: 10px;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 3.1vw, 3.1rem);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-subtitle {
    margin: 0 0 18px;
    font-size: 1.03rem;
    color: var(--text-muted);
}

.hero-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.pill {
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    font-size: 0.84rem;
    font-weight: 500;
}

.pill-ghost {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: rgba(15, 23, 42, 0.9);
}

.pill-solid {
    background: rgba(4, 47, 46, 0.95);
    color: #e0f2fe;
    border: 1px solid rgba(22, 163, 74, 0.7);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.btn {
    border-radius: var(--radius-pill);
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast),
        background var(--transition-fast), color var(--transition-fast);
}

.btn.primary {
    background: radial-gradient(circle at 0 0, #bbf7d0 0, var(--accent) 36%, #22d3ee 100%);
    color: var(--accent-dark);
    box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.42);
}

.btn.soft {
    background: rgba(255, 255, 255, 0.97);
    color: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.btn.soft:hover {
    background: #ffffff;
}

.btn.full-width {
    width: 100%;
    justify-content: center;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
}

.hero-badges span {
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 4px 10px;
}

/* HERO PANEL */

.hero-panel {
    background: var(--card);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    position: relative;
}

.hero-panel-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0));
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.dot-green {
    background: #22c55e;
}

.dot-yellow {
    background: #facc15;
}

.dot-red {
    background: #ef4444;
}

.hero-panel-body {
    padding: 18px 20px 20px;
}

.panel-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(15, 23, 42, 0.5);
    margin: 0 0 6px;
}

.hero-panel-body h2 {
    margin: 0;
    font-size: 1.3rem;
}

.panel-title {
    margin: 2px 0 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.panel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.panel-chips span {
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.05);
    padding: 4px 10px;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.panel-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* OVERVIEW / SNAPSHOT */

.overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr);
    gap: 32px;
    align-items: start;
}

.overview-tags {
    list-style: none;
    padding-left: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.overview-tags li::before {
    content: "• ";
}

.snapshot-card {
    background: var(--card-soft);
    border-radius: 24px;
    box-shadow: var(--shadow-small);
    border: 1px solid var(--border-soft);
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
}

.snapshot-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.16), transparent 60%);
    opacity: 0.8;
}

.snapshot-card>* {
    position: relative;
}

.snapshot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.snapshot-label {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.6);
}

.snapshot-pill {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.06);
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin: 6px 0 12px;
}

.snapshot-item {
    display: flex;
    flex-direction: column;
}

.snapshot-value {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.snapshot-caption {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.snapshot-footer {
    border-top: 1px dashed rgba(148, 163, 184, 0.6);
    padding-top: 8px;
    margin-top: 4px;
}

.snapshot-note {
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.7);
}

/* SERVICES */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--card);
    border-radius: 24px;
    padding: 20px 22px 20px;
    box-shadow: var(--shadow-small);
    border: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.service-icon {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    margin-bottom: 10px;
}

.service-icon-green {
    background: radial-gradient(circle at 0 0, #bbf7d0, #22c55e);
}

.service-icon-blue {
    background: radial-gradient(circle at 0 0, #bae6fd, #0ea5e9);
}

.service-icon-yellow {
    background: radial-gradient(circle at 0 0, #fef9c3, #facc15);
}

.service-card h3 {
    margin: 0 0 6px;
}

.service-card p {
    margin: 0 0 10px;
    color: var(--text-muted);
}

.service-card ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* SIGNALS */

.signal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.signal-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.signal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.3);
}

.signal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    padding: 4px 8px;
    font-size: 1rem;
    background: rgba(15, 23, 42, 0.06);
    margin-bottom: 8px;
}

.signal-card h3 {
    margin: 0 0 4px;
}

.signal-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* CASES */

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.case-card {
    background: var(--card-soft);
    border-radius: 22px;
    padding: 18px 20px 18px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-small);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.case-card header {
    margin-bottom: 6px;
}

.case-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    background: rgba(15, 23, 42, 0.06);
    margin-bottom: 6px;
}

.case-card h3 {
    margin: 0;
}

.case-card p {
    margin: 4px 0 8px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.case-card ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* PRICING */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.pricing-card {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 24px;
    padding: 20px 22px 22px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.65);
}

.pricing-card-featured {
    background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.35), rgba(15, 23, 42, 0.9));
    border-color: rgba(74, 222, 128, 0.9);
    transform: translateY(-4px);
}

.badge {
    display: inline-flex;
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background: rgba(22, 163, 74, 0.16);
    border: 1px solid rgba(74, 222, 128, 0.8);
    margin-bottom: 8px;
}

.pricing-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.pricing-tagline {
    margin: 4px 0 10px;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.86);
}

.price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 10px;
}

.amount {
    font-size: 1.8rem;
    font-weight: 800;
}

.unit {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.8);
}

.pricing-list {
    margin: 0 0 12px;
    padding-left: 18px;
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.9);
}

.pricing-note {
    margin-top: 16px;
    font-size: 0.86rem;
    color: rgba(209, 213, 219, 0.9);
}

/* CONTACT */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: start;
}

.contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-badges span {
    font-size: 0.82rem;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.contact-form {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 20px 22px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.form-row {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

label {
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.9);
}

input,
textarea,
select {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 9px 11px;
    font-family: inherit;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.96);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

.contact-footnote {
    margin: 14px 0 0;
    font-size: 0.84rem;
    color: var(--text-muted);
    text-align: center;
}

.contact-footnote a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* FOOTER */

.site-footer {
    padding: 40px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(255, 255, 255, 0.6);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.footer-inner a {
    color: var(--text-main);
    text-decoration: none;
}

/* ANIMATIONS */

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-3d {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-3d:hover {
    transform: translateY(-5px) rotateX(1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .overview-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
}