/* =====================================================
   SELF-HOSTED FONTS
   ===================================================== */
@font-face {
    font-family: 'Libre Baskerville';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/libre-baskerville-v24-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Libre Baskerville';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/libre-baskerville-v24-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Libre Baskerville';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/libre-baskerville-v24-latin-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-v12-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-v12-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-v12-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
}

/* =====================================================
   LENIS SMOOTH SCROLL
   ===================================================== */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* =====================================================
   CSS CUSTOM PROPERTIES & RESET
   ===================================================== */
:root {
    /* Brand Colors */
    --color-primary: #F6642E;
    --color-primary-dark: #d94d1a;
    --color-primary-glow: rgba(246, 100, 46, 0.25);
    --color-primary-subtle: rgba(246, 100, 46, 0.08);

    /* Neutrals */
    --color-black: #0a0a0a;
    --color-dark: #1a1a1a;
    --color-gray-900: #2a2a2a;
    --color-gray-700: #4a4a4a;
    --color-gray-500: #6a6a6a;
    --color-gray-300: #a0a0a0;
    --color-gray-100: #e8e8e8;
    --color-white: #ffffff;
    --color-off-white: #fafafa;

    /* Typography */
    --font-heading: 'Libre Baskerville', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-code: 'Courier New', Consolas, 'Liberation Mono', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

    /* Container */
    --container-max: 1400px;
    --container-padding: var(--space-md);

    /* Code Editor Colors */
    --color-comment: #7ec87e;
    --color-tag: #ff7b45;
    --color-attr: #7dd3fc;
    --color-value: #e8a87c;
    --color-property: #e8e8e8;
    --color-punctuation: #a0a0a0;
    --color-keyword: #7db8e8;
    --color-line-number: #858585;
    --color-editor-bg: #0a0a0a;
}

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

html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--color-editor-bg);
    color: var(--color-white);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* =====================================================
   CODE EDITOR - SHARED ACT STYLES
   ===================================================== */
.act {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--color-editor-bg);
}

.act__inner {
    width: 90%;
    max-width: 760px;
    font-family: var(--font-code);
    font-size: clamp(0.8rem, 1.6vw, 1.05rem);
    line-height: 1.8;
}

/* =====================================================
   CODE EDITOR - CURSOR
   ===================================================== */
.code-line .cursor {
    display: inline-block;
    width: 0.6em;
    height: 1.2em;
    background: var(--color-white);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* =====================================================
   CODE EDITOR - LINE STYLES
   ===================================================== */
.code-line {
    display: block;
    white-space: pre;
    clip-path: inset(0 100% 0 0);
}

.line-num {
    display: inline-block;
    width: 3.5ch;
    text-align: right;
    color: var(--color-line-number);
    margin-right: 2ch;
    user-select: none;
    pointer-events: none;
}

/* Syntax highlighting */
.syn-comment { color: var(--color-comment); }
.syn-tag { color: var(--color-tag); }
.syn-attr { color: var(--color-attr); }
.syn-value { color: var(--color-value); }
.syn-prop { color: var(--color-property); }
.syn-punc { color: var(--color-punctuation); }
.syn-keyword { color: var(--color-keyword); }

/* =====================================================
   UNIFIED CODE SECTION
   ===================================================== */
.act--code {
    position: relative;
}

.act__group {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 760px;
    font-family: var(--font-code);
    font-size: clamp(0.8rem, 1.6vw, 1.05rem);
    line-height: 1.8;
    box-sizing: border-box;
    overflow: hidden;
}

#group-idea .code-line {
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
}

.voila {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
    opacity: 0;
    white-space: nowrap;
}

.voila--split {
    opacity: 1;
}

.voila--wordmark {
    width: clamp(300px, 30vw, 400px);
    height: auto;
}

/* Left panel shows only H, K, Y (hide the Os) */
#splitLeft .wordmark-o {
    display: none;
}

/* Right panel shows only the Os (hide H, K, Y) */
#splitRight .wordmark-letter {
    display: none;
}

/* =====================================================
   PHASE 4 - THE TRANSFORMATION (Split Reveal)
   ===================================================== */
.act--transform {
    background: var(--color-editor-bg);
    z-index: 10;
}

.transform-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transform-layer--code-left,
.transform-layer--code-right {
    z-index: 3;
    background: var(--color-editor-bg);
    overflow: hidden;
}

.transform-layer--code-left {
    clip-path: inset(0 50% 0 0);
}

.transform-layer--code-right {
    clip-path: inset(0 0 0 50%);
}

