/* Base Reset & Variables */
:root {
    --bg: #030712;
    --bg-alt: #050816;
    --surface: rgba(15, 23, 42, 0.9);
    --surface-soft: rgba(15, 23, 42, 0.7);
    /* Brand (from logo) */
    --accent: #8a0054;
    /* Exigo magenta */
    --accent-soft: rgba(138, 0, 84, 0.16);
    --accent-2: #c11b7f;
    /* lighter magenta */
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.2);
    --radius-lg: 18px;
    --radius-xl: 26px;
    --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.75);
    --blur-strong: blur(24px);
    --transition-fast: 200ms ease-out;
    --transition-med: 320ms ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-height: 100vh;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1e293b 0, #020617 45%, #000 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent text size adjustment on iOS */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent images from causing overflow */
img,
svg,
video {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

.is-hidden {
    display: none !important;
}

/* Layout Helpers */
.container {
    width: min(1120px, 100% - 3rem);
    margin-inline: auto;
    /* Prevent horizontal overflow */
    max-width: 100%;
    box-sizing: border-box;
}

.section {
    position: relative;
    padding: 6rem 0 5rem;
}

.section-inner {
    position: relative;
    z-index: 1;
}

.section-header {
    max-width: 620px;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: clamp(1.9rem, 2.4vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
}

.section-text {
    color: var(--muted);
    font-size: 0.98rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-2);
    margin-bottom: 0.6rem;
}

.accent {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, #111827 0, #020617 40%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 999;
    transition: opacity 400ms ease-out, visibility 400ms ease-out;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: radial-gradient(circle at top, rgba(138, 0, 84, 0.45), transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.9);
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loader-bar {
    width: 220px;
    height: 3px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    overflow: hidden;
    position: relative;
}

.loader-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
    width: 60%;
    animation: loaderSlide 1.2s ease-in-out infinite;
}

.loader-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
}

@keyframes loaderSlide {
    0% {
        transform: translateX(-80%);
    }

    100% {
        transform: translateX(180%);
    }
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(26px);
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.2));
    border-bottom: 1px solid rgba(31, 41, 55, 0.7);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.8rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at top, rgba(138, 0, 84, 0.55), transparent 60%);
    padding: 5px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-title {
    font-size: 1rem;
    font-weight: 700;
    font-family: "Space Grotesk", system-ui, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    font-size: 0.62rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    opacity: 0.9;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    font-size: 0.85rem;
    color: var(--muted);
    position: relative;
    padding-bottom: 0.1rem;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width var(--transition-med);
}

/* =========================================
   Global click "coding" effect
   ========================================= */
.code-click-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
}

.code-burst {
    position: absolute;
    pointer-events: none;
    font-family: "Space Grotesk", system-ui, monospace;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.85rem;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 18px rgba(148, 163, 184, 0.9));
    animation: codeBurstFade 900ms ease-out forwards;
    white-space: nowrap;
}

.code-burst span {
    display: inline-block;
    margin-inline: 1px;
    opacity: 0;
    transform: translate3d(0, 6px, 0) scale(0.9);
    animation: codeCharRise 700ms ease-out forwards;
}

.code-burst span:nth-child(1) {
    animation-delay: 40ms;
}

.code-burst span:nth-child(2) {
    animation-delay: 80ms;
}

.code-burst span:nth-child(3) {
    animation-delay: 120ms;
}

.code-burst span:nth-child(4) {
    animation-delay: 160ms;
}

.code-burst span:nth-child(5) {
    animation-delay: 200ms;
}

.code-burst span:nth-child(6) {
    animation-delay: 240ms;
}

.code-burst span:nth-child(7) {
    animation-delay: 280ms;
}

.code-burst span:nth-child(8) {
    animation-delay: 320ms;
}

@keyframes codeBurstFade {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }

    60% {
        opacity: 1;
        transform: scale(1.03);
    }

    100% {
        opacity: 0;
        transform: scale(1.08) translateY(-6px);
    }
}

@keyframes codeCharRise {
    0% {
        opacity: 0;
        transform: translate3d(0, 6px, 0) scale(0.9);
    }

    60% {
        opacity: 1;
        transform: translate3d(0, -2px, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate3d(0, -10px, 0) scale(1.06);
    }
}

/* =========================================
   Page Click Animation Effect
   ========================================= */
.page-click-animation {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 400ms ease-out, visibility 400ms ease-out;
}

.page-click-animation.active {
    opacity: 1;
    visibility: visible;
}

.page-click-message {
    text-align: center;
    padding: 2rem 3rem;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top left, rgba(138, 0, 84, 0.3), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(193, 27, 127, 0.4);
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.95);
    max-width: 90%;
    max-width: min(700px, 90vw);
    position: relative;
    overflow: hidden;
}

.page-click-message::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 0deg,
            rgba(138, 0, 84, 0.4),
            rgba(79, 70, 229, 0.3),
            rgba(34, 211, 238, 0.4),
            rgba(138, 0, 84, 0.4));
    opacity: 0.6;
    animation: messageOrbit 4s linear infinite;
    mix-blend-mode: screen;
    z-index: -1;
}

@keyframes messageOrbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.page-click-message h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-family: "Space Grotesk", system-ui, sans-serif;
    margin-bottom: 1rem;
    background: linear-gradient(120deg, var(--accent), var(--accent-2), #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: messageSlideIn 600ms ease-out;
}

.page-click-message p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--text);
    line-height: 1.6;
    animation: messageSlideIn 600ms ease-out 100ms backwards;
}

.page-click-message code {
    display: block;
    text-align: left;
    font-family: "Courier New", monospace;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    background: rgba(15, 23, 42, 0.8);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    margin-top: 1rem;
    color: #4ade80;
    overflow-x: auto;
    animation: messageSlideIn 600ms ease-out 200ms backwards;
}

.page-click-message code .keyword {
    color: #c084fc;
}

.page-click-message code .string {
    color: #4ade80;
}

.page-click-message code .class {
    color: #60a5fa;
}

@keyframes messageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-link:hover {
    color: #f9fafb;
}

.nav-link:hover::after {
    width: 26px;
}

