/* ================================================
   BASE-2 | Main Stylesheet
   Dark/Light Mode with Teal Accent
   ================================================ */

/* ------------------------------------------------
   Loading Screen
   ------------------------------------------------ */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary, #0a0a0a);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-logo {
    position: relative;
    width: 80px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo-img {
    width: 60px;
    height: auto;
    filter: var(--logo-filter, invert(1));
    position: relative;
    z-index: 2;
}

.loader-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, var(--accent, #14b8a6) 0%, transparent 70%);
    opacity: 0.15;
    animation: pulse-glow 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(0.9);
    }

    50% {
        opacity: 0.25;
        transform: scale(1.1);
    }
}

/* Orbiting dots */
.loader-orbit {
    position: absolute;
    inset: -15px;
    animation: orbit-spin 2s linear infinite;
}

@keyframes orbit-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.orbit-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--accent, #14b8a6);
}

.orbit-dot--1 {
    width: 8px;
    height: 8px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--accent, #14b8a6), 0 0 20px var(--accent, #14b8a6);
}

.orbit-dot--2 {
    width: 6px;
    height: 6px;
    top: 15%;
    left: 85%;
    opacity: 0.7;
    box-shadow: 0 0 8px var(--accent, #14b8a6);
}

.orbit-dot--3 {
    width: 4px;
    height: 4px;
    top: 30%;
    left: 95%;
    opacity: 0.5;
    box-shadow: 0 0 6px var(--accent, #14b8a6);
}

.orbit-dot--4 {
    width: 3px;
    height: 3px;
    top: 45%;
    left: 98%;
    opacity: 0.3;
    box-shadow: 0 0 4px var(--accent, #14b8a6);
}

.loader-progress {
    width: 120px;
    height: 2px;
    background: var(--border-color, #2a2a2a);
    border-radius: 1px;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent, #14b8a6);
    border-radius: 1px;
    transition: width 0.1s ease;
    box-shadow: 0 0 8px var(--accent, #14b8a6);
}

.loader-text {
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    color: var(--accent, #14b8a6);
    letter-spacing: 0.2em;
    opacity: 0.7;
}

.loader-binary {
    display: inline-block;
}

/* ------------------------------------------------
   CSS Custom Properties (Theme Variables)
   ------------------------------------------------ */
:root {
    /* Teal Accent */
    --accent: #14b8a6;
    --accent-hover: #0d9488;
    --accent-light: #5eead4;
    --accent-dark: #0f766e;

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

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

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Layout */
    --nav-height: 70px;
    --container-max: 1200px;
    --container-narrow: 600px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* Dark Theme (Default) */
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1f1f1f;
    --bg-card: #181818;

    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #525252;

    --border-color: #2a2a2a;
    --border-hover: #404040;

    --logo-filter: invert(1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);

    /* Text shadow for better visibility */
    --text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    --accent-text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 10px rgba(20, 184, 166, 0.3);

    /* Grid background */
    --grid-color: rgba(255, 255, 255, 0.03);
    --node-color: rgba(20, 184, 166, 0.08);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f0f0f0;
    --bg-secondary: #e8e8e8;
    --bg-tertiary: #dedede;
    --bg-card: #f5f5f5;

    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #8a8a8a;

    --border-color: #d0d0d0;
    --border-hover: #b8b8b8;

    --logo-filter: invert(0);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.12);

    /* Text shadow for better visibility */
    --text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    --accent-text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 8px rgba(20, 184, 166, 0.2);

    /* Grid background */
    --grid-color: rgba(0, 0, 0, 0.04);
    --node-color: rgba(20, 184, 166, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
    position: relative;
}

/* Grid Background with Nodes */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        /* Grid lines */
        linear-gradient(to right, var(--grid-color, rgba(255, 255, 255, 0.03)) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color, rgba(255, 255, 255, 0.03)) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
}

/* Node dots at grid intersections */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--node-color, rgba(20, 184, 166, 0.08)) 2px, transparent 2px);
    background-size: 60px 60px;
    background-position: center center;
}

/* Dark theme grid colors */
[data-theme="dark"] {
    --grid-color: rgba(255, 255, 255, 0.03);
    --node-color: rgba(20, 184, 166, 0.08);
}

/* Light theme grid colors */
[data-theme="light"] {
    --grid-color: rgba(0, 0, 0, 0.04);
    --node-color: rgba(20, 184, 166, 0.12);
}

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

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

ul,
ol {
    list-style: none;
}

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

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

/* ------------------------------------------------
   Typography
   ------------------------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--text-secondary);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-primary);
}

/* ------------------------------------------------
   Layout
   ------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* ------------------------------------------------
   Navigation
   ------------------------------------------------ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.nav-container {
    max-width: var(--container-max);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-img {
    width: 40px;
    height: auto;
    filter: var(--logo-filter);
    transition: filter var(--transition-slow);
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    transition: color var(--transition-slow), text-shadow var(--transition-slow);
}

/* Dark mode nav logo hover glow */
[data-theme="dark"] .nav-logo:hover .logo-img {
    filter: invert(1) drop-shadow(0 0 4px #5eead4) drop-shadow(0 0 8px #14b8a6);
}

[data-theme="dark"] .nav-logo:hover .logo-text {
    color: #5eead4;
    text-shadow: 0 0 6px #14b8a6, 0 0 12px #14b8a6;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

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

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.theme-icon {
    font-size: 1.25rem;
}

[data-theme="dark"] .theme-icon--moon {
    display: none;
}

[data-theme="dark"] .theme-icon--sun {
    display: block;
}

[data-theme="light"] .theme-icon--moon {
    display: block;
}

[data-theme="light"] .theme-icon--sun {
    display: none;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform var(--transition-fast);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* ------------------------------------------------
   Main Content & Pages
   ------------------------------------------------ */
.main {
    min-height: 100vh;
    padding-top: var(--nav-height);
}

.page {
    display: none;
    min-height: calc(100vh - var(--nav-height));
    padding: var(--space-2xl) 0;
    animation: fadeIn var(--transition-slow) ease;
}

.page--active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Page Headers */
.page-header {
    margin-bottom: var(--space-xl);
}

.page-header--centered {
    text-align: center;
}

.page-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent-dark);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.1em;
}

.page-title {
    position: relative;
}

.section-intro {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

/* ------------------------------------------------
   Hero Section (Home)
   ------------------------------------------------ */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    position: relative;
}

.hero-content {
    max-width: 700px;
    text-align: center;
}

.hero-binary {
    margin-bottom: var(--space-lg);
}

.binary-stream {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-dark);
    letter-spacing: 0.15em;
    opacity: 0.7;
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
}

.title-line--accent {
    color: var(--accent-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Binary Grid Animation Background */
.hero-visual {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.binary-grid {
    position: absolute;
    inset: 0;
    opacity: 0.03;
}

/* Section Divider */
.section-divider {
    display: flex;
    justify-content: center;
    padding: var(--space-xl) 0;
}

.divider-binary {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--accent-dark);
    opacity: 0.3;
}

/* ------------------------------------------------
   About Section
   ------------------------------------------------ */
.about-content {
    display: grid;
    gap: var(--space-xl);
}

.about-text {
    max-width: 700px;
}

.about-text p {
    margin-bottom: var(--space-md);
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.value-card {
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base), transform var(--transition-fast), background var(--transition-base), filter var(--transition-base);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 40%,
        rgba(20, 184, 166, 0.15) 50%,
        transparent 60%,
        transparent 100%
    );
    transition: left 0s;
    pointer-events: none;
    z-index: 1;
}

.value-card:hover::before {
    left: 100%;
    transition: left 0.6s ease;
}

.value-card:hover {
    border-color: var(--accent-light);
    transform: translateY(-2px);
    background: var(--bg-tertiary);
}

.value-binary {
    display: block;
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--accent-dark);
    margin-bottom: var(--space-sm);
}

.value-card h3 {
    margin-bottom: var(--space-xs);
}

.value-card p {
    font-size: 0.9rem;
}

/* Featured Fourth Pillar - Augmented Intelligence */
.value-card--featured {
    grid-column: 1 / -1;
    /* Span full width */
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    border: 2px solid var(--accent-dark);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.value-card--featured::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.value-card--featured:hover {
    border-color: var(--accent-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.15);
}

.value-card--featured .value-binary {
    font-size: 2.5rem;
}

.value-card--featured h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.value-card-lead {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.value-card-detail {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.value-card-list {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0;
    display: grid;
    gap: var(--space-sm);
}

.value-card-list li {
    padding-left: var(--space-md);
    position: relative;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.value-card-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-dark);
    font-weight: 700;
}

.value-card-list strong {
    color: var(--text-primary);
    font-weight: 600;
}

.value-card-emphasis {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--space-lg) 0 var(--space-md);
    text-align: center;
}

.value-card-result {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.value-card-result strong {
    color: var(--accent-dark);
    font-weight: 600;
}

.value-card-footer {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    margin-top: var(--space-lg);
}

.value-card-footer strong {
    color: var(--accent-light);
    font-weight: 700;
}

/* Responsive adjustments for featured card */
@media (max-width: 768px) {
    .value-card--featured {
        padding: var(--space-lg);
    }

    .value-card--featured h3 {
        font-size: 1.5rem;
    }

    .value-card-lead {
        font-size: 1rem;
    }

    .value-card-emphasis,
    .value-card-footer {
        font-size: 1rem;
    }
}

/* ------------------------------------------------
   Services Section
   ------------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

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

@media (min-width: 1024px) {
    .services-grid--4col {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base), box-shadow var(--transition-fast), transform var(--transition-fast), background var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 40%,
        rgba(20, 184, 166, 0.15) 50%,
        transparent 60%,
        transparent 100%
    );
    transition: left 0s;
    pointer-events: none;
    z-index: 1;
}

.service-card:hover::before {
    left: 100%;
    transition: left 0.6s ease;
}

.service-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-card--link:hover {
    transform: translateY(-4px);
}

.service-card:hover {
    border-color: var(--accent-light);
    box-shadow: var(--shadow);
    background: var(--bg-tertiary);
}

.service-link {
    display: inline-block;
    margin-top: var(--space-md);
    color: var(--accent-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.service-card:hover .service-link {
    color: var(--accent-light);
}

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

.binary-icon {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.service-card h3 {
    margin-bottom: var(--space-sm);
}

.service-card>p {
    margin-bottom: var(--space-md);
}

.service-list {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-md);
}

.service-list li {
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    padding-left: var(--space-md);
}

.service-list li::before {
    content: '1';
    position: absolute;
    left: 0;
    font-family: var(--font-mono);
    color: var(--accent-dark);
    font-size: 0.75rem;
}

/* ------------------------------------------------
   Portfolio Section
   ------------------------------------------------ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
    cursor: pointer;
}

.portfolio-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.portfolio-preview {
    aspect-ratio: 16/10;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.binary-placeholder {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.portfolio-info {
    padding: var(--space-md);
}

.portfolio-info h3 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.portfolio-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.portfolio-links {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ------------------------------------------------
   Contact Section
   ------------------------------------------------ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact-info .lead {
    margin-bottom: var(--space-md);
}

.contact-info>p {
    margin-bottom: var(--space-lg);
}

.contact-methods {
    margin-top: var(--space-xl);
}

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

.method-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.contact-method a {
    color: var(--accent-dark);
    font-weight: 500;
}

.contact-method a:hover {
    color: var(--accent-light);
}

/* ------------------------------------------------
   Forms
   ------------------------------------------------ */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.form-link {
    color: var(--accent-dark);
}

.form-link:hover {
    color: var(--accent-light);
}

/* ------------------------------------------------
   Buttons
   ------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

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

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

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

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

.btn--full {
    width: 100%;
}

.btn-binary {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ------------------------------------------------
   Login Section
   ------------------------------------------------ */
.login-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.login-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.login-footer {
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--accent-dark);
    font-weight: 500;
}

/* ------------------------------------------------
   Footer
   ------------------------------------------------ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-xl) 0;
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer-logo {
    width: 32px;
    height: auto;
    filter: var(--logo-filter);
    transition: filter var(--transition-base);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-nav {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-nav a:hover {
    color: var(--accent-dark);
}

.footer-legal {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-binary {
    font-family: var(--font-mono);
    margin-top: var(--space-xs);
    letter-spacing: 0.15em;
    opacity: 0.5;
}

/* ------------------------------------------------
   Responsive Design
   ------------------------------------------------ */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .theme-toggle {
        position: fixed;
        bottom: var(--space-lg);
        right: var(--space-lg);
        background: var(--bg-secondary);
        box-shadow: var(--shadow);
        z-index: 1001;
    }

    .hero {
        padding: var(--space-lg);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }

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

/* ------------------------------------------------
   Utility Classes
   ------------------------------------------------ */
.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;
}

/* ================================================
   SERVICE PAGES - Multi-Page Styles
   ================================================ */

/* ------------------------------------------------
   Breadcrumbs
   ------------------------------------------------ */
.breadcrumbs {
    padding: var(--space-md) 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    margin-top: 70px;
    /* Account for fixed nav */
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--accent-dark);
}

.breadcrumb-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ------------------------------------------------
   Page Hero (Service Pages)
   ------------------------------------------------ */
.page-hero {
    padding: var(--space-2xl) 0 var(--space-xl);
    background: var(--bg-primary);
}

.page-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.7;
}