.transform-layer--rendered {
    z-index: 2;
    opacity: 0;
    background: var(--color-white);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.nav--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav--scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav--menu-open {
    background: var(--color-white);
}

.nav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-black);
    z-index: 1001;
}

.nav__logo-wordmark {
    height: 28px;
    width: auto;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav__links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-gray-700);
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s var(--ease-out-expo);
}

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

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    padding: 0.75rem 1.5rem;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out-expo);
}

.nav__cta:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.nav__signin {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--color-black);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    border: 1.5px solid var(--color-gray-300);
    transition: all 0.3s var(--ease-out-expo);
}

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

.nav__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav__mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-black);
    transition: all 0.3s ease;
    display: block;
}

@media (max-width: 768px) {
    .nav {
        overflow: visible;
    }

    .nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
        background: var(--color-white);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
        padding: var(--space-md) var(--space-md) var(--space-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }

    .nav__menu--open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav__menu .nav__links {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
        width: 100%;
    }

    .nav__menu .nav__link {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--color-black);
        padding: 0.5rem 0;
    }

    .nav__menu .nav__cta {
        font-size: 1rem;
        padding: 0.875rem 2rem;
        width: 100%;
        text-align: center;
    }

    .nav__menu .nav__signin {
        font-size: 1rem;
        padding: 0.875rem 2rem;
        width: 100%;
        text-align: center;
    }

    .nav__mobile-toggle {
        display: flex;
    }

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

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

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

/* =====================================================
   HERO SECTION (rendered version)
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: var(--space-xl) var(--space-md);
    overflow: hidden;
    background: var(--color-white);
}

.hero__background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 20%, var(--color-primary-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, var(--color-primary-subtle) 0%, transparent 40%);
}

.hero__background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.hero__eyebrow::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--color-primary);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    max-width: 14ch;
    color: var(--color-black);
}

.hero__title-accent {
    color: var(--color-primary);
}

/* Text fill effect */
.text-fill-wrapper {
    position: relative;
    display: inline-block;
}

.text-fill-outline {
    -webkit-text-stroke: 1.5px var(--color-black);
    color: transparent;
}

.text-fill-solid {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--color-black);
    clip-path: inset(-10% 100% -10% 0);
    will-change: clip-path;
}

.text-fill-solid--accent {
    color: var(--color-primary);
}

.text-fill-outline--accent {
    -webkit-text-stroke-color: var(--color-primary);
}

/* Returning visitors / after intro: text already filled */
html.intro-seen .text-fill-solid,
.text-fill-solid--revealed {
    clip-path: inset(-10% 0% -10% 0);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-gray-500);
    max-width: 45ch;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--color-black);
    color: var(--color-white);
}

.btn--primary:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px var(--color-primary-glow);
}

.btn--secondary {
    background: transparent;
    color: var(--color-black);
    border: 1.5px solid var(--color-gray-300);
}

.btn--secondary:hover {
    border-color: var(--color-black);
    transform: translateY(-3px);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

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

/* =====================================================
   SERVICES INTRO SECTION
   ===================================================== */
.services-intro {
    padding: var(--space-2xl) var(--space-md);
    background: var(--color-off-white);
}

.services-intro__content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.services-intro__text {
    opacity: 0;
    transform: translateY(40px);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-md);
}

.section-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

.services-intro__heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-black);
}

.services-intro__desc {
    font-size: 1.125rem;
    color: var(--color-gray-500);
    line-height: 1.8;
}

.services-intro__visual {
    position: relative;
    opacity: 0;
    transform: translateY(40px);
}

