/* ==========================================================================
   PLAIGROUND — Premium Dark-Tech Design System
   ========================================================================== */

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ===== DESIGN TOKENS ===== */
:root {
    /* Surfaces */
    --bg-0: #04060b;
    --bg-1: #070a13;
    --bg-2: #0b1020;
    --card: rgba(255, 255, 255, 0.035);
    --card-strong: rgba(255, 255, 255, 0.055);
    --border: rgba(148, 163, 184, 0.12);
    --border-strong: rgba(148, 163, 184, 0.22);

    /* Accents */
    --accent: #22d3ee;
    --accent-2: #3b82f6;
    --accent-3: #818cf8;
    --glow: rgba(34, 211, 238, 0.55);
    --danger: #f87171;

    /* Text */
    --text: #eef2ff;
    --text-soft: #a8b3cc;
    --text-muted: #64748b;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

    --radius: 18px;
    --radius-lg: 22px;
    --radius-sm: 12px;

    --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 12px 34px -10px rgba(34, 211, 238, 0.5);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

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

::selection { background: rgba(34, 211, 238, 0.28); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #155e75, #1e3a8a);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: #0e7490; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== CUSTOM CURSOR ===== */
body.cursor-enabled, body.cursor-enabled * { cursor: none !important; }

.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 5000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
body.cursor-enabled .cursor-dot,
body.cursor-enabled .cursor-ring { opacity: 1; }

.cursor-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    box-shadow: 0 0 12px var(--glow);
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(34, 211, 238, 0.55);
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease-soft), height 0.25s var(--ease-soft),
                border-color 0.25s, background 0.25s, opacity 0.3s ease;
}

body.cursor-enabled .cursor-ring.hovering {
    width: 54px;
    height: 54px;
    border-color: rgba(34, 211, 238, 0.9);
    background: rgba(34, 211, 238, 0.08);
}

body.cursor-enabled .cursor-ring.clicked {
    transform: translate(-50%, -50%) scale(0.7);
    border-color: rgba(255, 255, 255, 0.7);
}

@media (hover: none), (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ===== GLOBAL BACKGROUND SCENE ===== */
.bg-scene {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(1100px 750px at 85% -10%, rgba(59, 130, 246, 0.10), transparent 60%),
        radial-gradient(1000px 700px at -10% 25%, rgba(34, 211, 238, 0.08), transparent 55%),
        linear-gradient(180deg, #04060b 0%, #060913 100%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
            mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    will-change: transform;
}
.bg-orb-1 {
    width: 540px; height: 540px;
    top: -150px; right: -130px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
    animation: orbFloat 18s ease-in-out infinite;
}
.bg-orb-2 {
    width: 480px; height: 480px;
    bottom: -170px; left: -140px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.16), transparent 70%);
    animation: orbFloat 24s ease-in-out infinite reverse;
}
.bg-orb-3 {
    width: 360px; height: 360px;
    top: 42%; left: 56%;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.13), transparent 70%);
    animation: orbFloat 30s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.08); }
    66%      { transform: translate(-30px, 24px) scale(0.94); }
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-logo {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text);
    text-align: center;
}
.preloader-logo span { color: var(--accent); }

.preloader-bar {
    width: 210px;
    height: 2px;
    margin: 22px auto 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}
.preloader-bar-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    animation: preloadFill 1.3s var(--ease-soft) forwards;
}
@keyframes preloadFill { to { transform: scaleX(1); } }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 2000;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    transform-origin: 0 50%;
    transform: scaleX(0);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: padding 0.4s var(--ease), background 0.4s ease, border-color 0.4s ease,
                box-shadow 0.4s ease, backdrop-filter 0.4s ease;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    padding: 10px 0;
    background: rgba(4, 6, 11, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
            backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--border);
    box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.8);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 32px);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: var(--text);
    position: relative;
    z-index: 2100;
}
.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04060b;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    box-shadow: 0 8px 20px -6px rgba(34, 211, 238, 0.6);
    transition: transform 0.35s var(--ease);
}
.nav-logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-dot { color: var(--accent); }

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

