@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    color-scheme: light;
    --bg: #f6f4ef;
    --bg-2: #efe9df;
    --ink: #0f141d;
    --ink-soft: #333a46;
    --ink-muted: #6b7483;
    --accent: #2f6bff;
    --accent-2: #f2b45b;
    --accent-3: #24d3a6;
    --line: #ded6c9;
    --surface: #ffffff;
    --surface-2: #f9f5ee;
    --surface-3: #f1ece4;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow: 0 24px 60px rgba(15, 20, 29, 0.18);
    --shadow-soft: 0 12px 30px rgba(15, 20, 29, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(700px 420px at 10% 12%, rgba(47, 107, 255, 0.12), transparent 70%),
        radial-gradient(700px 360px at 86% 18%, rgba(36, 211, 166, 0.12), transparent 70%),
        radial-gradient(800px 460px at 26% 82%, rgba(242, 180, 91, 0.18), transparent 75%);
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(15, 20, 29, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 20, 29, 0.04) 1px, transparent 1px);
    background-size: 140px 140px;
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

h1, h2, h3, h4 {
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.02em;
}

p {
    color: var(--ink-soft);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    top: -50px;
    left: 20px;
    background: #ffffff;
    color: #0b0f1a;
    padding: 10px 16px;
    border-radius: 8px;
    z-index: 9999;
}

.skip-link:focus {
    top: 20px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(246, 244, 239, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px clamp(20px, 5vw, 64px);
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 6px;
}

.brand-text {
    font-size: 15px;
    color: var(--ink);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-muted);
}

.nav-links a {
    position: relative;
    padding-bottom: 6px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.2s ease;
}

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

.nav-links a:hover::after,
.nav-links a.is-active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    flex-direction: column;
    gap: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-outline {
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(47, 107, 255, 0.95), rgba(36, 211, 166, 0.9));
    color: #0b0f14;
    box-shadow: var(--shadow-soft);
}

.btn-secondary,
.btn-outline {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid rgba(15, 20, 29, 0.1);
}

.btn-primary::after,
.btn-secondary::after,
.btn-outline::after,
.btn-ghost::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 160%;
    background: rgba(255, 255, 255, 0.25);
    top: -30%;
    left: -40%;
    transform: rotate(25deg);
    transition: left 0.4s ease;
}

.btn-primary:hover::after,
.btn-secondary:hover::after,
.btn-outline:hover::after,
.btn-ghost:hover::after {
    left: 120%;
}

.section {
    padding: 90px clamp(20px, 5vw, 70px);
}

.page-hero {
    padding: 120px clamp(20px, 5vw, 70px) 50px;
    max-width: 960px;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    margin-bottom: 16px;
}

.eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 14px;
    display: inline-block;
}

.section-head {
    max-width: 700px;
    margin-bottom: 32px;
}

.section-head--clients {
    max-width: 520px;
}

.section-head h2 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    margin-bottom: 12px;
}

.section-head p {
    color: var(--ink-muted);
}

.hero {
    padding: 140px clamp(20px, 5vw, 70px) 90px;
}

.hero-minimal {
    position: relative;
}

.hero-minimal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 36px;
    align-items: center;
}

.hero-minimal-copy h1 {
    font-size: clamp(2.6rem, 4.2vw, 4.2rem);
    margin-bottom: 16px;
}

.hero-minimal-copy p {
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin: 26px 0 18px;
    flex-wrap: wrap;
}

.hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-tags span {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-stats {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow);
}

.hero-stats-head {
    margin-bottom: 14px;
}

.hero-stats-head h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.hero-stats-head p {
    color: var(--ink-muted);
    font-size: 14px;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.hero-stat-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-3);
}

.hero-stat-label {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-muted);
    display: block;
    margin-bottom: 8px;
}

.hero-stat-value {
    font-size: 24px;
    color: var(--ink);
}

.hero-stat-note {
    font-size: 12px;
    color: var(--ink-muted);
}

.signal-band {
    background: var(--surface-2);
}

.signal-band-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.signal-band-copy h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 12px;
}

.signal-band-copy p {
    color: var(--ink-muted);
}

.signal-band-panels {
    display: grid;
    gap: 16px;
}