.services-intro__image {
    width: 100%;
    height: 400px;
    background: var(--color-white);
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.dashboard-mockup {
    width: 90%;
    height: 85%;
    background: var(--color-white);
    border-radius: 12px;
    border: 1px solid var(--color-gray-100);
    overflow: hidden;
    display: flex;
}

.dashboard-mockup__sidebar {
    width: 60px;
    background: var(--color-off-white);
    border-right: 1px solid var(--color-gray-100);
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.dashboard-mockup__logo {
    width: 32px;
    height: 32px;
    margin-bottom: var(--space-sm);
}

.dashboard-mockup__nav-item {
    width: 32px;
    height: 32px;
    background: var(--color-gray-100);
    border-radius: 8px;
}

.dashboard-mockup__nav-item--active {
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary);
}

.dashboard-mockup__content {
    flex: 1;
    padding: var(--space-md);
}

.dashboard-mockup__header {
    height: 20px;
    width: 60%;
    background: var(--color-gray-100);
    border-radius: 4px;
    margin-bottom: var(--space-md);
}

.dashboard-mockup__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.dashboard-mockup__card {
    height: 100px;
    background: var(--color-off-white);
    border-radius: 12px;
    border: 1px solid var(--color-gray-100);
    padding: var(--space-sm);
}

.dashboard-mockup__card-icon {
    width: 32px;
    height: 32px;
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    margin-bottom: var(--space-xs);
}

.dashboard-mockup__card-line {
    height: 10px;
    background: var(--color-gray-100);
    border-radius: 4px;
    margin-bottom: 6px;
}

.dashboard-mockup__card-line:last-child {
    width: 70%;
}

@media (max-width: 900px) {
    .services-intro__content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .services-intro__image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .services-intro {
        padding: var(--space-xl) var(--space-md);
    }
}

/* =====================================================
   SERVICES GRID (simplified from horizontal scroll)
   ===================================================== */
.services-grid-section {
    background: var(--color-black);
    padding: var(--space-2xl) var(--space-md);
}

.services-grid-section__content {
    max-width: var(--container-max);
    margin: 0 auto;
}

.services-grid-section__header {
    margin-bottom: var(--space-xl);
}

.services-grid-section__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.services-grid-section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-white);
    margin-top: var(--space-xs);
    opacity: 0;
    transform: translateY(30px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.service-card {
    background: var(--color-dark);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}

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

.service-card__media {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.service-card__media-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            var(--color-primary) 0%,
            var(--color-primary-dark) 100%);
}

.service-card:nth-child(2) .service-card__media-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.service-card:nth-child(3) .service-card__media-bg {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}

.service-card__number {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
}

.service-card__icon {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-white);
}

.service-card__content {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.service-card__desc {
    color: var(--color-gray-300);
    font-size: 0.9375rem;
    line-height: 1.7;
    flex: 1;
}

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card__tag {
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-gray-300);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 100px;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   WORKBASE SECTION
   ===================================================== */
.workbase-section {
    padding: var(--space-lg) var(--space-md) var(--space-2xl);
    position: relative;
    overflow: hidden;
    background: var(--color-white);
}

.workbase-section__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 50%, var(--color-primary-subtle) 0%, transparent 50%);
}

.workbase-section__content {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.workbase-section__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.workbase-section__logo {
    width: 100%;
    max-width: 420px;
    margin: 0 auto var(--space-lg);
    opacity: 0;
    transform: translateY(40px);
}

.workbase-section__logo img {
    width: 100%;
    height: auto;
    display: block;
}

.workbase-section__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--color-black);
    opacity: 0;
    transform: translateY(50px);
}

.workbase-section__title span {
    color: var(--color-primary);
}

.workbase-section__subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-500);
    max-width: 60ch;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
}

.workbase-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.workbase-feature {
    background: var(--color-off-white);
    border-radius: 20px;
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}

.workbase-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.workbase-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out-expo);
}

.workbase-feature:hover::before {
    transform: scaleX(1);
}

.workbase-feature__icon {
    width: 56px;
    height: 56px;
    background: var(--color-white);
    border: 1px solid var(--color-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.workbase-feature__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
}

.workbase-feature__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--color-black);
}

.workbase-feature__desc {
    color: var(--color-gray-500);
    font-size: 0.9375rem;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .workbase-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .workbase-section {
        padding: var(--space-xl) var(--space-md);
    }
}

/* =====================================================
   EXISTING WEBSITE INTEGRATION SECTION
   ===================================================== */
.existing-integration {
    padding: var(--space-2xl) var(--space-md) var(--space-lg);
    background: var(--color-white);
    overflow: hidden;
}

.existing-integration__content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.existing-integration__text {
    opacity: 0;
    transform: translateY(40px);
}

.existing-integration__heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-black);
    line-height: 1.2;
}

.existing-integration__desc {
    font-size: 1.125rem;
    color: var(--color-gray-700);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.existing-integration__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.existing-integration__feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-black);
    font-weight: 500;
}

.existing-integration__feature svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
    stroke-width: 2.5;
    flex-shrink: 0;
}

.existing-integration__visual {
    opacity: 0;
    transform: translateY(40px);
}

.existing-integration__graphic {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.existing-integration__graphic svg {
    width: 100%;
    height: auto;
}

@media (max-width: 968px) {
    .existing-integration__content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .existing-integration__graphic {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .existing-integration {
        padding: var(--space-xl) var(--space-md);
    }

    .existing-integration__desc {
        font-size: 1rem;
    }
}

/* =====================================================
   INDUSTRIES SECTION
   ===================================================== */
.industries {
    padding: var(--space-2xl) 0;
    background: var(--color-off-white);
    overflow: hidden;
}

.industries__content {
    max-width: 100%;
}

.industries__header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: 0 var(--space-md);
}

.industries__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-black);
    opacity: 0;
    transform: translateY(40px);
}

