/* ============================================================
   CEREBRATE — Main Stylesheet
   Modern, clean, performance-focused design
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Colors */
    --c-bg:         #09090b;
    --c-bg-alt:     #111113;
    --c-surface:    #18181b;
    --c-surface-2:  #1e1e22;
    --c-border:     #27272a;
    --c-border-2:   #3f3f46;
    --c-text:       #fafafa;
    --c-text-muted: #a1a1aa;
    --c-text-dim:   #71717a;
    --c-primary:    #2a9d9b;
    --c-primary-light: #3dbdba;
    --c-primary-dark:  #1f7d7b;
    --c-accent:     #06b6d4;
    --c-accent-2:   #2a9d9b;
    --c-success:    #22c55e;
    --c-gradient-1: linear-gradient(135deg, #1f7d7b 0%, #2a9d9b 50%, #3dbdba 100%);
    --c-gradient-2: linear-gradient(135deg, #1f7d7b 0%, #3dbdba 100%);
    --c-gradient-text: linear-gradient(135deg, #3dbdba 0%, #06b6d4 50%, #5ed4d2 100%);

    /* Typography */
    --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --f-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --s-xs:  0.25rem;
    --s-sm:  0.5rem;
    --s-md:  1rem;
    --s-lg:  1.5rem;
    --s-xl:  2rem;
    --s-2xl: 3rem;
    --s-3xl: 4rem;
    --s-4xl: 6rem;

    /* Layout */
    --max-width: 1200px;
    --header-h: 72px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 150ms;
    --t-normal: 300ms;
    --t-slow: 500ms;

    /* Radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--c-primary);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast) var(--ease-out);
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}

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

/* ---------- Utilities ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--s-lg);
}

.section {
    padding: var(--s-4xl) 0;
}

/* ---------- Section-Lock Navigation ---------- */
main > section,
main > .hero {
    display: none;
}

main > section.page--active,
main > .hero.page--active {
    display: block;
    animation: pageIn var(--t-normal) var(--ease-out);
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.section__tag {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-primary-light);
    margin-bottom: var(--s-md);
    padding: var(--s-xs) var(--s-md);
    border: 1px solid rgba(42, 157, 155, 0.3);
    border-radius: var(--r-full);
    background: rgba(42, 157, 155, 0.08);
}

.section__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: var(--s-lg);
}

.section__title em {
    font-style: normal;
    background: var(--c-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section__header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto var(--s-3xl);
}

.section__desc {
    font-size: 1.125rem;
    color: var(--c-text-muted);
    line-height: 1.7;
}

/* ---------- Header / Navigation ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-normal) var(--ease-out),
                background var(--t-normal) var(--ease-out);
}

.header--scrolled {
    border-bottom-color: var(--c-border);
    background: rgba(9, 9, 11, 0.95);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.nav__logo-icon {
    height: 48px;
    width: auto;
    filter: invert(1) hue-rotate(180deg);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--s-xl);
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text-muted);
    transition: color var(--t-fast) var(--ease-out);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-primary);
    transition: width var(--t-normal) var(--ease-out);
    border-radius: 1px;
}

.nav__link:hover {
    color: var(--c-text);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__link--active {
    color: var(--c-text);
}

.nav__link--cta {
    color: var(--c-primary-light);
    padding: var(--s-sm) var(--s-lg);
    border: 1px solid rgba(42, 157, 155, 0.4);
    border-radius: var(--r-full);
    transition: all var(--t-fast) var(--ease-out);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover,
.nav__link--cta.nav__link--active {
    background: var(--c-primary);
    color: white;
    border-color: var(--c-primary);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: all var(--t-normal) var(--ease-out);
    transform-origin: center;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s-sm);
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--r-md);
    transition: all var(--t-normal) var(--ease-out);
    white-space: nowrap;
}

.btn--primary {
    background: var(--c-primary);
    color: white;
    box-shadow: 0 0 0 0 rgba(42, 157, 155, 0.4);
}

.btn--primary:hover {
    background: var(--c-primary-dark);
    box-shadow: 0 8px 30px rgba(42, 157, 155, 0.3);
    transform: translateY(-2px);
}

.btn--primary svg {
    transition: transform var(--t-normal) var(--ease-out);
}

.btn--primary:hover svg {
    transform: translateX(4px);
}

.btn--ghost {
    color: var(--c-text-muted);
    border: 1px solid var(--c-border-2);
    background: transparent;
}

.btn--ghost:hover {
    color: var(--c-text);
    border-color: var(--c-text-dim);
    background: var(--c-surface);
}

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

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(42, 157, 155, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 157, 155, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.hero__orb--1 {
    width: 500px;
    height: 500px;
    background: var(--c-primary);
    top: -10%;
    right: -5%;
    opacity: 0.15;
}

.hero__orb--2 {
    width: 400px;
    height: 400px;
    background: var(--c-accent);
    bottom: -5%;
    left: -5%;
    opacity: 0.1;
    animation-delay: -7s;
}

.hero__orb--3 {
    width: 300px;
    height: 300px;
    background: var(--c-accent-2);
    top: 40%;
    left: 50%;
    opacity: 0.08;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -30px) scale(1.05); }
    66%      { transform: translate(-20px, 20px) scale(0.95); }
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--s-3xl) 0;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-sm);
    font-family: var(--f-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--c-text-muted);
    padding: var(--s-xs) var(--s-md);
    border: 1px solid var(--c-border);
    border-radius: var(--r-full);
    margin-bottom: var(--s-xl);
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-success);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

.hero__title {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: var(--s-xl);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero__title-gradient {
    background: var(--c-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--c-text-muted);
    max-width: 560px;
    margin-bottom: var(--s-2xl);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero__actions {
    display: flex;
    gap: var(--s-md);
    margin-bottom: var(--s-3xl);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero__stats {
    display: flex;
    gap: var(--s-3xl);
    padding-top: var(--s-2xl);
    border-top: 1px solid var(--c-border);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 1s forwards;
}

.hero__stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--c-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__stat-suffix {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--c-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--c-text-dim);
    margin-top: var(--s-xs);
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-sm);
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--c-primary), transparent);
    animation: scrollLine 2s var(--ease-out) infinite;
}

@keyframes scrollLine {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
    50.1%{ transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- About Section ---------- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3xl);
    align-items: start;
}

.about__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--c-text-muted);
    margin-bottom: var(--s-lg);
}

.about__text strong {
    color: var(--c-text);
    font-weight: 600;
}

.about__values {
    display: flex;
    flex-direction: column;
    gap: var(--s-lg);
}

.value-card {
    padding: var(--s-xl);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    transition: all var(--t-normal) var(--ease-out);
}

.value-card:hover {
    border-color: var(--c-border-2);
    transform: translateX(8px);
}

.value-card__header {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    margin-bottom: var(--s-sm);
}

.value-card__icon {
    width: 32px;
    height: 32px;
    color: var(--c-primary-light);
    flex-shrink: 0;
}

.value-card__title {
    font-size: 1.1rem;
    font-weight: 700;
}

.value-card__text {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    line-height: 1.6;
}

/* ---------- Services Section ---------- */
.services {
    background: var(--c-bg-alt);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-lg);
}

.service-card {
    position: relative;
    padding: var(--s-2xl);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    transition: all var(--t-slow) var(--ease-out);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--c-gradient-1);
    opacity: 0;
    transition: opacity var(--t-normal) var(--ease-out);
}

.service-card:hover {
    border-color: var(--c-border-2);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}


.service-card__icon {
    width: 48px;
    height: 48px;
    color: var(--c-primary-light);
    margin-bottom: var(--s-lg);
}

.service-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--s-md);
}

