@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

/* ===== DARK PREMIUM + CREATIVE ===== */
:root {
    --bg: #06090f;
    --bg-elevated: #0c1220;
    --bg-card: rgba(255,255,255,0.035);
    --bg-card-hover: rgba(255,255,255,0.06);
    --bg-glass: rgba(255,255,255,0.05);
    --ink: #e8ecf4;
    --ink-soft: #94a3b8;
    --ink-faint: #475569;
    --line: rgba(255,255,255,0.07);
    --line-hover: rgba(255,255,255,0.14);

    --brand: #6366f1;
    --brand-dark: #4f46e5;
    --brand-light: #818cf8;
    --brand-bg: rgba(99,102,241,0.1);
    --brand-glow: rgba(99,102,241,0.3);

    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --accent-bg: rgba(6,182,212,0.08);
    --accent-glow: rgba(6,182,212,0.25);

    --emerald: #10b981;
    --emerald-bg: rgba(16,185,129,0.1);
    --gold: #f59e0b;
    --gold-bg: rgba(245,158,11,0.1);
    --rose: #f43f5e;
    --rose-bg: rgba(244,63,94,0.08);

    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-xs: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.25);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.35);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.4);
    --shadow-xl: 0 25px 60px rgba(0,0,0,0.5);
    --shadow-brand: 0 8px 30px rgba(99,102,241,0.25);
    --shadow-accent: 0 8px 30px rgba(6,182,212,0.2);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
    --shadow-card-hover: 0 20px 50px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body { padding: 0; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

/* ===== AURORA BACKGROUND ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 1100px 700px at 10% 0%, rgba(99,102,241,0.14), transparent 55%),
        radial-gradient(ellipse 900px 600px at 90% 0%, rgba(6,182,212,0.1), transparent 50%),
        radial-gradient(ellipse 800px 500px at 50% 100%, rgba(245,158,11,0.05), transparent 50%),
        radial-gradient(ellipse 600px 400px at 30% 50%, rgba(244,63,94,0.03), transparent 50%);
    z-index: -3;
    pointer-events: none;
}

/* Dot pattern */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(226, 236, 255, 0.22) 1px, transparent 1.2px),
        radial-gradient(circle, rgba(158, 190, 250, 0.12) 1px, transparent 1.1px);
    background-size: 34px 34px, 58px 58px;
    background-position: 0 0, 17px 13px;
    z-index: -2;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(0,0,0,0.5), transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(0,0,0,0.5), transparent 70%);
}

a { color: var(--brand-light); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent); }

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

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.container { width: min(1200px, calc(100% - 2.5rem)); margin-inline: auto; }
.section { margin-block: 4.5rem; }

/* ===== FLOATING ORBS ===== */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}

.bg-orb-a {
    width: 350px; height: 350px;
    top: 5%; right: -100px;
    background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 65%);
    animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb-b {
    width: 400px; height: 400px;
    bottom: 5%; left: -120px;
    background: radial-gradient(circle, rgba(6,182,212,0.15), transparent 65%);
    animation: orbFloat 25s ease-in-out infinite reverse;
}

.bg-orb-c {
    width: 250px; height: 250px;
    top: 45%; left: 45%;
    background: radial-gradient(circle, rgba(245,158,11,0.08), transparent 65%);
    animation: orbFloat 16s ease-in-out infinite 4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(35px, -45px) scale(1.06); }
    50% { transform: translate(-25px, 25px) scale(0.94); }
    75% { transform: translate(20px, 40px) scale(1.03); }
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6,9,15,0.72);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-bottom: 1px solid var(--line);
    transition: all 0.4s ease;
}

.site-header.is-scrolled {
    background: rgba(6,9,15,0.9);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    border-bottom-color: rgba(99,102,241,0.12);
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.35s var(--ease);
}

.brand:hover { text-decoration: none; transform: scale(1.03); color: var(--ink); }

.brand-mark {
    width: 2.6rem; height: 2.6rem;
    border-radius: 0.7rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-weight: 900;
    font-size: 1.15rem;
    box-shadow: 0 4px 16px var(--brand-glow);
    position: relative;
    overflow: hidden;
    animation: brandPulse 4s ease-in-out infinite;
}

@keyframes brandPulse {
    0%, 100% { box-shadow: 0 4px 16px var(--brand-glow); }
    50% { box-shadow: 0 6px 28px rgba(99,102,241,0.45), 0 0 0 5px rgba(99,102,241,0.1); }
}

.brand-mark::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(255,255,255,0.3) 10%, transparent 20%);
    animation: brandShine 3s linear infinite;
}