.nav-cta {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: radial-gradient(circle at top left, rgba(138, 0, 84, 0.26), rgba(193, 27, 127, 0.06));
    border: 1px solid rgba(193, 27, 127, 0.28);
    color: #ffe4f3;
    box-shadow: 0 14px 40px rgba(88, 0, 52, 0.55);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.85);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 16px;
    height: 1.7px;
    border-radius: 999px;
    background: #e5e7eb;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-open .nav-toggle span:first-child {
    transform: translateY(3px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
    transform: translateY(-3px) rotate(-45deg);
}

.nav-open .nav-list {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
    padding: 1rem;
}

/* Prevent body scroll when nav is open on mobile */
@media (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: min(640px, 100vh - 70px);
    display: flex;
    align-items: center;
    padding: 4.6rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.grid-lines {
    position: absolute;
    inset: -20%;
    background-image: linear-gradient(rgba(15, 23, 42, 0.9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.9) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.35;
    transform: perspective(800px) rotateX(72deg) translateY(120px);
    transform-origin: top center;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(24px);
    opacity: 0.8;
}

.orb-1 {
    width: 320px;
    height: 320px;
    top: -60px;
    right: 8%;
    background: radial-gradient(circle at 30% 30%, #6366f1, transparent 60%);
    animation: floatOrb 12s ease-in-out infinite alternate;
}

.orb-2 {
    width: 260px;
    height: 260px;
    bottom: -40px;
    left: -4%;
    background: radial-gradient(circle at 20% 20%, var(--accent-2), transparent 60%);
    animation: floatOrb 14s ease-in-out infinite alternate-reverse;
}

.orb-3 {
    width: 160px;
    height: 160px;
    top: 40%;
    left: 40%;
    background: radial-gradient(circle at 20% 20%, #f97316, transparent 60%);
    opacity: 0.35;
    animation: floatOrb 16s ease-in-out infinite alternate;
}

@keyframes floatOrb {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(30px, -30px, 0) scale(1.06);
    }
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3.25rem;
    align-items: center;
    z-index: 1;
}

.hero-content {
    position: relative;
}

.hero-title {
    font-size: clamp(2.4rem, 3.2vw, 3.1rem);
    line-height: 1.08;
    margin-bottom: 1rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
}

.hero-text {
    color: var(--muted);
    font-size: 0.98rem;
    max-width: 520px;
    margin-bottom: 1.4rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.7rem;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid transparent;
    transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms ease-out,
        background 160ms ease-out, color 160ms ease-out;
}

.btn.primary {
    background: radial-gradient(circle at top left, var(--accent), var(--accent-2));
    box-shadow: 0 20px 50px rgba(30, 64, 175, 0.8);
    color: #eff6ff;
}

.btn.primary:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 26px 70px rgba(30, 64, 175, 0.95);
}

.btn.ghost {
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.8);
    color: var(--muted);
}

.btn.ghost:hover {
    border-color: rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
}

.btn.full-width {
    width: 100%;
    justify-content: center;
}

.btn-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.7), transparent 55%);
    opacity: 0;
    transform: translate3d(-30%, 30%, 0);
    transition: opacity 220ms ease-out, transform 220ms ease-out;
    pointer-events: none;
}

.btn.primary:hover .btn-glow {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(31, 41, 55, 0.8);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 180px;
}

.meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.meta-value {
    font-size: 0.86rem;
}

.meta-value a {
    color: #bfdbfe;
}

.hero-visual {
    position: relative;
}

.hero-card {
    position: relative;
    padding: 1.4rem 1.6rem 1.3rem;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top left, rgba(138, 0, 84, 0.42), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0 0, rgba(193, 27, 127, 0.22), transparent 60%);
    mix-blend-mode: screen;
    opacity: 0.7;
    pointer-events: none;
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.hero-stat {
    margin-bottom: 1.2rem;
}

.hero-stat-number {
    font-size: clamp(2.1rem, 2.5vw, 2.4rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    display: block;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--muted);
}

.hero-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding-top: 0.9rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.5);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #cbd5f5;
}

.timeline-item .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.95);
}

.timeline-item:nth-child(2) .dot {
    background: #38bdf8;
}

.timeline-item:nth-child(3) .dot {
    background: #f97316;
}

.timeline-item:nth-child(4) .dot {
    background: #4ade80;
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.74rem;
    color: var(--muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mouse {
    width: 20px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 4px;
    display: flex;
    justify-content: center;
}

/* Small button variant */
.small-btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
}

.section-cta-center {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* Home tweaks */
.home-hero {
    margin-bottom: 1rem;
}

.home-preview .section-header {
    margin-bottom: 2.5rem;
}

.contact-inner-home {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-inner-home .contact-info-block {
    max-width: 520px;
}

/* Page hero */
.page-hero {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
    background: radial-gradient(circle at top, #111827 0, #020617 40%, #000 100%);
}

/* Legal / Terms */
.legal {
    background: radial-gradient(circle at top left, rgba(138, 0, 84, 0.12), transparent 55%);
}

.legal-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.7fr);
    gap: 1.6rem;
    align-items: start;
}

.legal-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.75);
    padding: 1.25rem 1.25rem 1.15rem;
}

.legal-card--highlight {
    background: radial-gradient(circle at top left, rgba(138, 0, 84, 0.28), rgba(15, 23, 42, 0.92));
    border-color: rgba(193, 27, 127, 0.45);
}

.legal-card h3 {
    font-size: 1rem;
    margin-bottom: 0.45rem;
}

.legal-muted {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.legal-bullets {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.9rem;
}

.legal-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(2, 6, 23, 0.35);
    font-size: 0.78rem;
    color: #e5e7eb;
}

.legal-contact a {
    color: #bfdbfe;
}

.legal-content .legal-doc {
    padding: 1.55rem 1.55rem 1.4rem;
}

.legal-content h2 {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.12rem;
    margin-top: 1.15rem;
    margin-bottom: 0.45rem;
}

.legal-content h3 {
    font-size: 0.95rem;
    margin-top: 0.85rem;
    margin-bottom: 0.35rem;
    color: #e5e7eb;
}