.service-card__text {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    line-height: 1.7;
    margin-bottom: var(--s-lg);
}

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-sm);
}

.service-card__tags li {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--c-text-dim);
    padding: 3px 10px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-full);
    background: var(--c-bg);
}

/* ---------- Service Card Link ---------- */
.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-primary-light);
    margin-top: var(--s-md);
    transition: color var(--t-fast) var(--ease-out);
}
.service-card__link:hover { color: var(--c-text); }
.service-card__link svg { transition: transform var(--t-fast) var(--ease-out); }
.service-card__link:hover svg { transform: translateX(4px); }

/* ---------- Service Detail Pages ---------- */
.service-detail { background: var(--c-bg); }

.service-detail__back {
    display: inline-flex;
    align-items: center;
    gap: var(--s-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text-muted);
    margin-bottom: var(--s-2xl);
    transition: color var(--t-fast) var(--ease-out);
}
.service-detail__back:hover { color: var(--c-primary-light); }
.service-detail__back svg { transition: transform var(--t-fast) var(--ease-out); }
.service-detail__back:hover svg { transform: translateX(-4px); }

.service-detail__hero {
    display: flex;
    align-items: flex-start;
    gap: var(--s-xl);
    margin-bottom: var(--s-3xl);
    padding-bottom: var(--s-2xl);
    border-bottom: 1px solid var(--c-border);
}