@keyframes brandShine {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brand-text { font-weight: 800; letter-spacing: -0.02em; font-size: 1.15rem; }

.site-nav { display: flex; align-items: center; gap: 0.2rem; }

.site-nav a {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%; right: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    border-radius: 2px;
    transition: all 0.35s var(--ease);
}

.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.site-nav a:hover::after { left: 20%; right: 20%; }

.site-nav a.is-active {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.site-nav a.is-active::after { left: 20%; right: 20%; }

.site-nav .btn,
.site-nav .btn:hover {
    color: #fff;
}

.theme-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: 0.4rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
}

.theme-toggle-track {
    position: relative;
    width: 84px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid rgba(211, 225, 252, 0.62);
    background: linear-gradient(180deg, #041426 0%, #0a2342 100%);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.theme-toggle-track::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 54px 9px, rgba(255, 213, 64, 0.95) 1.2px, transparent 1.4px),
        radial-gradient(circle at 67px 14px, rgba(255, 236, 140, 0.8) 1px, transparent 1.2px),
        radial-gradient(circle at 61px 22px, rgba(255, 220, 120, 0.8) 0.9px, transparent 1.1px);
    pointer-events: none;
}

.theme-toggle-icon {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

.theme-toggle-icon img {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.theme-toggle-icon-sun { left: 9px; }

.theme-toggle-icon-moon { right: 9px; }

.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fafc 0%, #e8ecf4 100%);
    box-shadow: 0 5px 12px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.9);
    transition: transform 0.33s var(--ease), background 0.3s ease;
}

.theme-toggle[data-theme='dark'] .theme-toggle-thumb {
    transform: translateX(54px);
    background: linear-gradient(180deg, #eef5ff 0%, #dfe8f5 100%);
}

.theme-toggle[data-theme='dark'] .theme-toggle-icon-sun { opacity: 0.45; }
.theme-toggle[data-theme='light'] .theme-toggle-icon-sun { opacity: 0.95; }
.theme-toggle[data-theme='light'] .theme-toggle-icon-moon { opacity: 0.55; }

.theme-toggle:hover .theme-toggle-track {
    border-color: rgba(225, 234, 255, 0.84);
}

.theme-toggle-label {
    position: absolute;
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--brand-light);
    outline-offset: 3px;
}

/* ===== HAMBURGER ===== */
.menu-toggle {
    display: none;
    width: 2.8rem; height: 2.5rem;
    border: 1px solid var(--line-hover);
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover { border-color: var(--brand); background: var(--brand-bg); }

.menu-toggle span:not(.sr-only) {
    width: 1.2rem; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.35s var(--ease);
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(3px, 5px); background: var(--brand-light); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(3px, -5px); background: var(--brand-light); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.78rem 1.6rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255,255,255,0.12);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(99,102,241,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
    color: #fff;
}

.btn:hover::before { left: 100%; }
.btn:active { transform: translateY(-1px) scale(1); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--line-hover);
    box-shadow: none;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--brand-light);
    color: var(--brand-light);
    box-shadow: 0 4px 20px rgba(99,102,241,0.15);
    transform: translateY(-3px);
}

.btn-mini {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.text-link {
    color: var(--brand-light);
    font-weight: 700;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.3s ease;
}

.text-link::after {
    content: '\2192';
    transition: transform 0.35s var(--ease);
    font-size: 1.1em;
}

.text-link:hover { color: var(--accent); gap: 0.6rem; }
.text-link:hover::after { transform: translateX(3px); }

/* ===== HERO ===== */
.hero-section { padding-top: 3.5rem; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.hero-copy, .hero-panel {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Rainbow animated top border */
.hero-copy::before, .hero-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--emerald), var(--gold), var(--rose), var(--brand));
    background-size: 200% 100%;
    animation: rainbowSlide 4s linear infinite;
}

@keyframes rainbowSlide {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Gradient mesh in hero */
.hero-copy::after {
    content: '';
    position: absolute;
    top: -30%; right: -20%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,0.08), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.eyebrow {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: linear-gradient(135deg, var(--brand-bg), var(--accent-bg));
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.74rem;
    color: var(--brand-light);
    border: 1px solid rgba(99,102,241,0.2);
}

.hero-copy h1 {
    margin: 1rem 0 1rem;
    line-height: 1.08;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(160deg, #fff 30%, var(--ink-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-copy > p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.75; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

.hero-points {
    padding-left: 0;
    margin: 1.8rem 0 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hero-points li {
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.hero-points li::before {
    content: '\2713';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--emerald-bg);
    color: var(--emerald);
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 1px solid rgba(16,185,129,0.2);
    box-shadow: 0 0 10px rgba(16,185,129,0.15);
}

.hero-inline-media {
    margin-top: 1.2rem;
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    box-shadow: var(--shadow-card);
    aspect-ratio: 16 / 9;
}

.hero-inline-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease), filter 0.4s ease;
    filter: saturate(1.06) contrast(1.03);
}

.hero-inline-media:hover img {
    transform: scale(1.04);
    filter: saturate(1.14) contrast(1.06);
}

.hero-inline-media iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.hero-inline-media-video {
    background: #05070d;
}

.hero-inline-media-carousel {
    aspect-ratio: auto;
    min-height: 290px;
}

.hero-inline-media-carousel .hero-carousel {
    margin-top: 0;
    height: 100%;
    gap: 0;
}

.hero-inline-media-carousel .hero-carousel-stage,
.hero-inline-media-carousel .hero-carousel-track {
    height: 100%;
}

.hero-inline-media-carousel .hero-carousel-track {
    gap: 0;
}

.hero-inline-media-carousel .hero-carousel-slide-video {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 290px;
}

.hero-inline-media-carousel .hero-carousel-slide-video iframe {
    width: 100%;
    height: 100%;
    min-height: 290px;
    border: 0;
    display: block;
}

.hero-inline-media-carousel .hero-carousel-overlay {
    pointer-events: none;
    padding: 0.8rem 0.9rem 0.75rem;
}

.hero-carousel-video-link {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(6, 9, 15, 0.74);
    color: #f8fbff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: all 0.25s ease;
}

.hero-carousel-video-link:hover {
    background: rgba(99, 102, 241, 0.9);
    border-color: rgba(199, 210, 254, 0.9);
    color: #fff;
}

.hero-inline-media-video:hover img {
    transform: none;
    filter: none;
}

.hero-inline-caption {
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
    padding: 0.45rem 0.65rem;
    border-radius: 0.6rem;
    background: rgba(6, 9, 15, 0.72);
    border: 1px solid rgba(255,255,255,0.1);
    color: #eaf1ff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-inline-media-carousel .hero-inline-caption {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.7rem;
}

.hero-panel h2 {
    font-family: "Playfair Display", serif;
    margin: 0 0 0.7rem;
    font-size: 1.5rem;
}

.hero-panel > p { color: var(--ink-soft); }

.hero-carousel {
    margin-top: 1.05rem;
    display: grid;
    gap: 0.7rem;
}

.hero-carousel-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hero-carousel-track::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.hero-carousel-slide {
    position: relative;
    flex: 0 0 100%;
    min-height: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(9, 13, 24, 0.85);
    box-shadow: 0 14px 30px rgba(0,0,0,0.35);
    scroll-snap-align: start;
}

.hero-carousel-slide img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: transform 0.75s var(--ease), filter 0.5s ease;
    filter: saturate(1.08) contrast(1.05);
}

.hero-carousel-slide:hover img {
    transform: scale(1.045);
    filter: saturate(1.16) contrast(1.08);
}

.hero-carousel-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.05rem 1rem 0.92rem;
    background: linear-gradient(to top, rgba(5, 8, 14, 0.92) 22%, rgba(5, 8, 14, 0.55) 56%, transparent);
    display: grid;
    gap: 0.3rem;
}

.hero-carousel-overlay strong {
    color: #fff;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.hero-carousel-overlay small {
    color: rgba(230, 238, 252, 0.84);
    line-height: 1.4;
}

.hero-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.hero-carousel-btn {
    border: 1px solid var(--line-hover);
    background: rgba(255,255,255,0.05);
    color: var(--ink);
    border-radius: 999px;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-carousel-btn:hover {
    color: #fff;
    background: rgba(99,102,241,0.2);
    border-color: rgba(129,140,248,0.66);
    box-shadow: 0 8px 22px rgba(99,102,241,0.25);
    transform: translateY(-1px);
}

.hero-carousel-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.hero-carousel-btn-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-carousel-btn:focus-visible {
    outline: 2px solid var(--brand-light);
    outline-offset: 2px;
}

.hero-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.hero-carousel-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.48);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-carousel-dot.is-active {
    width: 24px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.hero-carousel-service {
    margin-top: 0;
    position: relative;
}

.hero-carousel-service .hero-carousel-stage {
    position: relative;
}

.hero-carousel-service .hero-carousel-track {
    overflow-x: hidden;
}

.hero-carousel-service .hero-carousel-controls-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.24s ease;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.7rem;
}

.hero-carousel-service:hover .hero-carousel-controls-overlay,
.hero-carousel-service:focus-within .hero-carousel-controls-overlay {
    opacity: 1;
}

.hero-carousel-service .hero-carousel-btn {
    width: 2.2rem;
    height: 2.2rem;
    pointer-events: auto;
    background: rgba(7, 11, 20, 0.62);
    border-color: rgba(148, 163, 184, 0.48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.hero-carousel-service .hero-carousel-btn:hover {
    background: rgba(99,102,241,0.35);
}

.hero-carousel-service .hero-carousel-dots-service {
    margin-top: 0.62rem;
    justify-content: center;
    pointer-events: none;
}

.hero-carousel-service .hero-carousel-slide img {
    height: min(62vh, 560px);
    min-height: 0;
    object-fit: contain;
    background: rgba(8, 12, 21, 0.78);
}

.hero-carousel-service .hero-carousel-slide:hover img {
    transform: scale(1.02);
}

.hero-carousel-primary {
    margin-top: 0;
    position: relative;
}

.hero-carousel-primary .hero-carousel-stage {
    position: relative;
}

.hero-carousel-primary .hero-carousel-track {
    overflow-x: hidden;
}

.hero-carousel-primary .hero-carousel-controls-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.24s ease;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.7rem;
}

.hero-carousel-primary:hover .hero-carousel-controls-overlay,
.hero-carousel-primary:focus-within .hero-carousel-controls-overlay {
    opacity: 1;
}

.hero-carousel-primary .hero-carousel-btn {
    width: 2.2rem;
    height: 2.2rem;
    pointer-events: auto;
    background: rgba(7, 11, 20, 0.62);
    border-color: rgba(148, 163, 184, 0.48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.hero-carousel-primary .hero-carousel-btn:hover {
    background: rgba(99,102,241,0.35);
}

.hero-carousel-primary .hero-carousel-dots-primary {
    margin-top: 0.62rem;
    justify-content: center;
}

.hero-carousel-inline {
    margin-top: 0;
    position: relative;
}

.hero-carousel-inline .hero-carousel-stage {
    position: relative;
}

.hero-carousel-inline .hero-carousel-track {
    overflow-x: hidden;
    touch-action: pan-y;
}

.hero-carousel-inline .hero-carousel-controls-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.24s ease;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.7rem;
}

.hero-carousel-inline:hover .hero-carousel-controls-overlay,
.hero-carousel-inline:focus-within .hero-carousel-controls-overlay {
    opacity: 1;
}

.hero-carousel-inline .hero-carousel-btn {
    width: 2.2rem;
    height: 2.2rem;
    pointer-events: auto;
    background: rgba(7, 11, 20, 0.62);
    border-color: rgba(148, 163, 184, 0.48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.hero-carousel-inline .hero-carousel-btn:hover {
    background: rgba(99,102,241,0.35);
}

.hero-carousel-inline .hero-carousel-dots-inline {
    margin-top: 0.62rem;
    justify-content: center;
}

.pricing-carousel {
    margin-top: 0.65rem;
    display: grid;
    gap: 0.75rem;
}

.pricing-carousel .pricing-carousel-stage {
    position: relative;
}

.pricing-carousel .pricing-carousel-track {
    display: flex;
    gap: 1.3rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pricing-carousel .pricing-carousel-track::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.pricing-carousel .pricing-carousel-track > .pricing-card {
    flex: 0 0 calc((100% - 2.6rem) / 3);
    min-width: 0;
    scroll-snap-align: start;
}

.pricing-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.pricing-carousel-controls-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.24s ease;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.7rem;
}

.pricing-carousel:hover .pricing-carousel-controls-overlay,
.pricing-carousel:focus-within .pricing-carousel-controls-overlay {
    opacity: 1;
}

.pricing-carousel-btn {
    border: 1px solid var(--line-hover);
    background: rgba(7, 11, 20, 0.62);
    color: var(--ink);
    border-radius: 999px;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.pricing-carousel-btn:hover {
    color: #fff;
    background: rgba(99,102,241,0.35);
    border-color: rgba(129,140,248,0.72);
    box-shadow: 0 8px 22px rgba(99,102,241,0.25);
    transform: translateY(-1px);
}

.pricing-carousel-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.pricing-carousel-btn-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pricing-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
}

.pricing-carousel-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.48);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-carousel-dot.is-active {
    width: 24px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

@media (max-width: 1080px) {
    .pricing-carousel .pricing-carousel-track > .pricing-card {
        flex-basis: calc((100% - 1.3rem) / 2);
    }
}

@media (max-width: 700px) {
    .pricing-carousel .pricing-carousel-track > .pricing-card {
        flex-basis: 100%;
    }
}

@media (hover: none), (pointer: coarse) {
    .hero-inline-media-carousel .hero-carousel-slide-video iframe {
        pointer-events: none;
    }

    .hero-carousel-inline .hero-carousel-controls-overlay {
        opacity: 1;
    }

    .hero-carousel-service .hero-carousel-controls-overlay {
        opacity: 1;
    }

    .hero-carousel-primary .hero-carousel-controls-overlay {
        opacity: 1;
    }

    .pricing-carousel .pricing-carousel-controls-overlay {
        opacity: 1;
    }
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.3rem;
}

.stat-grid div {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1rem 0.6rem;
    text-align: center;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.stat-grid div::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(6,182,212,0.06));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-grid div:hover {
    border-color: rgba(99,102,241,0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.15);
}

.stat-grid div:hover::before { opacity: 1; }

.stat-grid strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.stat-grid span {
    font-size: 0.78rem;
    color: var(--ink-faint);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: relative;
}

/* ===== SECTION HEADS ===== */
.section-head { margin-bottom: 2rem; }

.section-head h1, .section-head h2, h1, h2 {
    font-family: "Playfair Display", serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; max-width: 620px; }

/* Gradient underline for section headings */
.section-head h2::after {
    content: '';
    display: block;
    width: 50px; height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    border-radius: 3px;
    margin-top: 0.6rem;
    box-shadow: 0 0 12px var(--brand-glow);
}

h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; line-height: 1.3; }

/* ===== CARDS ===== */
.card-grid, .pricing-grid, .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
}

.card, .pricing-card, .testimonial-card, .form-card, .info-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease);
}

/* Gradient border on hover */
.card::before, .pricing-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--brand), var(--accent), var(--emerald));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card::after, .pricing-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: calc(var(--radius-xl) - 1px);
    background: var(--bg-elevated);
    z-index: -1;
}