.legal-content p,
.legal-content li {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.legal-content ul {
    margin-top: 0.45rem;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.35rem;
}

.legal-content li::marker {
    color: var(--accent-2);
}

.legal-example {
    margin-top: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    background: rgba(2, 6, 23, 0.35);
}

.legal-example-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #93c5fd;
    margin-bottom: 0.6rem;
}

.legal-example-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.legal-kv-label {
    font-size: 0.72rem;
    color: rgba(156, 163, 175, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.2rem;
}

.legal-kv-value {
    font-size: 0.95rem;
    color: #e5e7eb;
    font-weight: 600;
}

.legal-kv-note {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.85rem;
}

.legal-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(193, 27, 127, 0.6), transparent);
    margin: 1.35rem 0 1.1rem;
    opacity: 0.8;
}

.legal-signoff-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #ffe4f3;
    margin-bottom: 0.75rem;
}

.legal-signoff-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.legal-signoff a {
    color: #bfdbfe;
}

@media (max-width: 960px) {
    .legal-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .legal-example-grid,
    .legal-signoff-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, var(--accent-soft), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.1), transparent 40%);
    z-index: 0;
}

.page-hero-inner {
    position: relative;
    z-index: 2;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.9;
}

.orbit-bg {
    background: radial-gradient(circle at 0 0, rgba(79, 70, 229, 0.28), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(34, 211, 238, 0.32), transparent 60%);
}

.gradient-stripes {
    background-image: linear-gradient(120deg, rgba(79, 70, 229, 0.35), transparent 50%),
        linear-gradient(300deg, rgba(34, 211, 238, 0.25), transparent 50%);
}

.neon-grid {
    background-image: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.4), transparent 55%),
        linear-gradient(rgba(15, 23, 42, 0.95) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.95) 1px, transparent 1px);
    background-size: auto, 70px 70px, 70px 70px;
}

.soft-orbit {
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.4), transparent 60%),
        radial-gradient(circle at bottom, rgba(34, 197, 94, 0.32), transparent 55%);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}

.page-hero-content {
    max-width: 640px;
}

.contact-hero {
    padding-bottom: 2.3rem;
}

/* Process / timeline */
.process {
    background: radial-gradient(circle at bottom, rgba(15, 23, 42, 0.8), transparent 60%);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.7rem;
    margin-top: 1.2rem;
    position: relative;
    padding-bottom: 2rem;
}

/* Central Timeline Line */
.timeline-grid::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent), var(--accent-2), transparent);
    transform: translateX(-50%);
    opacity: 0.3;
    z-index: 0;
}

@media (max-width: 768px) {
    .timeline-grid::before {
        left: 20px;
        transform: none;
    }
}

.timeline-step {
    position: relative;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 1.5rem;
    overflow: hidden;
    z-index: 1;
}

.timeline-step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-step:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(138, 0, 84, 0.4);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 15px 45px rgba(138, 0, 84, 0.15);
}

.timeline-step:hover::before {
    opacity: 1;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-2);
    margin-bottom: 0.8rem;
    box-shadow: 0 0 15px var(--accent-soft);
}

.timeline-step h3 {
    font-size: 0.98rem;
    margin-bottom: 0.4rem;
}

.timeline-step p {
    font-size: 0.88rem;
    color: var(--muted);
}

/* Values / pricing grids reuse services-grid layout */
.values-grid,
.pricing-grid {
    margin-top: 0.6rem;
}

/* CTA strip */
.cta-strip {
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.2), transparent 60%);
}

.cta-strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.6rem;
}

.cta-strip-text h2 {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    margin-bottom: 0.4rem;
}

.cta-strip-text p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Contact FAQ */
.contact-faq {
    margin-top: 1.7rem;
    display: grid;
    gap: 0.6rem;
}

.faq-item {
    border-radius: 12px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: rgba(15, 23, 42, 0.96);
    padding: 0.55rem 0.75rem;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: var(--muted);
}


.wheel {
    width: 3px;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.9);
    animation: wheelMove 1.4s ease-in-out infinite;
}

@keyframes wheelMove {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(5px);
        opacity: 0;
    }
}

/* About */
.about {
    background: radial-gradient(circle at top, rgba(30, 64, 175, 0.2), transparent 60%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.about-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.15);
    padding: 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.about-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(138, 0, 84, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(138, 0, 84, 0.4);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 20px 50px rgba(138, 0, 84, 0.15);
}

.about-card:hover::after {
    opacity: 1;
}

/* Advanced glow + motion for About cards on About page */
.about-detail .about-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(circle at top left, rgba(138, 0, 84, 0.16), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.45);
    transition:
        transform var(--transition-med),
        box-shadow var(--transition-med),
        border-color var(--transition-med),
        background var(--transition-med);
}

.about-detail .about-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 0deg,
            rgba(138, 0, 84, 0.65),
            rgba(79, 70, 229, 0.4),
            rgba(34, 211, 238, 0.5),
            rgba(138, 0, 84, 0.65));
    opacity: 0;
    transform: translate3d(-20%, -20%, 0) rotate(0deg);
    mix-blend-mode: screen;
    z-index: -1;
    transition: opacity 420ms ease-out;
    pointer-events: none;
}

.about-detail .about-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
    z-index: -1;
}

.about-detail .about-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.95);
    border-color: rgba(193, 27, 127, 0.9);
    background: radial-gradient(circle at top left, rgba(138, 0, 84, 0.22), rgba(15, 23, 42, 0.98));
}

.about-detail .about-card:hover::before {
    opacity: 1;
    animation: aboutCardOrbit 3.2s linear infinite;
}

@keyframes aboutCardOrbit {
    0% {
        transform: translate3d(-20%, -20%, 0) rotate(0deg);
    }

    100% {
        transform: translate3d(-20%, -20%, 0) rotate(360deg);
    }
}

.about-card h3 {
    font-size: 1rem;
    margin-bottom: 0.7rem;
}

.about-card p,
.about-card li {
    font-size: 0.9rem;
    color: var(--muted);
}

.about-card ul {
    padding-left: 1rem;
    display: grid;
    gap: 0.25rem;
}

