/* ============================================
   CSS Variables & Theme
   ============================================ */
:root {
    --font-primary: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Dark theme (default) */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #1a1a1f;
    --bg-card: #15151a;
    --bg-card-hover: #1c1c23;

    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-muted: #52525b;

    --accent: #e63946;
    --accent-light: #ff4d5a;
    --accent-dark: #c1121f;
    --accent-glow: rgba(230, 57, 70, 0.15);
    --accent-glow-strong: rgba(230, 57, 70, 0.3);

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #f4f4f5;
    --bg-tertiary: #e4e4e7;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f8fa;

    --text-primary: #09090b;
    --text-secondary: #52525b;
    --text-tertiary: #71717a;
    --text-muted: #a1a1aa;

    --accent: #c1121f;
    --accent-light: #e63946;
    --accent-dark: #a4161a;
    --accent-glow: rgba(193, 18, 31, 0.1);
    --accent-glow-strong: rgba(193, 18, 31, 0.2);

    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 40px var(--accent-glow);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

.loader-inner {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 1px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Custom Cursor
   ============================================ */
.cursor, .cursor-follower {
    display: none;
}

@media (pointer: fine) {
    .cursor {
        display: block;
        position: fixed;
        width: 8px;
        height: 8px;
        background: var(--accent);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transform: translate(-50%, -50%);
        transition: transform 0.1s, opacity 0.3s;
    }

    .cursor-follower {
        display: block;
        position: fixed;
        width: 32px;
        height: 32px;
        border: 1.5px solid var(--accent-light);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: transform 0.15s ease-out, width 0.3s, height 0.3s, opacity 0.3s;
        opacity: 0.5;
    }

    .cursor.hover {
        transform: translate(-50%, -50%) scale(2);
    }

    .cursor-follower.hover {
        width: 48px;
        height: 48px;
        opacity: 0.3;
    }
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

[data-theme="light"] .nav.scrolled {
    background: rgba(250, 250, 250, 0.85);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    transition: all var(--transition);
    color: var(--text-secondary);
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.nav-cta {
    padding: 10px 24px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--accent-dark);
    box-shadow: var(--shadow-glow);
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.nav-menu-btn span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

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

.nav-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-menu-links a {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.mobile-menu-links a:hover {
    color: var(--accent);
}

.mobile-cta {
    font-size: 18px !important;
    padding: 12px 32px;
    background: var(--accent);
    color: white !important;
    border-radius: var(--radius-full);
    margin-top: 16px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

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

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

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Bottom-left accent blob — adds the second pole of red */
.hero-bg::before {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.35) 0%, rgba(230, 57, 70, 0.12) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(90px);
    animation: float 10s ease-in-out infinite reverse;
    pointer-events: none;
}

/* Top accent line — a thin red beam under the nav */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(230, 57, 70, 0.6) 30%, var(--accent) 50%, rgba(230, 57, 70, 0.6) 70%, transparent 100%);
    opacity: 0.7;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 780px;
    height: 780px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.5) 0%, rgba(230, 57, 70, 0.2) 35%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

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

/* Soft red wash sitting on top of the grid */
.hero-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 70% 30%, rgba(230, 57, 70, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 20% 80%, rgba(230, 57, 70, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero h1 {
    font-family: var(--font-primary);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
}

.hero-line.accent {
    background: linear-gradient(135deg, #ff6b6b, var(--accent-light), var(--accent), #ff4d5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 24px rgba(230, 57, 70, 0.4));
    position: relative;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-plus {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    overflow: visible;
    box-shadow:
        0 0 60px rgba(230, 57, 70, 0.35),
        0 0 120px rgba(230, 57, 70, 0.18);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.25) 0%, transparent 70%);
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

.hero-image-ring {
    position: absolute;
    inset: -6px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0.7;
    animation: ring-spin 20s linear infinite;
    border-top-color: transparent;
    border-left-color: transparent;
    filter: drop-shadow(0 0 8px var(--accent));
}

@keyframes ring-spin {
    to { transform: rotate(360deg); }
}

.hero-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bg-card);
    border: 1px solid rgba(230, 57, 70, 0.25);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    box-shadow:
        var(--shadow-md),
        0 0 20px rgba(230, 57, 70, 0.15);
    animation: card-float 6s ease-in-out infinite;
    white-space: nowrap;
    color: var(--text-secondary);
}

.hero-floating-card svg {
    color: var(--accent);
    flex-shrink: 0;
}

.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 25%;
    left: -15%;
    animation-delay: -2s;
}

.card-3 {
    bottom: 5%;
    right: -5%;
    animation-delay: -4s;
}

@keyframes card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Hero Scroll */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--accent);
    animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
    0% { top: -50%; }
    100% { top: 100%; }
}

/* ============================================
   Web App Compatibility
   ============================================ */

/* Safe-area insets for notched devices / standalone PWA */
@supports (padding: env(safe-area-inset-top)) {
    .nav-inner {
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
    }
    .hero, .hero-variant-b {
        padding-top: max(120px, calc(100px + env(safe-area-inset-top)));
        padding-bottom: max(80px, calc(60px + env(safe-area-inset-bottom)));
    }
    .ab-toggle {
        bottom: max(24px, calc(12px + env(safe-area-inset-bottom)));
    }
    .back-to-top {
        bottom: max(24px, calc(12px + env(safe-area-inset-bottom)));
        right: max(24px, calc(12px + env(safe-area-inset-right)));
    }
}

/* Standalone (installed web app) adjustments */
@media (display-mode: standalone) {
    body {
        overscroll-behavior-y: none;
    }
    .nav {
        padding-top: max(16px, env(safe-area-inset-top));
    }
}

/* Touch-friendly: bump tap targets */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .filter-btn,
    .page-num,
    .orbit-chip,
    .hero-pill,
    .ab-btn {
        min-height: 44px;
    }
    .btn-vibrant {
        padding: 18px 28px;
    }
    /* Touch devices: permanent "hover" state on chips to keep them feeling alive */
    .hero-subtitle-b mark {
        background-size: 100% 42%;
    }
}