.card:hover, .pricing-card:hover, .info-card:hover {
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover), 0 0 40px rgba(99,102,241,0.08);
}

.card:hover::before, .pricing-card:hover::before { opacity: 1; }

.card h3 { margin: 1rem 0 0.5rem; }
.card h3 a { color: var(--ink); transition: color 0.3s ease; }
.card h3 a:hover { color: var(--brand-light); }
.card > p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.65; }

.card-media-link {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.03);
    position: relative;
}

.card-media-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,9,15,0.4), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.card:hover .card-media-link::after { opacity: 1; }

.card-media-link img {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 0;
    transition: transform 0.7s var(--ease);
}

.card:hover .card-media-link img { transform: scale(1.08); }

.service-card-media {
    display: block; width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.03);
}

.service-card-media img {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 0;
    transition: transform 0.7s var(--ease);
}

.card:hover .service-card-media img { transform: scale(1.06); }

/* ===== SERVICE PILLS ===== */
.service-pill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 0; padding: 0;
}

.service-pill-list a {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-glass);
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.35s var(--ease);
    backdrop-filter: blur(4px);
}

.service-pill-list a:hover {
    border-color: var(--brand);
    color: var(--brand-light);
    background: var(--brand-bg);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--brand-glow);
}

/* ===== PRICING ===== */
.pricing-card h2, .pricing-card h3 { margin: 0.8rem 0 0.4rem; }