.nav-link {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.94rem;
    color: var(--text-soft);
    position: relative;
    transition: color 0.25s ease, background 0.25s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-cta-item { display: none; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2100;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.bar {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.35s var(--ease), opacity 0.3s ease, background 0.3s;
}
.hamburger:hover .bar { background: var(--accent); }
.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s var(--ease), box-shadow 0.35s ease, background 0.3s ease,
                border-color 0.3s ease, color 0.3s ease;
    will-change: transform;
    white-space: nowrap;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #04060b;
    box-shadow: 0 14px 34px -12px rgba(34, 211, 238, 0.55);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px -12px rgba(59, 130, 246, 0.6);
}

/* Animated gradient glow ring around key CTAs */
.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(from var(--angle, 0deg),
        transparent 0%, rgba(34, 211, 238, 0.9) 12%, transparent 26%,
        rgba(59, 130, 246, 0.9) 48%, transparent 62%,
        rgba(129, 140, 248, 0.9) 78%, transparent 92%);
    filter: blur(9px);
    opacity: 0.75;
    animation: rotateAngle 6s linear infinite;
    pointer-events: none;
}
@keyframes rotateAngle { to { --angle: 360deg; } }

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    color: var(--text);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}
.btn-ghost:hover {
    border-color: var(--accent);
    background: rgba(34, 211, 238, 0.08);
    color: var(--accent);
    transform: translateY(-3px);
}
.btn-ghost-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04060b;
    display: grid;
    place-items: center;
    font-size: 0.6rem;
    transition: transform 0.35s var(--ease);
}
.btn-ghost:hover .btn-ghost-icon { transform: rotate(90deg); }

.btn-sm { padding: 10px 18px; font-size: 0.86rem; border-radius: 10px; }
.btn-full { width: 100%; }

.btn-spinner { display: none; }
.btn.loading .btn-spinner { display: inline-flex; }
.btn.loading .btn-send-icon { display: none; }

/* ===== PAGE TRANSITION ===== */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: linear-gradient(135deg, #0a1222 0%, #04060b 100%);
    transform: translateY(101%);
    pointer-events: none;
}
.page-transition.playing { animation: curtain 0.6s var(--ease) forwards; }
@keyframes curtain {
    0%   { transform: translateY(101%); }
    45%  { transform: translateY(0); }
    100% { transform: translateY(-101%); }
}

/* ===== PAGES ===== */
.page { display: none; }
.page.active { display: block; animation: pageIn 0.5s ease; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

.page:not(#home) { padding-top: clamp(130px, 16vh, 180px); }

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 32px);
}

.section { padding: clamp(72px, 10vw, 120px) 0; }

/* ===== SECTION HEADINGS ===== */
.section-head {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
}
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.section-tag::before,
.section-tag::after {
    content: '';
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent));
}
.section-tag::after {
    background: linear-gradient(90deg, var(--accent), transparent);
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    color: var(--text);
    margin-bottom: 16px;
}
.section-subtitle {
    max-width: 560px;
    margin-inline: auto;
    color: var(--text-soft);
    font-size: 1.05rem;
}

.page-hero {
    text-align: center;
    margin-bottom: clamp(48px, 7vw, 72px);
}
.page-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: var(--text);
    margin-bottom: 16px;
}
.page-subtitle {
    max-width: 600px;
    margin-inline: auto;
    color: var(--text-soft);
    font-size: 1.12rem;
}

/* ===== TEXT EFFECTS ===== */
.text-gradient {
    background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 45%, var(--accent-3) 75%, var(--accent) 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
    animation: gradientFlow 7s ease-in-out infinite;
}
@keyframes gradientFlow {
    0%, 100% { background-position: 0% center; }
    50%      { background-position: 100% center; }
}

.text-stroke {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(238, 242, 255, 0.55);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 140px 0 90px;
}

.particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.55;
    pointer-events: none;
}

