/* ========================================
   CSS Variables — Light Premium Theme
   ======================================== */
:root {
    --bg-0: #f0f0f7;
    --bg-1: #ffffff;
    --bg-2: #f5f5fa;
    --bg-3: #eeeef5;
    --bg-4: #e5e5ef;

    --surface: rgba(255, 255, 255, 0.9);
    --surface-hover: rgba(229, 57, 53, 0.03);

    --red: #e53935;
    --red-bright: #ff4040;
    --red-dark: #c62828;
    --red-glow: rgba(229, 57, 53, 0.18);
    --red-subtle: rgba(229, 57, 53, 0.06);

    --border: rgba(0, 0, 0, 0.08);
    --border-red: rgba(229, 57, 53, 0.3);

    --text: #0f0f14;
    --text-muted: #5c5c74;
    --text-dim: #b0b0c4;

    --gradient-red: linear-gradient(135deg, #ff4d4d 0%, #e53935 60%, #c62828 100%);
    --gradient-text: linear-gradient(135deg, #f03030 0%, #d01818 50%, #a20e0e 100%);

    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 100px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    --max-w: 1200px;
    --section-pad: 120px;
    --gutter: 24px;
}

/* ========================================
   Dark Theme
   ======================================== */
[data-theme="dark"] {
    --bg-0: #09090e;
    --bg-1: #111118;
    --bg-2: #16161f;
    --bg-3: #1c1c28;
    --bg-4: #222230;

    --surface: rgba(17, 17, 24, 0.9);
    --surface-hover: rgba(229, 57, 53, 0.06);

    --border: rgba(255, 255, 255, 0.08);
    --border-red: rgba(229, 57, 53, 0.3);

    --text: #f0f0f7;
    --text-muted: #8888a8;
    --text-dim: #44445a;

    color-scheme: dark;
}

:root { color-scheme: light; }

/* Header glass — dark */
[data-theme="dark"] #site-header.scrolled {
    background: rgba(17, 17, 24, 0.88);
}


/* Hero grid lines — use light lines in dark mode */
[data-theme="dark"] .hero-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

/* Process nav numbers — bump contrast in dark mode */
[data-theme="dark"] .process-nav__num {
    color: rgba(255, 255, 255, 0.32);
}
[data-theme="dark"] .process-nav__item.active .process-nav__num {
    color: var(--red);
}
[data-theme="dark"] .process-nav__label {
    color: rgba(255, 255, 255, 0.28);
}
[data-theme="dark"] .process-nav__item.active .process-nav__label {
    color: var(--text);
}

/* Form inputs — border fix for dark */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] textarea {
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] input[type="text"]:hover,
[data-theme="dark"] input[type="email"]:hover,
[data-theme="dark"] textarea:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(229, 57, 53, 0.35) var(--bg-2);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: rgba(229, 57, 53, 0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(229, 57, 53, 0.6); }

::selection {
    background: rgba(229, 57, 53, 0.14);
    color: var(--text);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg-1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 0.75rem; }

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

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

/* ========================================
   Accessibility
   ======================================== */
.skip-link {
    position: absolute;
    top: -60px;
    left: 0;
    padding: 12px 24px;
    background: var(--red);
    color: #fff;
    font-weight: 600;
    z-index: 9999;
    border-radius: 0 0 var(--radius-sm) 0;
    transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

/* ========================================
   Mask Reveals
   ======================================== */

/* Overflow-clip wrapper that headings slide up from */
.mr-wrap {
    display: block;
    overflow: hidden;
}
.mr-inner {
    display: block;
    transform: translateY(106%);
    transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
    transition-delay: var(--mr-delay, 0ms);
}
.mr-inner.is-revealed { transform: translateY(0); }

/* Clip-path wipe — used on section labels and inline elements */
.mr-clip {
    clip-path: inset(0 0 110% 0);
    transition: clip-path 0.72s cubic-bezier(0.76, 0, 0.24, 1);
    transition-delay: var(--mr-delay, 0ms);
}
.mr-clip.is-revealed { clip-path: inset(0 0 -10% 0); }

/* Fade + lift — used on subtitles and CTAs */
.mr-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--mr-delay, 0ms);
}
.mr-fade.is-revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .mr-inner  { transform: none; transition: none; }
    .mr-clip   { clip-path: none; transition: none; }
    .mr-fade   { opacity: 1; transform: none; transition: none; }
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
    transition-delay: var(--delay, 0ms);
}
.reveal-up    { transform: translateY(36px) scale(0.99); }
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }

.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: none;
}

/* ========================================
   Layout Utilities
   ======================================== */
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 18px;
}
.section-label::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--red);
    border-radius: 1px;
    flex-shrink: 0;
}

.section-subtext {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 12px auto 0;
    line-height: 1.7;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--gradient-red);
    color: #fff;
}
.btn--primary:hover {
    box-shadow: 0 0 32px var(--red-glow), 0 8px 24px rgba(229, 57, 53, 0.25);
    transform: translateY(-2px);
    color: #fff;
}
.btn--primary:active { transform: translateY(0); box-shadow: none; }
.btn--primary:disabled {
    background: #d0d0dc;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn--ghost:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-subtle);
}

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

.btn:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

/* ========================================
   Header / Navigation
   ======================================== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 var(--border);
    padding: 14px 0;
}

nav {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }

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

/* Logo variants: show the right one per theme */
.logo-img--dark  { display: none; }
.logo-img--light { display: block; }
[data-theme="dark"] .logo-img--light { display: none; }
[data-theme="dark"] .logo-img--dark  { display: block; }

/* Nav right group: menu + toggle + hamburger */
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-menu a:hover { color: var(--text); background: rgba(0, 0, 0, 0.04); }

.nav-cta {
    background: var(--gradient-red) !important;
    color: #fff !important;
    padding: 9px 22px !important;
    margin-left: 8px;
    border-radius: var(--radius-sm);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast) !important;
}
.nav-cta:hover {
    box-shadow: 0 4px 20px var(--red-glow) !important;
    transform: translateY(-1px) !important;
    background: var(--gradient-red) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    z-index: 10;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

.hamburger:focus-visible { outline: 2px solid var(--red); }

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.theme-toggle:hover {
    background: var(--red-subtle);
    border-color: var(--border-red);
    color: var(--red);
}
.theme-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
/* Show moon (go-dark icon) in light mode, sun (go-light icon) in dark mode */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ========================================
   Hero Section
   ======================================== */
#home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-1);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 80%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero-orb--1 {
    width: 700px;
    height: 700px;
    top: -180px;
    right: -120px;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.18) 0%, transparent 65%);
    filter: blur(60px);
    animation: orbFloat1 14s ease-in-out infinite;
}
.hero-orb--2 {
    width: 500px;
    height: 500px;
    bottom: -80px;
    left: -80px;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.13) 0%, transparent 65%);
    filter: blur(60px);
    animation: orbFloat2 18s ease-in-out infinite;
}
.hero-orb--3 {
    width: 350px;
    height: 350px;
    top: 45%;
    left: 38%;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.09) 0%, transparent 65%);
    filter: blur(80px);
    animation: orbFloat3 22s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-30px, 45px); }
    66% { transform: translate(20px, -25px); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    40% { transform: translate(40px, -25px); }
    70% { transform: translate(-20px, 35px); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px var(--gutter) 80px;
    max-width: 860px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    background: rgba(229, 57, 53, 0.08);
    border: 1px solid rgba(229, 57, 53, 0.2);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--red-dark);
    margin-bottom: 36px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    flex-shrink: 0;
    animation: badgePulse 2.2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.75); }
}

#home h1 {
    margin-bottom: 28px;
    line-height: 1.08;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 44px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-address {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

/* ========================================
   Stats Section
   ======================================== */
#stats {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.stats-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    text-align: center;
    padding: 52px 24px;
    border-right: 1px solid var(--border);
    transition: background var(--transition-fast);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(229, 57, 53, 0.02); }

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* ========================================
   About Section
   ======================================== */
#about {
    background: var(--bg-1);
    padding: var(--section-pad) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text { display: flex; flex-direction: column; gap: 20px; }