.featured-pricing-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.featured-pricing-service {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.featured-pricing-service a {
    color: var(--brand-light);
    font-weight: 700;
}

.featured-pricing-service a:hover {
    color: var(--accent);
}

.featured-pricing-billing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.44);
    color: #e9f2ff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.featured-pricing-section .pricing-grid {
    align-items: stretch;
}

.featured-pricing-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.featured-pricing-media {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: radial-gradient(circle at 20% 20%, rgba(99,102,241,0.26), transparent 48%), rgba(11, 16, 30, 0.9);
}

.featured-pricing-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s var(--ease), filter 0.35s ease;
    filter: saturate(1.02) contrast(1.04);
}

.featured-pricing-card:hover .featured-pricing-media img {
    transform: scale(1.05);
    filter: saturate(1.08) contrast(1.08);
}

.featured-pricing-media-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 20%, rgba(129, 140, 248, 0.52), transparent 42%),
        radial-gradient(circle at 88% 80%, rgba(6, 182, 212, 0.4), transparent 40%),
        linear-gradient(135deg, rgba(12, 18, 32, 0.95), rgba(16, 28, 44, 0.9));
}

.featured-pricing-body {
    padding: 1.15rem 1.2rem 1.25rem;
    display: grid;
    gap: 0.42rem;
    flex: 1;
}

