@font-face {
    font-family: 'Arkhip';
    src: url('./Arkhip_font.ttf') format('truetype');
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #000000;
    --surface: #0a0a0f;
    --surface-2: #111118;
    --border: rgba(255,255,255,0.05);
    --border-hover: rgba(59,130,246,0.4);
    --accent: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-soft: #60a5fa;
    --accent-glow: rgba(59,130,246,0.15);
    --accent-glow-strong: rgba(59,130,246,0.35);
    --white: #f0f0f0;
    --gray-100: #e0e0e4;
    --gray-300: #a0a0aa;
    --gray-500: #6b6b76;
    --gray-700: #333340;
    --gray-900: #141418;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.5s cubic-bezier(0.16,1,0.3,1);
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== SCROLLBAR ===== */
/* Cream thumb with the site's blue -> cyan gradient outline */
html {
    scrollbar-width: thin;                 /* Firefox */
    scrollbar-color: #f5ead0 transparent;  /* Firefox (solid colours only) */
}
::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
/* cream fill with a blue -> cyan gradient outline (border-image is the
   reliable way to get a gradient border on a scrollbar thumb) */
::-webkit-scrollbar-thumb {
    background-color: #f5ead0;
    border: 3px solid transparent;
    border-image: linear-gradient(160deg, var(--accent), var(--accent-cyan)) 1;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #fff6e0;
    border-image: linear-gradient(160deg, var(--accent-soft), var(--accent-cyan)) 1;
}

/* ===== AIRPLANE CURSOR ===== */
/* hide the native cursor only when the airplane script is active (set via JS,
   so touch devices / no-JS keep their normal cursor) */
.airplane-cursor-active,
.airplane-cursor-active * { cursor: none !important; }

/* clickable things use the normal pointing-hand cursor (airplane hides over them) */
.airplane-cursor-active a[href],
.airplane-cursor-active button,
.airplane-cursor-active .nav-item,
.airplane-cursor-active .mobile-menu-btn,
.airplane-cursor-active label[for],
.airplane-cursor-active [role="button"] { cursor: pointer !important; }

.airplane-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.25s ease;
    will-change: transform;
    filter: drop-shadow(0 0 6px rgba(6,182,212,0.65));
}
.airplane-cursor.visible { opacity: 1; }
/* hide the airplane while hovering a clickable element (native hand shows instead) */
.airplane-cursor.over-clickable { opacity: 0; }
.airplane-cursor svg { width: 100%; height: 100%; display: block; }

/* Terminal typing caret - shown while hovering the CLI (replaces the airplane) */
.text-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 2px; height: 20px;
    border-radius: 1px;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.9), 0 0 16px rgba(6, 182, 212, 0.5);
    pointer-events: none;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.12s ease;
    will-change: transform;
}
.text-cursor.visible { opacity: 1; }

/* ===== CURSOR GLOW ===== */
.cursor-glow {
    position: fixed;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.5s cubic-bezier(0.16,1,0.3,1), top 0.5s cubic-bezier(0.16,1,0.3,1);
    will-change: left, top;
}

/* ===== GRID BACKGROUND ===== */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 0%, transparent 100%);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 24px;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
                box-shadow 0.4s ease;
}

/* Glass background lives on a pseudo-element. Putting backdrop-filter here
   (instead of on .navbar) keeps the navbar from becoming a containing block
   for the fixed mobile-menu overlay, which is what made it size to 52px. */
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(6,6,12,0.7);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.navbar.scrolled::before { opacity: 1; }
.navbar.scrolled {
    box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 24px rgba(0,0,0,0.3);
}

/* Hide on scroll down */
.navbar.hidden {
    transform: translateY(-100%);
}
/* keep the bar un-transformed while the mobile menu is open so the overlay
   can size to the full viewport (transform would re-trap it) */
.navbar:has(.nav-links.active) { transform: none; }

.nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Arkhip', sans-serif;
    font-size: 1.1rem;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    justify-self: start;
}
.logo:hover { color: var(--accent-soft); text-shadow: 0 0 20px var(--accent-glow); }

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

.nav-item {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}
.nav-item:hover { color: var(--white); }
.nav-item.active { color: var(--white); }

/* Animated gradient underline - sweeps in from the centre on hover,
   stays lit (and glows) for the active tab. */
.nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-cyan), var(--accent));
    background-size: 200% 100%;
    box-shadow: 0 0 10px var(--accent-glow-strong);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.34s cubic-bezier(0.16,1,0.3,1), opacity 0.34s ease;
    opacity: 0;
}
.nav-item:hover::after {
    transform: scaleX(0.4);
    opacity: 0.85;
}
.nav-item.active::after {
    transform: scaleX(0.55);
    opacity: 1;
    box-shadow: 0 0 14px var(--accent-glow-strong), 0 0 4px var(--accent-cyan);
    /* continuously flowing, shimmering underline */
    animation: underlineFlow 3s linear infinite;
}
@keyframes underlineFlow {
    0%   { background-position: 0% 0;   filter: brightness(1); }
    50%  {                              filter: brightness(1.4); }
    100% { background-position: 200% 0; filter: brightness(1); }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: flex-end;
}

.nav-btn-ghost {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: 10px;
    transition: color 0.3s ease, background 0.3s ease;
}
.nav-btn-ghost:hover { color: var(--white); background: rgba(255,255,255,0.06); }

/* .nav-btn-primary is styled by the shiny CTA block below */

/* Hamburger button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}
.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    transform-origin: center;
}
/* Hamburger → X */
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 20vh 5% 6vh;
    position: relative;
    z-index: 2;
}

/* ===== HULY BEAM VIDEO ===== */
.beam-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

.beam-video {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 110%;
    min-width: 100%;
    object-fit: cover;
    mix-blend-mode: screen;
    opacity: 0.85;
}

/* Hero top - title block in normal flow, left-aligned in the hero */
.hero-top {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.2rem;
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-300);
    background: rgba(59,130,246,0.04);
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}

.badge-dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34,197,94,0.6);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
    font-family: 'Arkhip', sans-serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -1px;
    color: var(--white);
    margin-bottom: 0;
}
/* line 2 ("built by Zooted Shop") clearly smaller - pyramid taper */
.hero h1 .text-gradient {
    font-size: 0.72em;
    display: inline-block;
    margin-top: 0.1em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-cyan), var(--accent-soft));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== HERO CODE EDITOR ===== */