.about-card li::marker {
    color: var(--accent-2);
}

/* Services */
.services {
    background: radial-gradient(circle at bottom, rgba(15, 23, 42, 0.7), transparent 55%);
}

.tech-orbit-section {
    background: radial-gradient(circle at top, rgba(79, 70, 229, 0.18), transparent 52%),
        radial-gradient(circle at bottom, rgba(138, 0, 84, 0.2), transparent 50%);
}

.tech-orbit-section .section-header {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.tech-orbit-shell {
    position: relative;
    margin: 0 auto;
    width: min(600px, 100%);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.2) 64%, transparent 70%);
    overflow: visible;
}

.tech-orbit-shell::before {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    border: 1px dashed rgba(148, 163, 184, 0.16);
    animation: orbitSpinSlow 28s linear infinite;
}

.tech-core {
    position: relative;
    z-index: 5;
    width: clamp(100px, 15vw, 140px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1rem;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    font-weight: 700;
    font-family: "Space Grotesk", system-ui, sans-serif;
    letter-spacing: 0.03em;
    color: #ffe4f3;
    background: radial-gradient(circle at 30% 30%, rgba(248, 113, 113, 0.9), rgba(138, 0, 84, 0.95) 55%, rgba(70, 0, 40, 0.95) 100%);
    border: 1px solid rgba(255, 228, 243, 0.35);
    box-shadow: 0 0 0 6px rgba(138, 0, 84, 0.2), 0 24px 60px rgba(15, 23, 42, 0.9);
    animation: coreColorShift 10s linear infinite;
}

.tech-core::after {
    content: "";
    position: absolute;
    inset: -14%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(193, 27, 127, 0.3), transparent 70%);
    z-index: -1;
    animation: corePulse 3.2s ease-in-out infinite;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.26);
    pointer-events: none;
}

.orbit-ring-1 {
    width: min(260px, 45vw);
    height: min(260px, 45vw);
}

.orbit-ring-2 {
    width: min(340px, 55vw);
    height: min(340px, 55vw);
}

.orbit-ring-3 {
    width: min(420px, 65vw);
    height: min(420px, 65vw);
}

.orbit-track {
    --orbit-size: 320px;
    --duration: 14s;
    --offset: 0deg;
    position: absolute;
    width: min(var(--orbit-size), 92vw);
    height: min(var(--orbit-size), 92vw);
    margin: auto;
    border-radius: 50%;
    animation: orbitSpin var(--duration) linear infinite;
    animation-delay: calc(var(--offset) / 360 * -1 * var(--duration));
}

.orbit-track .tech-planet {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(-50%, -50%);
    animation: orbitCounterSpin var(--duration) linear infinite;
    animation-delay: calc(var(--offset) / 360 * -1 * var(--duration));
}

.orbit-track-1 {
    --orbit-size: 260px;
    --duration: 13s;
}

.orbit-track-2 {
    --orbit-size: 340px;
    --duration: 18s;
}

.orbit-track-3 {
    --orbit-size: 420px;
    --duration: 24s;
}

.tech-planet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(55px, 6.5vw, 75px);
    height: clamp(55px, 6.5vw, 75px);
    min-width: clamp(55px, 6.5vw, 75px);
    min-height: clamp(55px, 6.5vw, 75px);
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--planet-color, rgba(191, 219, 254, 0.42));
    background: radial-gradient(circle at 30% 30%, var(--planet-color, rgba(59, 130, 246, 0.45)), rgba(15, 23, 42, 0.96) 80%);
    color: #e2e8f0;
    font-size: clamp(0.6rem, 0.9vw, 0.75rem);
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.9), 
                inset -8px -8px 16px rgba(0,0,0,0.6), 
                inset 6px 6px 12px rgba(255,255,255,0.2),
                0 0 15px var(--planet-color, transparent);
    white-space: normal;
    text-align: center;
    word-break: break-word;
    line-height: 1.1;
    padding: 4px;
    position: relative;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.tech-planet::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: inherit;
    filter: blur(8px);
    opacity: 0.5;
    z-index: -1;
}

@keyframes orbitSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes orbitCounterSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes orbitSpinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* Mini Orbit Variant */
.tech-orbit-shell.mini {
    width: 310px;
    height: 310px;
    background: none;
    margin: 0;
    overflow: visible;
}

.tech-orbit-shell.mini .tech-core {
    width: 70px;
    font-size: 0.65rem;
    box-shadow: 0 0 0 4px rgba(138, 0, 84, 0.2), 0 10px 30px rgba(15, 23, 42, 0.8);
}

.tech-orbit-shell.mini .orbit-ring-1 { width: 120px; height: 120px; }
.tech-orbit-shell.mini .orbit-ring-2 { width: 190px; height: 190px; }
.tech-orbit-shell.mini .orbit-ring-3 { width: 260px; height: 260px; }

.tech-orbit-shell.mini .orbit-track-1 { --orbit-size: 120px; }
.tech-orbit-shell.mini .orbit-track-2 { --orbit-size: 190px; }
.tech-orbit-shell.mini .orbit-track-3 { --orbit-size: 260px; }

.tech-orbit-shell.mini .tech-planet {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    font-size: 0.45rem;
    border-radius: 50%;
    padding: 0;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
    box-shadow: 0 6px 15px rgba(2, 6, 23, 0.9), 
                inset -4px -4px 8px rgba(0,0,0,0.6), 
                inset 3px 3px 6px rgba(255,255,255,0.2),
                0 0 8px var(--planet-color, transparent);
}

.about-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 991px) {
    .about-header-flex {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .about-header-flex .section-header {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0;
    }
    .tech-orbit-shell.mini {
        margin: 0 auto;
    }
}

@keyframes corePulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes coreColorShift {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.7rem;
}

.service-card {
    position: relative;
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    isolation: isolate;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(138, 0, 84, 0.4);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 20px 50px rgba(138, 0, 84, 0.15);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at 0 0, rgba(14, 165, 233, 0.28), transparent 55%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity var(--transition-med);
    z-index: -1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-2);
    margin-bottom: 0.8rem;
    box-shadow: 0 0 15px var(--accent-soft);
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

.service-card ul {
    font-size: 0.85rem;
    color: #d1d5db;
    display: grid;
    gap: 0.25rem;
}

/* Work */
.work {
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.26), transparent 55%);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.work-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
}

