/* ═══════════════════════════════════════════════════════════════════
   urgesol.css — UrgeSol main stylesheet
   Dark theme · Inter + IBM Plex Mono · mobile-first responsive
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Reset ───────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── 2. Variables ───────────────────────────────────────────────────── */
:root {
    --primary: #294e9e;
    --primary-d: #1e3b7a;
    --primary-l: #3d65c4;
    --secondary: #8f288d;
    --sec-d: #6e1e6c;
    --sec-l: #b03aae;

    --bg: #080d14;
    --bg2: #0c1220;
    --surface: #0f1929;
    --surface2: #131f30;
    --border: #1b2a3d;
    --border2: #243549;
    --muted: #3a5068;
    --dim: #607a92;
    --text: #8da8be;
    --light: #b8cedd;
    --white: #e2edf5;

    --red: #ef4444;
    --green: #22c55e;
    --yellow: #f59e0b;

    --mono: 'IBM Plex Mono', monospace;
    --sans: 'Inter', sans-serif;
    --radius: 6px;
}

/* ── 3. Base ────────────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

/* Font Awesome: default icon color */
.fa-solid,
.fa-regular,
.fa-brands {
    color: var(--white);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--white);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--primary-l);
}

img {
    max-width: 100%;
    height: auto;
}

/* ── 4. Layout ──────────────────────────────────────────────────────── */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-sm {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-xs {
    max-width: 580px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* ── 5. Typography ──────────────────────────────────────────────────── */
.label {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-l);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
}

h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--light);
}

p {
    color: var(--text);
    line-height: 1.8;
}

.mono {
    font-family: var(--mono);
}

.primary {
    color: var(--primary-l);
}

.dim {
    color: var(--dim);
}

.muted {
    color: var(--muted);
}

.white {
    color: var(--white);
}

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

.red {
    color: var(--red);
}

.grad {
    background: linear-gradient(135deg, var(--primary-l) 0%, var(--sec-l) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── 6. Grid ────────────────────────────────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* ── 7. Utility ─────────────────────────────────────────────────────── */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

.section-dark {
    background: var(--bg2);
}

.section-grad {
    background: linear-gradient(135deg, rgba(41, 78, 158, 0.06) 0%, rgba(143, 40, 141, 0.06) 100%);
}

/* ── 8. Buttons ─────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-l);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(41, 78, 158, 0.4);
}

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

.btn-secondary:hover {
    background: var(--sec-l);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border: 1px solid var(--border2);
}

.btn-outline:hover {
    border-color: var(--primary-l);
    color: var(--primary-l);
}

.btn-ghost {
    background: transparent;
    color: var(--dim);
    padding: 0.7rem 0;
}

.btn-ghost:hover {
    color: var(--white);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
}

/* ── 9. Cards ───────────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color .25s, transform .25s;
}

.card:hover {
    border-color: var(--border2);
}

.card-primary {
    border-color: rgba(41, 78, 158, 0.35);
}

.card-primary:hover {
    border-color: var(--primary-l);
}

.card-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* ── 10. Badge ──────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
}

.badge-primary {
    background: rgba(41, 78, 158, 0.15);
    color: var(--primary-l);
    border: 1px solid rgba(41, 78, 158, 0.3);
}

.badge-secondary {
    background: rgba(143, 40, 141, 0.15);
    color: var(--sec-l);
    border: 1px solid rgba(143, 40, 141, 0.3);
}

.badge-green {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--yellow);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-dim {
    background: rgba(255, 255, 255, 0.05);
    color: var(--dim);
    border: 1px solid var(--border);
}

/* ── 11. Terminal ───────────────────────────────────────────────────── */
.terminal {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.9;
    color: var(--dim);
    overflow-x: auto;
}

.terminal .t-cmd {
    color: var(--white);
}

.terminal .t-ok {
    color: var(--green);
}

.terminal .t-pri {
    color: var(--primary-l);
}

.terminal .t-sec {
    color: var(--sec-l);
}

.terminal .t-warn {
    color: var(--yellow);
}

.terminal .t-muted {
    color: var(--muted);
}

.terminal .t-prompt {
    color: var(--primary-l);
}

/* ── 12. Forms ──────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.45rem;
    letter-spacing: 0.04em;
}

.form-control {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color .2s;
    appearance: none;
}

.form-control:focus {
    border-color: var(--primary-l);
    box-shadow: 0 0 0 3px rgba(41, 78, 158, 0.15);
}

.form-control::placeholder {
    color: var(--muted);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%234a6278'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.form-error {
    font-size: 0.78rem;
    color: var(--red);
    margin-top: 0.35rem;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

/* ── 13. Navigation ─────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(8, 13, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo img {
    height: 56px;
    width: auto;
}

.nav-logo-text {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.nav-logo:hover .nav-logo-text {
    color: var(--primary-l);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dim);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius);
    transition: all .2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dim);
    border-radius: 2px;
    transition: all .3s;
}

.nav-mobile {
    display: none;
    position: fixed;
    inset: 64px 0 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem 2rem;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 190;
    overflow-y: auto;
}

.nav-mobile.open {
    display: flex;
}

.nav-mobile a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--light);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    display: block;
}

.nav-mobile a:hover {
    color: var(--primary-l);
    border-bottom-color: var(--primary-l);
}

.nav-mobile .nav-mobile-cta {
    margin-top: 1.25rem;
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 0.875rem;
    border-radius: var(--radius);
    font-weight: 600;
    border-bottom: none;
}

.nav-mobile .nav-mobile-cta:hover {
    background: var(--primary-l);
    color: #fff;
}

/* ── 14. Footer ─────────────────────────────────────────────────────── */
.footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 4.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--dim);
    margin-top: 1rem;
    max-width: 280px;
    line-height: 1.75;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.footer-brand-logo img {
    height: 28px;
    width: auto;
}

.footer-brand-logo span {
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dim);
    font-size: 0.85rem;
    transition: all .2s;
}