/* ------------------------------------------------
   Services Overview Page
   ------------------------------------------------ */
.services-overview {
    padding: var(--space-xl) 0;
}

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

.service-card--large h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.service-list {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0;
}

.service-list li {
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1rem;
}

.service-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-dark);
}

/* ------------------------------------------------
   Category Page Styles
   ------------------------------------------------ */
.category-services {
    padding: var(--space-xl) 0;
}

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

@media (min-width: 640px) {
    .services-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid--3col {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Category Navigation Section */
.category-nav-section {
    padding: var(--space-xl) 0;
    background: var(--bg-secondary);
}

.category-nav-wrapper h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.category-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.category-nav-link:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.nav-binary {
    font-family: var(--font-mono);
    color: var(--accent-dark);
    font-size: 0.875rem;
}

/* ------------------------------------------------
   Individual Service Page Layout
   ------------------------------------------------ */
.service-hero {
    padding: var(--space-2xl) 0 var(--space-xl);
    background: var(--bg-primary);
}

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

.service-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0;
}

.service-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

.service-content {
    padding: var(--space-xl) 0;
}

.service-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

@media (min-width: 1024px) {
    .service-layout {
        grid-template-columns: 1fr 320px;
    }
}

/* Service Main Content */
.service-main {
    max-width: 100%;
}

.service-section {
    margin-bottom: var(--space-2xl);
}

.service-section h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.service-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.feature-binary {
    font-family: var(--font-mono);
    color: var(--accent-dark);
    font-size: 0.875rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.feature-item h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.feature-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.process-step {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-dark);
    flex-shrink: 0;
    width: 50px;
}

.step-content h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.step-content p {
    margin: 0;
    font-size: 0.95rem;
}

/* FAQ Styles */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item summary {
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--accent-dark);
    transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 var(--space-lg) var(--space-lg);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item a {
    color: var(--accent-dark);
}

/* ------------------------------------------------
   Service Sidebar
   ------------------------------------------------ */
.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

@media (min-width: 1024px) {
    .service-sidebar {
        position: sticky;
        top: 90px;
        align-self: start;
    }
}

.sidebar-card {
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

/* Pricing Card */
.pricing-card {
    border-color: var(--accent);
}

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

.price-from {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.price-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* Sidebar Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.sidebar-nav a {
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.sidebar-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.sidebar-nav a.active {
    color: var(--accent-dark);
    background: var(--bg-tertiary);
    font-weight: 500;
}

/* ------------------------------------------------
   CTA Section
   ------------------------------------------------ */
.cta-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-secondary);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* ------------------------------------------------
   Button Full Width Variant
   ------------------------------------------------ */
.btn--full {
    width: 100%;
    justify-content: center;
}

/* ------------------------------------------------
   Contact Hero & Process Section
   ------------------------------------------------ */
.contact-hero {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.contact-hero-lead {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.contact-hero-text {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    line-height: 1.7;
}

.process-overview {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.process-overview h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

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

.process-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: left;
    transition: border-color var(--transition-fast);
}

.process-card:hover {
    border-color: var(--accent-dark);
}

.process-number {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-dark);
    background: rgba(15, 118, 110, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.process-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.process-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Form Optional Label */
.form-optional {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Process Cards Responsive */
@media (max-width: 768px) {
    .process-cards {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .process-card {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0 var(--space-sm);
        align-items: start;
    }

    .process-number {
        grid-row: span 2;
        align-self: center;
    }

    .process-card h4 {
        margin-bottom: 0;
    }
}

/* ------------------------------------------------
   Knowledge Hub Section (Binary 101 Promo)
   ------------------------------------------------ */
.knowledge-hub {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-2xl) 0;
    overflow: hidden;
}

.knowledge-hub__background {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
}

.knowledge-hub .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.knowledge-hub__content {
    max-width: 600px;
}

.knowledge-hub__label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.5rem 1rem;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 2rem;
    margin-bottom: var(--space-md);
}

.knowledge-hub__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.knowledge-hub__title .title-line {
    display: block;
}

.knowledge-hub__title .title-line--accent {
    color: var(--accent);
}

.knowledge-hub__lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.knowledge-hub__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.knowledge-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

.knowledge-feature:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.knowledge-feature__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.1);
    border-radius: var(--radius-sm);
}

.knowledge-feature__text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.knowledge-feature__text strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.knowledge-feature__text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.knowledge-hub__subtext {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.knowledge-hub__cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.knowledge-hub__cta .btn--large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.knowledge-hub__cta .btn-arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.knowledge-hub__cta .btn:hover .btn-arrow {
    transform: translateX(4px);
}

.knowledge-hub__cta-note {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}

/* Visual Side */
.knowledge-hub__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.transistor-visualization {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.transistor-chip {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary, #1a1a1a));
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.chip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.chip-bit {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all 0.5s ease;
    animation: bit-pulse 3s ease-in-out infinite;
}

.chip-bit--on {
    background: linear-gradient(145deg, rgba(20, 184, 166, 0.2), rgba(20, 184, 166, 0.1));
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.3);
}

.chip-bit--off {
    background: var(--bg-primary);
    color: var(--text-tertiary);
    border: 1px solid var(--border-secondary);
}

.chip-bit:nth-child(1) { animation-delay: 0s; }
.chip-bit:nth-child(2) { animation-delay: 0.3s; }
.chip-bit:nth-child(3) { animation-delay: 0.6s; }
.chip-bit:nth-child(4) { animation-delay: 0.9s; }
.chip-bit:nth-child(5) { animation-delay: 1.2s; }
.chip-bit:nth-child(6) { animation-delay: 1.5s; }
.chip-bit:nth-child(7) { animation-delay: 1.8s; }
.chip-bit:nth-child(8) { animation-delay: 2.1s; }
.chip-bit:nth-child(9) { animation-delay: 2.4s; }

@keyframes bit-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.chip-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .knowledge-hub .container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .knowledge-hub__content {
        max-width: 100%;
        text-align: center;
    }

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

    .knowledge-hub__subtext {
        text-align: left;
    }

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

    .knowledge-hub__visual {
        order: -1;
    }

    .transistor-chip {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .knowledge-hub__features {
        grid-template-columns: 1fr;
    }

    .knowledge-hub__title {
        font-size: 2rem;
    }

    .chip-bit {
        font-size: 1.5rem;
    }
}

/* ------------------------------------------------
   Dual Hero Section (Combined Learn + Build)
   ------------------------------------------------ */
.dual-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg);
    overflow: hidden;
}

.dual-hero__background {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
}

.dual-hero__header {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

.dual-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.dual-hero__title .title-line {
    display: block;
}

.dual-hero__title .title-line--accent {
    color: var(--accent);
}

.dual-hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Split Panel Layout */
.dual-hero__split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-lg);
    align-items: stretch;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Individual Panels */
.dual-hero__panel {
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-primary);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dual-hero__panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 30%,
        rgba(20, 184, 166, 0.12) 45%,
        rgba(94, 234, 212, 0.2) 50%,
        rgba(20, 184, 166, 0.12) 55%,
        transparent 70%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 10;
}

.dual-hero__panel:hover::after {
    animation: shimmer-sweep 0.8s ease forwards;
}

@keyframes shimmer-sweep {
    0% {
        left: -150%;
    }
    100% {
        left: 100%;
    }
}

.dual-hero__panel:hover {
    border-color: var(--accent-light);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    filter: brightness(1.05);
}

.dual-hero__panel--learn {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(20, 184, 166, 0.05) 100%);
}

.dual-hero__panel--build {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, var(--bg-secondary) 100%);
}

.panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.panel-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    background: rgba(20, 184, 166, 0.15);
    border-radius: 2rem;
    margin-bottom: var(--space-md);
    width: fit-content;
}