.industries__scroll-row {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    will-change: transform;
}

.industries__scroll-row:last-of-type {
    margin-bottom: 0;
}

.industries__scroll-track {
    display: flex;
    gap: var(--space-md);
    flex-shrink: 0;
}

.industry-item {
    background: var(--color-white);
    border-radius: 16px;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s var(--ease-out-expo);
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.industry-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.industry-item__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.industry-item__text {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-black);
}

@media (max-width: 768px) {
    .industries {
        padding: var(--space-xl) 0;
    }

    .industries__scroll-row {
        gap: var(--space-sm);
        margin-bottom: var(--space-sm);
    }

    .industries__scroll-track {
        gap: var(--space-sm);
    }

    .industry-item {
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-sm);
    }

    .industry-item__icon {
        width: 32px;
        height: 32px;
    }

    .industry-item__text {
        font-size: 0.875rem;
    }
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    padding: var(--space-2xl) var(--space-md);
    position: relative;
    overflow: hidden;
    background: var(--color-black);
}

.cta-section__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, var(--color-primary-glow) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(246, 100, 46, 0.1) 0%, transparent 40%);
}

.cta-section__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-section__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(50px);
}

.cta-section__subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-300);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
    opacity: 0;
    transform: translateY(30px);
}

.cta-section__actions {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

.btn--white {
    background: var(--color-white);
    color: var(--color-black);
}

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

.btn--outline-white {
    background: transparent;
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

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

@media (max-width: 768px) {
    .cta-section {
        padding: var(--space-xl) var(--space-md);
    }
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--color-black);
}

.footer__content {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    margin-bottom: var(--space-md);
}

.footer__logo-hokoyo {
    height: 36px;
    width: auto;
}

.footer__brand-desc {
    color: var(--color-gray-500);
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer__powered-by {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.footer__powered-label {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer__powered-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.footer__column-title {
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    font-size: 0.9375rem;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    color: var(--color-gray-500);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--color-primary);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__copyright {
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

.footer__socials {
    display: flex;
    gap: var(--space-sm);
}

.footer__social {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-300);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer__social:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.footer__social svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 900px) {
    .footer__top {
        grid-template-columns: 1fr 1fr;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .footer__top {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   UTILITY
   ===================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =====================================================
   INTRO STATE (auto-playing intro)
   ===================================================== */
body.intro-playing {
    overflow: hidden;
}

body.intro-playing #phase-code,
body.intro-playing #phase-transform {
    position: fixed;
    inset: 0;
    height: 100vh;
}

body.intro-playing #phase-code {
    z-index: 101;
}

body.intro-playing #phase-transform {
    z-index: 100;
}

/* =====================================================
   RETURNING VISITOR OVERRIDES (no-flash)
   ===================================================== */
html.intro-seen body {
    background: var(--color-white);
}

html.intro-seen #phase-code {
    display: none;
}

html.intro-seen .transform-layer--code-left,
html.intro-seen .transform-layer--code-right {
    display: none;
}

html.intro-seen .transform-layer--rendered {
    opacity: 1;
}

html.intro-seen .nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* =====================================================
   SKIP INTRO BUTTON
   ===================================================== */
.skip-intro-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-family: var(--font-body);
    cursor: pointer;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: background 0.3s ease, border-color 0.3s ease;
    display: none;
}

.skip-intro-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* =====================================================
   PLAY INTRO BUTTON
   ===================================================== */
.play-intro-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-black);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-family: var(--font-body);
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s ease, opacity 0.4s ease;
    display: none;
}

.play-intro-btn:hover {
    background: var(--color-primary);
}

.play-intro-btn--hidden {
    opacity: 0;
    pointer-events: none;
}

/* =====================================================
   RESPONSIVE - CODE EDITOR SECTIONS
   ===================================================== */
@media (max-width: 768px) {
    .act__inner,
    .act__group {
        font-size: clamp(0.65rem, 3vw, 0.875rem);
        width: 95%;
        padding: 0 1rem;
    }

    #group-idea .code-line {
        font-size: clamp(0.65rem, 2.8vw, 0.9rem);
    }
}

@media (max-width: 480px) {
    .act__inner,
    .act__group {
        font-size: clamp(0.55rem, 2.8vw, 0.75rem);
        width: 100%;
        padding: 0 0.75rem;
    }

    #group-idea .code-line {
        font-size: clamp(0.55rem, 2.5vw, 0.8rem);
    }

    .line-num {
        width: 2.5ch;
        margin-right: 1ch;
    }
}