.work-media {
    position: relative;
    height: 150px;
    background: radial-gradient(circle at top left, #38bdf8, #0f172a);
    overflow: hidden;
}

.work-media.alt {
    background: radial-gradient(circle at top, #22c55e, #0f172a);
}

.work-media.neon {
    background: radial-gradient(circle at bottom right, #f97316, #0f172a);
}

.work-overlay {
    position: absolute;
    inset: -40%;
    background-image: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.45) 0, transparent 50%),
        conic-gradient(from 0deg, rgba(15, 23, 42, 0.45), transparent 40%, rgba(15, 23, 42, 0.8));
    mix-blend-mode: soft-light;
    opacity: 0.7;
    animation: rotateOverlay 14s linear infinite;
}

@keyframes rotateOverlay {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.work-label {
    position: absolute;
    left: 1rem;
    bottom: 0.9rem;
    padding: 0.32rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.work-body {
    padding: 1.1rem 1.2rem 1.1rem;
}

.work-body h3 {
    font-size: 0.98rem;
    margin-bottom: 0.4rem;
}

.work-body p {
    font-size: 0.88rem;
    color: var(--muted);
}

/* Contact */
.contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 2.2rem;
    align-items: flex-start;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 1.4rem;
}

.contact-card {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
}

.contact-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.contact-card p,
.contact-card a {
    font-size: 0.86rem;
    color: var(--muted);
}

.contact-card a {
    color: #bfdbfe;
}

.contact-form-block {
    position: relative;
}

.glass-panel {
    position: relative;
    padding: 1.4rem 1.5rem 1.5rem;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.3), rgba(15, 23, 42, 0.94));
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.95);
    overflow: hidden;
}

.glass-panel::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 20% 0, rgba(56, 189, 248, 0.25), transparent 60%);
    mix-blend-mode: soft-light;
    opacity: 0.85;
}

.glass-panel h3 {
    position: relative;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.glass-panel p {
    position: relative;
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 1.1rem;
}

.contact-form {
    position: relative;
    display: grid;
    gap: 0.9rem;
}

.field-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.field {
    display: grid;
    gap: 0.3rem;
}

.field label {
    font-size: 0.8rem;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    padding: 0.55rem 0.9rem;
    background: rgba(15, 23, 42, 0.9);
    font-size: 0.86rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
        background var(--transition-fast), transform 120ms ease-out;
}

.field textarea {
    border-radius: 18px;
    resize: vertical;
    min-height: 80px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7), 0 18px 45px rgba(15, 23, 42, 0.95);
    background: rgba(15, 23, 42, 0.96);
    transform: translateY(-1px);
}

.form-note {
    font-size: 0.74rem;
    color: var(--muted);
    text-align: center;
    margin-top: 0.3rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.85), #020617);
    padding: 2.8rem 0 1.8rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.12), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.footer-shell {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    padding-bottom: 2.1rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.85);
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: radial-gradient(circle at top, rgba(138, 0, 84, 0.7), transparent 65%);
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.footer-brand-text h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.footer-brand-text p {
    font-size: 0.82rem;
    color: var(--muted);
    max-width: 320px;
}

.footer-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 0.9rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.86rem;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    display: list-item;
}

.footer-links a {
    color: #bfdbfe;
    opacity: 0.9;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(3px);
}

.footer-contact p {
    font-size: 0.84rem;
    color: var(--muted);
    margin-bottom: 0.9rem;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    font-size: 0.8rem;
    font-weight: 500;
    color: #0b1220;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.9);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.footer-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
}

.footer-review-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.7rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.5);
    font-size: 0.78rem;
    color: #f8fafc;
    transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.footer-review-cta:hover {
    transform: translateY(-1px);
    border-color: rgba(250, 204, 21, 0.8);
    background: rgba(250, 204, 21, 0.15);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1.4rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.footer-admin-link {
    color: #93c5fd;
    text-decoration: none;
    margin-left: 0.75rem;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}
.footer-admin-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-social a {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6));
    transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.footer-social a svg {
    width: 15px;
    height: 15px;
    fill: #e5e7eb;
    opacity: 0.9;
    transition: opacity var(--transition-fast), fill var(--transition-fast);
}

.footer-social a:hover {
    border-color: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.9));
}

.footer-social a:hover svg {
    opacity: 1;
    fill: #e0f2fe;
}