.hero-orbit {
    position: absolute;
    top: 12%;
    right: 4%;
    width: 560px;
    height: 560px;
    z-index: 0;
    pointer-events: none;
}
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.13);
    box-shadow: inset 0 0 60px rgba(34, 211, 238, 0.05), 0 0 60px rgba(34, 211, 238, 0.04);
    animation: orbitSpin 42s linear infinite;
}
.orbit-ring::before,
.orbit-ring::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px var(--glow);
}
.orbit-ring::before { top: -4px; left: 50%; }
.orbit-ring::after { bottom: -4px; right: 22%; }
.orbit-ring-1 { inset: 0; }
.orbit-ring-2 {
    inset: 90px;
    border-style: dashed;
    border-color: rgba(59, 130, 246, 0.18);
    animation-duration: 26s;
    animation-direction: reverse;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(40px, 5vw, 70px);
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-soft);
}
.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--glow);
    animation: badgePulse 2.2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 6px var(--glow); }
    50%      { box-shadow: 0 0 16px var(--glow); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    line-height: 1.05;
    color: var(--text);
    margin: 26px 0 22px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.14rem;
    color: var(--text-soft);
    max-width: 540px;
    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hero-meta-num {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}
.hero-meta-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}
.hero-meta-divider {
    width: 1px;
    height: 38px;
    background: var(--border);
}

/* Hero entrance */
.hero-anim { opacity: 0; }
.site-ready .hero-anim {
    animation: heroEnter 0.9s var(--ease) both;
    animation-delay: var(--d, 0s);
}
@keyframes heroEnter {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Hero visual / tech cards --- */
.hero-visual {
    position: relative;
    height: 520px;
    z-index: 2;
}

.tech-float {
    position: absolute;
    will-change: transform;
}
.tech-float-main {
    top: 6px;
    left: 50%;
    width: 360px;
    margin-left: -180px;
}
.tech-float-stats { bottom: 74px; left: 0; width: 224px; }
.tech-float-mini { bottom: 0; right: 0; width: 232px; }

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
    animation: floaty 7s ease-in-out infinite;
}
.tech-float-stats .tech-card { animation-delay: -2.4s; }
.tech-float-mini .tech-card { animation-delay: -4.6s; }
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-13px); }
}

.tech-card-main { padding: 18px; }

.tech-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}
.window-dots { display: flex; gap: 6px; }
.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.35);
}
.window-dots span:nth-child(1) { background: rgba(248, 113, 113, 0.7); }
.window-dots span:nth-child(2) { background: rgba(251, 191, 36, 0.7); }
.window-dots span:nth-child(3) { background: rgba(52, 211, 153, 0.7); }
.tech-card-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.code-window { font-family: var(--font-mono); font-size: 0.82rem; line-height: 2; }
.code-line { white-space: pre; }
.code-indent-1 { padding-left: 18px; }
.code-var { color: var(--accent); }
.code-key { color: var(--accent-3); }
.code-prop { color: #e2e8f0; }
.code-str { color: #7dd3fc; }
.code-num { color: #f0abfc; }

.tech-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-soft);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}
.status-pill i { font-size: 0.5rem; color: #34d399; }
.status-time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }

.tech-card-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
}
.stat-ring { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.stat-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(148, 163, 184, 0.15); stroke-width: 3; }
.ring-fg {
    fill: none;
    stroke: url(#ringGrad);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 84.8 113.1;
}
.ring-num {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
}
.stat-ring-info strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.98rem;
    color: var(--text);
}
.stat-ring-info span { font-size: 0.78rem; color: var(--text-muted); }

.tech-card-mini { padding: 16px 18px; }
.mini-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mini-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04060b;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    box-shadow: 0 8px 18px -6px rgba(34, 211, 238, 0.55);
}
.mini-text strong { display: block; font-family: var(--font-display); font-size: 0.9rem; color: var(--text); }
.mini-text span { font-size: 0.76rem; color: var(--text-muted); }
.mini-check { color: #34d399; font-size: 1.05rem; margin-left: auto; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
    color: var(--text-muted);
    transition: color 0.3s;
}
.scroll-indicator:hover { color: var(--accent); }
.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid currentColor;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.scroll-wheel {
    width: 3px;
    height: 8px;
    border-radius: 3px;
    background: currentColor;
    animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
    0%   { transform: translateY(0); opacity: 1; }
    70%  { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}
.scroll-text {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* ===== TECH MARQUEE ===== */
.tech-marquee {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
    padding: 16px 0;
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 44px;
    width: max-content;
    animation: marquee 34s linear infinite;
}
.tech-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-soft);
    white-space: nowrap;
}
.marquee-sep { font-size: 0.4rem; color: var(--accent); opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== FEATURED WORK ===== */
.featured-work { background: transparent; }

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 26px;
}

.work-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.45s var(--ease), border-color 0.3s ease, box-shadow 0.45s ease;
}
.work-card:hover {
    transform: translateY(-10px);
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75), 0 0 44px -12px rgba(34, 211, 238, 0.25);
}