.footer-social a:hover {
    border-color: var(--primary-l);
    color: var(--primary-l);
    background: rgba(41, 78, 158, 0.1);
}

.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    font-family: var(--mono);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-col ul a {
    font-size: 0.875rem;
    color: var(--dim);
}

.footer-col ul a:hover {
    color: var(--primary-l);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--muted);
    font-family: var(--mono);
}

/* ── 15. CTA Section ────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, rgba(41, 78, 158, 0.12) 0%, rgba(143, 40, 141, 0.12) 100%);
    border-top: 1px solid rgba(41, 78, 158, 0.2);
    border-bottom: 1px solid rgba(143, 40, 141, 0.2);
}

/* ── 16. Page Hero (shared inner pages) ─────────────────────────────── */
.page-hero {
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(41, 78, 158, 0.06) 0%, rgba(143, 40, 141, 0.06) 100%);
}

/* ── 17. FAQ Component (used on home, faq, pricing, how-it-works) ───── */
.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: var(--sans);
    gap: 1rem;
}

.faq-q:hover {
    color: var(--primary-l);
}

.faq-a {
    padding: 0 0 1.25rem;
    color: var(--dim);
    font-size: 0.9rem;
    line-height: 1.85;
    display: none;
}

.faq-a.open {
    display: block;
}

.faq-icon {
    color: var(--primary-l);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform .3s;
}

.faq-icon.open {
    transform: rotate(45deg);
}

/* ── 18. Filter Button (portfolio, home) ────────────────────────────── */
.filter-btn {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--dim);
    cursor: pointer;
    transition: all .2s;
    background: transparent;
    font-family: var(--sans);
    text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-l);
    color: var(--primary-l);
    background: rgba(41, 78, 158, 0.08);
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE-SPECIFIC
   ═══════════════════════════════════════════════════════════════════ */