/* Chatbot */
.chatbot-fab {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    cursor: pointer;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.chatbot-fab:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.chatbot-fab svg {
    width: 22px;
    height: 22px;
    fill: #071021;
}

.chatbot-panel {
    position: fixed;
    right: 1.4rem;
    bottom: 5.5rem;
    width: min(380px, calc(100vw - 2.4rem));
    height: min(560px, calc(100vh - 9rem));
    border-radius: 18px;
    border: 1px solid rgba(31, 41, 55, 0.9);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.95);
    overflow: hidden;
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    z-index: 60;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.chatbot-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.85);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.55));
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-badge {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #0b1220;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

.chatbot-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.chatbot-subtitle {
    font-size: 0.72rem;
    color: var(--muted);
}

.chatbot-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.chatbot-close:hover {
    border-color: rgba(34, 211, 238, 0.8);
    background: rgba(34, 211, 238, 0.1);
}

.chatbot-body {
    height: calc(100% - 166px);
    padding: 1rem;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.chatbot-msg {
    max-width: 88%;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(31, 41, 55, 0.85);
    background: rgba(15, 23, 42, 0.6);
    font-size: 0.85rem;
    line-height: 1.4;
}

.chatbot-msg.user {
    margin-left: auto;
    background: rgba(138, 0, 84, 0.18);
    border-color: rgba(138, 0, 84, 0.35);
}

.chatbot-msg.ai {
    margin-right: auto;
}

.chatbot-quick {
    padding: 0.7rem 1rem 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chatbot-quick button {
    padding: 0.38rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.55);
    color: #bfdbfe;
    font-size: 0.74rem;
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.chatbot-quick button:hover {
    transform: translateY(-1px);
    border-color: rgba(193, 27, 127, 0.75);
    background: rgba(193, 27, 127, 0.1);
}

.chatbot-buttons {
    margin-top: 0.6rem;
    margin-bottom: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chatbot-btn {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(138, 0, 84, 0.15);
    color: #bfdbfe;
    font-size: 0.8rem;
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
    font-weight: 500;
}

.chatbot-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(193, 27, 127, 0.85);
    background: rgba(193, 27, 127, 0.2);
    color: #ffe4f3;
}

.chatbot-form {
    padding: 0.8rem 1rem 1rem;
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 0.6rem;
}

.chatbot-input {
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    border: 1px solid rgba(31, 41, 55, 0.9);
    background: rgba(15, 23, 42, 0.6);
    color: #e5e7eb;
}

.chatbot-input::placeholder {
    color: rgba(156, 163, 175, 0.85);
}

.chatbot-send {
    border-radius: 14px;
    border: 1px solid rgba(31, 41, 55, 0.9);
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.chatbot-send:hover {
    transform: translateY(-1px);
    border-color: rgba(34, 211, 238, 0.75);
    background: rgba(34, 211, 238, 0.08);
}

.chatbot-send svg {
    width: 18px;
    height: 18px;
    fill: #e5e7eb;
}

/* Scroll Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 520ms ease-out, transform 520ms ease-out;
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up[style*="--delay"] {
    transition-delay: var(--delay);
}

/* Responsive - Mobile First Approach */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .container {
        width: min(1000px, 100% - 2.5rem);
    }

    .hero-inner {
        gap: 2.8rem;
    }

    .services-grid,
    .work-grid,
    .about-grid {
        gap: 1.5rem;
    }
}

/* Tablets */
@media (max-width: 960px) {
    .container {
        width: min(100% - 2rem, 100%);
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
    }

    .hero-visual {
        order: -1;
        max-width: 100%;
    }

    .hero-content {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-meta {
        justify-content: center;
    }

    .about-grid,
    .services-grid,
    .work-grid,
    .contact-inner,
    .contact-grid,
    .timeline-grid,
    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.4rem;
    }

    .cta-strip-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }

    .contact-inner-home {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-inner-home .contact-info-block {
        max-width: 100%;
        text-align: center;
    }

    .page-hero {
        padding: 6rem 0 4.5rem;
    }

    .section-header {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile and Small Tablets */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 75px;
    }

    .container {
        width: min(100% - 1.5rem, 100%);
    }

    /* Header & Navigation */
    .header-inner {
        padding-block: 0.7rem;
    }

    .brand {
        gap: 0.6rem;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
    }

    .brand-title {
        font-size: 0.9rem;
    }

    .brand-subtitle {
        font-size: 0.58rem;
    }

    .nav {
        gap: 1rem;
    }

    .nav-list {
        position: fixed;
        right: 1rem;
        top: 70px;
        left: 1rem;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 16px;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(31, 41, 55, 0.9);
        box-shadow: 0 24px 80px rgba(15, 23, 42, 0.95);
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        overflow: hidden;
        transition: max-height 300ms ease-out, opacity 300ms ease-out, padding 300ms ease-out;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        border-radius: 8px;
        transition: background var(--transition-fast), color var(--transition-fast);
    }

    .nav-link:hover {
        background: rgba(138, 0, 84, 0.15);
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    .nav-toggle {
        display: inline-flex;
        z-index: 50;
    }

    /* Hero Section */
    .hero {
        padding: 3.4rem 0 2.5rem;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(1.9rem, 5vw, 2.4rem);
        line-height: 1.15;
        margin-bottom: 1.2rem;
    }

    .hero-text {
        font-size: 0.95rem;
        max-width: 100%;
        margin-bottom: 1.6rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .meta-item {
        min-width: 100%;
        align-items: center;
    }

    .hero-card {
        padding: 1.3rem 1.2rem;
    }

    .hero-stat-number {
        font-size: 2rem;
    }

    .hero-timeline {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* Sections */
    .section {
        padding: 4rem 0 3.5rem;
    }

    .section-title {
        font-size: clamp(1.7rem, 4vw, 2.2rem);
    }

    .section-text {
        font-size: 0.95rem;
    }

    /* Grids - Single Column on Mobile */
    .about-grid,
    .services-grid,
    .work-grid,
    .contact-inner,
    .contact-grid,
    .timeline-grid,
    .values-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.2rem;
    }

    .timeline-grid::before {
        left: 20px;
        transform: none;
    }

    .tech-orbit-shell {
        width: min(560px, 100%);
    }

    .orbit-ring-1,
    .orbit-track-1 {
        width: min(280px, 56vw);
        height: min(280px, 56vw);
    }

    .orbit-ring-2,
    .orbit-track-2 {
        width: min(380px, 76vw);
        height: min(380px, 76vw);
    }

    .orbit-ring-3,
    .orbit-track-3 {
        width: min(500px, 92vw);
        height: min(500px, 92vw);
    }

    .tech-planet {
        min-width: 62px;
        min-height: 62px;
        padding: 0.45rem 0.65rem;
        font-size: 0.68rem;
    }

    .timeline-step {
        padding-left: 3rem;
        position: relative;
    }

    .timeline-step::after {
        content: "";
        position: absolute;
        left: 12px;
        top: 1.5rem;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--accent);
        border: 2px solid var(--bg);
        box-shadow: 0 0 0 3px var(--accent-soft);
    }

    /* Cards */
    .about-card,
    .service-card,
    .work-card {
        padding: 1.3rem 1.2rem;
    }

    .service-card h3,
    .about-card h3 {
        font-size: 1.05rem;
    }

    .work-media {
        height: 180px;
    }

    /* Contact */
    .contact-inner {
        gap: 2rem;
    }

    .contact-grid {
        gap: 1rem;
    }

    .contact-card {
        padding: 1rem;
    }

    .glass-panel {
        padding: 1.3rem 1.2rem 1.4rem;
    }

    .field-group {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.9rem;
    }

    .field input,
    .field select,
    .field textarea {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
        min-height: 44px; /* Touch-friendly */
    }

    .field textarea {
        min-height: 100px;
    }

    .btn {
        min-height: 44px; /* Touch-friendly */
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        padding-bottom: 1.8rem;
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-brand-text {
        text-align: center;
    }

    .footer-brand-text p {
        max-width: 100%;
    }

    .footer-links {
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-cta {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1.4rem;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 1.2rem;
    }

    .footer-social {
        justify-content: center;
    }

    /* Page Hero */
    .page-hero {
        padding: 5rem 0 3.5rem;
    }

    .page-hero-content {
        text-align: center;
    }

    /* CTA Strip */
    .cta-strip-inner {
        text-align: center;
    }

    /* Chatbot */
    .chatbot-panel {
        right: 0.75rem;
        left: 0.75rem;
        bottom: 5rem;
        width: auto;
        max-width: 100%;
    }

    .chatbot-fab {
        right: 1rem;
        bottom: 1rem;
        width: 56px;
        height: 56px;
    }

    .chatbot-body {
        padding: 0.9rem;
    }

    .chatbot-form {
        padding: 0.7rem 0.9rem 0.9rem;
    }

    .chatbot-input {
        padding: 0.75rem 0.9rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .chatbot-send {
        min-width: 44px;
        min-height: 44px;
    }

    /* Process/Timeline */
    .process {
        padding: 4rem 0;
    }

    /* Loader */
    .loader-logo {
        width: 60px;
        height: 60px;
    }

    .loader-bar {
        width: 200px;
    }

    .loader-text {
        font-size: 0.75rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 520px) {
    .container {
        width: min(100% - 1.25rem, 100%);
    }

    /* Typography */
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.1rem);
        line-height: 1.2;
    }

    .tech-orbit-shell {
        width: min(420px, 100%);
        margin-top: 0.4rem;
    }

    .tech-core {
        width: 108px;
        font-size: 0.92rem;
    }

    .orbit-ring-1,
    .orbit-track-1 {
        width: min(230px, 54vw);
        height: min(230px, 54vw);
    }

    .orbit-ring-2,
    .orbit-track-2 {
        width: min(310px, 75vw);
        height: min(310px, 75vw);
    }

    .orbit-ring-3,
    .orbit-track-3 {
        width: min(390px, 94vw);
        height: min(390px, 94vw);
    }

    .tech-planet {
        min-width: 52px;
        min-height: 52px;
        font-size: 0.6rem;
        padding: 0.35rem 0.45rem;
    }

    .section-title {
        font-size: clamp(1.6rem, 5vw, 2rem);
    }

    .eyebrow {
        font-size: 0.7rem;
    }

    /* Header */
    .brand-text {
        display: none; /* Hide subtitle on very small screens */
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    /* Hero */
    .hero {
        padding: 2.8rem 0 2rem;
    }

    .hero-text {
        font-size: 0.9rem;
    }

    .hero-card {
        padding: 1.1rem 1rem;
    }

    .hero-stat-number {
        font-size: 1.8rem;
    }

    .hero-timeline {
        font-size: 0.7rem;
    }

    /* Cards */
    .about-card,
    .service-card,
    .work-card {
        padding: 1.1rem 1rem;
    }

    .service-card h3,
    .about-card h3,
    .work-body h3 {
        font-size: 1rem;
    }

    .service-card p,
    .about-card p,
    .work-body p {
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.3rem;
        font-size: 0.85rem;
    }

    .btn.ghost {
        padding: 0.75rem 1.3rem;
    }

    /* Sections */
    .section {
        padding: 3.5rem 0 3rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    /* Contact */
    .contact-card {
        padding: 0.9rem;
    }

    .contact-card h3 {
        font-size: 0.85rem;
    }

    .contact-card p,
    .contact-card a {
        font-size: 0.8rem;
    }

    .glass-panel {
        padding: 1.1rem 1rem 1.2rem;
    }

    .glass-panel h3 {
        font-size: 0.95rem;
    }

    .glass-panel p {
        font-size: 0.82rem;
    }

    .field label {
        font-size: 0.75rem;
    }

    .field input,
    .field select,
    .field textarea {
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-grid {
        gap: 1.6rem;
    }

    .footer-logo {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .footer-brand-text h4 {
        font-size: 0.9rem;
    }

    .footer-brand-text p {
        font-size: 0.78rem;
    }

    .footer-heading {
        font-size: 0.8rem;
    }

    .footer-links ul {
        font-size: 0.82rem;
    }

    .footer-contact p {
        font-size: 0.8rem;
    }

    .footer-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.78rem;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
    }

    /* Page Hero */
    .page-hero {
        padding: 4rem 0 3rem;
    }

    /* Chatbot */
    .chatbot-panel {
        right: 0.5rem;
        left: 0.5rem;
        bottom: 4.5rem;
        border-radius: 16px;
    }

    .chatbot-header {
        padding: 0.85rem 0.9rem;
    }

    .chatbot-badge {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }

    .chatbot-name {
        font-size: 0.85rem;
    }

    .chatbot-subtitle {
        font-size: 0.68rem;
    }

    .chatbot-close {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .chatbot-msg {
        font-size: 0.82rem;
        padding: 0.6rem 0.7rem;
    }

    .chatbot-quick {
        padding: 0.6rem 0.9rem 0;
    }

    .chatbot-quick button {
        padding: 0.35rem 0.55rem;
        font-size: 0.7rem;
    }

    .chatbot-fab {
        right: 0.75rem;
        bottom: 0.75rem;
        width: 52px;
        height: 52px;
    }

    .chatbot-fab svg {
        width: 20px;
        height: 20px;
    }

    /* Meta Items */
    .meta-label {
        font-size: 0.65rem;
    }

    .meta-value {
        font-size: 0.8rem;
    }

    /* FAQ */
    .faq-item summary {
        font-size: 0.8rem;
    }

    .faq-item p {
        font-size: 0.78rem;
    }

    /* Work Media */
    .work-media {
        height: 160px;
    }

    .work-label {
        font-size: 0.7rem;
        padding: 0.28rem 0.6rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 380px) {
    .container {
        width: min(100% - 1rem, 100%);
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-card,
    .about-card,
    .service-card,
    .work-card {
        padding: 1rem 0.9rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.82rem;
    }

    .glass-panel {
        padding: 1rem 0.9rem 1.1rem;
    }

    .chatbot-panel {
        right: 0.5rem;
        left: 0.5rem;
    }

    .chatbot-fab {
        right: 0.5rem;
        bottom: 0.5rem;
        width: 48px;
        height: 48px;
    }

    .nav-list {
        right: 0.5rem;
        left: 0.5rem;
        top: 65px;
    }
}

/* Prevent horizontal scroll on all devices */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Ensure tables and other elements don't cause overflow */
table {
    width: 100%;
    max-width: 100%;
    table-layout: auto;
    word-wrap: break-word;
}

/* Prevent overflow from long words and URLs */
p, li, span, div, h1, h2, h3, h4, h5, h6, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure containers don't overflow */
.container,
.section-inner,
.hero-inner,
.contact-inner {
    max-width: 100%;
    box-sizing: border-box;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    a,
    button,
    .btn,
    .nav-link,
    .footer-cta,
    .chatbot-fab,
    .chatbot-send,
    .chatbot-close {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Ensure clickable areas are touch-friendly */
    .nav-link {
        min-height: 48px;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2.5rem 0 2rem;
        min-height: auto;
    }

    .page-hero {
        padding: 4rem 0 3rem;
    }

    .section {
        padding: 3rem 0 2.5rem;
    }

    .chatbot-panel {
        height: min(400px, calc(100vh - 7rem));
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .brand-logo,
    .footer-logo,
    .loader-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .chatbot-fab,
    .chatbot-panel,
    .scroll-indicator,
    .page-loader {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* =========================================
   Service Agreement Styles
   ========================================= */
.agreement-hero {
    padding: 6rem 0 4rem;
    background: radial-gradient(circle at top right, rgba(138, 0, 84, 0.15), transparent 50%);
    border-bottom: 1px solid var(--border-subtle);
}

.agreement-wrapper {
    padding: 4rem 0;
    background: var(--bg-alt);
}

.agreement-format-note {
    padding: 1.5rem 0 3rem;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-subtle);
}

.agreement-format-note h3 {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.agreement-format-note ul {
    color: var(--muted);
    padding-left: 1.2rem;
    line-height: 1.7;
    font-size: 0.9rem;
}

.agreement-document {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.agreement-page {
    background: #fff;
    color: #1f2937;
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-height: 1120px; /* A4-ish ratio */
    display: flex;
    flex-direction: column;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.agreement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f3f4f6;
}

.company-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.agreement-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.brand-info h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    color: var(--accent);
    margin: 0;
}

.brand-info p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin: 0;
}

.agreement-meta {
    text-align: right;
    font-size: 0.9rem;
}

.meta-row {
    margin-bottom: 0.4rem;
}

.meta-row .label {
    font-weight: 600;
    color: #374151;
}

.agreement-section {
    margin-bottom: 2.5rem;
}

.agreement-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    background: #f9fafb;
    padding: 0.6rem 1rem;
    border-left: 4px solid var(--accent);
    margin-bottom: 1.2rem;
    color: #111827;
}

.parties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.party-box h4 {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.4rem;
}

.party-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.2rem;
}

.form-field .line {
    display: block;
    border-bottom: 1px solid #d1d5db;
    min-height: 1.5rem;
}

.agreement-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.agreement-table th, 
.agreement-table td {
    border: 1px solid #e5e7eb;
    padding: 0.8rem;
    text-align: left;
}

.agreement-table th {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

.fill-cell {
    width: 40%;
}

.terms-list {
    list-style: none;
    padding: 0;
}

.terms-list li {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.terms-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.standard-list {
    padding-left: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.7;
}

.acknowledgment-list {
    background: #fdf2f8;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px dashed var(--accent-2);
}

.ack-item {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: #1f2937;
}

.signature-block {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 2px solid #f3f4f6;
}

.signature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.sig-section h4 {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1.2rem;
    letter-spacing: 0.05em;
}

.sig-field {
    margin-bottom: 1.2rem;
}

.sig-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    padding: 0.4rem 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    color: var(--accent);
}

.sig-canvas-placeholder {
    height: 60px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.handwritten {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #1e3a8a;
}

.agreement-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
    padding-top: 1rem;
}

.end-marker {
    font-weight: 700;
    color: var(--accent);
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    .agreement-document, .agreement-document * {
        visibility: visible;
    }
    .agreement-document {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .agreement-page {
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0.8in !important;
        page-break-after: always !important;
        min-height: 10.5in !important;
        width: 100% !important;
        border: none !important;
        color: #000 !important;
    }
    .agreement-hero, .site-header, .site-footer, .agreement-actions, .agreement-hero-actions {
        display: none !important;
    }
    .agreement-format-note {
        display: none !important;
    }
    .container {
        width: 100% !important;
        max-width: 100% !important;
    }
    .agreement-wrapper {
        padding: 0 !important;
        background: #fff !important;
    }
}

@media (max-width: 768px) {
    .parties-grid, .signature-grid {
        grid-template-columns: 1fr;
    }
    .agreement-page {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Premium Testimonials & Google Reviews Styling
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.testimonial-card {
    position: relative;
    padding: 2.5rem 2rem 2.2rem;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card::before {
    content: "“";
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 8rem;
    font-family: serif;
    color: rgba(138, 0, 84, 0.04);
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(193, 27, 127, 0.4);
    box-shadow: 0 30px 60px rgba(138, 0, 84, 0.2);
}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(193, 27, 127, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 300ms;
    pointer-events: none;
}

.testimonial-card:hover .card-glow {
    opacity: 1;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stars {
    font-size: 1.15rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.platform-badge {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.08);
    color: var(--muted);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.testimonial-text {
    font-size: 0.96rem;
    line-height: 1.65;
    color: #e5e7eb;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 1.2rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    font-style: normal;
}

.author-role {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.1rem;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