.work-image {
    position: relative;
    height: 232px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(120% 120% at 20% 10%, #101a30 0%, #060913 70%);
}
.work-image-glow {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 70%);
    filter: blur(32px);
    transition: transform 0.6s var(--ease);
}
.work-card:hover .work-image-glow { transform: scale(1.7); }

.placeholder-image {
    font-size: 3rem;
    color: rgba(34, 211, 238, 0.85);
    filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.5));
    transition: transform 0.5s var(--ease);
}
.work-card:hover .placeholder-image { transform: translateY(-8px) scale(1.1); }

.work-category {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
    background: rgba(4, 6, 11, 0.55);
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
}

.work-content { padding: 24px 24px 22px; }
.work-content h3 {
    font-size: 1.28rem;
    color: var(--text);
    margin-bottom: 8px;
}
.work-content p {
    font-size: 0.92rem;
    color: var(--text-soft);
    margin-bottom: 18px;
    line-height: 1.6;
}

.work-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.work-tag {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--accent);
}
.work-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    color: var(--text-soft);
    transition: all 0.35s var(--ease);
}
.work-card:hover .work-arrow {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04060b;
    border-color: transparent;
    transform: translateX(5px);
    box-shadow: 0 8px 20px -8px rgba(34, 211, 238, 0.6);
}

/* ===== ABOUT ===== */
.about-text {
    max-width: 760px;
    margin: 0 auto clamp(48px, 7vw, 72px);
    text-align: center;
}
.about-text h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--text);
    margin-bottom: 18px;
}
.about-text p {
    font-size: 1.05rem;
    color: var(--text-soft);
    margin-bottom: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: clamp(72px, 10vw, 110px);
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s ease;
}
.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.7), 0 0 30px -12px rgba(34, 211, 238, 0.3);
}
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
}
.stat-label { font-size: 0.88rem; color: var(--text-soft); }

.team-section { margin-bottom: clamp(72px, 10vw, 110px); }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
    gap: 22px;
}

.team-member {
    text-align: center;
    padding: 32px 22px 26px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s ease;
}
.team-member:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7), 0 0 32px -12px rgba(59, 130, 246, 0.3);
}
.member-photo {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
    box-shadow: 0 12px 28px -10px rgba(34, 211, 238, 0.5);
    transition: transform 0.4s var(--ease);
}
.team-member:hover .member-photo { transform: scale(1.06); }
.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-2);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #0d1526, #0b1020);
}
.avatar-placeholder {
    background:
        radial-gradient(circle at 30% 25%, rgba(34, 211, 238, 0.25), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.25), transparent 50%),
        #0b1020;
    color: var(--accent);
}

.team-member h3 {
    font-size: 1.12rem;
    color: var(--text);
    margin-bottom: 4px;
}
.team-member > p { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 16px; }

.member-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s var(--ease);
}
.team-member:hover .member-socials { opacity: 1; transform: translateY(0); }
.member-socials a {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    color: var(--text-soft);
    transition: all 0.3s ease;
}
.member-socials a:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04060b;
    border-color: transparent;
    transform: translateY(-3px);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 22px;
}

.value-card {
    text-align: center;
    padding: 38px 26px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s ease;
}
.value-card:hover {
    transform: translateY(-8px);
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7), 0 0 32px -12px rgba(34, 211, 238, 0.3);
}
.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    color: #04060b;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 26px -10px rgba(34, 211, 238, 0.6);
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.value-card:hover .value-icon {
    transform: translateY(-5px) rotate(-8deg);
    box-shadow: 0 16px 34px -10px rgba(59, 130, 246, 0.7);
}
.value-card h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 10px;
}
.value-card p { font-size: 0.92rem; color: var(--text-soft); }

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
    gap: 24px;
    margin-bottom: clamp(56px, 8vw, 84px);
}

.service-card {
    position: relative;
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.45s var(--ease), border-color 0.3s ease, box-shadow 0.45s ease;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.55s var(--ease);
    z-index: 1;
}
.service-card::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    top: -160px;
    right: -160px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.13), transparent 70%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}
