/* Dialog SEO: Dev Studio & Interactive Components Style System
   Vanilla CSS, zero bloat, high-performance GPU-accelerated effects.
   Supports full Day/Night theming with high-contrast readable typography. */

/* =============================================================
   1. Theme Variables & Core Typography
   ============================================================= */
:root {
    --dev-accent: #ff5500;
    --dev-accent-glow: rgba(255, 85, 0, 0.4);
    --dev-lime: #ff7722;
    --dev-lime-glow: rgba(255, 119, 34, 0.35);
    --dev-cyan: #ff5500;
    --dev-purple: #a855f7;
    
    /* Default Dark Mode (Deep Obsidian / Studio Aesthetic matching NovaCode Hero) */
    --dev-bg: #080b12;
    --dev-bg-elevated: #0e131f;
    --dev-card-bg: rgba(14, 19, 31, 0.88);
    --dev-card-border: rgba(255, 255, 255, 0.10);
    --dev-text-head: #ffffff;
    --dev-text-body: #e2e8f0;
    --dev-text-muted: #94a3b8;
    --dev-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --nav-bg: rgba(8, 11, 18, 0.94);
}

/* Light Theme Overrides (High-contrast, elegant typography, no white-on-white) */
html[data-theme="light"], body.light-mode {
    --dev-accent: #ff4d00;
    --dev-accent-glow: rgba(255, 77, 0, 0.25);
    --dev-lime: #ff5500;
    --dev-lime-glow: rgba(255, 77, 0, 0.20);
    --dev-cyan: #ff4d00;
    --dev-purple: #e64500;

    --dev-bg: #ede7e0;
    --dev-bg-elevated: #e4ddd4;
    --dev-card-bg: #f5efe8;
    --dev-card-border: rgba(18, 19, 22, 0.12);
    --dev-text-head: #121316;
    --dev-text-body: #4b5563;
    --dev-text-muted: #6b7280;
    --dev-shadow: 0 16px 32px -10px rgba(18, 19, 22, 0.08);
    --nav-bg: rgba(237, 231, 224, 0.96);
}

/* Core Base Styles */
html, body {
    overflow-x: clip !important;
    max-width: 100% !important;
}

body, body.on-ink {
    font-family: var(--font-body, "Golos Text", system-ui, -apple-system, sans-serif);
    background-color: var(--dev-bg) !important;
    background-image: none !important;
    color: var(--dev-text-body) !important;
    margin: 0;
    padding-top: 68px; /* Offset for fixed navigation */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[data-theme="light"] body,
html[data-theme="light"] body.on-ink {
    background-color: #ede7e0 !important;
    background-image: none !important;
    color: #4b5563 !important;
}

h1, h2, h3, h4, .h1, .h2, .h3, .portfolio-title {
    font-family: var(--font-display, "Unbounded", "Golos Text", system-ui, sans-serif);
    color: var(--dev-text-head) !important;
}

html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3,
:root:not([data-theme="light"]) h1, :root:not([data-theme="light"]) h2, :root:not([data-theme="light"]) h3 {
    color: #ffffff !important;
}

html[data-theme="light"] h1, html[data-theme="light"] h2, html[data-theme="light"] h3 {
    color: #121316 !important;
}

/* Prevent sticky header from clipping section headers on anchor scroll */
#services, #portfolio, #anatomy, #calculator, #process, #reviews, #dev-order {
    scroll-margin-top: 100px;
}

/* =============================================================
   2. Navigation Header (Fixed Bar with Backdrop Blur)
   ============================================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--dev-card-border);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav .brand__name {
    color: var(--dev-text-head);
    font-family: var(--font-display, sans-serif);
    font-weight: 800;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav__links a {
    color: var(--dev-text-body) !important;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav__links {
    gap: clamp(8px, 1.1vw, 16px) !important;
    font-size: 0.84rem !important;
}

.nav__links a:hover {
    color: var(--dev-accent) !important;
}

.nav .wrap {
    gap: clamp(6px, 1vw, 12px) !important;
}

@media (min-width: 1200px) and (max-width: 1400px) {
    .nav__links {
        gap: 6px !important;
    }
    .nav__links a {
        padding: 4px 5px !important;
        font-size: 0.77rem !important;
    }
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 5px !important;
    flex-shrink: 0 !important;
}

.nav__actions .btn {
    min-height: 29px !important;
    height: 29px !important;
    padding: 0 8px !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    white-space: nowrap !important;
    letter-spacing: -0.01em !important;
    align-items: center !important;
    justify-content: center !important;
}

.nav__actions .btn:not(.hide-m) {
    display: inline-flex !important;
}

.nav__actions .btn.hide-m {
    display: inline-flex;
}

@media (max-width: 680px) {
    .nav__actions .btn.hide-m {
        display: none !important;
    }
}

.nav__actions .btn .icon {
    width: 12px !important;
    height: 12px !important;
}

.nav__actions .theme-toggle-ref {
    transform: scale(0.66) !important;
    transform-origin: center center !important;
    margin: 0 -6px !important;
    flex-shrink: 0 !important;
}

@media (max-width: 960px) {
    .nav__links {
        display: none;
    }
}

@media (max-width: 680px) {
    .nav__actions {
        gap: 4px !important;
    }
    .nav__actions a[href*="t.me"] {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .nav__actions {
        gap: 4px !important;
    }
    .nav__actions a[href="/cabinet"] {
        display: none !important;
    }
    .nav__actions a[href="#dev-order"] {
        padding: 0 10px !important;
        font-size: 0.72rem !important;
    }
    .nav__actions a[href="#dev-order"] span {
        display: none !important;
    }
    .nav__actions a[href="#dev-order"]::after {
        content: "Смета";
        font-weight: 700;
        letter-spacing: -0.01em;
    }
}

/* =============================================================
   3. Theme Toggle (Strict Reference: ThemeToggle.tsx)
   ============================================================= */
@keyframes theme-toggle-twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.theme-toggle-ref {
    position: relative;
    width: 64px;
    height: 32px;
    border-radius: 9999px;
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    outline: none;
    flex-shrink: 0;
    background: #0ea5e9;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.3s ease;
}

.theme-toggle-ref:focus-visible {
    box-shadow: 0 0 0 2px var(--dev-accent), 0 0 0 4px var(--dev-bg);
}

.tt-sky-day {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7dd3fc, #0ea5e9);
    transition: opacity 0.45s ease;
    opacity: 1;
}

.tt-sky-night {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0b1026, #312e81);
    transition: opacity 0.45s ease;
    opacity: 0;
}

html[data-theme="dark"] .tt-sky-day { opacity: 0; }
html[data-theme="dark"] .tt-sky-night { opacity: 1; }