.service-detail__icon {
    width: 72px;
    height: 72px;
    color: var(--c-primary-light);
    flex-shrink: 0;
    padding: var(--s-md);
    background: rgba(42, 157, 155, 0.08);
    border: 1px solid rgba(42, 157, 155, 0.2);
    border-radius: var(--r-lg);
}

.service-detail__header { flex: 1; }

.service-detail__description {
    max-width: 800px;
    margin-bottom: var(--s-3xl);
}
.service-detail__description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--c-text-muted);
    margin-bottom: var(--s-lg);
}
.service-detail__description p:last-child { margin-bottom: 0; }

.service-detail__section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--s-xl);
    color: var(--c-text);
}

.service-detail__features { margin-bottom: var(--s-xl); }

.service-detail__features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-lg);
}

.service-detail__feature-card {
    padding: var(--s-xl);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    transition: all var(--t-normal) var(--ease-out);
}
.service-detail__feature-card:hover {
    border-color: var(--c-border-2);
    transform: translateY(-2px);
}

.service-detail__feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--s-sm);
    color: var(--c-text);
}

.service-detail__feature-text {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    line-height: 1.7;
}

.service-detail__use-cases { margin-bottom: var(--s-xl); }

.service-detail__use-cases-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-md);
}
.service-detail__use-cases-list li {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    font-size: 0.95rem;
    color: var(--c-text-muted);
}
.service-detail__use-cases-list svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--c-primary-light);
}

.service-detail__tech { margin-bottom: var(--s-xl); }

.service-detail__tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-sm);
}
.service-detail__tech-tag {
    font-family: var(--f-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--c-primary-light);
    padding: var(--s-sm) var(--s-lg);
    border: 1px solid rgba(42, 157, 155, 0.3);
    border-radius: var(--r-full);
    background: rgba(42, 157, 155, 0.08);
}

.service-detail__principles {
    margin-top: var(--s-xl);
    margin-bottom: var(--s-xl);
}
.service-detail__principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-xl);
}
.service-detail__principle {
    position: relative;
    padding: var(--s-xl);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    transition: border-color 0.3s ease;
}
.service-detail__principle:hover {
    border-color: var(--c-primary-light);
}
.service-detail__principle-number {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(42, 157, 155, 0.2);
    line-height: 1;
    margin-bottom: var(--s-sm);
}
.service-detail__principle-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--s-sm);
}
.service-detail__principle-text {
    font-size: 0.92rem;
    color: var(--c-text-muted);
    line-height: 1.7;
}

.service-detail__cta {
    text-align: center;
    padding: var(--s-3xl);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
}
.service-detail__cta-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--s-sm);
}
.service-detail__cta-text {
    font-size: 1rem;
    color: var(--c-text-muted);
    margin-bottom: var(--s-xl);
}

@media (max-width: 768px) {
    .service-detail__hero {
        flex-direction: column;
        gap: var(--s-lg);
    }
    .service-detail__features-grid { grid-template-columns: 1fr; }
    .service-detail__use-cases-list { grid-template-columns: 1fr; }
    .service-detail__principles-grid { grid-template-columns: 1fr; }
}

/* ---------- Work / Portfolio Section ---------- */
.work__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-lg);
}

.work-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all var(--t-slow) var(--ease-out);
}

.work-card:hover {
    border-color: var(--c-border-2);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.work-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.work-card__image {
    background: #0f0f11;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

.work-card__placeholder {
    width: 100%;
    color: var(--c-text-dim);
    opacity: 0.85;
    transition: opacity var(--t-normal) var(--ease-out), transform var(--t-normal) var(--ease-out);
}

.work-card__placeholder svg {
    display: block;
    width: 100%;
    height: auto;
}

.work-card:hover .work-card__placeholder {
    opacity: 1;
    transform: scale(1.02);
}

.work-card__placeholder--healthcare { color: var(--c-accent); }
.work-card__placeholder--ecommerce { color: var(--c-accent-2); }
.work-card__placeholder--fintech { color: var(--c-success); }
.work-card__placeholder--saas { color: var(--c-primary-light); }
.work-card__placeholder--ai { color: #8b5cf6; }

.work-card__content {
    padding: var(--s-2xl);
}

.work-card__category {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--c-primary-light);
    margin-bottom: var(--s-md);
    display: block;
}

.work-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--s-md);
    line-height: 1.3;
}

.work-card__text {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    line-height: 1.7;
    margin-bottom: var(--s-lg);
}

.work-card__tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-sm);
}

.work-card__tech span {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--c-text-dim);
    padding: 3px 10px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-full);
    background: var(--c-bg);
}

/* ---------- Process Section ---------- */
.process {
    background: var(--c-bg-alt);
}

.process__timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.process__timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--c-primary), var(--c-accent), transparent);
}