/* ── 19. Home: Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: .65;
    }

    50% {
        opacity: 1;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-anim {
    animation: fadeUp .75s ease both;
}

.hero-anim-2 {
    animation: fadeUp .75s ease .15s both;
}

.hero-anim-3 {
    animation: fadeUp .75s ease .3s both;
}

.cursor-blink {
    animation: blink 1.1s step-end infinite;
}

.stat-pulse {
    animation: pulse 3.5s ease-in-out infinite;
}

/* ── 20. Home: Hero ─────────────────────────────────────────────────── */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 65% 55% at 70% 35%, rgba(41, 78, 158, 0.13) 0%, transparent 65%),
        radial-gradient(ellipse 45% 45% at 20% 80%, rgba(143, 40, 141, 0.09) 0%, transparent 60%);
}

/* ── 21. Home: Stats ────────────────────────────────────────────────── */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

/* ── 22. Home: Service cards ────────────────────────────────────────── */
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color .25s, transform .25s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--primary-l);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

/* ── 23. Home: Process ──────────────────────────────────────────────── */
.process-step {
    padding: 0 1.25rem;
}

.process-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* ── 24. Home: Why section ──────────────────────────────────────────── */
.why-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.why-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── 25. Home: Portfolio grid ───────────────────────────────────────── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* ── 26. Portfolio card (shared, home + listing page) ───────────────── */
.portfolio-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border-color: var(--border2);
}

/* Home overlay style (4:3 cards inside .portfolio-grid) */
.portfolio-grid .portfolio-card {
    aspect-ratio: 4/3;
}

.portfolio-grid .portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.portfolio-grid .portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(8, 13, 20, 0.9) 100%);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity .3s;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

/* Placeholder: listing page (16:10, gradient) */
.portfolio-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(41, 78, 158, 0.12) 0%, rgba(143, 40, 141, 0.12) 100%);
    font-size: 3rem;
}

/* Placeholder override: home page (fills 4:3 card) */
.portfolio-grid .portfolio-placeholder {
    aspect-ratio: unset;
    height: 100%;
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg2) 100%);
}

/* Portfolio listing page image + meta */
.portfolio-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.04);
}

.portfolio-meta {
    padding: 1.25rem;
}

/* ── 27. Home: Testimonials ─────────────────────────────────────────── */
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

/* ── 28. Services page ──────────────────────────────────────────────── */
.deliverable-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.service-tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 0.7rem;
    font-family: var(--mono);
    color: var(--dim);
    margin: 0.2rem 0.2rem 0.2rem 0;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.sub-service {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
}

/* ── 29. Pricing page ───────────────────────────────────────────────── */
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem;
    position: relative;
    transition: border-color .25s, transform .25s;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 0 0 1px rgba(41, 78, 158, 0.3), 0 20px 60px rgba(41, 78, 158, 0.15);
}

.pricing-card:hover:not(.featured) {
    border-color: var(--border2);
    transform: translateY(-2px);
}

.price-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.04em;
    line-height: 1;
}

.price-period {
    font-size: 0.85rem;
    color: var(--dim);
    font-family: var(--mono);
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--dim);
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-check {
    color: var(--green);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.feature-x {
    color: var(--muted);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.comparison-row td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    vertical-align: middle;
}

.comparison-row:last-child td {
    border-bottom: none;
}

/* ── 30. About page ─────────────────────────────────────────────────── */
.value-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color .25s;
}

.value-card:hover {
    border-color: var(--primary-l);
}

.value-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s, border-color .25s;
}

.team-card:hover {
    transform: translateY(-3px);
    border-color: var(--border2);
}

.team-avatar {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(41, 78, 158, 0.2) 0%, rgba(143, 40, 141, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-wrap: wrap;
}

/* ── 31. Contact page ───────────────────────────────────────────────── */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    transition: border-color .2s;
}