.tt-track-shadow {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

/* Clouds in day mode */
.tt-cloud {
    position: absolute;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease;
}

.tt-cloud-1 {
    left: 40px;
    top: 17px;
    width: 24px;
    height: 13px;
}

.tt-cloud-2 {
    left: 49px;
    top: 9px;
    width: 17px;
    height: 10px;
}

html[data-theme="dark"] .tt-cloud {
    transform: translateX(25px);
    opacity: 0;
}

/* Stars in night mode */
.tt-star {
    position: absolute;
    width: 6px;
    height: 6px;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    transform: scale(0) rotate(-90deg);
    opacity: 0;
}

.tt-star path {
    animation: theme-toggle-twinkle 2.4s ease-in-out infinite;
}

.tt-star-1 { left: 8px; top: 10px; width: 7px; height: 7px; }
.tt-star-2 { left: 19px; top: 20px; width: 5px; height: 5px; }
.tt-star-3 { left: 27px; top: 7px; width: 4.5px; height: 4.5px; }
.tt-star-4 { left: 13px; top: 24px; width: 3.5px; height: 3.5px; }
.tt-star-5 { left: 32px; top: 17px; width: 3.5px; height: 3.5px; }

.tt-star-1 path { animation-delay: 0s; }
.tt-star-2 path { animation-delay: 0.4s; }
.tt-star-3 path { animation-delay: 0.8s; }
.tt-star-4 path { animation-delay: 1.2s; }
.tt-star-5 path { animation-delay: 1.6s; }

html[data-theme="dark"] .tt-star {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

/* Knob */
.tt-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border-radius: 9999px;
    transform: translateX(0);
    box-shadow: 0 0 14px 3px rgba(253, 224, 71, 0.7);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    pointer-events: none;
}

html[data-theme="dark"] .tt-knob {
    transform: translateX(32px);
    box-shadow: 0 0 10px 1px rgba(226, 232, 240, 0.35);
}

.tt-knob-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    display: block;
    transform: rotate(0deg);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme="dark"] .tt-knob-svg {
    transform: rotate(360deg);
}

.tt-rays {
    transform-origin: 12px 12px;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

html[data-theme="dark"] .tt-rays {
    opacity: 0;
    transform: scale(0) rotate(-90deg);
}

.tt-celestial {
    fill: #fde047;
    transition: fill 0.4s ease, r 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme="dark"] .tt-celestial {
    fill: #e2e8f0;
}

.tt-bite {
    transition: cx 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), cy 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    cx: 34;
    cy: -10;
}

html[data-theme="dark"] .tt-bite {
    cx: 18.5;
    cy: 6.5;
}

.tt-craters {
    opacity: 0;
    transition: opacity 0.3s ease;
}

html[data-theme="dark"] .tt-craters {
    opacity: 1;
    transition-delay: 0.15s;
}

/* =============================================================
   4. GlowBorder Animation (@property conic-gradient)
   ============================================================= */
@property --glow-border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes glow-border-spin {
    to { --glow-border-angle: 360deg; }
}

.glow-btn-wrap {
    display: inline-block;
    padding: 1.5px;
    border-radius: 999px;
    background: conic-gradient(from var(--glow-border-angle, 0deg), transparent 0 60%, var(--dev-lime) 85%, transparent 100%), rgba(255, 255, 255, 0.1);
    animation: glow-border-spin 3.5s linear infinite;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glow-btn-wrap:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px var(--dev-lime-glow);
}

.glow-btn-inner {
    border-radius: 999px;
    background: #0b0f17;
    color: #ffffff !important;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.glow-btn-wrap:hover .glow-btn-inner {
    background: #111827;
}

.btn-studio-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid var(--dev-card-border);
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.btn-studio-outline:hover {
    border-color: var(--dev-accent);
    color: var(--dev-accent) !important;
    transform: translateY(-2px);
}

html[data-theme="light"] .btn-studio-outline {
    background: #ffffff !important;
    border: 1px solid rgba(18, 19, 22, 0.18) !important;
    color: #121316 !important;
    box-shadow: 0 4px 14px rgba(18, 19, 22, 0.06);
}

html[data-theme="light"] .btn-studio-outline:hover {
    background: #ffffff !important;
    border-color: var(--dev-accent) !important;
    color: var(--dev-accent) !important;
    box-shadow: 0 8px 20px rgba(255, 85, 0, 0.15);
}

/* =============================================================
   5. PeelDecal (Mathematical Sutherland-Hodgman Peeling Sticker)
   ============================================================= */
.peel-container {
    position: relative;
    user-select: none;
    cursor: grab;
    touch-action: none;
    outline: none;
    border-radius: 24px;
}

.peel-container:active {
    cursor: grabbing;
}

.peel-secret-card {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, #101726, #090e1a);
    border: 1.5px dashed rgba(163, 230, 53, 0.6);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    box-shadow: inset 0 0 30px rgba(163, 230, 53, 0.1);
}

.peel-face-wrap {
    position: relative;
    z-index: 2;
    border-radius: 24px;
}

.peel-shadow-canvas, .peel-back-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.peel-shadow-canvas { z-index: 3; }
.peel-back-canvas { z-index: 4; }

/* =============================================================
   6. Service Tariffs (Clean Luxury Glass Cards & GlowBorder.tsx)
   ============================================================= */
@property --glow-border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes glow-border-spin {
    to { --glow-border-angle: 360deg; }
}

.service-tariff-card {
    position: relative;
    border-radius: 24px;
    padding: 30px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.service-tariff-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: 0 24px 45px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(14, 165, 233, 0.15);
}

.service-tariff-card--featured {
    border-color: rgba(198, 255, 61, 0.5);
    background: linear-gradient(180deg, rgba(198, 255, 61, 0.05) 0%, rgba(15, 23, 42, 0.75) 100%);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 35px rgba(198, 255, 61, 0.1);
}

.service-tariff-card--featured:hover {
    border-color: rgba(198, 255, 61, 0.85);
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.75), 0 0 45px rgba(198, 255, 61, 0.25);
}

/* GlowBorder for Buttons (GlowBorder.tsx reference) */
.btn-glow-border {
    position: relative;
    display: inline-block;
    padding: 1.5px;
    border-radius: 12px;
    background: conic-gradient(from var(--glow-border-angle), transparent 0 65%, var(--dev-lime) 85%, transparent 100%), rgba(255, 255, 255, 0.1);
    animation: glow-border-spin 3.5s linear infinite;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-glow-border:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(198, 255, 61, 0.4);
}

.btn-glow-border-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10.5px;
    background: #0f172a;
    padding: 9px 20px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-glow-border:hover .btn-glow-border-inner {
    background: #1e293b;
    color: var(--dev-lime);
}