.code-card {
    position: relative;
    z-index: 1;
    margin-top: clamp(2.5rem, 6vh, 4rem); /* space between title and editor */
    width: min(900px, 94vw);
    height: clamp(380px, 56vh, 560px);
    border-radius: 14px;
    background: rgba(8, 9, 14, 0.82);
    border: 1px solid var(--border);
    box-shadow: 0 40px 90px rgba(0,0,0,0.5),
                0 0 0 1px rgba(59,130,246,0.06),
                0 0 60px rgba(6,182,212,0.10);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    opacity: 0;
    transform: translateY(16px);
}
.code-card.show { animation: cardIn 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }

/* glowing accent line across the top of the card */
.code-card::before {
    content: "";
    position: absolute;
    top: -1px; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-cyan), var(--accent), transparent);
    box-shadow: 0 0 18px var(--accent-cyan);
    opacity: 0.8;
}

.code-bar {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-dot--r { background: #ff5f56; }
.code-dot--y { background: #ffbd2e; }
.code-dot--g { background: #27c93f; }
.code-file {
    margin-left: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--gray-300);
    letter-spacing: 0.3px;
}
.code-file .dotjs { color: var(--accent-soft); }

.code-body {
    display: flex; flex: 1; overflow: hidden;
    align-items: flex-start; /* let panes size to content so the body can scroll them */
    padding: 0.8rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    line-height: 1.7;
}
.code-lines {
    flex-shrink: 0; text-align: right; padding: 0 0.8rem;
    color: rgba(255,255,255,0.18); user-select: none; white-space: pre;
}
.code-text { flex: 1; padding-right: 1rem; white-space: pre; color: #e6e6e6; }

/* syntax colours */
.tk-kw    { color: #c792ea; }
.tk-str   { color: #7ee787; }
.tk-fn    { color: var(--accent-soft); }
.tk-com   { color: #5c6675; font-style: italic; }
.tk-num   { color: #f78c6c; }
.tk-punct { color: #89ddff; }

.code-cursor {
    display: inline-block; width: 7px; height: 1em;
    background: var(--accent-cyan); margin-left: 1px;
    vertical-align: text-bottom;
    animation: typeBlink 1s steps(1) infinite;
}

.hero-tagline {
    font-size: 0.82rem;
    color: var(--gray-500);
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
}

.hero-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}
.hero-bullets li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--gray-300);
    line-height: 1.5;
}
.bullet-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-card-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
}

/* Tags row - runs along the bottom edge of the video's card */
.hero-tags-row {
    position: absolute;
    bottom: 12%;
    left: 0;
    width: 100%;
    z-index: 1;
}

/* Hero card - positioned over the video's built-in dark card */
.hero-card {
    position: absolute;
    top: 46.5%;
    left: calc(50vw - 54vh);
    right: calc(50vw - 37.1vh);
    bottom: 15.5%;
    z-index: 1;
    overflow: hidden;
    border-radius: 10px;
    clip-path: inset(0 round 10px);
}
.hero-card-inner {
    width: 100%;
    height: 100%;
    padding: 1.75rem 3rem 1rem;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 0;
}
.hero-card-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    max-width: 600px;
    margin: 0;
}

/* ===== SHINY CTA BUTTONS (ported from the ShinyButton component) ===== */
@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
@property --gradient-angle-offset {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
@property --gradient-percent {
    syntax: "<percentage>";
    initial-value: 5%;
    inherits: false;
}
@property --gradient-shine {
    syntax: "<color>";
    initial-value: white;
    inherits: false;
}

.btn-primary,
.btn-secondary,
.nav-btn-primary,
.card-btn {
    --shiny-bg: #000000;
    --shiny-bg-subtle: #1a1818;
    --shiny-fg: #ffffff;
    --shiny-highlight: #3b82f6;
    --shiny-highlight-subtle: #8484ff;
    --shiny-anim: gradient-angle linear infinite;
    --shiny-duration: 3s;
    --shiny-transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);

    isolation: isolate;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    overflow: hidden;
    cursor: pointer;
    outline-offset: 4px;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: 360px;
    color: var(--shiny-fg);
    background:
        linear-gradient(var(--shiny-bg), var(--shiny-bg)) padding-box,
        conic-gradient(
            from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
            transparent,
            var(--shiny-highlight) var(--gradient-percent),
            var(--gradient-shine) calc(var(--gradient-percent) * 2),
            var(--shiny-highlight) calc(var(--gradient-percent) * 3),
            transparent calc(var(--gradient-percent) * 4)
        ) border-box;
    box-shadow: inset 0 0 0 1px var(--shiny-bg-subtle);
    transition: var(--shiny-transition);
    transition-property: --gradient-angle-offset, --gradient-percent, --gradient-shine;
}

/* per-button sizing */
.btn-primary,
.btn-secondary {
    height: 44px;
    padding: 0 1.9rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.nav-btn-primary {
    padding: 0.5rem 1.3rem;
    font-size: 0.82rem;
    font-weight: 600;
}
.card-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
}

/* keep label + icons above the animated layers */
.btn-primary > *,
.btn-secondary > *,
.nav-btn-primary > *,
.card-btn > * { position: relative; z-index: 1; }
.btn-primary img,
.btn-secondary img { width: 20px; height: 20px; object-fit: contain; }
.btn-primary svg,
.btn-secondary svg { width: 18px; height: 18px; }

/* shared pseudo base */
.btn-primary::before,  .btn-primary::after,
.btn-secondary::before, .btn-secondary::after,
.nav-btn-primary::before, .nav-btn-primary::after,
.card-btn::before, .card-btn::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset-inline-start: 50%;
    inset-block-start: 50%;
    translate: -50% -50%;
    z-index: -1;
}

.btn-primary:active,
.btn-secondary:active,
.nav-btn-primary:active,
.card-btn:active { translate: 0 1px; }

/* dot pattern (::before) */
.btn-primary::before,
.btn-secondary::before,
.nav-btn-primary::before,
.card-btn::before {
    --size: calc(100% - 2px * 3);
    --position: 2px;
    --space: calc(var(--position) * 2);
    width: var(--size);
    height: var(--size);
    background: radial-gradient(
        circle at var(--position) var(--position),
        white calc(var(--position) / 4),
        transparent 0
    ) padding-box;
    background-size: var(--space) var(--space);
    background-repeat: space;
    mask-image: conic-gradient(
        from calc(var(--gradient-angle) + 45deg),
        black,
        transparent 10% 90%,
        black
    );
    border-radius: inherit;
    opacity: 0.4;
    z-index: -1;
}

/* inner shimmer (::after) */
.btn-primary::after,
.btn-secondary::after,
.nav-btn-primary::after,
.card-btn::after {
    --shiny-anim: shiny-shimmer linear infinite;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(-50deg, transparent, var(--shiny-highlight), transparent);
    mask-image: radial-gradient(circle at bottom, transparent 40%, black);
    opacity: 0.6;
}

/* animate the rotating border + layers */
.btn-primary, .btn-secondary, .nav-btn-primary, .card-btn,
.btn-primary::before, .btn-secondary::before, .nav-btn-primary::before, .card-btn::before,
.btn-primary::after, .btn-secondary::after, .nav-btn-primary::after, .card-btn::after {
    animation: var(--shiny-anim) var(--shiny-duration),
               var(--shiny-anim) calc(var(--shiny-duration) / 0.4) reverse paused;
    animation-composition: add;
}

/* hover / focus */
.btn-primary:is(:hover, :focus-visible),
.btn-secondary:is(:hover, :focus-visible),
.nav-btn-primary:is(:hover, :focus-visible),
.card-btn:is(:hover, :focus-visible) {
    --gradient-percent: 20%;
    --gradient-angle-offset: 95deg;
    --gradient-shine: var(--shiny-highlight-subtle);
}
.btn-primary:is(:hover, :focus-visible),
.btn-secondary:is(:hover, :focus-visible),
.nav-btn-primary:is(:hover, :focus-visible),
.card-btn:is(:hover, :focus-visible),
.btn-primary:is(:hover, :focus-visible)::before,
.btn-secondary:is(:hover, :focus-visible)::before,
.nav-btn-primary:is(:hover, :focus-visible)::before,
.card-btn:is(:hover, :focus-visible)::before,
.btn-primary:is(:hover, :focus-visible)::after,
.btn-secondary:is(:hover, :focus-visible)::after,
.nav-btn-primary:is(:hover, :focus-visible)::after,
.card-btn:is(:hover, :focus-visible)::after {
    animation-play-state: running;
}

@keyframes gradient-angle {
    to { --gradient-angle: 360deg; }
}
@keyframes shiny-shimmer {
    to { rotate: 360deg; }
}

/* ===== SCROLLING TAGS ===== */
.tags-marquee {
    width: 100%;
    overflow: hidden;
    margin: 0;
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    position: relative;
    z-index: 1;
}
.tags-marquee::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(59,130,246,0.06), transparent 70%);
    pointer-events: none;
    z-index: -1;
    filter: blur(20px);
}
.tags-track {
    display: flex;
    gap: 0.75rem;
    width: max-content;
    will-change: transform;
    animation: marqueeScroll 40s linear infinite;
}
.tag {
    padding: 0.45rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-500);
    white-space: nowrap;
    background: rgba(255,255,255,0.015);
    transition: all 0.4s ease;
    flex-shrink: 0;
}
.tag:hover {
    border-color: var(--border-hover);
    color: var(--accent-soft);
    background: rgba(59,130,246,0.04);
    box-shadow: 0 0 16px rgba(59,130,246,0.08);
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.375rem)); }
}