.featured-pricing-body h3 {
    margin: 0;
}

.featured-pricing-cta {
    font-weight: 700;
}

.price-tag {
    margin: 0.4rem 0;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--brand-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-media {
    display: block; width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.03);
    margin-bottom: 0.8rem;
}

.pricing-media img {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 0;
    transition: transform 0.7s var(--ease);
}

.pricing-card:hover .pricing-media img { transform: scale(1.06); }

.pay-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.feature-list {
    margin: 0.8rem 0;
    padding-left: 0;
    list-style: none;
}

.feature-list li {
    padding: 0.4rem 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.feature-list li::before {
    content: '\2713';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--emerald-bg);
    color: var(--emerald);
    font-size: 0.65rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 1px solid rgba(16,185,129,0.15);
}

.muted, small { color: var(--ink-faint); }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 1.8rem;
    position: relative;
    transition: all 0.5s var(--ease);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease);
}

.testimonial-card:hover::before { transform: scaleX(1); }

.testimonial-card::after {
    content: '\201C';
    position: absolute;
    top: 0.6rem; right: 1.2rem;
    font-size: 5rem;
    font-family: "Playfair Display", serif;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    pointer-events: none;
}

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

.stars {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
    color: var(--gold);
    text-shadow: 0 0 12px rgba(245,158,11,0.3);
}