[data-theme="light"] .service-tariff-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .service-tariff-card:hover {
    border-color: var(--dev-accent);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .service-tariff-card--featured {
    border-color: var(--dev-accent);
    background: #ffffff;
    box-shadow: 0 15px 35px -10px rgba(14, 165, 233, 0.15);
}

[data-theme="light"] .btn-glow-border-inner {
    background: #f1f5f9;
    color: #0f172a;
}

[data-theme="light"] .btn-glow-border:hover .btn-glow-border-inner {
    background: #e2e8f0;
    color: #0369a1;
}

/* =============================================================
   7. FollowCursor (Floating Interactive Pill)
   ============================================================= */
.portfolio-cursor-pill {
    position: fixed;
    pointer-events: none;
    z-index: 999;
    padding: 8px 16px;
    border-radius: 999px;
    background: #0ea5e9;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
    will-change: transform, left, top;
}

.portfolio-cursor-pill.is-active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* =============================================================
   8. Portfolio Grid & Real Project Preview Cards
   ============================================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
    margin-top: 32px;
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-card {
    background: var(--dev-card-bg);
    border: 1px solid var(--dev-card-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    box-shadow: var(--dev-shadow);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(43, 180, 234, 0.45);
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.6);
}

.portfolio-browser-bar {
    background: rgba(0, 0, 0, 0.28);
    border-bottom: 1px solid var(--dev-card-border);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

html[data-theme="light"] .portfolio-browser-bar {
    background: rgba(0, 0, 0, 0.04);
}

.portfolio-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.portfolio-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.portfolio-dot--red { background: #ff5f56; }
.portfolio-dot--yellow { background: #ffbd2e; }
.portfolio-dot--green { background: #27c93f; }

.portfolio-address {
    flex: 1;
    max-width: calc(100% - 40px);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    color: var(--dev-text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 10px;
    border-radius: 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

html[data-theme="light"] .portfolio-address {
    background: rgba(0, 0, 0, 0.05);
}

.portfolio-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #070a10;
}

.portfolio-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-card:hover .portfolio-thumb {
    transform: scale(1.04);
}

.portfolio-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.portfolio-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(43, 180, 234, 0.12);
    color: var(--dev-accent);
    border: 1px solid rgba(43, 180, 234, 0.25);
}

.portfolio-badge--lime {
    background: rgba(163, 230, 53, 0.12);
    color: #84cc16;
    border-color: rgba(163, 230, 53, 0.25);
}

.portfolio-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dev-text-head);
    margin: 0;
    line-height: 1.35;
}

.portfolio-desc {
    font-size: 0.88rem;
    color: var(--dev-text-body);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.portfolio-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--dev-card-border);
    margin-top: auto;
}

.portfolio-metric {
    font-size: 0.78rem;
    color: var(--dev-lime);
    font-weight: 600;
}

.portfolio-link-btn {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dev-accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease;
}

.portfolio-card:hover .portfolio-link-btn {
    transform: translateX(3px);
}

/* =============================================================
   9. KineticTestimonials (Tilted Double-Row Infinite Marquee)
   ============================================================= */
.kinetic-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 70px 0;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.kinetic-band {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: rotate(-2deg) scale(1.03);
    will-change: transform;
}

.kinetic-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.kinetic-card {
    width: 360px;
    flex-shrink: 0;
    border-radius: 20px;
    background: var(--dev-card-bg);
    border: 1px solid var(--dev-card-border);
    padding: 24px;
    box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.kinetic-card:hover {
    transform: translateY(-4px);
    border-color: rgba(163, 230, 53, 0.4);
}

.kinetic-card-quote-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 28px;
    height: 28px;
    fill: currentColor;
    opacity: 0.08;
    pointer-events: none;
}

.kinetic-stars {
    display: flex;
    gap: 3px;
    color: #fbbf24;
}

.kinetic-quote {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--dev-text-head);
    margin: 0;
    flex: 1;
}

.kinetic-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.kinetic-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.kinetic-author-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dev-text-head);
    line-height: 1.2;
}

.kinetic-author-role {
    font-size: 0.78rem;
    color: var(--dev-text-muted);
}

/* =============================================================
   10. LayerStack (3D Anatomy of 5 Engineering Layers - LayerStack.tsx)
   ============================================================= */
.layer-stack-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .layer-stack-layout {
        grid-template-columns: 1fr;
    }
}

.layer-panel {
    background: var(--dev-card-bg);
    border: 1px solid var(--dev-card-border);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--dev-shadow);
    display: flex;
    flex-direction: column;
    gap: 6px;
    backdrop-filter: blur(12px);
}

.layer-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--dev-text-body);
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    width: 100%;
}

.layer-btn:hover, .layer-btn.is-active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--dev-text-head);
    border-color: var(--dev-card-border);
}

.layer-btn.is-active {
    border-color: var(--dev-lime);
    color: var(--dev-lime);
}

#anatomy {
    overflow-x: clip !important;
}

.layer-stage {
    position: relative;
    width: 100%;
    min-height: 600px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 680px) {
    .layer-stage {
        min-height: 440px !important;
    }
    .layer-fan {
        transform: scale(0.80) rotateX(56deg) rotateZ(-45deg) !important;
        transform-origin: center center !important;
    }
    .layer-item-tag {
        right: -10px !important;
    }
}

@media (max-width: 400px) {
    .layer-fan {
        transform: scale(0.72) rotateX(56deg) rotateZ(-45deg) !important;
    }
}

.layer-fan {
    position: relative;
    width: 310px;
    height: 185px;
    transform-style: preserve-3d;
    transform: rotateX(56deg) rotateZ(-45deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.layer-item {
    position: absolute;
    width: 310px;
    height: 185px;
    left: 0;
    top: 0;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: color-mix(in oklab, var(--dev-card-bg) 28%, transparent);
    backdrop-filter: blur(8px);
    box-shadow: 0 25px 45px -15px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.layer-item.is-active {
    border-color: rgba(198, 255, 61, 0.95);
    background: color-mix(in oklab, var(--dev-card-bg) 45%, transparent);
    box-shadow: 0 0 40px rgba(198, 255, 61, 0.35), 0 30px 50px -15px rgba(0, 0, 0, 0.7);
    opacity: 1 !important;
}

.layer-item-tag {
    position: absolute;
    right: -24px;
    bottom: -12px;
    transform-style: flat;
    pointer-events: auto;
    z-index: 50;
    opacity: 1 !important;
}

.layer-item-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transform: rotateZ(45deg) rotateX(-56deg) translate3d(14px, -50%, 4px);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: #0f172a !important;
    border: 2px solid #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.9), 0 0 12px rgba(56, 189, 248, 0.35) !important;
    opacity: 1 !important;
}

.layer-item.is-active .layer-item-label {
    background: #84cc16 !important;
    border: 2px solid #a3e635 !important;
    color: #0b130d !important;
    font-weight: 900 !important;
    box-shadow: 0 0 25px rgba(132, 204, 22, 0.85), 0 4px 16px rgba(0, 0, 0, 0.9) !important;
    opacity: 1 !important;
}

/* =============================================================
   11. RefractPanel (Chromatic Aberration Glass)
   ============================================================= */
.refract-panel {
    position: relative;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px) saturate(1.6);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    border: 1px solid var(--dev-card-border);
    box-shadow: 
        inset 1.5px 1.5px 0 -0.5px rgba(255, 255, 255, 0.35),
        inset -1px -1px 0 -0.5px rgba(255, 255, 255, 0.15),
        0 20px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 32px;
}

html[data-theme="light"] .refract-panel {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 
        inset 1.5px 1.5px 0 -0.5px rgba(255, 255, 255, 0.8),
        0 20px 40px -12px rgba(15, 23, 42, 0.08);
}

/* =============================================================
   12. Vertical Timeline (Strict Reference: Timeline.tsx)
   ============================================================= */
.process-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: start;
}

.process-layout-grid > * {
    min-width: 0 !important;
}