.service-card:hover, .service-card:focus-within {
    transform: translateY(-9px);
    border-color: rgba(34, 211, 238, 0.38);
    box-shadow: 0 26px 52px -22px rgba(0, 0, 0, 0.75), 0 0 36px -14px rgba(34, 211, 238, 0.3);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }

.service-num {
    position: absolute;
    top: 20px;
    right: 26px;
    font-family: var(--font-display);
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(148, 163, 184, 0.28);
    transition: -webkit-text-stroke 0.3s ease;
}
.service-card:hover .service-num { -webkit-text-stroke-color: rgba(34, 211, 238, 0.5); }

.service-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #04060b;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 20px -8px rgba(34, 211, 238, 0.7);
}

.service-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #04060b;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 26px -10px rgba(34, 211, 238, 0.6);
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.service-card:hover .service-icon {
    transform: translateY(-4px) rotate(-7deg) scale(1.06);
    box-shadow: 0 16px 34px -10px rgba(59, 130, 246, 0.7);
}

.service-card h3 {
    font-size: 1.32rem;
    color: var(--text);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.service-card > p {
    font-size: 0.93rem;
    color: var(--text-soft);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.service-features {
    position: relative;
    z-index: 1;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.55s var(--ease-soft), opacity 0.4s ease, margin 0.45s ease;
}
.service-card:hover .service-features,
.service-card:focus-within .service-features {
    max-height: 230px;
    opacity: 1;
    margin-bottom: 20px;
}
.service-features li {
    position: relative;
    padding: 5px 0 5px 26px;
    font-size: 0.89rem;
    color: var(--text-soft);
}
.service-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 0.72rem;
    color: var(--accent);
}

.service-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.service-price {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.service-price strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.08rem;
    color: var(--text);
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    transition: gap 0.3s ease;
}
.service-link:hover { gap: 13px; }

@media (hover: none), (max-width: 768px) {
    .service-features {
        max-height: 230px;
        opacity: 1;
        margin-bottom: 20px;
    }
}

/* CTA Panel */
.cta-panel {
    position: relative;
    margin-bottom: clamp(48px, 8vw, 84px);
    padding: clamp(44px, 7vw, 78px) clamp(24px, 5vw, 60px);
    border-radius: 26px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(34, 211, 238, 0.08), rgba(59, 130, 246, 0.05), rgba(4, 6, 11, 0.4));
    border: 1px solid var(--border-strong);
}
.cta-glow {
    position: absolute;
    inset: -45%;
    background: conic-gradient(from var(--angle, 0deg),
        transparent 0%, rgba(34, 211, 238, 0.16) 10%, transparent 24%,
        rgba(59, 130, 246, 0.14) 45%, transparent 60%,
        rgba(129, 140, 248, 0.14) 80%, transparent 94%);
    animation: rotateAngle 16s linear infinite;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    color: var(--text);
    margin-bottom: 12px;
}
.cta-content p {
    font-size: 1.05rem;
    color: var(--text-soft);
    margin-bottom: 30px;
}

/* ===== CONTACT ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
    padding-bottom: clamp(48px, 8vw, 84px);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.info-card {
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s ease;
}
.info-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.38);
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.7), 0 0 28px -12px rgba(34, 211, 238, 0.28);
}
.info-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: #04060b;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 22px -8px rgba(34, 211, 238, 0.55);
    transition: transform 0.4s var(--ease);
}
.info-card:hover .info-icon { transform: rotate(-8deg) scale(1.06); }
.info-card h3 {
    font-size: 1.02rem;
    color: var(--text);
    margin-bottom: 6px;
}
.info-card p {
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.6;
}

.contact-form-container {
    padding: clamp(28px, 4vw, 40px);
    background: var(--card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
}

.contact-form { display: grid; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-soft);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group select { color-scheme: dark; }
.form-group select option { background: var(--bg-2); color: var(--text); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(34, 211, 238, 0.05);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.13);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.error-message {
    font-size: 0.8rem;
    color: var(--danger);
    display: none;
}
.error-message.show { display: block; animation: shake 0.3s ease; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}
.success-icon {
    font-size: 3.6rem;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
    margin-bottom: 18px;
    animation: successPop 0.6s var(--ease);
}
@keyframes successPop {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.form-success h3 {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 8px;
}
.form-success p { color: var(--text-soft); margin: 0; }

/* ===== FOOTER ===== */
.footer {
    position: relative;
    background: linear-gradient(180deg, #060913 0%, #04060b 100%);
    border-top: 1px solid var(--border);
    padding: clamp(56px, 8vw, 84px) 0 28px;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), transparent);
}
.footer-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 240px;
    background: radial-gradient(ellipse, rgba(34, 211, 238, 0.09), transparent 70%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 2fr;
    gap: clamp(40px, 6vw, 72px);
    margin-bottom: 44px;
}