.panel-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.panel-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

/* Panel Features */
.panel-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.panel-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-primary);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.panel-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 40%,
        rgba(20, 184, 166, 0.2) 50%,
        transparent 60%,
        transparent 100%
    );
    transition: left 0s;
    pointer-events: none;
    z-index: 1;
}

.panel-feature:hover::before {
    left: 100%;
    transition: left 0.5s ease;
}

.panel-feature:hover {
    border-color: var(--accent-light);
    background: rgba(20, 184, 166, 0.12);
}

.panel-feature__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.panel-note {
    display: block;
    margin-top: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Panel Visual Elements */
.panel-visual {
    position: absolute;
    bottom: 0;
    right: 0;
    opacity: 0.1;
    pointer-events: none;
}

.chip-grid--small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1rem;
}

.chip-grid--small .chip-bit {
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
}

.binary-stream-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    padding: 1rem;
    text-align: right;
}

/* Center Divider */
.dual-hero__divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0 var(--space-sm);
}

.divider-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    min-height: 60px;
}

.divider-icon {
    font-size: 1.5rem;
    color: var(--accent);
    background: var(--bg-primary);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

/* Footer Tagline */
.dual-hero__footer {
    text-align: center;
    margin-top: var(--space-xl);
    position: relative;
    z-index: 1;
}

.dual-hero__tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.dual-hero__tagline strong {
    color: var(--accent);
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .dual-hero__split {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .dual-hero__divider {
        flex-direction: row;
        padding: var(--space-sm) 0;
    }

    .divider-line {
        width: auto;
        height: 2px;
        flex: 1;
        min-height: unset;
        background: linear-gradient(to right, transparent, var(--accent), transparent);
    }

    .dual-hero__panel {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Responsive: Mobile */
@media (max-width: 640px) {
    .dual-hero {
        padding: var(--space-lg) var(--space-md);
    }

    .dual-hero__title {
        font-size: 1.75rem;
    }

    .dual-hero__subtitle {
        font-size: 1rem;
    }

    .dual-hero__panel {
        padding: var(--space-md);
    }

    .panel-title {
        font-size: 1.3rem;
    }

    .panel-features {
        grid-template-columns: 1fr;
    }

    .panel-feature {
        font-size: 0.8rem;
    }

    .dual-hero__divider {
        display: none;
    }
}

/* ================================================
   SCROLL ANIMATIONS
   Crafty reveal effects triggered on scroll
   ================================================ */

/* Base animation states - elements start hidden */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Fade up with slight scale */
.reveal-scale {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.7s ease-out,
                transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Slide in from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s ease-out,
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Slide in from right */
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s ease-out,
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered children animation */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out,
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.6s; }

.reveal-stagger.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Binary flip animation */
.reveal-binary {
    opacity: 0;
    transform: rotateX(90deg);
    transform-origin: center bottom;
    transition: opacity 0.5s ease-out,
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-binary.revealed {
    opacity: 1;
    transform: rotateX(0);
}

/* Glow pulse on reveal */
.reveal-glow {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out,
                transform 0.6s ease-out,
                box-shadow 0.8s ease-out;
}

.reveal-glow.revealed {
    opacity: 1;
    transform: translateY(0);
    animation: glow-pulse 2s ease-in-out 0.6s;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(20, 184, 166, 0);
    }
    50% {
        box-shadow: 0 0 40px rgba(20, 184, 166, 0.3),
                    0 0 80px rgba(20, 184, 166, 0.1);
    }
}

/* Typewriter effect for text */
.reveal-type {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reveal-type.revealed {
    opacity: 1;
}

.reveal-type.revealed .type-text {
    animation: typewriter 2s steps(40) forwards,
               blink-caret 0.75s step-end infinite;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent);
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent); }
}

/* Counter animation placeholder class */
.counter-animate {
    transition: all 0.3s ease;
}

/* ------------------------------------------------
   Foundation Section (The Approach)
   Direct, action-oriented brand section
   ------------------------------------------------ */
.foundation {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg,
        var(--bg-primary) 0%,
        var(--bg-secondary) 50%,
        var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.foundation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}

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

.foundation__label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.foundation__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.foundation__subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Pillars Grid */
.foundation__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.pillar {
    position: relative;
    padding: var(--space-xl) var(--space-lg);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar:hover::before {
    opacity: 1;
}

.pillar:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
                0 0 60px rgba(20, 184, 166, 0.1);
}

.pillar__binary {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: var(--space-sm);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pillar:hover .pillar__binary {
    opacity: 0.6;
    transform: scale(1.1);
}

.pillar__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
}

.pillar__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.pillar__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Bottom statement */
.foundation__statement {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(20, 184, 166, 0.05);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: var(--radius-lg);
    position: relative;
}

.foundation__statement::before,
.foundation__statement::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent);
    opacity: 0.2;
}