@media (max-width: 768px) {
    .process-layout-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
    }
}

.timeline-ref-list {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-ref-bar {
    position: absolute;
    left: 15px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 9999px;
    background: var(--dev-card-border);
}

.timeline-ref-fill {
    position: absolute;
    inset: 0;
    transform-origin: top;
    transform: scaleY(0);
    border-radius: 9999px;
    background: linear-gradient(to bottom, transparent, var(--dev-lime) 12%, var(--dev-lime));
    box-shadow: 0 0 14px var(--dev-lime);
}

.timeline-ref-item {
    position: relative;
    padding-bottom: 44px;
    padding-left: 56px;
}

.timeline-ref-item:last-child {
    padding-bottom: 0;
}

.timeline-ref-dot {
    position: absolute;
    left: 0;
    top: 2px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9999px;
    border: 2px solid var(--dev-card-border);
    background: var(--dev-bg);
    color: var(--dev-text-muted);
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.timeline-ref-dot-inner {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: currentColor;
}

.timeline-ref-dot[data-reached] {
    border-color: var(--dev-lime);
    background: var(--dev-lime);
    color: #0a0a0a;
    box-shadow: 0 0 0 5px rgba(163, 230, 53, 0.22), 0 0 18px var(--dev-lime);
}

.timeline-ref-entry {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeline-ref-entry[data-shown] {
    opacity: 1;
    transform: none;
}

.timeline-ref-date {
    font-family: monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--dev-lime);
    margin: 0 0 6px 0;
}

.timeline-ref-title {
    font-family: var(--font-display, sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dev-text-head);
    margin: 0 0 8px 0;
}

.timeline-ref-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--dev-text-body);
}

/* =============================================================
   13. Vector Icon Chips (Zero cheap emojis)
   ============================================================= */
.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dev-card-border);
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.icon-chip--lime {
    color: var(--dev-lime);
    border-color: rgba(163, 230, 53, 0.35);
    background: rgba(163, 230, 53, 0.08);
}

.icon-chip--cyan {
    color: var(--dev-cyan);
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.08);
}

.icon-chip--accent {
    color: var(--dev-accent);
    border-color: rgba(43, 180, 234, 0.35);
    background: rgba(43, 180, 234, 0.08);
}

/* =============================================================
   14. Three.js 3D Model Studio Stage (ModelStudio.tsx)
   ============================================================= */
.calc-3d-stage {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
}

.calc-3d-stage:active {
    cursor: grabbing;
}

.calc-3d-hint {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dev-text-muted);
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 8px;
    border-radius: 6px;
    pointer-events: none;
    backdrop-filter: blur(6px);
}

/* =============================================================
   15. 3D Titanium Iphone Mockup (IphoneMockup.tsx)
   ============================================================= */
.iphone-stage {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iphone-chassis {
    position: relative;
    width: 290px;
    height: 590px;
    border-radius: 50px;
    background: linear-gradient(135deg, #d9d4cb 0%, #a9a49b 18%, #6f6b64 50%, #a9a49b 82%, #d9d4cb 100%);
    padding: 10px;
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.7);
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    background: #000000;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.8);
}

.iphone-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 25px;
    background: #000000;
    border-radius: 20px;
    z-index: 10;
}

.iphone-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(118deg, transparent 20%, rgba(255, 255, 255, 0.12) 35%, transparent 45%);
    pointer-events: none;
    z-index: 5;
}

/* =============================================================
   16. Calculator Studio Grid (3-Column Layout: Form, 3D, Smeta)
   ============================================================= */
.calc-studio-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.1fr;
    gap: 28px;
    align-items: stretch;
    margin-top: 32px;
}

@media (max-width: 1040px) {
    .calc-studio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .calc-studio-grid {
        gap: 20px;
        margin-top: 20px;
    }
    .calc-config-card, .calc-3d-card, .calc-smeta-card {
        padding: 22px 16px !important;
    }
    .calc-bg-glow {
        width: 90vw !important;
        height: 280px !important;
    }
    .badge-strap-stage {
        max-width: 100% !important;
        height: 350px !important;
    }
    #calcBaseService {
        font-size: 0.85rem !important;
        padding: 12px 14px !important;
    }
}

.calc-config-card, .calc-3d-card, .calc-smeta-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border-radius: 20px;
    position: relative;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.calc-config-card {
    background: var(--dev-card-bg);
    border: 1px solid var(--dev-card-border);
    box-shadow: var(--dev-shadow);
}

.calc-smeta-card {
    background: var(--dev-card-bg) !important;
    border: 1px solid var(--dev-card-border) !important;
    border-radius: 20px !important;
    box-shadow: var(--dev-shadow) !important;
    z-index: 5 !important;
}

html[data-theme="light"] .calc-config-card {
    background: #ffffff !important;
    border: 1px solid rgba(18, 19, 22, 0.12) !important;
    box-shadow: 0 16px 36px -10px rgba(18, 19, 22, 0.08) !important;
}

html[data-theme="light"] .calc-smeta-card {
    background: #ffffff !important;
    border: 1px solid rgba(18, 19, 22, 0.12) !important;
    box-shadow: 0 16px 36px -10px rgba(18, 19, 22, 0.08) !important;
}

.calc-smeta-card * {
    transform: translateZ(0);
}

html[data-theme="light"] .calc-smeta-card #calcPriceDisplay {
    color: #121316 !important;
}

html[data-theme="light"] .calc-smeta-card #calcDaysDisplay {
    color: #ff5500 !important;
}

html[data-theme="light"] .calc-smeta-card ul li {
    color: #4b5563 !important;
}

.calc-3d-card {
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.08) 0%, rgba(15, 23, 42, 0.75) 100%);
    border: 1px solid rgba(14, 165, 233, 0.25);
    box-shadow: 0 15px 40px -15px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(14, 165, 233, 0.05);
}

.calc-3d-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.calc-3d-footer {
    border-top: 1px solid var(--dev-card-border);
    padding-top: 14px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* =============================================================
   17. BadgeStrap (Swinging Lead Architect Lanyard Badge - BadgeStrap.tsx)
   ============================================================= */
.hero-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    text-align: left;
}