.contact-info-item:hover {
    border-color: var(--border2);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── 32. How It Works page ──────────────────────────────────────────── */
.step-num {
    font-size: 4rem;
    font-weight: 800;
    color: var(--border);
    font-family: var(--mono);
    line-height: 1;
    margin-bottom: 1rem;
}

.step-card {
    padding: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.6rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.4;
}

.timeline-dot {
    position: absolute;
    left: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── 33. Portfolio show page ────────────────────────────────────────── */
.hero-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.hero-placeholder {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, rgba(41, 78, 158, 0.15) 0%, rgba(143, 40, 141, 0.15) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.related-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s, border-color .25s;
}

.related-card:hover {
    transform: translateY(-2px);
    border-color: var(--border2);
}

.related-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.related-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(41, 78, 158, 0.1) 0%, rgba(143, 40, 141, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* ── 34. FAQ page (TOC layout) ──────────────────────────────────────── */
.faq-section-header {
    padding: 1.5rem 0 0.75rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0;
}

.faq-section-header h3 {
    font-size: 0.72rem;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-l);
    margin: 0;
}

.toc-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--dim);
    border-radius: 4px;
    transition: all .2s;
    border-left: 2px solid transparent;
}

.toc-link:hover {
    color: var(--primary-l);
    border-left-color: var(--primary-l);
    background: rgba(41, 78, 158, 0.07);
}

/* Two-column layout: sticky TOC + content */
.faq-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 4rem;
    align-items: start;
}

.faq-toc {
    position: sticky;
    top: 80px;
}

/* ── 35. Intake: Start page ─────────────────────────────────────────── */
.path-card {
    display: block;
    text-decoration: none;
    transition: all .25s;
}

.path-card:hover .path-inner {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.path-card:hover .path-arrow {
    color: var(--primary-l);
}

.path-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    height: 100%;
    transition: all .25s;
}

.path-arrow {
    color: var(--dim);
    transition: color .25s;
    font-family: var(--mono);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    display: block;
}

.guide-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.guide-row:last-child {
    border-bottom: none;
}

/* ── 36. Intake: Agent form ─────────────────────────────────────────── */
.intake-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--dim);
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.intake-input {
    display: block;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color .2s;
    border-radius: 0;
}

.intake-input:focus {
    border-color: var(--primary);
}

textarea.intake-input {
    resize: vertical;
    min-height: 100px;
}

.radio-card {
    position: relative;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card input[type="radio"]:checked+label {
    border-color: var(--primary) !important;
    background: rgba(41, 78, 158, 0.06) !important;
}

.radio-card label {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    cursor: pointer;
    margin: 0;
    transition: all .2s;
}

.radio-card label:hover {
    border-color: var(--border2);
}

.intake-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.intake-section:last-child {
    border-bottom: none;
}

.intake-error {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--red);
    margin-top: 0.3rem;
}

/* ── 37. Intake: Website form ───────────────────────────────────────── */
.intake-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.intake-eyebrow {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.intake-h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.intake-sub {
    font-size: 0.95rem;
    color: var(--dim);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.next-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    padding: 1.25rem 1.5rem;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.next-box-item strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.next-box-item span {
    font-size: 0.78rem;
    color: var(--dim);
    line-height: 1.5;
}

.form-section {
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-hd {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.section-badge {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg2);
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.section-body .s-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.section-body .s-desc {
    font-size: 0.85rem;
    color: var(--dim);
    line-height: 1.6;
}

/* Field helpers */
.fg {
    margin-bottom: 1.5rem;
}

.fr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.fl {
    display: block;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.fl .opt {
    color: var(--muted);
    text-transform: none;
    font-size: 0.66rem;
}

.fe {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--red);
    margin-top: 0.3rem;
}

/* Raw inputs inside intake wrap (no border-radius, darker bg) */
.intake-wrap input[type=text],
.intake-wrap input[type=email],
.intake-wrap input[type=tel],
.intake-wrap input[type=url],
.intake-wrap textarea,
.intake-wrap select {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    outline: none;
    border-radius: 0;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
    -webkit-appearance: none;
}

.intake-wrap input:focus,
.intake-wrap textarea:focus,
.intake-wrap select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(41, 78, 158, 0.1);
}

.intake-wrap input.err,
.intake-wrap textarea.err,
.intake-wrap select.err {
    border-color: var(--red) !important;
}

.intake-wrap select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23607a92'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.intake-wrap select option {
    background: var(--bg2);
}

.intake-wrap textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio cards (website intake) */
.rc-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.rc-group.g2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.rc-group.g3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}

.rc-group.g4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
}