.about-text .section-label { margin-bottom: 0; }
.about-text h2 { margin: 0; }
.about-text p { margin: 0; }
.about-text .btn { align-self: flex-start; margin-top: 8px; }

/* Typewriter (code block) */
.code-line--hidden { opacity: 0; }
.code-line--cursor::after {
    content: '▋';
    display: inline-block;
    margin-left: 2px;
    color: var(--red);
    animation: twBlink 0.7s step-end infinite;
    font-size: 0.85em;
    vertical-align: baseline;
}
@keyframes twBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Code visual — intentionally dark regardless of site theme */
.visual-card {
    background: #111118;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}
.visual-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-red);
}

.editor-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.editor-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.85;
}
.editor-filename {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.25);
    font-family: var(--font-mono);
    margin-left: 14px;
}

.visual-card__body { padding: 32px 28px 36px; }

.code-snippet {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.9;
    color: #d4d4f0;
}
.code-line { white-space: pre; }
.code-in { padding-left: 24px; }

.ck { color: #ff79c6; }
.cv { color: #bd93f9; }
.cp { color: #8be9fd; }
.cs { color: #f1fa8c; }
.cb { color: #ffb86c; }
.cn { color: #bd93f9; }
.cd { color: #55556a; }

/* ========================================
   Services Section
   ======================================== */
#services {
    background: var(--bg-2);
    padding: var(--section-pad) 0;
    border-top: 1px solid var(--border);
}

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

.service-card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: default;
}
.service-card:hover {
    border-color: var(--border-red);
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(229, 57, 53, 0.07), 0 20px 48px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.12), rgba(229, 57, 53, 0.04));
    border: 1px solid rgba(229, 57, 53, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    margin-bottom: 24px;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.2), rgba(229, 57, 53, 0.08));
    border-color: rgba(229, 57, 53, 0.38);
}

.service-card h3 { color: var(--text); margin-bottom: 12px; }
.service-card p { margin: 0; font-size: 0.95rem; }

/* ========================================
   Products Section
   ======================================== */
#products {
    background: var(--bg-1);
    padding: var(--section-pad) 0;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.product-card {
    flex: 0 0 400px;
    max-width: 100%;
}

.product-card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 44px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all var(--transition);
}
.product-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.07) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity var(--transition);
    opacity: 0;
}
.product-card:hover {
    border-color: var(--border-red);
    transform: translateY(-6px);
    box-shadow: 0 0 60px rgba(229, 57, 53, 0.08), 0 32px 64px rgba(0, 0, 0, 0.1);
}
.product-card:hover::after { opacity: 1; }

.product-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(229, 57, 53, 0.08);
    border: 1px solid rgba(229, 57, 53, 0.22);
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red-dark);
    margin-bottom: 28px;
}

.product-logo-wrap {
    margin-bottom: 28px;
}
.product-logo {
    height: 52px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.product-card h3 { color: var(--text); margin-bottom: 14px; font-size: 1.6rem; }
.product-card p { margin-bottom: 36px; font-size: 0.95rem; line-height: 1.7; }

/* ========================================
   Contact Section
   ======================================== */
#contact {
    background: var(--bg-2);
    padding: var(--section-pad) 0;
    border-top: 1px solid var(--border);
}

.contact-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 56px 52px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { margin-bottom: 20px; }
.form-group:last-of-type { margin-bottom: 28px; }

label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-1);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="text"]:hover,
input[type="email"]:hover,
textarea:hover {
    border-color: rgba(0, 0, 0, 0.22);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--red);
    background: var(--bg-1);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-dim);
    opacity: 1;
}

textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

.error-message {
    display: block;
    font-size: 0.78rem;
    color: #d32f2f;
    margin-top: 6px;
    min-height: 18px;
    line-height: 1.4;
}