.hero-text-plate {
    position: relative;
    z-index: 10;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    background: rgba(11, 15, 23, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: clamp(24px, 3.5vw, 36px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
}

@media (max-width: 960px) {
    .hero-layout-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Hero Lead Typography & High-Contrast Protective Plate */
.hero-text-plate {
    position: relative;
    z-index: 10;
    background: rgba(11, 15, 23, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: clamp(24px, 3.5vw, 36px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
}

.hero-lead-desc {
    font-size: clamp(1.05rem, 1.4vw, 1.18rem);
    line-height: 1.72;
    color: #f8fafc !important;
    font-weight: 500;
    margin: 0 0 32px 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
    position: relative;
    z-index: 5;
    letter-spacing: -0.01em;
}

.hero-lead-desc strong {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 1);
}

html[data-theme="light"] .hero-text-plate,
body.light-mode .hero-text-plate {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .hero-lead-desc,
body.light-mode .hero-lead-desc {
    color: #0f172a !important;
    text-shadow: none;
}

html[data-theme="light"] .hero-lead-desc strong,
body.light-mode .hero-lead-desc strong {
    color: #020617 !important;
    text-shadow: none;
}

.badge-strap-stage {
    position: relative;
    width: 280px;
    height: 380px;
    margin: 0 auto;
    user-select: none;
    touch-action: none;
    perspective: 1000px;
    z-index: 20;
}

.badge-strap-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 25;
}

.badge-strap-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 190px;
    height: 250px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
    border: 1.5px solid rgba(198, 255, 61, 0.55);
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(198, 255, 61, 0.15);
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    pointer-events: auto;
    cursor: grab;
    transform-origin: 50% 10px !important;
    z-index: 30;
    backdrop-filter: blur(14px);
    will-change: transform;
}

.badge-strap-card:active {
    cursor: grabbing;
}

.badge-strap-clip {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 16px;
    background: linear-gradient(180deg, #94a3b8, #475569);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.badge-avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(163, 230, 53, 0.22) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1.5px solid rgba(163, 230, 53, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(163, 230, 53, 0.35), inset 0 0 14px rgba(163, 230, 53, 0.2);
    margin-top: 6px;
}

.badge-role {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--dev-lime);
}

.badge-name {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 4px 0 2px 0;
}

.badge-stack {
    display: block;
    font-size: 0.72rem;
    color: var(--dev-text-muted);
    font-family: monospace;
}

.badge-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    font-size: 0.72rem;
    font-weight: 700;
    color: #4ade80;
}

.badge-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* =============================================================
   18. PeelDecal (Corner Peelable Guarantee Sticker - PeelDecal.tsx)
   ============================================================= */
.peel-badge-wrap {
    position: relative;
    width: 175px;
    height: 105px;
    border-radius: 18px;
    overflow: hidden;
    user-select: none;
    cursor: grab;
    touch-action: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    float: right;
    margin: 0 0 14px 14px;
}
.peel-badge-wrap:active {
    cursor: grabbing;
}

.peel-badge-under {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: #ffffff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.35);
    z-index: 1;
    border-radius: 18px;
}

.peel-under-tag {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #854d0e;
    text-transform: uppercase;
}

.peel-badge-face {
    position: absolute;
    inset: 0;
    background: #0b1120 !important;
    border: 1.5px solid rgba(198, 255, 61, 0.6) !important;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 18px;
    z-index: 2;
    opacity: 1 !important;
}

.peel-badge-flap {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background-color: #e2e8f0;
    transform-origin: 0 0;
    clip-path: polygon(0 0);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* =============================================================
   19. KineticTestimonials Styles (KineticTestimonials.tsx)
   ============================================================= */
.kinetic-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.kinetic-band {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: rotate(-1.5deg) scale(1.02);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    padding: 20px 0;
    width: 100%;
}

.kinetic-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.kinetic-card {
    position: relative;
    width: 380px;
    flex-shrink: 0;
    padding: 24px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s ease, border-color 0.35s ease;
    cursor: default;
}

.kinetic-band:hover .kinetic-card {
    opacity: 0.45;
}

.kinetic-band .kinetic-card:hover {
    opacity: 1 !important;
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(198, 255, 61, 0.5);
    box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.75), 0 0 25px rgba(198, 255, 61, 0.15);
}

.kinetic-card-quote-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 24px;
    height: 24px;
    fill: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.kinetic-stars {
    color: #facc15;
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.kinetic-quote {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--dev-text-head);
    margin: 0 0 18px 0;
    flex: 1;
}

.kinetic-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kinetic-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid var(--dev-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dev-lime);
}

.kinetic-author-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dev-text-head);
}

.kinetic-author-role {
    font-size: 0.76rem;
    color: var(--dev-text-muted);
}

/* Light mode overrides for new elements */
[data-theme="light"] .badge-strap-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-color: var(--dev-accent);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .badge-name {
    color: #0f172a;
}

[data-theme="light"] .calc-3d-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .kinetic-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .kinetic-quote {
    color: #1e293b;
}

[data-theme="light"] .kinetic-author-name {
    color: #0f172a;
}

/* =============================================================
   20. Lead Form & Section Contrast System (Fix: "Не читаемый текст")
   ============================================================= */
.order-section-title,
#calculator h2,
#dev-order h2 {
    color: var(--dev-text-head) !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

:root:not([data-theme="light"]) .order-section-title,
:root:not([data-theme="light"]) #calculator h2,
:root:not([data-theme="light"]) #dev-order h2 {
    color: #ffffff !important;
}

.server-network-card {
    background: #090e18;
    border: 1px solid rgba(43, 180, 234, 0.25);
    border-radius: 28px;
    padding: clamp(36px, 4vw, 56px);
    box-shadow: var(--dev-shadow);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.server-network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: center;
}

.server-network-grid > * {
    min-width: 0 !important;
}

@media (max-width: 768px) {
    .server-network-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
    }
    .server-network-card {
        padding: 24px 16px !important;
        border-radius: 20px !important;
    }
    .server-network-card h2 {
        font-size: clamp(1.35rem, 5.2vw, 2.2rem) !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        letter-spacing: -0.02em !important;
    }
}

.server-network-card h2,
html[data-theme="light"] .server-network-card h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95) !important;
}

html[data-theme="light"] .order-section-title,
html[data-theme="light"] #calculator h2,
html[data-theme="light"] #dev-order h2 {
    color: #0f172a !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.order-section-subtitle,
#calculator p,
#dev-order p {
    color: var(--dev-text-body) !important;
}

:root:not([data-theme="light"]) .order-section-subtitle,
:root:not([data-theme="light"]) #calculator p,
:root:not([data-theme="light"]) #dev-order p {
    color: #cbd5e1 !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

html[data-theme="light"] .order-section-subtitle,
html[data-theme="light"] #calculator p,
html[data-theme="light"] #dev-order p {
    color: #334155 !important;
    text-shadow: none;
}

/* Lead Form Glass Card */
.lead-form-card {
    background: rgba(17, 24, 39, 0.88) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(43, 180, 234, 0.35) !important;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(43, 180, 234, 0.12) !important;
}

html[data-theme="light"] .lead-form-card {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08) !important;
}

/* Studio Footer */
.studio-footer {
    background-color: var(--dev-bg) !important;
    border-top: 1px solid var(--dev-card-border);
}

html[data-theme="light"] .studio-footer {
    background-color: #f8fafc !important;
}

/* =============================================================
   20. BleedReveal Styles (BleedReveal.tsx - User: «Для перелистывания»)
   ============================================================= */
.bleed-reveal-section {
    position: relative;
    width: 100%;
    height: 250vh;
    background: #06090e;
    border-top: 1px solid var(--dev-card-border);
}

.bleed-reveal-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bleed-reveal-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    will-change: clip-path;
    clip-path: inset(18% 24% round 32px);
    box-shadow: 0 35px 120px rgba(0, 0, 0, 0.95);
    background: #090e18;
}

.bleed-reveal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    will-change: transform;
    transform: scale(1.25);
    filter: brightness(0.85) contrast(1.1);
}