.rc {
    position: relative;
}

.rc input[type=radio] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rc>label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.85rem 1rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    cursor: pointer;
    font-family: var(--sans);
    font-size: 0.875rem;
    color: var(--text);
    transition: all .15s;
}

.rc>label:hover {
    border-color: var(--border2);
    color: var(--white);
}

.rc input:checked+label {
    border-color: var(--primary);
    background: rgba(41, 78, 158, 0.07);
    color: var(--white);
}

.rc>label::before {
    content: '';
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--border2);
    border-radius: 50%;
    transition: all .15s;
}

.rc input:checked+label::before {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 3px var(--bg2);
}

.rc label.desc-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
}

.rc label.desc-card::before {
    display: none;
}

.rc label.desc-card .rct {
    font-weight: 600;
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.rc label.desc-card .rcd {
    font-size: 0.8rem;
    color: var(--dim);
    line-height: 1.4;
}

.rc input:checked+label.desc-card {
    border-left: 3px solid var(--primary);
    padding-left: calc(1.25rem - 2px);
}

/* Checkbox grid */
.ck-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.ck {
    position: relative;
}

.ck input[type=checkbox] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ck>label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.75rem 1rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    cursor: pointer;
    font-family: var(--sans);
    font-size: 0.875rem;
    color: var(--text);
    transition: all .15s;
}

.ck>label:hover {
    border-color: var(--border2);
    color: var(--white);
}

.ck input:checked+label {
    border-color: var(--primary);
    background: rgba(41, 78, 158, 0.07);
    color: var(--white);
}

.ck>label::before {
    content: '';
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--border2);
    border-radius: 2px;
    transition: all .15s;
}

.ck input:checked+label::before {
    background: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-size: 10px 8px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Review & submit */
.review-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.review-box h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.ri-lbl {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.ri-val {
    font-size: 0.85rem;
    color: var(--text);
}

.sensitive-notice {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.18);
    padding: 0.9rem 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.82rem;
    color: #fca5a5;
    line-height: 1.6;
}

.error-banner {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.875rem 1.25rem;
    margin-bottom: 2rem;
    color: #fca5a5;
    font-size: 0.875rem;
}

.submit-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--primary);
    padding: 2rem;
}