/* Global focus-visible ring for keyboard/a11y */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}
.btn-vibrant:focus-visible {
    outline-offset: 4px;
}

/* Respect reduced motion everywhere */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .mesh-blob,
    .hero-gradient,
    .orbit-ring,
    .hero-image-b-wrapper,
    .hero-image-ring,
    .badge-dot-b,
    .badge-dot {
        animation: none !important;
    }
    .hero-line-b,
    .hero-subtitle-b,
    .hero-actions-b,
    .hero-stats-b,
    .hero-pills,
    .hero-badge-b,
    .hero-pill {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Prevent long-press callout on touch for decorative elements */
.orbit-chip,
.chip-dot,
.mesh-blob,
.hero-image-b {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Tap highlight subtle */
html { -webkit-tap-highlight-color: rgba(230, 57, 70, 0.15); }

/* ============================================
   Hero Variant B (Vibrant - Red/Black/White/Gold)
   ============================================ */
.hero[hidden] {
    display: none !important;
}

.hero-variant-b {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
    background: #060607;
    isolation: isolate;
}

[data-theme="light"] .hero-variant-b {
    background: #f8f5f0;
}

.hero-bg-b {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.8;
    will-change: transform;
}

.blob-1 {
    top: -40%;
    left: -30%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #9d0208 0%, transparent 70%);
    animation: blob-float-1 18s ease-in-out infinite;
    opacity: 0.35;
}

.blob-2 {
    top: 15%;
    right: -15%;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, #c1121f 0%, transparent 70%);
    animation: blob-float-2 22s ease-in-out infinite;
}

.blob-3 {
    bottom: -20%;
    left: 15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #9d0208 0%, transparent 70%);
    animation: blob-float-3 20s ease-in-out infinite;
    opacity: 0.6;
}

.blob-4 {
    top: 45%;
    left: 40%;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, #d4af37 0%, transparent 70%);
    animation: blob-float-4 25s ease-in-out infinite;
    opacity: 0.45;
}

.blob-5 {
    bottom: 5%;
    right: 20%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #ff4d5a 0%, transparent 70%);
    animation: blob-float-5 19s ease-in-out infinite;
    opacity: 0.55;
}

[data-theme="light"] .mesh-blob {
    opacity: 0.28;
}

[data-theme="light"] .blob-3,
[data-theme="light"] .blob-4 {
    opacity: 0.2;
}

.hero-grid-b {
    position: absolute;
    inset: 0;
    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);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
    pointer-events: none;
}

[data-theme="light"] .hero-grid-b {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

@keyframes blob-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, 40px) scale(1.1); }
    66% { transform: translate(-40px, 80px) scale(0.95); }
}