.bleed-reveal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 9, 14, 0.5) 0%, rgba(6, 9, 14, 0.25) 40%, rgba(6, 9, 14, 0.95) 100%);
    pointer-events: none;
}

.bleed-reveal-title {
    pointer-events: none;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    padding: 0 24px;
    text-align: center;
    font-family: var(--font-display, "Unbounded", system-ui, sans-serif);
    font-size: clamp(2rem, 5.2vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95), 0 0 50px rgba(43, 180, 234, 0.5);
    z-index: 5;
    will-change: transform, opacity;
}

html, body {
    overflow-x: clip !important;
}

.bleed-reveal-title,
.bleed-reveal-left,
.bleed-reveal-right,
html[data-theme="light"] .bleed-reveal-title,
html[data-theme="light"] .bleed-reveal-left,
html[data-theme="light"] .bleed-reveal-right {
    color: #ffffff !important;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95), 0 0 50px rgba(43, 180, 234, 0.5) !important;
}

.bleed-reveal-hint,
html[data-theme="light"] .bleed-reveal-hint {
    color: var(--dev-lime) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
}

.bleed-reveal-chip strong,
html[data-theme="light"] .bleed-reveal-chip strong {
    color: var(--dev-lime) !important;
}

.bleed-reveal-chip span,
html[data-theme="light"] .bleed-reveal-chip span {
    color: #f1f5f9 !important;
}

.bleed-reveal-left,
.bleed-reveal-right {
    display: inline-block;
    white-space: nowrap;
    will-change: transform, opacity;
}

.bleed-reveal-hint {
    pointer-events: none;
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--dev-lime);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    z-index: 6;
    will-change: opacity;
}

.bleed-reveal-content {
    position: absolute;
    inset-x: 0;
    bottom: clamp(16px, 2.5vh, 32px);
    padding: clamp(16px, 2.5vw, 32px);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    will-change: opacity, transform;
    max-width: 1200px;
    margin: 0 auto;
    left: 0;
    right: 0;
}

.bleed-reveal-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.bleed-reveal-chip {
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.bleed-reveal-chip:hover {
    border-color: rgba(255, 85, 0, 0.45);
    box-shadow: 0 12px 30px -10px rgba(255, 85, 0, 0.25);
    transform: translateY(-2px);
}

.bleed-reveal-chip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.bleed-chip-svg {
    color: var(--dev-accent, #ff5500);
    filter: drop-shadow(0 0 7px rgba(255, 85, 0, 0.65));
    flex-shrink: 0;
}

.bleed-reveal-chip strong {
    display: block;
    font-size: 1.25rem;
    color: var(--dev-accent, #ff5500) !important;
    font-family: var(--font-display, sans-serif);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
    text-shadow: 0 0 12px rgba(255, 85, 0, 0.3);
}

html[data-theme="light"] .bleed-reveal-chip strong {
    color: #ea580c !important;
    text-shadow: none;
}

html[data-theme="light"] .bleed-chip-svg {
    color: #ea580c;
    filter: none;
}

.bleed-reveal-chip span {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.45;
    display: block;
}

html[data-theme="light"] .bleed-reveal-chip span {
    color: #475569 !important;
}

/* =============================================================
   21. ArcFrame Styles (ArcFrame.tsx - User: «Для цен»)
   ============================================================= */
.service-tariff-card--featured {
    position: relative;
    isolation: isolate;
    border-color: rgba(198, 255, 61, 0.6) !important;
    background: linear-gradient(160deg, rgba(20, 32, 22, 0.95), rgba(11, 19, 13, 0.98)) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(198, 255, 61, 0.18) !important;
}

#services {
    overflow-x: clip !important;
}

.services-tariff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.services-tariff-grid > * {
    min-width: 0 !important;
}

@media (max-width: 768px) {
    .services-tariff-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px !important;
    }
}

.arc-frame-canvas {
    position: absolute !important;
    top: -48px !important;
    left: -48px !important;
    width: calc(100% + 96px) !important;
    height: calc(100% + 96px) !important;
    max-width: none !important;
    max-height: none !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

@media (max-width: 640px) {
    .arc-frame-canvas {
        top: -12px !important;
        left: -12px !important;
        width: calc(100% + 24px) !important;
        height: calc(100% + 24px) !important;
    }
}

.service-tariff-card--featured > div {
    position: relative !important;
    z-index: 10 !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    will-change: transform;
}

/* Ensure perfect high contrast text inside featured tariff card */
.service-tariff-card--featured .portfolio-title {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}
.service-tariff-card--featured .portfolio-desc {
    color: #cbd5e1 !important;
}
.service-tariff-card--featured ul,
.service-tariff-card--featured li {
    color: #cbd5e1 !important;
}
.service-tariff-card--featured ul a {
    color: #38bdf8 !important;
}
.service-tariff-card--featured .portfolio-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.service-tariff-card--featured .portfolio-price span {
    color: #94a3b8 !important;
}
.service-tariff-card--featured .portfolio-price .portfolio-price-val {
    color: #c6ff3d !important;
    text-shadow: 0 0 14px rgba(198, 255, 61, 0.4) !important;
}
.service-tariff-card--featured .featured-tariff-time {
    color: #c6ff3d !important;
    text-shadow: 0 0 10px rgba(198, 255, 61, 0.3) !important;
    font-weight: 700 !important;
}
.service-tariff-card--featured .btn,
.service-tariff-card--featured .btn-featured-cta {
    background: #c6ff3d !important;
    color: #0b130d !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 18px rgba(198, 255, 61, 0.35) !important;
}
.service-tariff-card--featured .btn:hover,
.service-tariff-card--featured .btn-featured-cta:hover {
    background: #d9ff66 !important;
    box-shadow: 0 6px 24px rgba(198, 255, 61, 0.5) !important;
    transform: translateY(-1px);
}

/* Light Theme: High contrast dark typography on white card */
html[data-theme="light"] .service-tariff-card--featured {
    background: #ffffff !important;
    border: 2px solid #10b981 !important;
    box-shadow: 0 15px 35px -10px rgba(16, 185, 129, 0.25) !important;
}
html[data-theme="light"] .service-tariff-card--featured .portfolio-title {
    color: #0f172a !important;
    text-shadow: none !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .service-tariff-card--featured .portfolio-desc {
    color: #334155 !important;
    text-shadow: none !important;
}
html[data-theme="light"] .service-tariff-card--featured ul,
html[data-theme="light"] .service-tariff-card--featured li {
    color: #1e293b !important;
    text-shadow: none !important;
}
html[data-theme="light"] .service-tariff-card--featured ul a {
    color: #0284c7 !important;
    text-decoration: underline !important;
}
html[data-theme="light"] .service-tariff-card--featured .portfolio-footer {
    border-top: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .service-tariff-card--featured .portfolio-price span {
    color: #64748b !important;
}
html[data-theme="light"] .service-tariff-card--featured .portfolio-price .portfolio-price-val {
    color: #059669 !important;
    text-shadow: none !important;
}
html[data-theme="light"] .service-tariff-card--featured .featured-tariff-time {
    color: #059669 !important;
    text-shadow: none !important;
}
html[data-theme="light"] .service-tariff-card--featured .btn-featured-cta {
    background: #10b981 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
}

/* =============================================================
   22. FilmGrain Styles (FilmGrain.tsx - User: «это можно в подвал сайта»)
   ============================================================= */
#footerGrainCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: overlay;
    z-index: 1;
}


/* =============================================================
   26. Tech Marquee Pill Strip (Strict Port: Marquee.tsx)
   ============================================================= */
.hero-tech-track-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.tech-marquee-root {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 4px 0 8px 0;
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.tech-marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeGlide 32s linear infinite;
    will-change: transform;
}

.tech-marquee-root:hover .tech-marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeGlide {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.tech-marquee-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 10px;
    flex-shrink: 0;
}

.tech-marquee-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--dev-text-head);
    white-space: nowrap;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
    user-select: none;
    cursor: default;
}

.tech-marquee-pill:hover {
    transform: scale(1.08);
    border-color: var(--dev-accent);
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.3);
}