.submit-card h3 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.submit-card .sc-sub {
    font-size: 0.875rem;
    color: var(--dim);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.submit-card .sc-hint {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--muted);
    margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════
   SHARED LAYOUT CLASSES  (inline-style replacements)
   ═══════════════════════════════════════════════════════════════════ */

/* ── 38. Two-column grid variations ─────────────────────────────────── */
/* gap-center  : hero, contact teaser */
.col-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* gap-top     : service sections (5rem), general start-align */
.col-2-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

/* gap-md-top  : how-it-works steps, about story, portfolio-show header content */
.col-2-md {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* gap-sm      : about mission/vision cards, pricing project section */
.col-2-sm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* sidebar     : portfolio show (content + 380px meta panel) */
.col-sidebar {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: start;
}

/* contact teaser mini-cards */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* process row: 4 equal columns, connector line behind */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.process-line {
    position: absolute;
    top: 1.1rem;
    left: calc(2.5% + 10px);
    right: calc(19.5% + 10px);
    height: 1px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.35;
}

/* ── 39. Flex layout helpers ─────────────────────────────────────────── */
.flex-col-sm {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.flex-col-md {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.pos-rel {
    position: relative;
}

.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

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

/* ── 40. Spacing utilities (beyond mb-4/mt-4) ───────────────────────── */
.mt-5 {
    margin-top: 2.5rem;
}

.mt-6 {
    margin-top: 3rem;
}

.mb-5 {
    margin-bottom: 2.5rem;
}

.mb-6 {
    margin-bottom: 3rem;
}

/* ── 41. Section layout helpers ─────────────────────────────────────── */
/* intro text block (max-width + bottom margin) */
.sec-intro {
    max-width: 580px;
    margin-bottom: 3.5rem;
}

.sec-intro-lg {
    max-width: 640px;
    margin-bottom: 3.5rem;
}

/* centered section heading block */
.sec-center {
    text-align: center;
    margin-bottom: 3.5rem;
}

/* section row: title left + action button right */
.sec-hdr {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

/* filter buttons row */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

/* phase indicator list (how-it-works hero) */
.phase-list {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.phase-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot-sm {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-l);
    flex-shrink: 0;
}

/* how-it-works steps container */
.steps-wrap {
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
}

/* hero section (home) */
.hero-section {
    padding: 7rem 0 5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

/* stats bar (home, between hero and services) */
.stats-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
}

/* ── 42. Typography helpers ──────────────────────────────────────────── */
.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
}

.stat-lbl {
    font-size: 0.78rem;
    color: var(--dim);
    margin-top: 0.25rem;
    font-family: var(--mono);
}

.item-title {
    font-weight: 600;
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.item-desc {
    font-size: 0.85rem;
    color: var(--dim);
    line-height: 1.7;
}

.meta-lbl {
    font-size: 0.72rem;
    color: var(--muted);
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.3rem;
}

.meta-val {
    font-weight: 600;
    color: var(--white);
    font-size: 0.9rem;
}

.quote-mark {
    font-size: 1.5rem;
    color: var(--primary-l);
    line-height: 1;
    margin-bottom: 1rem;
}

.quote-attr {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--dim);
}

.dot-pri {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-l);
    flex-shrink: 0;
    margin-top: 0.42rem;
}

.note-text {
    font-size: 0.72rem;
    color: var(--muted);
    font-family: var(--mono);
    margin-top: 1.5rem;
}

/* ── 43. Card variants ───────────────────────────────────────────────── */
/* compact card (1.25rem padding) */
.card-sm {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

/* left-accent note box */
.card-note {
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary-l);
    border-radius: var(--radius);
}

/* icon + text row on surface */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* ── 44. About page cards ────────────────────────────────────────────── */
.mission-card {
    padding: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius);
}

.vision-card {
    padding: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--secondary);
    border-radius: var(--radius);
}

.team-info {
    padding: 1rem 1.25rem;
}

/* ── 45. Breadcrumb & portfolio-show ────────────────────────────────── */
.breadcrumb {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--muted);
    font-family: var(--mono);
}