.footer-brand p {
    max-width: 320px;
    font-size: 0.94rem;
    color: var(--text-soft);
    margin: 18px 0 24px;
}

.social-links {
    display: flex;
    gap: 10px;
}
.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}
.social-links a:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04060b;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px -8px rgba(34, 211, 238, 0.6);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text);
    margin-bottom: 20px;
}
.footer-column li { margin-bottom: 11px; }
.footer-column a {
    font-size: 0.92rem;
    color: var(--text-soft);
    transition: color 0.25s ease, padding-left 0.3s ease;
}
.footer-column a:hover { color: var(--accent); padding-left: 5px; }

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-soft);
}
.footer-contact i { color: var(--accent); font-size: 0.8rem; width: 16px; }

.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.footer-made i { color: var(--accent); }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 900;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: rgba(10, 15, 28, 0.7);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
    color: var(--text-soft);
    font-size: 0.95rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: all 0.4s var(--ease);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04060b;
    border-color: transparent;
    box-shadow: 0 12px 28px -10px rgba(34, 211, 238, 0.6);
    transform: translateY(-4px);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--d, 0s);
    will-change: opacity, transform;
}
.reveal-left { transform: translateX(-52px); }
.reveal-right { transform: translateX(52px); }
.reveal-scale { transform: scale(0.92); }
.reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1) translateX(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin-inline: auto; }
    .hero-buttons { justify-content: center; }
    .hero-meta { justify-content: center; }
    .hero-visual { height: 480px; max-width: 560px; margin: 30px auto 0; }
    .hero-orbit { top: auto; right: auto; left: 50%; top: 40%; transform: translateX(-50%); width: 440px; height: 440px; }
    .scroll-indicator { display: none; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .navbar { padding: 14px 0; }
    .navbar.scrolled { padding: 8px 0; }

    .nav-cta-desktop { display: none; }
    .nav-cta-item { display: block; margin-top: 20px; }

    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        inset: 0;
        z-index: 1500;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: linear-gradient(180deg, rgba(4, 6, 11, 0.94), rgba(7, 11, 24, 0.97));
        -webkit-backdrop-filter: blur(24px);
                backdrop-filter: blur(24px);
        transform: translateY(-102%);
        transition: transform 0.55s var(--ease);
    }
    .nav-menu.active { transform: translateY(0); }

    .nav-item {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.4s ease, transform 0.4s var(--ease);
    }
    .nav-menu.active .nav-item {
        opacity: 1;
        transform: none;
        transition-delay: calc(0.07s * var(--i, 0));
    }
    .nav-menu.active .nav-item:last-child { transition-delay: calc(0.07s * 4 + 0.05s); }

    .nav-link {
        font-family: var(--font-display);
        font-size: 1.7rem;
        color: var(--text);
        padding: 12px 20px;
    }
    .nav-link::after { display: none; }
    .nav-link:hover, .nav-link.active { color: var(--accent); }

    .hero { min-height: auto; padding: 130px 0 60px; }
    .hero-title { font-size: clamp(2.1rem, 9vw, 3rem); }
    .tech-float-main { width: min(330px, 92%); margin-left: 0; left: 50%; transform: translateX(-50%); }
    .hero-orbit { width: 360px; height: 360px; opacity: 0.6; }

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

@media (max-width: 520px) {
    .hero-visual { height: 430px; }
    .tech-float-stats { bottom: 56px; width: 200px; }
    .tech-float-mini { width: 200px; }
    .hero-meta { gap: 16px; }
    .hero-buttons .btn { width: 100%; }

    .stats-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .contact-info { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; }
    .footer-bottom { justify-content: center; text-align: center; }
    .back-to-top { bottom: 18px; right: 18px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero-anim { opacity: 1; }
    .text-gradient { animation: none; }
    .btn-glow::before { animation: none; }
    .cta-glow { animation: none; }
    .tech-card { animation: none; }
}