.tech-marquee-pill--lime {
    border-color: rgba(163, 230, 53, 0.35);
    background: rgba(163, 230, 53, 0.08);
    color: var(--dev-lime);
}

.tech-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px currentColor;
    flex-shrink: 0;
}

[data-theme="light"] .tech-marquee-pill {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .tech-marquee-pill:hover {
    border-color: #0284c7;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.2);
}

[data-theme="light"] .tech-marquee-pill--lime {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}

/* =============================================================
   27. Lead Capture Popup Modal & Privacy Policy Modal
   ============================================================= */
.lead-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lead-modal-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}

.lead-modal-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #0d1527;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: clamp(24px, 5vw, 36px);
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.8), 0 0 50px rgba(14, 165, 233, 0.15);
    color: #f8fafc;
    transform: scale(0.94) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lead-modal-backdrop.is-active .lead-modal-card {
    transform: scale(1) translateY(0);
}

.lead-modal-card--lg {
    max-width: 720px;
}

.lead-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lead-modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: rotate(90deg);
}

.lead-modal-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: #080d1a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.lead-modal-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

[data-theme="light"] .lead-modal-card {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .lead-modal-input {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .lead-modal-close {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

/* =============================================================
   28. 152-ФЗ Checkboxes & Privacy Compliance
   ============================================================= */
.fz-checkbox-group {
    user-select: none;
}

.fz-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--dev-text-muted);
}

.fz-checkbox {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #84cc16;
}

.fz-checkbox-text {
    flex: 1;
}

.fz-policy-link {
    color: var(--dev-accent);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.fz-policy-link:hover {
    color: var(--dev-lime);
}

[data-theme="light"] .fz-checkbox-label {
    color: #475569;
}

/* =============================================================
   29. High-Contrast Fix for Featured Tariff Card in Light Theme
   ============================================================= */
[data-theme="light"] .service-tariff-card--featured {
    background: #ffffff !important;
    border: 2px solid #10b981 !important;
    box-shadow: 0 15px 35px -10px rgba(16, 185, 129, 0.2) !important;
}

[data-theme="light"] .service-tariff-card--featured .portfolio-title {
    color: #0f172a !important;
    text-shadow: none !important;
}

[data-theme="light"] .service-tariff-card--featured .portfolio-desc {
    color: #334155 !important;
    text-shadow: none !important;
}

[data-theme="light"] .service-tariff-card--featured ul,
[data-theme="light"] .service-tariff-card--featured li {
    color: #1e293b !important;
}

[data-theme="light"] .service-tariff-card--featured ul a {
    color: #0284c7 !important;
}

[data-theme="light"] .service-tariff-card--featured .portfolio-footer {
    border-top: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .service-tariff-card--featured .portfolio-price span {
    color: #64748b !important;
}

[data-theme="light"] .service-tariff-card--featured .portfolio-price-val {
    color: #059669 !important;
}

[data-theme="light"] .service-tariff-card--featured .featured-tariff-time {
    color: #059669 !important;
}

[data-theme="light"] .service-tariff-card--featured .btn-featured-cta {
    background: #10b981 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
}

.peel-badge-wrap .peel-face-wrap {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
}

.peel-badge-face {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #0b1120 !important;
    opacity: 1 !important;
    z-index: 2 !important;
}


/* =============================================================
   18. NovaCode Hero Studio Section (Dialog SEO Reference)
   ============================================================= */
.hero-nc {
    position: relative;
    overflow: hidden;
    padding-top: 24px;
    background-color: var(--dev-bg);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.hero-nc-wrap {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 52px;
}

.hero-nc-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    position: relative;
    padding: 20px 0 50px 0;
}

.hero-nc-text {
    position: relative;
    z-index: 20;
    padding-right: 10px;
}

.hero-nc-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    max-width: 580px;
}

.hero-nc-sub-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dev-accent);
    box-shadow: 0 0 10px var(--dev-accent-glow);
    animation: ncPulseDot 2s infinite ease-in-out;
}

@keyframes ncPulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-nc-sub-title {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--dev-text-muted);
    white-space: nowrap;
}

.hero-nc-sub-line {
    display: none !important;
}

.hero-nc-title {
    font-family: 'Unbounded', -apple-system, sans-serif !important;
    font-size: clamp(3.0rem, 4.8vw, 4.7rem) !important;
    font-weight: 900 !important;
    line-height: 0.93 !important;
    letter-spacing: -0.045em !important;
    text-transform: uppercase;
    margin-bottom: 24px !important;
}

.hero-nc-title .row-main {
    color: var(--dev-text-head) !important;
    display: block;
}

.hero-nc-title .row-accent {
    color: var(--dev-accent) !important;
    display: block;
}

.hero-nc-title .row-accent-interactive {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--dev-accent) !important;
}

.hero-nc-arrow-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(52px, 5.0vw, 68px);
    height: clamp(52px, 5.0vw, 68px);
    border-radius: 50%;
    background: var(--dev-accent);
    color: #ffffff;
    font-size: clamp(1.6rem, 2.3vw, 2.1rem);
    font-family: sans-serif;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px var(--dev-accent-glow);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, box-shadow 0.3s;
}

.row-accent-interactive:hover .hero-nc-arrow-bubble {
    transform: scale(1.15) rotate(45deg);
    box-shadow: 0 12px 30px var(--dev-accent-glow);
}

.hero-nc-lead {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--dev-text-body);
    max-width: 520px;
    margin-bottom: 34px;
    font-weight: 400;
}

.hero-nc-cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-nc-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--dev-text-head);
    color: var(--dev-bg) !important;
    font-family: inherit;
    font-size: 0.96rem;
    font-weight: 600;
    padding: 16px 34px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.3s, transform 0.25s, box-shadow 0.3s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hero-nc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-nc-btn-sec {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: var(--dev-text-head) !important;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 999px;
    transition: color 0.2s;
}

.hero-nc-play-disc {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--dev-card-border);
    border: 1px solid var(--dev-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: all 0.3s ease;
}

.hero-nc-btn-sec:hover .hero-nc-play-disc {
    background: var(--dev-accent);
    color: #ffffff;
    border-color: var(--dev-accent);
    transform: scale(1.15);
}