/* ===== PRE-SERVICES BLOCK ===== */
.pre-services {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 860px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

.stat-card {
    --acc-rgb: 59, 130, 246;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(var(--acc-rgb), 0.10), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
        rgba(13, 15, 20, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease, box-shadow 0.5s ease;
    cursor: default;
}
/* glowing top accent line */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent), transparent);
    opacity: 0.5;
}
/* mouse-follow spotlight (position set by JS via --mx / --my) */
.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%),
        rgba(var(--acc-rgb), 0.14), transparent 45%);
    transition: opacity 0.4s ease;
}
.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--acc-rgb), 0.45);
    box-shadow: 0 34px 70px -26px rgba(var(--acc-rgb), 0.4),
                0 0 0 1px rgba(var(--acc-rgb), 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.stat-card:hover::after { opacity: 1; }

.stat-card-icon {
    position: relative;
    width: 52px; height: 52px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-soft);
    margin-bottom: 0.25rem;
    background: linear-gradient(145deg, rgba(var(--acc-rgb), 0.28), rgba(var(--acc-rgb), 0.06));
    border: 1px solid rgba(var(--acc-rgb), 0.4);
    box-shadow: 0 0 24px rgba(var(--acc-rgb), 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.stat-card-icon svg { filter: drop-shadow(0 0 6px rgba(var(--acc-rgb), 0.5)); }
.stat-card:hover .stat-card-icon {
    transform: translateY(-2px) scale(1.08) rotate(-3deg);
    box-shadow: 0 0 36px rgba(var(--acc-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.stat-number {
    font-family: 'Arkhip', sans-serif;
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 25%, var(--accent-soft) 75%, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    transition: filter 0.3s ease;
}
.stat-card:hover .stat-number { filter: brightness(1.12) drop-shadow(0 0 14px rgba(var(--acc-rgb), 0.4)); }
.stat-label {
    font-size: 0.74rem;
    color: var(--gray-400);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ===== SECTION COMMON ===== */
.services, .process, .skills, .reviews, .cta {
    position: relative;
    z-index: 2;
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent);
    text-align: center;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.section-title {
    font-family: 'Arkhip', sans-serif;
    font-size: 3.2rem;
    text-align: center;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: var(--white);
    margin-bottom: 1rem;
}

.section-desc {
    text-align: center;
    color: var(--gray-500);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 4rem;
    line-height: 1.7;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@property --snake-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes snakeTrail {
    to { --snake-angle: 360deg; }
}

.service-card {
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        conic-gradient(
            from var(--snake-angle),
            transparent 0deg,
            transparent 285deg,
            rgba(96,165,250,0) 295deg,
            rgba(96,165,250,0.85) 318deg,
            rgba(255,255,255,1) 338deg,
            rgba(96,165,250,0.85) 352deg,
            transparent 360deg
        ) border-box;
    border: 1.5px solid transparent;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    animation: snakeTrail 4s linear infinite;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(59,130,246,0.06), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.service-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 60px -12px rgba(59,130,246,0.15), 0 0 30px rgba(96,165,250,0.08);
    animation-duration: 2s;
}
.service-card:hover .card-glow { opacity: 1; }
.services-grid .service-card:nth-child(even) { animation-direction: reverse; }

.service-card.featured { border-color: rgba(59,130,246,0.12); }

.card-badge {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(59,130,246,0.08);
    color: var(--accent-soft);
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(59,130,246,0.12);
}

.card-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    background: rgba(59,130,246,0.06);
    border: 1px solid rgba(59,130,246,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
    transition: all 0.5s ease;
}
.card-icon svg { width: 22px; height: 22px; }
.service-card:hover .card-icon {
    background: rgba(59,130,246,0.1);
    box-shadow: 0 0 24px rgba(59,130,246,0.12);
    transform: scale(1.05);
}

.service-card h3 {
    font-family: 'Arkhip', sans-serif;
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.service-card > p {
    color: var(--gray-500);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-features { list-style: none; padding: 0; flex: 1; margin-bottom: 1.5rem; }
.card-features li {
    padding: 0.35rem 0 0.35rem 1.6rem;
    position: relative;
    color: var(--gray-300);
    font-size: 0.84rem;
    transition: color 0.3s ease;
}
.card-features li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 14px; height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b82f6'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.6;
}
.service-card:hover .card-features li { color: var(--gray-100); }
.service-card:hover .card-features li::before { opacity: 1; }

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.card-price { color: var(--gray-500); font-size: 0.9rem; }
.card-price strong { color: var(--white); font-size: 1.4rem; font-family: 'Arkhip', sans-serif; }

.card-btn {
    padding: 0.55rem 1.3rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.4s ease;
    background: transparent;
}
.card-btn:hover {
    border-color: var(--accent);
    color: white;
    background: rgba(59,130,246,0.06);
    box-shadow: 0 0 20px rgba(59,130,246,0.12);
}

/* ===== PROCESS ===== */
.process-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.process-card {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}
.process-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -12px rgba(59,130,246,0.08);
}

.process-number {
    position: absolute;
    top: -12px; right: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
    color: white;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

.process-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    background: rgba(59,130,246,0.06);
    border: 1px solid rgba(59,130,246,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: var(--accent);
}

.process-card h3 {
    font-family: 'Arkhip', sans-serif;
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 0.4rem;
}
.process-card p { color: var(--gray-500); font-size: 0.85rem; line-height: 1.6; }

.process-connector {
    width: 60px;
    height: 2px;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--gray-700);
}
.connector-beam {
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: beamSlide 3s ease-in-out infinite;
}
@keyframes beamSlide {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* ===== REVIEWS - scrolling columns ===== */
.testimonials-viewport {
    display: flex;
    gap: 1.25rem;
    max-height: 680px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
    margin-top: 3rem;
}

.testimonials-col {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.testimonials-track {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: scrollUpCol linear infinite;
}

.testimonials-col:hover .testimonials-track {
    animation-play-state: paused;
}

@keyframes scrollUpCol {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}
.review-card:hover {
    border-color: rgba(255,255,255,0.08);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.review-stars { color: var(--accent); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 1rem; }
.review-text { color: var(--gray-300); font-size: 0.86rem; line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 0.8rem; }
.review-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
}
.review-name { font-weight: 600; font-size: 0.85rem; color: var(--white); }
.review-role { font-size: 0.72rem; color: var(--gray-500); }

/* ===== SKILLS ORBIT ===== */
.orbit-stage {
    position: relative;
    width: 560px;
    height: 560px;
    margin: 3rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    contain: paint;
    will-change: transform;
}

.orbit-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}
.orbit-ring--inner {
    width: 200px; height: 200px;
    border: 1px solid rgba(6,182,212,0.3);
    box-shadow: 0 0 40px rgba(6,182,212,0.15), inset 0 0 40px rgba(6,182,212,0.08);
    animation: orbitRingPulse 4s ease-in-out infinite;
}
.orbit-ring--outer {
    width: 360px; height: 360px;
    border: 1px solid rgba(147,51,234,0.3);
    box-shadow: 0 0 50px rgba(147,51,234,0.12), inset 0 0 50px rgba(147,51,234,0.06);
    animation: orbitRingPulse 4s ease-in-out infinite 1.5s;
}
.orbit-ring--third {
    width: 480px; height: 480px;
    border: 1px solid rgba(16,185,129,0.3);
    box-shadow: 0 0 60px rgba(16,185,129,0.1), inset 0 0 60px rgba(16,185,129,0.05);
    animation: orbitRingPulse 4s ease-in-out infinite 3s;
}
@keyframes orbitRingPulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

.orbit-center {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f2937, #111827);
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 10;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
}
.orbit-center-glow {
    position: absolute; inset: 0;
    border-radius: 50%;
    pointer-events: none;
}
.orbit-center-glow--cyan {
    background: rgba(6,182,212,0.3);
    filter: blur(16px);
    animation: glowPulse 3s ease-in-out infinite;
}
.orbit-center-glow--purple {
    background: rgba(147,51,234,0.2);
    filter: blur(20px);
    animation: glowPulse 3s ease-in-out infinite 1s;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.2); }
}

.skill-icon {
    position: absolute;
    top: 50%; left: 50%;
    width: 44px; height: 44px;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    will-change: transform;
}
.skill-icon--lg { width: 52px; height: 52px; }

.skill-icon-inner {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    padding: 10px;
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.skill-icon:hover .skill-icon-inner {
    transform: scale(1.25);
    border-color: rgba(255,255,255,0.25);
}

.skill-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10,10,20,0.95);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.72rem;
    color: var(--white);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 20;
}
.skill-icon:hover .skill-tooltip { opacity: 1; }

/* ===== CTA ===== */
.cta { padding-bottom: 6rem; }

.cta-inner {
    text-align: center;
    padding: 5rem 3rem;
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta-beam {
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 250px;
    background: radial-gradient(ellipse 50% 60% at 50% 0%,
        rgba(59,130,246,0.18) 0%,
        rgba(59,130,246,0.06) 40%,
        transparent 80%);
    pointer-events: none;
}

.cta-inner h2 {
    font-family: 'Arkhip', sans-serif;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: -0.5px;
}
.cta-inner p {
    color: var(--gray-500);
    font-size: 1rem;
    max-width: 450px;
    margin: 0 auto 2.5rem;
    position: relative;
    line-height: 1.7;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border);
    padding: 2.5rem 2rem;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-left { display: flex; align-items: center; gap: 1.5rem; }
.footer-logo { font-family: 'Arkhip', sans-serif; font-size: 0.9rem; color: var(--gray-300); }
.footer-copy { font-size: 0.75rem; color: var(--gray-300); }
.footer-sempi { color: #f472b6; }
.footer-elf { color: #00d4ff !important; }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--white); }

.footer-right { display: flex; gap: 1rem; align-items: center; }
.footer-right a {
    color: var(--gray-500);
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
}
.footer-right a:hover { color: var(--white); transform: translateY(-2px); }

/* ===== PAGE LAYOUTS (shared across all pages) ===== */
.page-hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10rem 2rem 4rem;
    position: relative;
    z-index: 2;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 500px;
    background: radial-gradient(ellipse 50% 60% at 50% 0%,
        rgba(59,130,246,0.22) 0%,
        rgba(59,130,246,0.08) 35%,
        rgba(6,182,212,0.04) 55%,
        transparent 80%);
    animation: volcanoBreath 6s ease-in-out infinite;
}
.page-hero::after {
    content: '';
    position: absolute;
    top: -40px; left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse 60% 50% at 50% 0%,
        rgba(59,130,246,0.08) 0%,
        rgba(6,182,212,0.03) 40%,
        transparent 70%);
    pointer-events: none;
    filter: blur(15px);
}
.page-hero h1 {
    font-family: 'Arkhip', sans-serif;
    font-size: 3.5rem;
    letter-spacing: -2px;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.page-hero .hero-subtitle, .page-hero p {
    color: var(--gray-500);
    font-size: 1.1rem;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

/* ===== PAGE CONTENT SECTIONS ===== */
.page-section {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem 6rem;
    max-width: 1000px;
    margin: 0 auto;
}

.page-section h2 {
    font-family: 'Arkhip', sans-serif;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    text-align: center;
}

.page-section p { color: var(--gray-300); line-height: 1.8; font-size: 0.95rem; }

/* Generic card grid used across pages */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
    text-align: center;
}
.info-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px -8px rgba(59,130,246,0.06);
}
.info-card h3 {
    font-family: 'Arkhip', sans-serif;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.info-card p { color: var(--gray-500); font-size: 0.85rem; line-height: 1.6; }

.info-card .card-icon-lg {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Timeline */
.timeline { margin-top: 2rem; position: relative; padding-left: 2rem; }
.timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--gray-700), transparent);
}
.timeline-item {
    position: relative;
    padding: 1.5rem 0 1.5rem 2rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 2rem;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(59,130,246,0.4);
    transform: translateX(-4px);
}
.timeline-date {
    font-family: 'Arkhip', sans-serif;
    font-size: 0.85rem;
    color: var(--accent-soft);
    margin-bottom: 0.3rem;
}
.timeline-content h3 { font-size: 1rem; color: var(--white); margin-bottom: 0.3rem; }
.timeline-content p { color: var(--gray-500); font-size: 0.85rem; }

/* Contact form */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.contact-form h2 { text-align: left; font-size: 1.5rem; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1rem; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.4s ease;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select { cursor: pointer; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-700); }

.submit-button {
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(59,130,246,0.2);
    font-family: 'Inter', sans-serif;
}
.submit-button:hover {
    box-shadow: 0 8px 32px rgba(59,130,246,0.35);
    transform: translateY(-2px);
}

/* ===== CONTACT TERMINAL (legendary form) ===== */
.term {
    position: relative;
    isolation: isolate;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    background: rgba(8, 9, 14, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7),
                0 0 70px -30px rgba(6, 182, 212, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.term::before { /* glowing top accent line */
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent), transparent);
    opacity: 0.7;
    z-index: 2;
}
.term::after { /* faint scanline texture */
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px);
    pointer-events: none;
    opacity: 0.5;
    z-index: 1;
}

.term-bar {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative; z-index: 3;
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.term-dot--r { background: #ff5f56; } .term-dot--y { background: #ffbd2e; } .term-dot--g { background: #27c93f; }
.term-title { margin-left: 0.55rem; font-size: 0.74rem; color: var(--gray-400); letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-status { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.68rem; color: #7ee787; letter-spacing: 0.5px; text-transform: uppercase; }
.term-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #27c93f; box-shadow: 0 0 8px #27c93f; animation: dotPulse 2s ease-in-out infinite; }

.term-body { position: relative; z-index: 3; padding: 1.4rem 1.4rem 1.6rem; font-size: 0.86rem; line-height: 1.6; }
.term-intro { margin: 0 0 1.1rem; color: #5c6675; white-space: pre-wrap; font-size: 0.8rem; min-height: 2.6em; }
.term-intro .ok { color: #7ee787; } .term-intro .accent { color: var(--accent-cyan); }

.term-form { display: flex; flex-direction: column; gap: 1.1rem; }
.term-field { display: block; }
.term-prompt { display: block; color: #7aa2ff; font-size: 0.78rem; margin-bottom: 0.35rem; }
.term-prompt .tp-cmd { color: var(--accent-cyan); }
.term-prompt .tp-user { color: #7ee787; }
.term-prompt .tp-host { color: #c792ea; }

.term-input-row {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.4rem 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.term-input-row--area { align-items: flex-start; }
.term-caret { color: var(--accent-cyan); font-weight: 700; line-height: 1.6; }
.term-input-row:focus-within { border-color: var(--accent-cyan); box-shadow: 0 10px 26px -14px rgba(6, 182, 212, 0.6); }

.term-field input,
.term-field select,
.term-field textarea {
    flex: 1; width: 100%;
    background: transparent; border: none; outline: none;
    color: #e6e6e6; font-family: inherit; font-size: 0.9rem;
    caret-color: var(--accent-cyan);
}
.term-field textarea { resize: vertical; min-height: 88px; line-height: 1.55; }
.term-field input::placeholder, .term-field textarea::placeholder { color: #3a4150; }
.term-field select { cursor: pointer; -webkit-appearance: none; appearance: none; }
.term-field select option { background: #0d0f14; color: #e6e6e6; }
.term-arrow { color: var(--accent-cyan); font-size: 0.8rem; opacity: 0.8; pointer-events: none; }

.term-exec {
    margin-top: 0.4rem; align-self: flex-start;
    font-family: inherit; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.3px;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 9px;
    padding: 0.65rem 1.2rem;
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.term-exec:hover { background: rgba(6, 182, 212, 0.18); box-shadow: 0 0 24px rgba(6, 182, 212, 0.4); transform: translateY(-1px); }
.term-exec:active { transform: translateY(0); }
.term-exec[disabled] { opacity: 0.6; cursor: progress; }
.term-exec-glyph { color: #7ee787; }
.term-exec-arrow { opacity: 0.65; }

.term-output { margin: 1rem 0 0; white-space: pre-wrap; font-size: 0.82rem; color: #9fb0c3; }
.term-output:empty { margin: 0; }
.term-output .ok { color: #7ee787; }
.term-output .warn { color: #ffbd2e; }
.term-output .err { color: #ff6b6b; }
.term-output .accent { color: var(--accent-cyan); }
.term-output .dim { color: #5c6675; }

/* ===== CONTACT CLI (interactive terminal) ===== */
.cli {
    position: relative;
    isolation: isolate;
    max-width: 940px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    height: min(72vh, 660px);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    background: rgba(8, 9, 14, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75),
                0 0 80px -34px rgba(6, 182, 212, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.cli::before { /* glowing top accent line */
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent), transparent);
    opacity: 0.7; z-index: 4;
}
.cli .term-bar { position: relative; z-index: 4; }

.cli-screen {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.3rem 1.4rem;
    font-size: 0.84rem;
    line-height: 1.6;
    color: #cdd6e4;
    position: relative;
    z-index: 3;
    container-type: inline-size;
    scrollbar-width: thin;
    scrollbar-color: rgba(6,182,212,0.5) transparent;
}
.cli-screen::-webkit-scrollbar { width: 10px; }
.cli-screen::-webkit-scrollbar-thumb { background: rgba(6,182,212,0.35); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }

.cli-screen .ascii {
    margin: 0 0 0.8rem;
    font-family: inherit;
    color: var(--accent-cyan);
    text-shadow: 0 0 16px rgba(6, 182, 212, 0.55);
    line-height: 1.02;
    /* sized to the container so the Bloody banner fills the terminal width */
    font-size: clamp(3px, 1.78cqw, 15px);
    white-space: pre;
    overflow: hidden;
}
/* On phones, size the banner off the viewport (no container-query reliance)
   so the full ASCII always fits the terminal with no cutoff. */
@media (max-width: 768px) {
    .cli-screen { padding: 1rem 0.85rem; }
    .cli-screen .ascii { font-size: 1.35vw; }
}
.cli-line { white-space: pre-wrap; word-break: break-word; }
.cli-line.cmd { color: #e6e6e6; }
.cli-echo .tp-user { color: #7ee787; }
.cli-echo .tp-host { color: #c792ea; }
.cli-echo .tp-path { color: var(--accent-cyan); }
.cli-screen .ok     { color: #7ee787; }
.cli-screen .warn   { color: #ffbd2e; }
.cli-screen .err    { color: #ff6b6b; }
.cli-screen .accent { color: var(--accent-cyan); }
.cli-screen .dim    { color: #5c6675; }
.cli-screen .head   { color: #c792ea; font-weight: 600; letter-spacing: 0.5px; }
.cli-screen b       { color: #fff; font-weight: 600; }

.cli-inputline {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 3;
}
.cli-ps1 { white-space: nowrap; font-size: 0.84rem; color: #7aa2ff; }
.cli-ps1 .tp-user { color: #7ee787; }
.cli-ps1 .tp-host { color: #c792ea; }
.cli-ps1 .tp-path { color: var(--accent-cyan); }
#cliInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e6e6e6;
    font-family: inherit;
    font-size: 0.9rem;
    caret-color: var(--accent-cyan);
}
#cliInput::placeholder { color: #3a4150; }

/* ===== SERVICES PAGE ===== */
.service-block {
    /* per-card accent (overridden by the colour modifiers below) */
    --svc: #06b6d4;
    --svc-rgb: 6, 182, 212;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 2.75rem;
    margin-bottom: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    background:
        radial-gradient(130% 110% at 0% 0%, rgba(var(--svc-rgb), 0.10), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
        rgba(13, 15, 20, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease, box-shadow 0.5s ease;
}
.service-block--cyan   { --svc: #06b6d4; --svc-rgb: 6, 182, 212; }
.service-block--purple { --svc: #a855f7; --svc-rgb: 168, 85, 247; }
.service-block--green  { --svc: #10b981; --svc-rgb: 16, 185, 129; }
.service-block--blue   { --svc: #3b82f6; --svc-rgb: 59, 130, 246; }

/* glowing top accent line */
.service-block::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--svc), transparent);
    opacity: 0.55;
}
/* mouse-follow spotlight (position set by JS via --mx / --my) */
.service-block::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%),
        rgba(var(--svc-rgb), 0.12), transparent 42%);
    transition: opacity 0.4s ease;
}
.service-block:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--svc-rgb), 0.45);
    box-shadow: 0 34px 70px -26px rgba(var(--svc-rgb), 0.38),
                0 0 0 1px rgba(var(--svc-rgb), 0.16),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.service-block:hover::after { opacity: 1; }

.service-block-head {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.2rem;
}
.service-block-icon {
    position: relative;
    width: 62px; height: 62px;
    border-radius: 17px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(145deg, rgba(var(--svc-rgb), 0.28), rgba(var(--svc-rgb), 0.06));
    border: 1px solid rgba(var(--svc-rgb), 0.4);
    box-shadow: 0 0 26px rgba(var(--svc-rgb), 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.service-block-icon svg { filter: drop-shadow(0 0 6px rgba(var(--svc-rgb), 0.55)); }
.service-block:hover .service-block-icon {
    transform: translateY(-2px) scale(1.06) rotate(-3deg);
    box-shadow: 0 0 38px rgba(var(--svc-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.service-block h2 {
    font-family: 'Arkhip', sans-serif;
    font-size: clamp(1.4rem, 2.4vw, 1.7rem);
    color: var(--white);
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    text-align: left;
}
.service-block-head p { color: var(--gray-300); font-size: 0.95rem; line-height: 1.7; max-width: 62ch; }

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.sfeat {
    position: relative;
    display: flex; align-items: flex-start; gap: 0.85rem;
    padding: 1.15rem 1.25rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease, background 0.35s ease;
}
/* accent bar that wipes in on hover */
.sfeat::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--svc);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.sfeat:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--svc-rgb), 0.4);
    background: rgba(var(--svc-rgb), 0.06);
}
.sfeat:hover::before { transform: scaleY(1); }

.sfeat-dot {
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px; font-size: 12px; font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, var(--svc), rgba(var(--svc-rgb), 0.45));
    box-shadow: 0 0 12px rgba(var(--svc-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.sfeat h4 { font-size: 0.9rem; color: var(--white); margin-bottom: 0.2rem; }
.sfeat p  { font-size: 0.8rem; color: var(--gray-400); line-height: 1.55; }

/* "Works with" platform logo strip */
.platform-strip {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.platform-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    font-weight: 600;
}
.platform-logos { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.plogo { display: inline-flex; }
.plogo svg {
    width: 26px; height: 26px;
    display: block;
    color: rgba(255, 255, 255, 0.42);
    transition: color 0.25s ease, transform 0.25s ease;
}
.plogo:hover svg { color: #fff; transform: translateY(-2px) scale(1.08); }

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
    position: relative;
    transition: all var(--transition);
    display: flex; flex-direction: column;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -10px rgba(6,182,212,0.09); }
.pricing-card--highlight {
    border-color: rgba(6,182,212,0.35);
    background: linear-gradient(160deg, rgba(6,182,212,0.05) 0%, rgba(147,51,234,0.05) 100%);
}
.pricing-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(90deg, #06b6d4, #9333ea);
    color: white; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 1.2px; padding: 0.22rem 0.9rem;
    border-radius: 99px; text-transform: uppercase; white-space: nowrap;
}
.pricing-tier { font-size: 0.72rem; color: var(--gray-600); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1rem; }
.pricing-price { font-family: 'Arkhip', sans-serif; font-size: 2.4rem; color: var(--white); line-height: 1; margin-bottom: 0.25rem; }
.pricing-price sub { font-size: 0.9rem; color: var(--gray-500); font-family: 'Inter', sans-serif; font-weight: 400; }
.pricing-desc { font-size: 0.82rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.pricing-list { list-style: none; margin-bottom: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.55rem; }
.pricing-list li { font-size: 0.83rem; color: var(--gray-400); display: flex; align-items: baseline; gap: 0.6rem; }
.pricing-list li::before { content: '✓'; color: #06b6d4; font-weight: 700; flex-shrink: 0; font-size: 0.8rem; }
.pricing-cta { margin-top: auto; text-align: center; }

/* ===== ABOUT PAGE ===== */
.about-intro-wrap {
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem; align-items: center; margin-bottom: 4rem;
}
.about-intro-text h2 { font-family: 'Arkhip', sans-serif; font-size: 2rem; color: var(--white); margin-bottom: 1rem; text-align: left; }
.about-intro-text p { color: var(--gray-400); line-height: 1.8; font-size: 0.92rem; margin-bottom: 0.85rem; }
.about-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.astat {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem 1.25rem;
    text-align: center; transition: all var(--transition);
}
.astat:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.astat-num   { font-family: 'Arkhip', sans-serif; font-size: 2rem; color: var(--accent); display: block; line-height: 1; }
.astat-label { font-size: 0.78rem; color: var(--gray-500); margin-top: 0.4rem; display: block; line-height: 1.4; }

/* ===== CONTACT PAGE ===== */
.avail-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25);
    color: #10b981; font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.5px; padding: 0.3rem 0.9rem;
    border-radius: 99px; margin-bottom: 1rem;
}
.avail-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 6px #10b981; animation: availBlink 1.5s ease-in-out infinite; flex-shrink: 0; }
@keyframes availBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.cmethod {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem 1.4rem;
    transition: all var(--transition);
}
.cmethod:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.cmethod-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.7rem; }
.cmethod h3 { font-size: 0.9rem; color: var(--white); margin-bottom: 0.3rem; }
.cmethod p  { font-size: 0.82rem; color: var(--gray-500); line-height: 1.55; }
.form-label { font-size: 0.8rem; color: var(--gray-400); font-weight: 500; margin-bottom: 0.35rem; display: block; }
.contact-right { display: flex; flex-direction: column; gap: 1rem; }
.next-steps { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.4rem; }
.next-steps h4 { font-size: 0.875rem; color: var(--white); margin-bottom: 0.85rem; }
.next-step-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.65rem; }
.next-step-item:last-child { margin-bottom: 0; }
.step-num { width: 22px; height: 22px; border-radius: 50%; background: rgba(6,182,212,0.15); color: #06b6d4; font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.next-step-item p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.5; margin: 0; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge, .hero h1, .hero-subtitle, .hero-buttons {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-badge { animation-delay: 0s; }
.hero h1 { animation-delay: 0.12s; }
.hero-subtitle { animation-delay: 0.24s; }
.hero-buttons { animation-delay: 0.36s; }

/* Typewriter cursor for the hero title */
.type-cursor {
    display: inline-block;
    width: 4px;
    height: 0.82em;
    margin-left: 8px;
    vertical-align: text-bottom;
    border-radius: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 14px var(--accent-cyan);
    animation: typeBlink 1s steps(1) infinite;
}
@keyframes typeBlink { 50% { opacity: 0; } }

main, .footer { position: relative; z-index: 2; }

/* ===== RESPONSIVE ===== */

/* ---- Tablet landscape (769px - 1024px) ---- */
@media (max-width: 1024px) {
    .nav-links { gap: 1.25rem; }
    .section-title { font-size: 2.6rem; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-col:nth-child(3) { display: none; }
    .testimonials-viewport { max-height: 480px; }
    .process-grid { flex-direction: column; gap: 1.25rem; align-items: center; }
    .process-connector { width: 2px; height: 40px; }
    .connector-beam { width: 100%; height: 50%; animation-name: beamSlideV; }
    @keyframes beamSlideV { 0% { top: -50%; } 100% { top: 150%; } }
    .contact-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .service-features-grid { grid-template-columns: 1fr; }
    .about-intro-wrap { grid-template-columns: 1fr; gap: 2rem; }
    .orbit-stage { transform: scale(0.88); transform-origin: center top; margin-bottom: -70px; }
}

/* ---- Tablet portrait / large mobile (≤768px) ---- */
@media (max-width: 768px) {

    /* Navbar */
    .navbar { padding: 12px 16px; }
    .nav-inner { display: flex; justify-content: space-between; }
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: flex; padding: 10px; margin: -6px; } /* ~44px tap target */

    /* Mobile full-screen overlay */
    .nav-links.active {
        display: flex;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
    }
    .nav-links.active .nav-item {
        font-size: 1.6rem;
        color: var(--gray-300);
        font-family: 'Arkhip', sans-serif;
        padding: 0.5rem 0;
    }
    .nav-links.active .nav-item:hover,
    .nav-links.active .nav-item.active { color: var(--white); }
    .nav-links.active .nav-item.active::after { bottom: -2px; }
    .nav-links.active ~ .nav-actions,
    .nav-actions.mobile-visible {
        display: flex;
        position: fixed;
        bottom: 12%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        gap: 1rem;
    }

    /* Hero - reflow from absolute to vertical stack */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 7rem 1.5rem 4rem;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
    .hero-top { position: relative; top: auto; left: auto; right: auto; max-width: 100%; margin: 0 0 2rem 0; }
    .hero h1 { font-size: 2.6rem; letter-spacing: -1px; }
    /* hero code editor: smaller font + height so code fits the phone width */
    .code-card { height: clamp(240px, 42vh, 380px); }
    .code-card .code-body { font-size: 0.74rem; line-height: 1.5; }
    .hero-card {
        position: relative;
        top: auto; left: auto; right: auto; bottom: auto;
        width: 100%;
    }
    .hero-card-inner {
        padding: 0;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1.5rem;
    }
    .hero-bullets { max-width: 100%; }
    .hero-buttons { flex-direction: column; align-items: stretch; width: 100%; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { width: 100%; justify-content: center; }
    .beam-video-wrap { opacity: 0.2; }
    .hero-tagline { white-space: normal; }

    /* Sections */
    .services, .process, .skills, .reviews, .cta { padding: 5rem 1.5rem; }
    .section-title { font-size: 2rem; letter-spacing: -0.5px; }
    .section-desc { font-size: 0.9rem; margin-bottom: 2.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }

    /* Process */
    .process-grid { flex-direction: column; gap: 1.25rem; align-items: center; }
    .process-connector { width: 2px; height: 40px; }
    .connector-beam { width: 100%; height: 50%; animation-name: beamSlideV; }

    /* Orbit - scale down AND center. The stage is 560px (wider than the phone),
       so margin:auto can't center it; left:50% + translateX(-50%) does. */
    .skills { overflow: hidden; }
    .orbit-stage {
        position: relative;
        left: 50%;
        transform: translateX(-50%) scale(0.62);
        transform-origin: top center;
        margin: 2rem 0 -213px;
    }

    /* Stats - single column on mobile */
    .stats-grid { grid-template-columns: 1fr; max-width: 360px; padding: 0 1.5rem; }

    /* Reviews - single column */
    .testimonials-viewport { flex-direction: column; max-height: 400px; }
    .testimonials-col:nth-child(2),
    .testimonials-col:nth-child(3) { display: none; }

    /* Page hero (about / features / contact) */
    .page-hero { padding: 8rem 1.5rem 3rem; min-height: auto; }
    .page-hero h1 { font-size: 2.2rem; letter-spacing: -1px; }
    .page-hero p { font-size: 0.95rem; }

    /* CTA */
    .cta-inner { padding: 3rem 1.5rem; }
    .cta-inner h2 { font-size: 1.7rem; }
    .cta-actions { flex-direction: column; align-items: center; }

    /* Services page */
    .service-block { padding: 1.75rem; }
    .service-block-head { flex-direction: column; gap: 1rem; }
    .service-features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }

    /* About page */
    .about-intro-wrap { grid-template-columns: 1fr; gap: 2rem; }
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); }

    /* Contact page */
    .contact-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-left { flex-direction: column; gap: 0.5rem; align-items: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .footer-right { justify-content: center; }

    /* Misc */
    .cursor-glow { display: none; }
    .tags-marquee { margin: 2rem 0; }
    .stats-bar { flex-direction: column; gap: 1.5rem; padding: 2rem; }
}

/* ---- Small phone (≤480px) ---- */
@media (max-width: 480px) {
    .hero { padding: 6rem 1rem 3rem; }
    .hero h1 { font-size: 2rem; letter-spacing: -0.5px; }
    .code-card .code-body { font-size: 0.62rem; }

    .services, .process, .skills, .reviews, .cta { padding: 4rem 1rem; }
    .section-title { font-size: 1.75rem; }
    .section-desc { font-size: 0.85rem; }

    .page-hero { padding: 7rem 1rem 2.5rem; }
    .page-hero h1 { font-size: 1.8rem; }
    .page-hero p { font-size: 0.9rem; }

    .orbit-stage { transform: translateX(-50%) scale(0.5); margin-bottom: -280px; }

    .stats-grid { max-width: 100%; padding: 0 1rem; }
    .stat-card { padding: 1.5rem 1rem; }
    .stat-number { font-size: 1.9rem; }

    .cta-inner { padding: 2.5rem 1rem; }
    .cta-inner h2 { font-size: 1.4rem; }
    .cta-inner p { font-size: 0.9rem; }

    .service-block { padding: 1.25rem 1rem; }
    .service-block-head { gap: 0.75rem; }
    .pricing-price { font-size: 1.9rem; }
    .sfeat { padding: 0.75rem 0.9rem; }

    .about-stats-grid { grid-template-columns: 1fr 1fr; }
    .astat { padding: 1rem 0.75rem; }
    .astat-num { font-size: 1.5rem; }

    .footer { padding: 2rem 1rem; }
    .footer-copy { font-size: 0.7rem; }
    .footer-logo { font-size: 0.82rem; }

    .btn-primary, .btn-secondary { font-size: 0.72rem; height: 44px; padding: 0 1.3rem; }

    .review-card { padding: 1.25rem; }
    .cta-actions .btn-primary,
    .cta-actions .btn-secondary { width: 100%; justify-content: center; }
}

/* ===== CONTACT PAGE - fit everything to the viewport (no page scroll) ===== */
body.page-contact {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
body.page-contact main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: 4.5rem; /* clear the fixed navbar */
}
body.page-contact .page-hero {
    flex: 0 0 auto;
    min-height: 0;
    padding: 1.1rem 1.5rem 0.5rem;
    text-align: center;
}
body.page-contact .page-hero h1 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); margin: 0.25rem 0; }
body.page-contact .page-hero p  { font-size: 0.85rem; max-width: 640px; margin: 0 auto; }
body.page-contact .avail-badge  { margin-bottom: 0.4rem; }
body.page-contact .page-section {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.6rem 1.5rem 1rem;
}
body.page-contact .cli {
    height: 100%;
    min-height: 0;
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
}
body.page-contact .footer {
    flex: 0 0 auto;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

/* on small/short screens, let the contact page scroll normally again */
@media (max-width: 820px), (max-height: 600px) {
    body.page-contact { height: auto; min-height: 100vh; overflow: auto; display: block; }
    body.page-contact main { display: block; padding-top: 5.5rem; } /* clear the fixed navbar */
    body.page-contact .page-section { display: block; }
    body.page-contact .cli { height: min(72vh, 620px); }
}