.testimonial-card > p { color: var(--ink-soft); font-style: italic; line-height: 1.75; }
.testimonial-card h3 { margin: 1rem 0 0.2rem; font-size: 1rem; color: var(--ink); font-family: "Inter", sans-serif; }
.testimonial-card small { color: var(--ink-faint); }

.testimonial-carousel {
    display: grid;
    gap: 1rem;
}

.testimonial-carousel-controls {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

.testimonial-carousel.is-carousel .testimonial-carousel-controls {
    display: flex;
}

.testimonial-carousel-btn {
    border: 1px solid var(--line-hover);
    background: var(--bg-card);
    color: var(--ink);
    border-radius: 999px;
    min-width: 4.6rem;
    padding: 0.46rem 0.9rem;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-carousel-btn:hover {
    border-color: var(--brand-light);
    color: #fff;
    background: rgba(99,102,241,0.18);
}

.testimonial-carousel-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.testimonial-carousel-dots {
    display: flex;
    align-items: center;
    gap: 0.42rem;
}

.testimonial-carousel-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(148, 163, 184, 0.45);
    transition: all 0.3s ease;
}

.testimonial-carousel-dot.is-active {
    width: 26px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.testimonial-carousel.is-carousel [data-testimonial-track] {
    display: flex;
    gap: 1.3rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonial-carousel.is-carousel [data-testimonial-track]::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.testimonial-carousel.is-carousel [data-testimonial-slide] {
    flex: 0 0 calc((100% - (1.3rem * 2)) / 3);
    scroll-snap-align: start;
}

/* ===== PORTFOLIO VIDEO ===== */
.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #080c16;
    box-shadow: var(--shadow-md);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: 0;
}

.service-feature-video {
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* ===== DYNAMIC PAGE COMPATIBILITY ===== */
.hero-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}

.hero-media .media-zoom img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.service-content {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.service-media-video-grid {
    margin-top: 1.2rem;
}

.media-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 0.9rem;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.media-card img,
.media-card video {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
}

.media-card.video-embed {
    padding: 0;
    background: transparent;
}

.service-media-carousel {
    margin-bottom: 1.2rem;
}

.service-media-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.service-media-track::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.service-media-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.service-media-slide.media-card {
    padding: 0.95rem;
}

.service-media-slide .media-zoom {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.service-media-slide .media-zoom img {
    width: 100%;
    height: min(62vh, 560px);
    object-fit: contain;
}

.service-media-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.72rem;
    margin-top: 0.95rem;
}

.service-media-btn {
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--line-hover);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--ink);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.service-media-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(99,102,241,0.5);
    background: rgba(99,102,241,0.14);
    color: #fff;
}

.service-media-btn:focus-visible {
    outline: 2px solid var(--brand-light);
    outline-offset: 2px;
}

.service-media-btn-icon {
    width: 1.02rem;
    height: 1.02rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.service-media-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.44rem;
}

.service-media-dot {
    width: 0.6rem;
    height: 0.6rem;
    border: 0;
    border-radius: 999px;
    background: rgba(148,163,184,0.55);
    cursor: pointer;
    transition: all 0.22s ease;
}

.service-media-dot:hover {
    background: rgba(148,163,184,0.86);
}

.service-media-dot.is-active {
    width: 1.4rem;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.portfolio-card {
    display: flex;
    flex-direction: column;
}

.portfolio-card-carousel {
    display: grid;
    gap: 0.78rem;
    margin-bottom: 0.95rem;
}

.portfolio-card-track {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.portfolio-card-track::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.portfolio-card-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.portfolio-card-slide .media-zoom,
.portfolio-card > .media-zoom {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(8, 12, 22, 0.82);
}

.portfolio-card > .media-zoom {
    margin-bottom: 0.95rem;
}

.portfolio-card-slide .media-zoom img,
.portfolio-card > .media-zoom img {
    width: 100%;
    height: min(52vh, 340px);
    object-fit: contain;
    display: block;
    background: rgba(6, 10, 18, 0.92);
}

.portfolio-card-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.68rem;
}

.portfolio-card-btn {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--line-hover);
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.24s ease;
}

.portfolio-card-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(99,102,241,0.58);
    background: rgba(99,102,241,0.2);
    color: #fff;
}