.form-status {
    display: block;
    margin-top: 16px;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
    min-height: 22px;
}
.form-status.success { color: #2e7d52; }
.form-status.error   { color: #d32f2f; }
.form-status.loading { color: var(--text-muted); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

/* ========================================
   Footer  — stays dark for contrast
   ======================================== */
footer {
    background: #111118;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 80px var(--gutter) 64px;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
}

.footer-brand .logo-img {
    height: 32px;
    margin-bottom: 20px;
}
.footer-brand p {
    font-size: 0.88rem;
    color: #7878a0;
    line-height: 1.7;
    max-width: 260px;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col li,
.footer-col a {
    font-size: 0.88rem;
    color: #7878a0;
    transition: color var(--transition-fast);
    line-height: 1;
}
.footer-col a:hover { color: var(--red); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-bottom > p {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px var(--gutter);
    font-size: 0.78rem;
    color: #40405c;
}

.footer-wordmark {
    width: 100%;
    line-height: 0;
}
.footer-wordmark img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.1;
}

/* ========================================
   Responsive — Tablet (max 1023px)
   ======================================== */
@media (max-width: 1023px) {
    :root {
        --section-pad: 88px;
        --gutter: 20px;
    }

    .about-grid { gap: 52px; }
    .footer-inner { gap: 52px; }
}

/* ========================================
   Responsive — Mobile (max 767px)
   ======================================== */
@media (max-width: 767px) {
    :root {
        --section-pad: 72px;
        --gutter: 18px;
    }

    .hamburger { display: flex; }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease);
        pointer-events: none;
    }
    .nav-menu.active {
        max-height: 400px;
        opacity: 1;
        pointer-events: all;
    }
    [data-theme="dark"] .nav-menu {
        background: rgba(17, 17, 24, 0.97);
    }
    .nav-menu li { border-top: 1px solid var(--border); }
    .nav-menu a {
        padding: 16px 24px;
        border-radius: 0;
        font-size: 1rem;
    }
    .nav-cta {
        margin: 12px 18px !important;
        border-radius: var(--radius-sm) !important;
        text-align: center;
    }

    #site-header { position: fixed; }

    #home h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-ctas .btn { width: 100%; max-width: 340px; }

    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
    .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
    .stat-item { padding: 36px 16px; }

    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .reveal-left,
    .reveal-right { transform: translateY(30px) scale(0.99); }

    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 32px 28px; }

    .product-card { padding: 36px 32px; }

    .contact-card { padding: 36px 28px; }
    .form-row { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr; gap: 48px; }
    .footer-brand .logo-img { margin-bottom: 16px; }
    .footer-brand p { max-width: none; }
    .footer-links { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ========================================
   Responsive — Small (max 479px)
   ======================================== */
@media (max-width: 479px) {
    .hero-content { padding-top: 100px; }
    .contact-card { padding: 28px 20px; }
    .footer-links { grid-template-columns: 1fr; }
    .stat-item { padding: 28px 12px; }
    .stat-number { font-size: 2rem; }
}

/* ========================================
   Process Section
   ======================================== */
#process {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
}

.process-wrapper {
    height: 500vh;
    position: relative;
}

.process-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-2);
}

.process-header {
    text-align: center;
    margin-bottom: 40px;
}
.process-header .section-label { margin-bottom: 16px; }
.process-header h2 { margin: 0; }

.process-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 72px;
    align-items: start;
}

.process-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    transition: all var(--transition);
}

.process-nav__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    flex-shrink: 0;
    transition: background var(--transition), box-shadow var(--transition);
}
.process-nav__item.active .process-nav__dot {
    background: var(--red);
    box-shadow: 0 0 10px rgba(229, 57, 53, 0.5);
}

.process-nav__num {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dim);
    min-width: 24px;
    transition: color var(--transition);
}
.process-nav__item.active .process-nav__num { color: var(--red); }

.process-nav__label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color var(--transition);
    white-space: nowrap;
}
.process-nav__item.active .process-nav__label { color: var(--text); }

.process-nav__connector {
    width: 1px;
    height: 28px;
    background: var(--border);
    margin-left: calc(4px + 12px);
    transition: background var(--transition);
}
.process-nav__connector.done { background: var(--red); }

.process-panels {
    display: grid;
}

.process-panel {
    grid-area: 1 / 1;
    position: relative;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
    pointer-events: none;
    z-index: 0;
}
.process-panel.active {
    opacity: 1;
    transform: none;
    pointer-events: all;
    z-index: 1;
}