.project-meta {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.meta-row {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.meta-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-body {
    padding: 1.1rem 1.25rem;
}

.tech-tag {
    display: inline-block;
    font-size: 0.68rem;
    padding: 0.15rem 0.5rem;
    background: rgba(41, 78, 158, 0.12);
    border: 1px solid rgba(41, 78, 158, 0.25);
    border-radius: 3px;
    color: var(--primary-l);
    font-family: var(--mono);
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.pager {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
}

/* ── 46. Contact page ────────────────────────────────────────────────── */
.contact-card {
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact-card-icon {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-card-lbl {
    font-size: 0.72rem;
    color: var(--muted);
    font-family: var(--mono);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-card-val {
    font-weight: 600;
    color: var(--white);
    font-size: 0.88rem;
    margin-bottom: 0.2rem;
}

.resp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.resp-row:last-child {
    border-bottom: none;
}

.resp-time {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--green);
    font-family: var(--mono);
}

/* ── 47. Pricing page ────────────────────────────────────────────────── */
.tab-toggle {
    display: inline-flex;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.35rem;
}

.tab-active {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    border-radius: 4px;
}

.tab-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    color: var(--dim);
    transition: color .2s;
}

.tab-link:hover {
    color: var(--white);
}

.badge-top {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
}

.price-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
}

.price-row:last-child {
    border-bottom: none;
}

.price-tag {
    font-weight: 700;
    color: var(--primary-l);
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── 48. How It Works page ───────────────────────────────────────────── */
.proposal-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.proposal-row:last-child {
    border-bottom: none;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tablet landscape ≤ 1024px ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 3;
    }

    .pricing-card.featured {
        transform: none;
    }

    /* Sidebar layout: collapse to 1-col earlier due to narrow panel */
    .col-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ── Tablet portrait ≤ 900px ────────────────────────────────────────── */
@media (max-width: 900px) {

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

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

    /* Two-column layouts → single column */
    .col-2,
    .col-2-top,
    .col-2-md,
    .col-2-sm {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Process: 2×2 grid, hide connector line */
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-line {
        display: none;
    }

    /* Steps: reduce gap */
    .steps-wrap {
        gap: 3rem;
    }

    /* FAQ page: TOC collapses into horizontal pill row */
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faq-toc {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
    }

    .faq-toc>p {
        display: none;
    }

    .toc-link {
        border: 1px solid var(--border);
        border-left: 2px solid transparent;
        border-radius: var(--radius);
        padding: 0.35rem 0.85rem;
    }

    /* How It Works: narrower timeline gutter */
    .timeline {
        padding-left: 2rem;
    }

    /* Section header: allow wrap */
    .sec-hdr {
        align-items: flex-start;
    }
}

/* ── Large mobile ≤ 768px ───────────────────────────────────────────── */
@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Nav: collapse to hamburger */
    .nav-links,
    .nav-actions .btn-primary {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* Page hero */
    .page-hero {
        padding: 3rem 0 2.5rem;
    }

    /* Home: portrait portfolio grid */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Process steps: reduce gutter */
    .process-step {
        padding: 0 0.5rem;
    }

    /* Why items: stack icon above text */
    .why-item {
        flex-direction: column;
    }

    /* Pricing: un-scale featured card */
    .pricing-card.featured {
        transform: none;
        box-shadow: 0 0 0 1px rgba(41, 78, 158, 0.3);
    }

    /* Step cards */
    .step-num {
        font-size: 2.5rem;
    }

    .step-card {
        padding: 1.75rem;
    }

    /* Portfolio show: smaller hero */
    .hero-placeholder {
        height: 200px;
        font-size: 3rem;
    }
}

/* ── Mobile ≤ 640px ─────────────────────────────────────────────────── */
@media (max-width: 640px) {

    .container,
    .container-sm,
    .container-xs {
        padding: 0 1.25rem;
    }

    /* Grids: single column */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Two-col layouts: single column, tighter gap */
    .col-2,
    .col-2-top,
    .col-2-md,
    .col-2-sm {
        gap: 2rem;
    }

    .col-2-sm {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Section header: stack vertically */
    .sec-hdr {
        flex-direction: column;
        align-items: flex-start;
    }

    /* About: compact mission/vision cards */
    .mission-card,
    .vision-card {
        padding: 1.75rem;
    }

    /* Empty state: less padding */
    .empty-state {
        padding: 4rem 1.25rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    /* Pricing */
    .price-num {
        font-size: 2.2rem;
    }

    /* CTA buttons: stack and stretch */
    .cta-section .flex {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-section .btn {
        justify-content: center;
    }

    /* Testimonial */
    .testimonial-card {
        padding: 1.25rem;
    }

    /* Terminal */
    .terminal {
        font-size: 0.76rem;
        padding: 1.25rem;
    }

    /* Intake: website form */
    .intake-wrap {
        padding: 2.5rem 1.25rem 4rem;
    }

    .intake-h1 {
        font-size: 1.7rem;
    }

    .fr,
    .ck-grid,
    .rc-group.g2,
    .rc-group.g3,
    .rc-group.g4 {
        grid-template-columns: 1fr;
    }

    .next-box,
    .review-grid {
        grid-template-columns: 1fr;
    }

    /* Nav */
    .nav-inner {
        padding: 0 1.25rem;
    }

    .nav-logo img {
        height: 44px;
    }

    /* Hero */
    .hero-section {
        padding: 4rem 0 3rem;
    }
}

/* ── Small mobile ≤ 480px ───────────────────────────────────────────── */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}