.process__step {
    display: flex;
    gap: var(--s-xl);
    padding-bottom: var(--s-lg);
    position: relative;
}

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

.process__step-marker {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 50%;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--c-primary-light);
    z-index: 1;
    transition: all var(--t-normal) var(--ease-out);
}

.process__step:hover .process__step-marker {
    border-color: var(--c-primary);
    background: rgba(42, 157, 155, 0.1);
    box-shadow: 0 0 30px rgba(42, 157, 155, 0.2);
}

.process__step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--s-xs);
    padding-top: var(--s-sm);
}

.process__step-content p {
    font-size: 0.95rem;
    color: var(--c-text-muted);
    line-height: 1.7;
}

/* ---------- Company Strengths Section ---------- */
.strengths {
    background: var(--c-bg-alt);
}

.strengths__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-lg);
}

.strength-card {
    padding: var(--s-xl);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    transition: all var(--t-normal) var(--ease-out);
}

.strength-card:hover {
    border-color: var(--c-border-2);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.strength-card__icon {
    width: 40px;
    height: 40px;
    color: var(--c-primary-light);
    margin-bottom: var(--s-lg);
}

.strength-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--s-sm);
}

.strength-card__text {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    line-height: 1.7;
}

/* ---------- Technology Section ---------- */
.tech__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-xl);
}

.tech__category-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--s-lg);
    padding-bottom: var(--s-sm);
    border-bottom: 1px solid var(--c-border);
}

.tech__items {
    display: flex;
    flex-direction: column;
    gap: var(--s-sm);
}

.tech__item {
    padding: var(--s-md);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    transition: all var(--t-normal) var(--ease-out);
}

.tech__item:hover {
    border-color: var(--c-border-2);
    background: var(--c-surface-2);
    transform: translateX(4px);
}

.tech__item-name {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ---------- Testimonials Section ---------- */
.testimonials {
    background: var(--c-bg-alt);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-lg);
}

.testimonial-card {
    padding: var(--s-xl);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    transition: all var(--t-normal) var(--ease-out);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    border-color: var(--c-border-2);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-card__quote {
    width: 28px;
    height: 28px;
    color: var(--c-primary-light);
    margin-bottom: var(--s-md);
    flex-shrink: 0;
}

.testimonial-card__text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--c-text-muted);
    margin-bottom: var(--s-lg);
    flex: 1;
}

.testimonial-card__source {
    padding-top: var(--s-md);
    border-top: 1px solid var(--c-border);
}

.testimonial-card__source span {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--c-text-dim);
}

/* ---------- Founder Section (toggled via showFounder flag) ---------- */
.founder__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3xl);
    align-items: start;
}

.founder__name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: var(--s-xs);
}

.founder__title {
    font-family: var(--f-mono);
    font-size: 0.85rem;
    color: var(--c-primary-light);
    margin-bottom: var(--s-xl);
}

.founder__text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--c-text-muted);
    margin-bottom: var(--s-xl);
}

.founder__highlights {
    display: flex;
    gap: var(--s-2xl);
    padding-top: var(--s-xl);
    border-top: 1px solid var(--c-border);
}

.founder__highlight-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--c-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.founder__highlight-label {
    font-size: 0.8rem;
    color: var(--c-text-dim);
}

.founder__career-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--s-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-dim);
}

.founder__timeline-item {
    display: flex;
    gap: var(--s-lg);
    padding: var(--s-md) 0;
    border-bottom: 1px solid var(--c-border);
}

.founder__timeline-item:last-child {
    border-bottom: none;
}

.founder__timeline-period {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    color: var(--c-text-dim);
    white-space: nowrap;
    min-width: 100px;
    padding-top: 2px;
}

.founder__timeline-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.founder__timeline-info span {
    font-size: 0.8rem;
    color: var(--c-text-muted);
}

.founder__domains {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-sm);
    margin-top: var(--s-xl);
}

.founder__domain-tag {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--c-primary-light);
    padding: 4px 12px;
    border: 1px solid rgba(42, 157, 155, 0.3);
    border-radius: var(--r-full);
    background: rgba(42, 157, 155, 0.08);
}

/* ---------- Contact Section ---------- */
.contact {
    background: var(--c-bg-alt);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3xl);
    align-items: center;
}

.contact__text {
    font-size: 1.1rem;
    color: var(--c-text-muted);
    line-height: 1.7;
    margin-bottom: var(--s-2xl);
}

.contact__reasons-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--s-lg);
    color: var(--c-text);
}

.contact__reasons {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--s-2xl);
    text-align: left;
}

