:root {
    --teal: #14B8A6;
    --blue: #2563EB;
    --purple: #7C3AED;
    --ink: #0F172A;
    --muted: #64748B;
    --border: #E2E8F0;
    --bg: #F4F6F8;
    --surface: #FFFFFF;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: var(--blue);
    text-decoration: none;
}

.brand-gradient {
    background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 55%, var(--purple) 100%);
}

.brand-gradient-text {
    background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 55%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--ink);
}

.nav-logo img {
    height: 40px;
    background: #fff;
    border-radius: 22.5%;
    padding: 6px;
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.25);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links .nav-links-cta {
    display: none;
}

.nav-links-cta-row {
    display: none;
}

.nav-links a.btn-primary {
    color: #fff;
}

.nav-links a.btn-secondary {
    color: var(--ink);
}

.nav-toggle-checkbox {
    display: none;
}

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.nav-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-desktop-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 900px) {
    .nav-desktop-cta {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.12);
        padding: 20px 24px 28px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        z-index: 50;
        transition: max-height 0.25s ease, opacity 0.2s ease;
    }

    .nav-links .nav-links-cta {
        display: inline-block;
    }

    .nav-links-cta-row {
        display: flex;
        gap: 12px;
    }

    .nav {
        position: relative;
    }

    .nav-toggle-checkbox:checked ~ .nav-links {
        max-height: 420px;
        opacity: 1;
    }

    .nav-toggle-checkbox:checked ~ .nav-burger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle-checkbox:checked ~ .nav-burger span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle-checkbox:checked ~ .nav-burger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 55%, var(--purple) 100%);
    color: #fff;
    box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
    opacity: 0.92;
}

.btn-secondary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    text-align: center;
    padding: 100px 0 80px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal) 0%, var(--blue) 35%, var(--purple) 65%, var(--teal) 100%);
    background-size: 200% 100%;
    animation: card-bar-glow 5s linear infinite;
}

.hero::before { top: 0; }
.hero::after { bottom: 0; }

@media (prefers-reduced-motion: reduce) {
    .hero::before, .hero::after { animation: none; }
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.hero p.subhead {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--surface);
    text-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
    max-width: 640px;
    margin: 0 auto 36px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ---------- Sections ---------- */
section {
    padding: 80px 0;
}

section.alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-heading .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 12px;
    display: block;
}

.section-heading h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.section-heading p {
    color: var(--muted);
    font-size: 1.05rem;
}

/* ---------- Grids / cards ---------- */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.25rem; }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.08);
}

.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal) 0%, var(--blue) 35%, var(--purple) 65%, var(--teal) 100%);
    background-size: 200% 100%;
    animation: card-bar-glow 5s linear infinite;
}

@keyframes card-bar-glow {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .card::before { animation: none; }
}

.card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 55%, var(--purple) 100%);
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 16px;
    animation: icon-float 4s ease-in-out infinite;
    transition: transform 0.2s ease;
}

.card:hover .icon {
    animation-play-state: paused;
    transform: scale(1.1) rotate(-4deg);
}

.grid .card:nth-child(2) .icon { animation-delay: -0.6s; }
.grid .card:nth-child(3) .icon { animation-delay: -1.2s; }
.grid .card:nth-child(4) .icon { animation-delay: -1.8s; }
.grid .card:nth-child(5) .icon { animation-delay: -2.4s; }
.grid .card:nth-child(6) .icon { animation-delay: -3s; }
.grid .card:nth-child(7) .icon { animation-delay: -3.6s; }
.grid .card:nth-child(8) .icon { animation-delay: -0.3s; }
.grid .card:nth-child(9) .icon { animation-delay: -0.9s; }

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
    .card .icon { animation: none; }
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

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

/* ---------- Roles ---------- */
.role-card {
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.role-card h3 {
    font-size: 1.3rem;
    margin: 0 0 4px;
}

.role-card .role-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--teal);
    margin-bottom: 12px;
}

.role-card ul {
    padding-left: 20px;
    color: var(--muted);
    margin: 0;
}

.role-card li {
    margin-bottom: 8px;
}

/* ---------- Steps ---------- */
.steps {
    display: flex;
    flex-direction: column;
    max-width: 720px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    align-items: stretch;
    padding-bottom: 20px;
}

.step:last-child {
    padding-bottom: 0;
}

.step-line {
    flex-shrink: 0;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step .num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 55%, var(--purple) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.35);
    animation: num-pulse 3s ease-out infinite;
}

.step:nth-child(2) .num { animation-delay: 0.5s; }
.step:nth-child(3) .num { animation-delay: 1s; }
.step:nth-child(4) .num { animation-delay: 1.5s; }
.step:nth-child(5) .num { animation-delay: 2s; }

.step-arrow {
    display: none;
}

@media (min-width: 901px) {
    .step-arrow {
        display: flex;
        flex: 1;
        min-height: 20px;
        width: 40px;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        line-height: 1;
        background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 55%, var(--purple) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        opacity: 0;
        animation-name: step-arrow-pulse;
        animation-timing-function: ease-in-out;
        animation-iteration-count: infinite;
    }
}

@keyframes step-arrow-pulse {
    0% { opacity: 0; transform: translateY(-6px) scale(0.85); }
    12% { opacity: 1; transform: translateY(0) scale(1.1); }
    28% { opacity: 1; transform: translateY(0) scale(1.1); }
    40% { opacity: 0; transform: translateY(6px) scale(0.85); }
    100% { opacity: 0; }
}

@keyframes num-pulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.35); }
    70% { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .step .num { animation: none; }
}

.step h4 {
    margin: 0 0 4px;
}

.step p {
    margin: 0;
    color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 4px 0;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px 0;
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-item h4 {
    margin: 0;
    font-size: 1.05rem;
}

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: var(--muted);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon::before {
    width: 12px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 12px;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

.faq-answer {
    margin: 0 0 16px;
    color: var(--muted);
}

/* ---------- CTA banner ---------- */
.cta-banner {
    border-radius: 24px;
    padding: 64px 40px;
    text-align: center;
    color: #fff;
}

.cta-banner h2 {
    font-size: 2rem;
    margin: 0 0 12px;
}

.cta-banner p {
    opacity: 0.9;
    margin: 0 0 28px;
}

.cta-banner .btn-secondary {
    background: #fff;
    color: var(--ink);
}

.contact-form {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.form-field input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font: inherit;
}

.form-field input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.form-field input:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.contact-form-message {
    min-height: 1.5em;
    margin: 4px 0 16px;
    font-weight: 600;
}

.contact-form-message.error {
    color: #FEE2E2;
}

.contact-form-success {
    max-width: 480px;
    margin: 0 auto;
}

.contact-form-success h3 {
    margin: 0 0 8px;
}

.contact-form-success p {
    opacity: 0.9;
    margin: 0;
}

/* ---------- Footer ---------- */
footer {
    padding: 48px 0;
    color: var(--muted);
    font-size: 0.9rem;
}

footer .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

footer a {
    color: var(--muted);
}

footer a:hover {
    color: var(--blue);
}