.process-panel__ghost {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 12vw, 9rem);
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.06;
    position: absolute;
    top: -16px;
    right: -8px;
    user-select: none;
    pointer-events: none;
}

.process-panel h3 {
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    color: var(--text);
    margin-bottom: 16px;
    position: relative;
}

.process-panel p {
    font-size: 1rem;
    line-height: 1.78;
    max-width: 560px;
    margin-bottom: 28px;
    position: relative;
}

.process-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}
.process-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.process-checklist li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    flex-shrink: 0;
}

.process-progress-bar {
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    margin-top: 32px;
    overflow: hidden;
}
.process-progress-fill {
    height: 100%;
    width: 25%;
    background: var(--gradient-red);
    border-radius: 1px;
    transition: width 0.08s linear;
}

@media (max-width: 767px) {
    .process-wrapper { height: auto; }
    .process-stage {
        position: static;
        height: auto;
        padding: var(--section-pad) 0;
    }
    .process-body { grid-template-columns: 1fr; gap: 40px; }
    .process-nav { flex-direction: row; flex-wrap: wrap; gap: 0 24px; }
    .process-nav__connector { display: none; }
    .process-nav__item { padding: 8px 0; }
    .process-panels { display: block; }
    .process-panel {
        grid-area: unset;
        opacity: 1;
        transform: none;
        pointer-events: all;
        z-index: auto;
        margin-bottom: 40px;
        padding-bottom: 40px;
        border-bottom: 1px solid var(--border);
    }
    .process-panel:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
    .process-panel__ghost { display: none; }
    .process-progress-bar { display: none; }
}

/* ========================================
   Tech Stack Section
   ======================================== */
#tech {
    background: var(--bg-1);
    padding: var(--section-pad) 0;
    border-top: 1px solid var(--border);
}

.tech-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tech-card {
    flex: 0 0 calc(25% - 15px);
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.tech-card:hover {
    border-color: var(--border-red);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09), 0 0 32px rgba(229, 57, 53, 0.06);
}

.tech-card__icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.1), rgba(229, 57, 53, 0.03));
    border: 1px solid rgba(229, 57, 53, 0.18);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    flex-shrink: 0;
}

.tech-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tech-card h4 {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin: 0;
}

.tech-names {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

.tech-sep {
    color: var(--text-dim);
    font-weight: 400;
}

.tech-card p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0;
    color: var(--text-muted);
}

@media (max-width: 1023px) {
    .tech-card { flex: 0 0 calc(33.333% - 14px); }
}

@media (max-width: 767px) {
    .tech-card { flex: 0 0 calc(50% - 10px); }
}

@media (max-width: 479px) {
    .tech-card { flex: 0 0 100%; }
}

/* ========================================
   Legal Pages (Privacy Policy / Terms)
   ======================================== */
.legal-hero {
    padding: calc(var(--section-pad) + 80px) 0 var(--section-pad);
    text-align: center;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
}
.legal-hero .section-label { margin-bottom: 20px; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.legal-hero p { color: var(--text-muted); font-size: 0.95rem; }

.legal-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 80px var(--gutter) 100px;
}

.legal-body h2 {
    font-size: 1.25rem;
    margin: 52px 0 14px;
    color: var(--text);
}
.legal-body h2:first-child { margin-top: 0; }

.legal-body p,
.legal-body li {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.97rem;
}
.legal-body p { margin-bottom: 16px; }

.legal-body ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}
.legal-body ul li { margin-bottom: 6px; }

.legal-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { opacity: 0.8; }

.legal-body .last-updated {
    display: inline-block;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-dim);
    width: 100%;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 40px;
    transition: color var(--transition-fast);
}
.legal-back:hover { color: var(--red); }
.legal-back svg { flex-shrink: 0; }

/* footer-bottom links */
.footer-bottom a {
    color: #40405c;
    transition: color var(--transition-fast);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ========================================
   Print
   ======================================== */
@media print {
    #site-header, footer, .btn, .hero-bg { display: none; }
    body { background: #fff; color: #000; font-size: 11pt; }
    .text-gradient { -webkit-text-fill-color: #c00; background: none; color: #c00; }
    section { padding: 24px 0; min-height: auto; }
}