.contact__reason {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    padding: var(--s-sm) 0;
    font-size: 0.95rem;
    color: var(--c-text-muted);
    line-height: 1.5;
}

.contact__reason svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--c-primary-light);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--s-md);
    padding-top: var(--s-xl);
    border-top: 1px solid var(--c-border);
}

.contact__detail {
    display: flex;
    align-items: center;
    gap: var(--s-md);
    font-size: 0.95rem;
    color: var(--c-text-muted);
    transition: color var(--t-fast) var(--ease-out);
}

.contact__detail:hover {
    color: var(--c-text);
}

.contact__detail svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--c-primary-light);
}

.contact__form-wrapper {
    padding: var(--s-2xl);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
}

.form__group {
    margin-bottom: var(--s-lg);
}

.form__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: var(--s-sm);
}

.form__input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    color: var(--c-text);
    font-size: 0.9rem;
    transition: all var(--t-fast) var(--ease-out);
    outline: none;
}

.form__input::placeholder {
    color: var(--c-text-dim);
}

.form__input:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(42, 157, 155, 0.15);
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form__select option {
    background: var(--c-surface);
    color: var(--c-text);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---------- Footer ---------- */
.footer {
    padding: var(--s-3xl) 0 0;
    border-top: 1px solid var(--c-border);
    background: var(--c-bg-alt);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: var(--s-2xl);
    padding-bottom: var(--s-3xl);
}

.footer__tagline {
    font-size: 0.9rem;
    color: var(--c-text-dim);
    line-height: 1.6;
    margin-top: var(--s-lg);
}

.footer__social {
    display: flex;
    gap: var(--s-md);
    margin-top: var(--s-lg);
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--c-border);
    color: var(--c-text-dim);
    transition: all var(--t-fast) var(--ease-out);
}

.footer__social a:hover {
    color: var(--c-primary-light);
    border-color: var(--c-primary-light);
    background: rgba(42, 157, 155, 0.1);
}

.footer__links h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text);
    margin-bottom: var(--s-lg);
}

.footer__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: var(--s-sm);
}

.footer__links a,
.footer__links span {
    font-size: 0.875rem;
    color: var(--c-text-muted);
    transition: color var(--t-fast) var(--ease-out);
}

.footer__links a:hover {
    color: var(--c-primary-light);
}

.footer__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--c-text-muted);
}

.footer__contact-link svg {
    flex-shrink: 0;
    color: var(--c-primary-light);
}

.footer__cta {
    display: inline-block;
    margin-top: var(--s-lg);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-primary-light);
    transition: color var(--t-fast) var(--ease-out);
}

.footer__cta:hover {
    color: var(--c-text);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--s-lg) 0;
    border-top: 1px solid var(--c-border);
}

.footer__bottom p {
    font-size: 0.8rem;
    color: var(--c-text-dim);
}

.footer__bottom-tagline {
    font-size: 0.8rem;
    color: var(--c-text-dim);
    letter-spacing: 0.05em;
}

/* ---------- Scroll Animations (JS-driven) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--s-2xl);
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    .section {
        padding: var(--s-3xl) 0;
    }

    /* Mobile Nav */
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--c-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right var(--t-slow) var(--ease-out);
        z-index: 1000;
    }

    .nav__menu--open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: var(--s-2xl);
        text-align: center;
    }

    .nav__link {
        font-size: 1.5rem;
    }

    .nav__link--cta {
        font-size: 1.1rem;
    }

    .nav__toggle--active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__toggle--active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle--active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero */
    .hero__content {
        padding: var(--s-2xl) 0;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__stats {
        gap: var(--s-xl);
    }

    .hero__stat-number,
    .hero__stat-suffix {
        font-size: 2rem;
    }

    /* About */
    .about__grid {
        grid-template-columns: 1fr;
    }

    /* Services */
    .services__grid {
        grid-template-columns: 1fr;
    }

    /* Work */
    .work__grid {
        grid-template-columns: 1fr;
    }

    .work-card--featured {
        grid-template-columns: 1fr;
    }

    /* Strengths */
    .strengths__grid {
        grid-template-columns: 1fr;
    }

    /* Tech */
    .tech__grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Testimonials */
    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    /* Founder */
    .founder__grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact__grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--s-2xl);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--s-md);
        text-align: center;
    }

    .hero__scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero__stats {
        flex-direction: column;
        gap: var(--s-lg);
    }

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

    .hero__title {
        font-size: 2.2rem;
    }

    .service-card {
        padding: var(--s-xl);
    }
}

/* ---------- Print Styles ---------- */
@media print {
    .header,
    .hero__bg,
    .hero__scroll,
    .nav__toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}