.foundation__statement::before {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.foundation__statement::after {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

.foundation__quote {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.foundation__quote span {
    color: var(--accent);
}

.foundation__attribution {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
    .foundation__pillars {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .pillar {
        padding: var(--space-lg);
    }
}

/* ------------------------------------------------
   Long Page Flow Styles
   Sections visible on scroll
   ------------------------------------------------ */
body.long-page .page,
body.long-page section.page,
body.long-page [data-page] {
    display: block !important;
    min-height: auto;
    padding: var(--space-2xl) 0;
}

body.long-page .page:first-child,
body.long-page #home {
    min-height: calc(100vh - var(--nav-height));
}

/* Ensure foundation section is always visible */
body.long-page .foundation,
body.long-page #foundation {
    display: block !important;
}

/* Section separators */
.section-separator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl) 0;
    position: relative;
}

.section-separator::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent,
        var(--border-color) 20%,
        var(--border-color) 80%,
        transparent);
}

.separator-icon {
    background: var(--bg-primary);
    padding: var(--space-sm);
    position: relative;
    z-index: 1;
}

.separator-binary {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    letter-spacing: 0.1em;
}

/* Floating binary particles */
.binary-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.binary-particle {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0;
    animation: float-up 8s linear infinite;
}

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg);
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) rotate(360deg);
    }
}

/* Parallax background elements */
.parallax-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.parallax-element {
    position: absolute;
    font-family: var(--font-mono);
    color: var(--accent);
    opacity: 0.03;
    font-size: 4rem;
    font-weight: 700;
    transition: transform 0.1s ease-out;
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    z-index: 999;
    transition: width 0.1s ease-out;
}

/* Section nav dots */
.section-nav {
    position: fixed;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.section-nav__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.section-nav__dot::before {
    content: attr(data-label);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.section-nav__dot:hover::before {
    opacity: 1;
}

.section-nav__dot:hover,
.section-nav__dot.active {
    background: var(--accent);
    border-color: var(--accent-light);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
}

@media (max-width: 768px) {
    .section-nav {
        display: none;
    }
}