@keyframes blob-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-80px, 60px) scale(1.08); }
}

@keyframes blob-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, -50px) scale(1.05); }
    66% { transform: translate(70px, -30px) scale(0.92); }
}

@keyframes blob-float-4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -60px) scale(1.12); }
}

@keyframes blob-float-5 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, -40px) scale(1.06); }
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content-b {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-text-b {
    color: #fff;
}

[data-theme="light"] .hero-text-b {
    color: #0a0a0b;
}

.hero-badge-b {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 28px;
    animation: badge-slide 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .hero-badge-b {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0a0a0b;
}

@keyframes badge-slide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge-dot-b {
    width: 8px;
    height: 8px;
    background: #d4af37;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.9);
    animation: dot-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(212, 175, 55, 0.9); }
    50% { opacity: 0.5; box-shadow: 0 0 20px rgba(212, 175, 55, 1); }
}

.badge-pill {
    padding: 4px 10px;
    background: linear-gradient(135deg, #e63946, #c1121f);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.4);
}

.hero-title-b {
    font-family: var(--font-primary);
    font-size: clamp(48px, 5.8vw, 78px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
}

.hero-line-b {
    display: block;
    opacity: 0;
    transform: translateY(24px);
    animation: line-rise 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-line-b:nth-child(1) { animation-delay: 0.1s; }
.hero-line-b:nth-child(2) { animation-delay: 0.25s; }
.hero-line-b:nth-child(3) { animation-delay: 0.4s; }

@keyframes line-rise {
    to { opacity: 1; transform: translateY(0); }
}

.gradient-text {
    background: linear-gradient(120deg, #ff4d5a 0%, #e63946 20%, #ffffff 45%, #d4af37 70%, #e63946 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-line-b.gradient-text {
    animation:
        line-rise 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards,
        gradient-shift 6s ease-in-out 1.2s infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle-b {
    font-size: 19px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
    max-width: 540px;
    margin-bottom: 36px;
    opacity: 0;
    animation: line-rise 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.55s forwards;
}

[data-theme="light"] .hero-subtitle-b {
    color: rgba(10, 10, 11, 0.7);
}

.hero-subtitle-b mark {
    background: none;
    color: #fff;
    font-weight: 700;
    padding: 0 2px;
    border-radius: 4px;
    position: relative;
}

[data-theme="light"] .hero-subtitle-b mark {
    color: #0a0a0b;
}

.hero-subtitle-b mark {
    background-size: 0% 42%;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.highlight-1 {
    background-image: linear-gradient(180deg, rgba(230, 57, 70, 0.55), rgba(230, 57, 70, 0.55));
    padding: 0 4px;
}

.highlight-2 {
    background-image: linear-gradient(180deg, rgba(212, 175, 55, 0.5), rgba(212, 175, 55, 0.5));
    padding: 0 4px;
}

.hero-subtitle-b.underline-in mark {
    background-size: 100% 42%;
}

.hero-subtitle-b mark:hover {
    background-size: 100% 100%;
    color: #fff;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    opacity: 0;
    animation: line-rise 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.65s forwards;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.01em;
    transition: all 0.25s;
}

.hero-pill:nth-child(odd) .pill-icon { color: #e63946; }
.hero-pill:nth-child(even) .pill-icon { color: #d4af37; }

.hero-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(230, 57, 70, 0.12) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s, transform 0.8s;
    transform: translateX(-100%);
    border-radius: 999px;
    pointer-events: none;
}

.hero-pill {
    position: relative;
    overflow: hidden;
}

.hero-pill:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(230, 57, 70, 0.5);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.2);
}

.hero-pill:hover::before {
    opacity: 1;
    transform: translateX(100%);
}

.hero-pill:hover .pill-icon {
    animation: icon-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes icon-bounce {
    0% { transform: scale(1) rotate(0); }
    40% { transform: scale(1.4) rotate(-20deg); }
    70% { transform: scale(0.9) rotate(10deg); }
    100% { transform: scale(1) rotate(0); }
}

[data-theme="light"] .hero-pill {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(10, 10, 11, 0.8);
}

[data-theme="light"] .hero-pill:hover {
    background: rgba(230, 57, 70, 0.06);
    border-color: rgba(230, 57, 70, 0.3);
}

.pill-icon {
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.hero-actions-b {
    display: flex;
    gap: 14px;
    margin-bottom: 48px;
    opacity: 0;
    animation: line-rise 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
}

.btn-vibrant {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-vibrant-primary {
    background: linear-gradient(135deg, #ff4d5a 0%, #e63946 50%, #c1121f 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(230, 57, 70, 0.45), 0 4px 12px rgba(193, 18, 31, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-vibrant-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e63946 0%, #c1121f 50%, #9d0208 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn-vibrant-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    transition: left 0.6s;
    z-index: 0;
}

.btn-vibrant-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(230, 57, 70, 0.6), 0 6px 16px rgba(212, 175, 55, 0.3);
}

.btn-vibrant-primary:hover::after {
    left: 150%;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-expand 0.6s ease-out;
    width: 20px;
    height: 20px;
    z-index: 2;
}

@keyframes ripple-expand {
    to {
        transform: translate(-50%, -50%) scale(20);
        opacity: 0;
    }
}

.btn-vibrant span,
.btn-vibrant svg {
    position: relative;
    z-index: 1;
}

.btn-vibrant-ghost {
    transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-vibrant-ghost:hover {
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.btn-vibrant-primary:hover::before {
    opacity: 1;
}

.btn-vibrant-primary svg {
    transition: transform 0.3s;
}

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

.btn-vibrant-ghost {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

[data-theme="light"] .btn-vibrant-ghost {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: #0a0a0b;
}

.btn-vibrant-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

[data-theme="light"] .btn-vibrant-ghost:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}

.hero-stats-b {
    display: flex;
    align-items: center;
    gap: 28px;
    opacity: 0;
    animation: line-rise 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.85s forwards;
}

.stat-b {
    display: flex;
    flex-direction: column;
    cursor: default;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.stat-b::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e63946, #d4af37);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-b:hover {
    transform: translateY(-4px);
}

.stat-b:hover::after {
    width: 100%;
}

.stat-b:hover .stat-num-b {
    animation: num-glow 0.6s ease-out;
}

@keyframes num-glow {
    0% { filter: drop-shadow(0 0 0 transparent); }
    50% { filter: drop-shadow(0 0 16px rgba(230, 57, 70, 0.6)); }
    100% { filter: drop-shadow(0 0 0 transparent); }
}

.stat-num-b {
    font-family: var(--font-primary);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-b-1 .stat-num-b { background-image: linear-gradient(135deg, #ff4d5a, #e63946); }
.stat-b-2 .stat-num-b { background-image: linear-gradient(135deg, #d4af37, #f5c842); }
.stat-b-3 .stat-num-b { background-image: linear-gradient(135deg, #e63946, #9d0208); }

.stat-plus-b {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 2px;
}

[data-theme="light"] .stat-plus-b {
    color: rgba(10, 10, 11, 0.4);
}

.stat-label-b {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

[data-theme="light"] .stat-label-b {
    color: rgba(10, 10, 11, 0.5);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

[data-theme="light"] .stat-divider {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.15), transparent);
}

/* Hero Visual B - Orbit */
.hero-visual-b {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.orbit-container {
    position: relative;
    width: 480px;
    height: 480px;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, 0.12);
    animation: orbit-rotate 40s linear infinite;
}

[data-theme="light"] .orbit-ring {
    border-color: rgba(0, 0, 0, 0.12);
}

.orbit-ring-1 {
    width: 420px;
    height: 420px;
}

.orbit-ring-2 {
    width: 480px;
    height: 480px;
    animation-duration: 60s;
    animation-direction: reverse;
    border-style: dotted;
}

.orbit-ring-3 {
    width: 340px;
    height: 340px;
    animation-duration: 30s;
    border-color: rgba(230, 57, 70, 0.3);
}

@keyframes orbit-rotate {
    to { transform: rotate(360deg); }
}

.hero-image-b-wrapper {
    position: relative;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    background:
        linear-gradient(#15151a, #15151a) padding-box,
        conic-gradient(from 180deg, #e63946, #d4af37, #ff4d5a, #c1121f, #d4af37, #e63946) border-box;
    box-shadow: 0 20px 60px rgba(230, 57, 70, 0.35), 0 10px 30px rgba(212, 175, 55, 0.2);
    animation: image-pulse 4s ease-in-out infinite, border-spin 8s linear infinite;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

@keyframes border-spin {
    to {
        background:
            linear-gradient(#15151a, #15151a) padding-box,
            conic-gradient(from 540deg, #e63946, #d4af37, #ff4d5a, #c1121f, #d4af37, #e63946) border-box;
    }
}

.hero-image-b-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.2), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

.orbit-container:hover .hero-image-b-wrapper::after {
    opacity: 1;
}

[data-theme="light"] .hero-image-b-wrapper {
    background:
        linear-gradient(#fff, #fff) padding-box,
        conic-gradient(from 180deg, #e63946, #d4af37, #ff4d5a, #c1121f, #d4af37, #e63946) border-box;
}

@keyframes image-pulse {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(230, 57, 70, 0.35), 0 10px 30px rgba(212, 175, 55, 0.2);
    }
    50% {
        box-shadow: 0 24px 72px rgba(230, 57, 70, 0.5), 0 14px 36px rgba(212, 175, 55, 0.35);
    }
}

.hero-image-b {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

.orbit-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #0a0a0b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    animation: chip-float 6s ease-in-out infinite;
    white-space: nowrap;
    z-index: 2;
    cursor: pointer;
    transition: box-shadow 0.3s, background 0.3s;
    --chip-mx: 0px;
    --chip-my: 0px;
}

.orbit-chip > * {
    position: relative;
    z-index: 1;
}

.orbit-chip:hover {
    background: #fff;
    box-shadow: 0 14px 40px rgba(230, 57, 70, 0.4), 0 6px 16px rgba(212, 175, 55, 0.25);
    animation-play-state: paused;
}

.orbit-chip:hover .chip-dot-red {
    animation: dot-pulse-red 1s ease-in-out infinite;
}

.orbit-chip:hover .chip-dot-gold {
    animation: dot-pulse-gold 1s ease-in-out infinite;
}

@keyframes dot-pulse-red {
    0%, 100% { box-shadow: 0 0 10px rgba(230, 57, 70, 0.6); transform: scale(1); }
    50% { box-shadow: 0 0 18px rgba(230, 57, 70, 1); transform: scale(1.3); }
}

@keyframes dot-pulse-gold {
    0%, 100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.6); transform: scale(1); }
    50% { box-shadow: 0 0 18px rgba(212, 175, 55, 1); transform: scale(1.3); }
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chip-dot-red {
    background: #e63946;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.6);
}

.chip-dot-gold {
    background: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.chip-saas {
    top: 6%;
    left: -12%;
    animation-delay: 0s;
    border-left: 3px solid #e63946;
}

.chip-dash {
    top: 28%;
    right: -14%;
    animation-delay: -1.5s;
    border-left: 3px solid #d4af37;
}

.chip-mobile {
    bottom: 24%;
    left: -14%;
    animation-delay: -3s;
    border-left: 3px solid #e63946;
}

.chip-systems {
    bottom: 4%;
    right: -10%;
    animation-delay: -4.5s;
    border-left: 3px solid #d4af37;
}

@keyframes chip-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-14px) rotate(-1.5deg); }
}

/* A/B Variant Toggle */
.ab-toggle {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    font-family: var(--font-body);
}

[data-theme="light"] .ab-toggle {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.1);
}

.ab-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .ab-btn {
    color: rgba(10, 10, 11, 0.55);
}

.ab-btn.active {
    color: #fff;
}

.ab-btn-a.active {
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.ab-btn-b.active {
    background: linear-gradient(135deg, #e63946, #d4af37);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.5);
    color: #fff;
}

.ab-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

[data-theme="light"] .ab-btn:not(.active):hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0a0a0b;
}

.ab-label {
    padding: 0 12px 0 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .ab-label {
    color: rgba(10, 10, 11, 0.5);
}

/* Responsive - Variant B */
@media (max-width: 1024px) {
    .hero-content-b {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-subtitle-b {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions-b {
        justify-content: center;
    }

    .hero-stats-b {
        justify-content: center;
    }

    .orbit-container {
        width: 440px;
        height: 440px;
    }

    .hero-image-b-wrapper {
        width: 330px;
        height: 330px;
    }

    .orbit-ring-1 { width: 380px; height: 380px; }
    .orbit-ring-2 { width: 440px; height: 440px; }
    .orbit-ring-3 { width: 300px; height: 300px; }
}

@media (max-width: 768px) {
    .hero-title-b {
        font-size: clamp(40px, 10vw, 60px);
    }

    .hero-subtitle-b {
        font-size: 17px;
    }

    /* Kill all red mesh blobs on mobile — they bleed through the translucent pills
       and create a red wash behind the skill text. Keep blob-4 (gold) for warmth. */
    .blob-1,
    .blob-2,
    .blob-3,
    .blob-5 {
        display: none;
    }

    /* Drop the gold blob's intensity too so the hero stays calm on small screens */
    .blob-4 {
        opacity: 0.2;
        width: 280px;
        height: 280px;
    }

    /* Make pills solid on mobile so text stays legible regardless of background */
    .hero-pill {
        background: rgba(20, 20, 24, 0.85);
        border-color: rgba(255, 255, 255, 0.15);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        color: #fff;
    }

    [data-theme="light"] .hero-pill {
        background: rgba(255, 255, 255, 0.92);
        border-color: rgba(0, 0, 0, 0.12);
        color: #0a0a0b;
    }

    .orbit-container {
        width: 360px;
        height: 360px;
    }

    .hero-image-b-wrapper {
        width: 270px;
        height: 270px;
    }

    .orbit-ring-1 { width: 320px; height: 320px; }
    .orbit-ring-2 { width: 360px; height: 360px; }
    .orbit-ring-3 { width: 240px; height: 240px; }

    .orbit-chip {
        font-size: 11px;
        padding: 8px 12px;
    }

    .hero-stats-b {
        gap: 18px;
    }

    .stat-num-b {
        font-size: 32px;
    }

    .stat-plus-b {
        font-size: 26px;
    }

    .hero-actions-b {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

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

    .ab-toggle {
        bottom: 14px;
        left: 50%;
        transform: translateX(-50%);
        padding: 4px;
    }

    .ab-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .ab-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .orbit-container {
        width: 300px;
        height: 300px;
    }

    .hero-image-b-wrapper {
        width: 225px;
        height: 225px;
    }

    .orbit-ring-1 { width: 270px; height: 270px; }
    .orbit-ring-2 { width: 300px; height: 300px; }
    .orbit-ring-3 { width: 200px; height: 200px; }

    .chip-saas, .chip-mobile { left: -4%; }
    .chip-dash, .chip-systems { right: -4%; }

    .orbit-chip {
        font-size: 10px;
        padding: 6px 10px;
    }
}

/* ============================================
   Sections Common
   ============================================ */
.section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: var(--font-primary);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-lead {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 400;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-primary);
}

.about-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.about-companies h3 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.company-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.company-tag {
    padding: 10px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.company-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* ============================================
   Skills Section
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.skill-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.skill-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.skill-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    color: var(--accent);
    margin-bottom: 20px;
}

.skill-card h3 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.skill-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-list li {
    font-size: 13px;
    color: var(--text-tertiary);
    padding-left: 16px;
    position: relative;
}

.skill-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.5;
}

/* ============================================
   Portfolio Section
   ============================================ */
.portfolio {
    background: var(--bg-secondary);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    background: transparent;
    transition: all var(--transition);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.project-card.hidden {
    display: none;
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(99, 102, 241, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-view {
    color: white;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 24px;
    border: 2px solid white;
    border-radius: var(--radius-full);
    transform: translateY(10px);
    transition: transform var(--transition);
}

.project-card:hover .project-view {
    transform: translateY(0);
}

.project-info {
    padding: 20px 24px 24px;
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.project-tags span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.project-info h3 {
    font-family: var(--font-primary);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.project-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-client {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    padding-left: 12px;
    border-left: 2px solid var(--accent);
}

/* ============================================
   Portfolio Pagination
   ============================================ */
.portfolio-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.page-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--transition);
    cursor: pointer;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 6px;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
}

.page-num:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.page-num.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info .section-tag {
    text-align: left;
}

.contact-info h2 {
    font-family: var(--font-primary);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.contact-item:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.contact-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-socials {
    display: flex;
    gap: 12px;
}

.contact-socials a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.contact-socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    transition: all var(--transition);
    outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-tertiary);
    transition: color var(--transition);
}

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

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
}

/* ============================================
   Animations
   ============================================ */

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-wrapper {
        width: 280px;
        height: 280px;
    }

    .hero-floating-card {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

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

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

@media (max-width: 768px) {
    .nav-inner {
        padding: 0 16px;
        gap: 12px;
    }

    .nav-logo {
        font-size: 15px;
        gap: 8px;
        min-width: 0;
    }

    .nav-logo img {
        width: 30px;
    }

    .nav-logo span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .nav-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .nav-menu-btn {
        display: flex;
    }

    .section {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: clamp(38px, 8vw, 56px);
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .stat {
        text-align: center;
    }

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

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

    .portfolio-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .portfolio-pagination {
        gap: 4px;
        flex-wrap: wrap;
        padding: 0 8px;
    }

    .page-btn {
        width: 36px;
        height: 36px;
    }

    .page-numbers {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-num {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-logo span {
        font-size: 14px;
    }

    .nav-logo img {
        width: 28px;
    }

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

    .about-actions {
        flex-direction: column;
    }

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

    .portfolio-pagination {
        gap: 3px;
        padding: 0 4px;
    }

    .page-btn {
        width: 32px;
        height: 32px;
    }

    .page-num {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .page-numbers {
        gap: 3px;
    }
}