.portfolio-card-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.portfolio-card-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.portfolio-card-dot {
    width: 0.58rem;
    height: 0.58rem;
    border: 0;
    border-radius: 999px;
    background: rgba(148,163,184,0.55);
    cursor: pointer;
    transition: all 0.22s ease;
}

.portfolio-card-dot.is-active {
    width: 1.35rem;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.media-zoom {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
}

.media-zoom:hover { text-decoration: none; }

.media-zoom-label {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    padding: 0.35rem 0.62rem;
    border-radius: 999px;
    background: rgba(6,9,15,0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.faq-list {
    display: grid;
    gap: 0.8rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1rem 1.2rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
    list-style: none;
}

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

.faq-item[open] {
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 8px 24px rgba(99,102,241,0.15);
}

.faq-item .prose {
    padding: 1rem 0 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.info-card ol,
.info-card ul {
    color: var(--ink-soft);
    padding-left: 1.3rem;
}

/* ===== CONTACT FORMS ===== */
.whatsapp-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1.4rem;
    padding: 1.05rem 1.2rem;
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 12% 20%, rgba(16, 185, 129, 0.18), transparent 46%),
        radial-gradient(circle at 88% 82%, rgba(34, 197, 94, 0.14), transparent 42%),
        rgba(6, 18, 14, 0.42);
}

.whatsapp-cta h2 {
    margin: 0;
    font-size: 1.15rem;
}

.whatsapp-cta p {
    margin: 0.2rem 0 0;
    color: var(--ink-soft);
}

.whatsapp-number {
    font-weight: 700;
    color: #9ae6b4;
    letter-spacing: 0.01em;
}

.whatsapp-btn {
    white-space: nowrap;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.3);
}

.whatsapp-btn:hover {
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.32);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 2.2rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.form-card h2 {
    font-family: "Playfair Display", serif;
    margin: 0 0 1.2rem;
}

.form-card label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

input, select, textarea {
    font: inherit;
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
    background: rgba(99,102,241,0.04);
}

input::placeholder, textarea::placeholder { color: var(--ink-faint); }
select { cursor: pointer; }
select option { background: var(--bg); color: var(--ink); }
textarea { resize: vertical; min-height: 100px; }

/* ===== BREADCRUMBS ===== */
.breadcrumb-wrap { margin-top: 1.5rem; }

.breadcrumbs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0; padding: 0;
    font-size: 0.88rem;
}

.breadcrumbs li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li + li::before { content: '\203A'; color: var(--ink-faint); font-size: 1.2em; }
.breadcrumbs a { color: var(--brand-light); font-weight: 500; }
.breadcrumbs span { color: var(--ink-faint); }

/* ===== PROSE ===== */
.prose {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 2.5rem 3rem;
    box-shadow: var(--shadow-card);
}

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose h2::after { content: ''; display: block; width: 30px; height: 2px; background: var(--brand); border-radius: 2px; margin-top: 0.4rem; box-shadow: 0 0 8px var(--brand-glow); }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { color: var(--ink-soft); padding: 0.25rem 0; }
.prose p { color: var(--ink-soft); line-height: 1.8; }

/* ===== NOTICE ===== */
.notice { padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; }
.notice.success { background: var(--emerald-bg); color: var(--emerald); border: 1px solid rgba(16,185,129,0.2); }
.notice.error { background: var(--rose-bg); color: var(--rose); border: 1px solid rgba(244,63,94,0.2); }

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(6,9,15,0.92);
    backdrop-filter: blur(12px);
    display: grid;
    place-items: center;
    padding: 2rem;
}

.lightbox[hidden] { display: none; }

.lightbox-image {
    width: min(1500px, 94vw);
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.2rem; right: 1.2rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255,255,255,0.26);
    border-radius: 999px;
    background: rgba(9, 14, 26, 0.56);
    color: #f8fbff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.22s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lightbox-nav:hover {
    border-color: rgba(129, 140, 248, 0.82);
    background: rgba(99,102,241,0.28);
    transform: translateY(-50%) scale(1.04);
}

.lightbox-nav:focus-visible {
    outline: 2px solid var(--brand-light);
    outline-offset: 3px;
}

.lightbox-nav-prev { left: 1.1rem; }
.lightbox-nav-next { right: 1.1rem; }

.lightbox-nav-icon {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: 1.2rem;
    transform: translateX(-50%);
    min-width: 4rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: rgba(8, 12, 21, 0.72);
    border: 1px solid rgba(255,255,255,0.2);
    color: #f4f7ff;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.02em;
}