/* 3D Stage & 360 Video */
.hero-nc-stage {
    position: relative;
    width: 100%;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    transform-style: preserve-3d;
    user-select: none;
    margin-bottom: 12px;
}

.hero-nc-cad {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.hero-nc-cad-dashed {
    position: absolute;
    border: 1px dashed var(--dev-card-border);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 420px;
    transform: translate(-50%, -50%);
    animation: ncRotateOrbit 120s linear infinite;
}

.hero-nc-cad-solid {
    position: absolute;
    border: 1px solid var(--dev-card-border);
    opacity: 0.45;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
}

@keyframes ncRotateOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-nc-cad-tag {
    position: absolute;
    top: 18px;
    right: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--dev-text-muted);
    text-align: right;
    line-height: 1.45;
}

.hero-nc-step-counter {
    position: absolute;
    top: 64px;
    right: 12px;
    font-family: 'Unbounded', sans-serif;
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--dev-text-head);
    letter-spacing: -0.03em;
}

.hero-nc-step-counter span { color: var(--dev-text-muted); font-weight: 400; font-size: 1.15rem; }

.hero-nc-cad-plus {
    position: absolute;
    font-family: monospace;
    font-size: 1.15rem;
    color: var(--dev-card-border);
    user-select: none;
}

.hero-sculpture-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 85, 0, 0.22) 0%, rgba(255, 140, 0, 0.08) 40%, transparent 70%);
    filter: blur(52px);
    pointer-events: none;
    z-index: 2;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme="light"] .hero-sculpture-ambient-glow {
    background: radial-gradient(circle, rgba(255, 100, 0, 0.12) 0%, rgba(255, 140, 40, 0.05) 45%, transparent 70%);
    filter: blur(60px);
}

.hero-sculpture-rig {
    position: relative;
    width: 520px;
    max-width: 95%;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    cursor: grab;
    z-index: 5;
    touch-action: none;
}

.hero-sculpture-rig:active {
    cursor: grabbing;
}

#heroNcSculpturePic {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.hero-nc-sculpture-asset {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
    user-select: none;
    will-change: transform;
    transition: opacity 0.3s ease;
}

html[data-theme="light"] .hero-nc-sculpture-asset {
    filter: drop-shadow(0 20px 42px rgba(180, 130, 90, 0.22));
}

html[data-theme="light"] .hero-nc-cad-solid {
    opacity: 0.25;
    border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .hero-nc-cad-dashed {
    border-color: rgba(0, 0, 0, 0.12);
}

.hero-sculpture-glint {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(ellipse at 38% 28%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 120, 0, 0.18) 32%, transparent 65%);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 6;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

html[data-theme="light"] .hero-sculpture-glint {
    display: none !important;
}

.hero-nc-video-asset {
    display: none;
}

/* Bottom Architectural Dock */
.hero-nc-dock {
    display: grid;
    grid-template-columns: 13.5% 13.5% 14% 24% 35%;
    border-top: none;
    background: var(--dev-bg-elevated);
    position: relative;
    z-index: 30;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.hero-nc-dock-stat {
    padding: 22px 28px;
    border-right: 1px solid var(--dev-card-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color 0.4s ease;
}

.hero-nc-huge-num {
    font-family: 'Unbounded', sans-serif !important;
    font-size: 2.15rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--dev-text-head);
    margin-bottom: 6px;
}

.hero-nc-sub-label {
    font-size: 0.76rem;
    color: var(--dev-text-muted);
    line-height: 1.35;
    font-weight: 500;
}

.hero-nc-dock-directions {
    padding: 20px 24px;
    border-right: 1px solid var(--dev-card-border);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: border-color 0.4s ease;
}

.hero-nc-thumb {
    width: 68px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    filter: contrast(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-nc-dir-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dev-text-head);
    margin-bottom: 5px;
}

.hero-nc-dir-links {
    font-size: 0.8rem;
    color: var(--dev-text-body);
    line-height: 1.45;
    font-weight: 500;
}

.hero-nc-action-card {
    background: var(--dev-accent);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 32px;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.hero-nc-action-card:hover {
    background: #e64500;
}

.hero-nc-action-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-transform: uppercase;
    max-width: 230px;
    color: #ffffff !important;
}

.hero-nc-action-arrow {
    font-size: 1.7rem;
    line-height: 1;
    color: #ffffff !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-nc-action-card:hover .hero-nc-action-arrow {
    transform: translate(6px, -6px);
}

@media (max-width: 1200px) {
    .hero-nc-wrap { padding: 0 24px; }
    .hero-nc-layout { grid-template-columns: 1fr; }
    .hero-nc-stage { height: 420px; }
    .hero-nc-dock { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-nc-title {
        font-size: clamp(2.1rem, 7.5vw, 3.2rem) !important;
        letter-spacing: -0.035em !important;
        line-height: 0.96 !important;
    }
    .hero-nc-arrow-bubble {
        width: 46px !important;
        height: 46px !important;
        font-size: 1.45rem !important;
    }
}

@media (max-width: 680px) {
    .hero-nc-wrap { padding: 0 16px; }
    .hero-nc-stage { height: 310px !important; overflow: hidden !important; }
    .hero-nc-dock { grid-template-columns: 1fr; }
    .hero-nc-cad-solid,
    .hero-sculpture-ambient-glow {
        width: min(300px, 86vw) !important;
        height: min(300px, 86vw) !important;
    }
    .hero-nc-cad-dashed {
        width: min(250px, 72vw) !important;
        height: min(250px, 72vw) !important;
    }
}

@media (max-width: 480px) {
    .hero-nc {
        padding-top: 10px !important;
    }
    .hero-nc-text {
        padding-right: 0 !important;
        max-width: 100% !important;
    }
    .hero-nc-sub {
        margin-bottom: 16px !important;
    }
    .hero-nc-sub-title {
        font-size: 0.68rem !important;
        white-space: normal !important;
        letter-spacing: 0.07em !important;
    }
    .hero-nc-title {
        font-size: clamp(1.75rem, 8.2vw, 2.3rem) !important;
        letter-spacing: -0.03em !important;
        line-height: 0.98 !important;
        margin-bottom: 18px !important;
    }
    .hero-nc-title .row-accent-interactive {
        gap: 10px !important;
    }
    .hero-nc-arrow-bubble {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.25rem !important;
    }
    .hero-nc-lead {
        font-size: 0.92rem !important;
        margin-bottom: 24px !important;
    }
    .hero-nc-cta-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .hero-nc-btn-primary, .hero-nc-btn-sec {
        width: 100% !important;
        justify-content: center !important;
        padding: 13px 18px !important;
        font-size: 0.88rem !important;
    }
}

/* Hero 3D WebGL Stage */
.hero-3d-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    cursor: grab;
    z-index: 5;
}

.hero-3d-stage:active {
    cursor: grabbing;
}

.hero-3d-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dev-text-muted);
    background: var(--dev-card-bg);
    border: 1px solid var(--dev-card-border);
    padding: 6px 16px;
    border-radius: 20px;
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
    white-space: nowrap;
    transition: opacity 0.4s ease;
}