.signal-card {
    background: var(--surface);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.clients-section {
    padding-top: 40px;
}

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

.client-grid.is-single {
    max-width: 260px;
    margin: 0 auto;
}

.client-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    display: grid;
    gap: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.client-info {
    display: grid;
    gap: 8px;
}

.client-name {
    font-size: 18px;
    color: var(--ink);
}

.client-desc {
    font-size: 13px;
    color: var(--ink-muted);
}

.client-meta span {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.client-meta strong {
    display: block;
    font-size: 14px;
    margin-top: 4px;
}

.client-logo {
    background: var(--surface-3);
    border-radius: 14px;
    border: 1px solid var(--line);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.client-logo img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.client-initials {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
}

.client-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.client-footer span:first-child {
    width: 24px;
    height: 2px;
    background: var(--accent);
}

.growth-blueprint {
    background: var(--surface-2);
}

.growth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
    align-items: start;
}

.growth-copy h2 {
    font-size: clamp(1.9rem, 3vw, 2.9rem);
    margin-bottom: 12px;
}

.growth-copy p {
    color: var(--ink-muted);
}

.growth-list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.growth-point {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.growth-point span {
    font-weight: 700;
    font-size: 14px;
    color: var(--accent);
}

.growth-stack {
    display: grid;
    gap: 16px;
}

.growth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

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

.service-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    display: grid;
    gap: 12px;
    box-shadow: var(--shadow-soft);
}

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

.service-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.service-footer span {
    width: 24px;
    height: 2px;
    background: var(--accent);
}

.contact-section {
    padding-top: 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 30px;
    align-items: start;
}

.contact-info h1 {
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
    margin-bottom: 12px;
}

.contact-info p {
    color: var(--ink-muted);
}

.contact-cards {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.panel,
.form-shell,
.team-card,
.team-empty,
.cta-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.form-grid {
    display: grid;
    gap: 16px;
}

.field label {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-muted);
    display: block;
    margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 14px 16px;
    background: var(--surface-2);
}

.field-error {
    color: #dc2626;
    font-size: 12px;
}

.form-status {
    font-size: 13px;
    color: var(--ink-muted);
}

.form-status.is-success {
    color: var(--accent-3);
}

.form-status.is-error {
    color: #dc2626;
}

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

.team-card {
    display: grid;
    gap: 12px;
}

.team-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--surface-3);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-initials {
    font-weight: 700;
    color: var(--ink);
}

.team-role {
    color: var(--ink-muted);
}

.team-email {
    font-size: 13px;
    color: var(--accent);
}

.cta-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    background: var(--surface-2);
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.policy {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.policy h2 {
    font-size: 20px;
    margin: 24px 0 12px;
}

.policy h2:first-child {
    margin-top: 0;
}

.policy p,
.policy li {
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.8;
}

.policy ul {
    margin-left: 20px;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

.modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 29, 0.6);
}

.modal-card {
    position: relative;
    z-index: 2;
    background: var(--surface);
    border-radius: 24px;
    padding: 30px;
    width: min(520px, 90vw);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    background: var(--surface-3);
    border: none;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
}

.client-portal {
    padding: 120px clamp(20px, 5vw, 70px) 90px;
    display: grid;
    gap: 36px;
}

.portal-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: center;
}

.portal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.portal-card--form {
    background: var(--surface-2);
}

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

.portal-user {
    display: grid;
    gap: 4px;
    margin-top: 12px;
}

.portal-user__name {
    font-weight: 600;
}

.portal-user__email {
    color: var(--ink-muted);
    font-size: 13px;
}

.portal-alert {
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.portal-alert--success {
    border-color: rgba(36, 211, 166, 0.4);
    background: rgba(36, 211, 166, 0.12);
}

.portal-alert--error {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
}

.portal-section h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.portal-table {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}

.portal-table__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.portal-table__head {
    background: var(--surface-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    color: var(--ink-muted);
}

.portal-table__row:last-child {
    border-bottom: none;
}

.portal-table__empty {
    grid-column: 1 / -1;
    color: var(--ink-muted);
}

.portal-action {
    display: flex;
    gap: 10px;
    align-items: center;
}

.portal-action select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.form-field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.form-field label {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.form-field input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.portal-hint,
.portal-muted {
    font-size: 12px;
    color: var(--ink-muted);
}

.site-footer {
    padding: 70px clamp(20px, 5vw, 70px) 40px;
    border-top: 1px solid var(--line);
    background: var(--bg-2);
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer-eyebrow {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
}

.footer-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-cta,
.footer-secondary {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-cta {
    background: var(--accent);
    color: #0b0f14;
}

.footer-secondary {
    border: 1px solid var(--line);
    color: var(--ink);
}

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

.footer-column h3 {
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 12px;
}

.footer-column a {
    display: block;
    color: var(--ink-muted);
    margin-bottom: 8px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    color: var(--ink-muted);
    font-size: 13px;
}

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

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

@media (max-width: 980px) {
    .hero-minimal-grid,
    .signal-band-grid,
    .growth-grid,
    .contact-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .primary-nav {
        position: absolute;
        top: 72px;
        right: 20px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 18px;
        display: none;
        flex-direction: column;
        gap: 16px;
    }

    body.nav-open .primary-nav {
        display: flex;
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 110px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