@media (max-width: 720px) {
    .lightbox-nav {
        width: 2.55rem;
        height: 2.55rem;
    }
    .lightbox-nav-prev { left: 0.55rem; }
    .lightbox-nav-next { right: 0.55rem; }
}

body.lightbox-open { overflow: hidden; }

/* ===== FOOTER ===== */
.site-footer {
    margin: 5rem auto 2rem;
    width: min(1200px, calc(100% - 2.5rem));
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--emerald), var(--gold));
    background-size: 200% 100%;
    animation: rainbowSlide 4s linear infinite;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.5rem;
}

.footer-grid h3, .footer-grid h4 { color: var(--ink); }
.footer-grid p { color: var(--ink-soft); font-size: 0.93rem; }
.footer-grid a { color: var(--brand-light); }
.footer-grid a:hover { color: var(--accent); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.card-grid .card, .pricing-grid .pricing-card, .testimonial-grid .testimonial-card {
    opacity: 0;
    transform: translateY(35px) scale(0.97);
    transition: all 0.7s var(--ease);
}

.card-grid .card.is-visible, .pricing-grid .pricing-card.is-visible,
.testimonial-grid .testimonial-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
    .hero-grid, .card-grid, .pricing-grid, .testimonial-grid, .media-grid, .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-carousel.is-carousel [data-testimonial-slide] {
        flex-basis: calc((100% - 1.3rem) / 2);
    }
}

@media (max-width: 920px) {
    .menu-toggle { display: inline-flex; }

    .site-nav {
        position: absolute;
        right: 1rem; top: 76px;
        width: min(340px, calc(100% - 2rem));
        background: rgba(6,9,15,0.95);
        backdrop-filter: blur(24px);
        border: 1px solid var(--line-hover);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);
        padding: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav.is-open { display: flex; animation: slideDown 0.4s var(--ease); }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-12px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .site-nav a { padding: 0.7rem 0.9rem; }
    .site-nav a::after { display: none; }
    .theme-toggle {
        width: auto;
        margin-left: 0;
        margin-top: 0.35rem;
        align-self: flex-start;
    }

    body.menu-open { overflow: hidden; }

    .hero-grid, .contact-grid, .card-grid, .pricing-grid,
    .testimonial-grid, .media-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .whatsapp-btn {
        width: 100%;
        text-align: center;
    }

    .service-media-slide .media-zoom img {
        height: min(52vh, 420px);
    }

    .hero-copy, .hero-panel { padding: 1.8rem; }
    .hero-carousel-slide,
    .hero-carousel-slide img { min-height: 210px; }
    .hero-inline-media-carousel,
    .hero-inline-media-carousel .hero-carousel-slide-video,
    .hero-inline-media-carousel .hero-carousel-slide-video iframe { min-height: 230px; }
    .section { margin-block: 3rem; }
}

@media (max-width: 600px) {
    .stat-grid { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 1.8rem; }
    .hero-carousel-slide,
    .hero-carousel-slide img { min-height: 185px; }
    .hero-inline-media-carousel,
    .hero-inline-media-carousel .hero-carousel-slide-video,
    .hero-inline-media-carousel .hero-carousel-slide-video iframe { min-height: 195px; }
    .service-media-slide .media-zoom img { height: min(46vh, 300px); }
    .featured-pricing-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    .container { width: calc(100% - 1.5rem); }
    .prose { padding: 1.5rem; }
    .form-card { padding: 1.5rem; }
    .testimonial-carousel.is-carousel [data-testimonial-slide] { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .card-grid .card, .pricing-grid .pricing-card, .testimonial-grid .testimonial-card {
        opacity: 1; transform: none;
    }
}

main { min-height: 60vh; }

/* ===== PAGE TRANSITION ===== */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.page-transition-overlay.is-active { opacity: 1; pointer-events: all; }

/* ===== CURSOR GLOW ===== */
.cursor-glow {
    position: fixed;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.06), transparent 60%);
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    will-change: left, top;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--emerald));
    z-index: 10000;
    border-radius: 0 3px 3px 0;
    transition: width 0.08s linear;
    box-shadow: 0 0 12px var(--brand-glow);
}

/* ===== RIPPLE ===== */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* ===== SERVICE NUMBER BADGE ===== */
.service-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-bg), var(--accent-bg));
    color: var(--brand-light);
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid rgba(99,102,241,0.2);
    margin-bottom: 0.5rem;
    box-shadow: 0 0 10px rgba(99,102,241,0.12);
}

/* ===== ANIMATED GRADIENT TEXT ===== */
.animated-gradient {
    background: linear-gradient(270deg, var(--brand-light), var(--accent), var(--emerald), var(--brand-light));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== PARTICLE CANVAS ===== */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
