/* ============================================================
   OMNATIX - STYLES
   Black primary, white/gray accents, glass effects, parallax
   ============================================================ */

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

:root {
    --black: #000000;
    --black-light: #0a0a0a;
    --black-card: #111111;
    --gray-900: #171717;
    --gray-800: #1f1f1f;
    --gray-700: #2a2a2a;
    --gray-600: #3a3a3a;
    --gray-500: #555555;
    --gray-400: #777777;
    --gray-300: #999999;
    --gray-200: #bbbbbb;
    --gray-100: #dddddd;
    --white: #ffffff;
    --white-05: rgba(255,255,255,0.05);
    --white-08: rgba(255,255,255,0.08);
    --white-10: rgba(255,255,255,0.10);
    --white-15: rgba(255,255,255,0.15);
    --white-20: rgba(255,255,255,0.20);
    --white-40: rgba(255,255,255,0.40);
    --white-60: rgba(255,255,255,0.60);
    --white-80: rgba(255,255,255,0.80);
    --green: #22c55e;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-primary: Verdana, Geneva, sans-serif;
    --font-display: Verdana, Geneva, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-primary);
    background: var(--black);
    color: var(--gray-200);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ─── CURSOR GLOW ─── */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    will-change: transform;
}

/* ─── PARTICLE CANVAS ─── */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ─── CONTAINER ─── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ─── GLASS EFFECTS ─── */
.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--white-10);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--white-20);
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(255,255,255,0.03);
}

.glass-card-large {
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--white-08);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.glass-card-large:hover {
    border-color: var(--white-15);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

/* ─── PARALLAX BACKGROUNDS ─── */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ─── SECTION COMMON ─── */
section {
    position: relative;
    overflow: hidden;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 16px auto 0;
}

/* ─── NAVBAR ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--white-05);
}

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

/* ─── BRAND MARK (OMNATIX emblem) + WORDMARK ─── */
.brand-mark {
    display: block;
    width: auto;
    object-fit: contain;
    flex: none;
}
.nav-mark    { height: 46px; }
.footer-mark { height: 76px; margin-bottom: 10px; }
.loader-mark { height: 200px; animation: loaderLogoPulse 1.5s ease-in-out infinite; }
.nav-logo:hover .nav-mark { transform: scale(1.04); }
.nav-mark, .footer-mark { transition: var(--transition); }
.footer-brand picture { display: block; }
@media (max-width: 600px) {
    .nav-mark    { height: 34px; }
    .footer-mark { height: 60px; }
    .loader-mark { height: 140px; }
}

/* ─── BRAND WORDMARK ─── */
.brand-wordmark {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.22em;
    line-height: 1;
    white-space: nowrap;
    transition: var(--transition);
}
.nav-wordmark {
    font-size: 1.45rem;
}
.nav-logo:hover .nav-wordmark {
    opacity: 0.85;
    transform: scale(1.03);
}
.footer-wordmark {
    font-size: 1.7rem;
    margin-bottom: 16px;
}
.loader-wordmark {
    font-size: 3rem;
    animation: loaderLogoPulse 1.5s ease-in-out infinite;
}
@media (max-width: 600px) {
    .nav-wordmark { font-size: 1.15rem; letter-spacing: 0.16em; }
    .footer-wordmark { font-size: 1.35rem; }
    .loader-wordmark { font-size: 2.1rem; }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon svg {
    display: block;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
}

.logo-accent {
    color: var(--gray-400);
}

.nav-logo-img {
    height: 90px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: var(--transition);
    filter: brightness(1);
}

.nav-logo:hover .nav-logo-img {
    opacity: 0.85;
    transform: scale(1.03);
}

.footer-logo-img {
    height: 200px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 16px;
    filter: brightness(1);
}

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

.nav-link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-400);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* ─── HERO ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    position: relative;
}

.hero-bg-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-gradient-orb {
    --px: 0px;
    --py: 0px;
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(150,150,150,0.06), transparent);
    bottom: 10%;
    left: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200,200,200,0.05), transparent);
    top: 40%;
    right: 20%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(var(--px, 0px), var(--py, 0px)) scale(1); }
    25% { transform: translate(calc(var(--px, 0px) + 30px), calc(var(--py, 0px) - 40px)) scale(1.05); }
    50% { transform: translate(calc(var(--px, 0px) - 20px), calc(var(--py, 0px) + 20px)) scale(0.95); }
    75% { transform: translate(calc(var(--px, 0px) + 40px), calc(var(--py, 0px) + 30px)) scale(1.02); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: 32px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #888888 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 8s linear infinite;
}

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

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray-400);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255,255,255,0.15);
}

.btn-glass {
    background: var(--white-05);
    color: var(--white);
    border: 1px solid var(--white-15);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--white-10);
    border-color: var(--white-20);
    transform: translateY(-2px);
}

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

/* ─── SCROLL INDICATOR ─── */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--white-40), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

.hero-scroll-indicator span {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ─── STATS ─── */
.stats-section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

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

.stat-card {
    padding: 40px 32px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 12px;
}

.highlight-zero {
    background: linear-gradient(135deg, #ffffff, #666666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray-400);
    line-height: 1.5;
}

.stat-label strong {
    color: var(--white);
}

.stat-bar {
    margin-top: 20px;
    height: 3px;
    background: var(--white-05);
    border-radius: 10px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--white-40), var(--white-10));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card.animated .stat-bar-fill {
    width: var(--fill);
}

/* ─── MISSION ─── */
.mission-section {
    padding: 120px 0;
    position: relative;
}

.mission-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.02) 0%, transparent 50%);
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.mission-lead {
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 20px;
}

.mission-text p {
    margin-bottom: 16px;
    color: var(--gray-300);
}

.mission-highlight {
    font-size: 1.2rem;
    color: var(--white) !important;
    font-weight: 600;
    padding: 16px 0;
    border-left: 3px solid var(--white-20);
    padding-left: 20px;
}

.mission-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mission-card {
    padding: 28px;
}

.mission-card-icon {
    margin-bottom: 16px;
}

.mission-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 8px;
}

.mission-card p {
    font-size: 0.9rem;
    color: var(--gray-400);
}

/* ─── ABOUT ─── */
.about-section {
    padding: 120px 0;
    position: relative;
}

.about-story {
    padding: 48px;
    margin-bottom: 64px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-story h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 24px;
}

.about-story-content p {
    margin-bottom: 16px;
    color: var(--gray-300);
    line-height: 1.8;
}

.about-question {
    font-size: 1.1rem;
    color: var(--gray-200) !important;
    padding: 20px 24px;
    background: var(--white-05);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--white-20);
}

.about-answer {
    font-size: 1.15rem;
    color: var(--white) !important;
}

.about-story-visual {
    position: relative;
    height: 300px;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: var(--radius-lg);
    border: 1px solid var(--white-10);
    backdrop-filter: blur(10px);
    animation: shapeFloat 15s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    background: var(--white-05);
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: var(--white-08);
    top: 40%;
    right: 10%;
    animation-delay: -5s;
    border-radius: 50%;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--white-05);
    bottom: 10%;
    left: 30%;
    animation-delay: -10s;
    border-radius: 50% 20% 50% 20%;
}

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(10px) rotate(-5deg); }
    75% { transform: translateY(-15px) rotate(3deg); }
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 100px;
}

.value-card {
    padding: 32px 24px;
    text-align: center;
}

.value-icon {
    margin-bottom: 16px;
    color: var(--gray-300);
}

.value-card h4, .value-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.6;
}

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

.team-card {
    padding: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.team-card.featured {
    border-color: var(--white-20);
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
}

.team-card.featured::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--white-40), transparent);
}

.team-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.team-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gray-700), var(--gray-900));
    border: 2px solid var(--white-15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    flex-shrink: 0;
    overflow: hidden;
}

.team-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    display: block;
}

.team-info h4, .team-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1.3;
}

.team-role {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.team-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--gray-300);
}
.badge:not(:last-child)::after {
    content: "\2022";
    margin-left: 8px;
    color: var(--gray-600);
}

.badge-exp {
    color: var(--green);
    font-weight: 700;
}

.team-card p {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.team-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white-05);
    border: 1px solid var(--white-10);
    color: var(--gray-400);
    transition: var(--transition);
}

.team-linkedin:hover {
    background: var(--white-15);
    color: var(--white);
    transform: translateY(-2px);
}

.team-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--white-08);
    flex-wrap: nowrap;
}

.team-view-profile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--black) !important;
    background: var(--white);
    border: 1px solid var(--white);
    border-radius: 100px;
    text-decoration: none !important;
    transition: var(--transition);
    position: relative;
    z-index: 10;
    pointer-events: all;
    cursor: pointer;
}

.team-view-profile:hover {
    background: transparent;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255,255,255,0.12);
}

/* ─── PRODUCT ─── */
.product-section {
    padding: 120px 0;
    position: relative;
}

.product-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.04) 0%, transparent 60%);
}

.product-showcase {
    margin-bottom: 60px;
}

.product-mockup {
    overflow: hidden;
    padding: 0;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--white-08);
    background: var(--white-05);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--white-15);
}

.mockup-dots span:first-child { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:last-child { background: #28c840; }

.mockup-title {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

.mockup-body {
    padding: 32px;
    max-height: 500px;
    overflow-y: auto;
}

.chat-demo {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chat-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: chatSlide 0.5s ease-out forwards;
    opacity: 0;
}

.chat-message:nth-child(1) { animation-delay: 0.3s; }
.chat-message:nth-child(2) { animation-delay: 0.8s; }
.chat-message:nth-child(3) { animation-delay: 1.3s; }

@keyframes chatSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gray-700), var(--gray-600));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.chat-bubble {
    max-width: 80%;
    padding: 16px 20px;
}

.chat-message.user .chat-bubble {
    background: var(--white);
    color: var(--black);
    border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
    border: none;
}

.chat-message.bot .chat-bubble {
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;
}

.chat-bubble p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.chat-bubble p:last-child {
    margin-bottom: 0;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 24px;
    position: relative;
}

.feature-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white-10);
    line-height: 1;
    margin-bottom: 16px;
}

.feature-card h4, .feature-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.5;
}

/* ─── IMPACT ─── */
.impact-section {
    padding: 120px 0;
    position: relative;
}

.impact-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.impact-stat {
    padding: 40px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.impact-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--white-20), transparent);
}

.impact-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 12px;
}

.impact-stat p {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.5;
}

.impact-opportunity {
    padding: 48px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
}

.opportunity-content h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
}

.opportunity-content p {
    color: var(--gray-300);
    margin-bottom: 16px;
    line-height: 1.7;
}

.opportunity-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-chart {
    position: relative;
    width: 200px;
    height: 200px;
}

.ring-chart svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-progress {
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-chart.animated .ring-progress {
    stroke-dashoffset: 496;
}

.ring-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.ring-label small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gray-400);
}

/* Testimonials */
.testimonials {
    padding-top: 40px;
}

.testimonials-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 40px;
}

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

.testimonial-card {
    padding: 32px;
    position: relative;
}

.quote-icon {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--white-10);
    position: absolute;
    top: 16px;
    left: 24px;
}

.testimonial-card p {
    font-size: 1rem;
    color: var(--gray-200);
    line-height: 1.7;
    margin-bottom: 20px;
    padding-top: 24px;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    color: var(--white);
    font-size: 0.9rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ─── ROADMAP ─── */
.roadmap-section {
    padding: 120px 0;
    position: relative;
}

.roadmap-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.roadmap-current {
    padding: 40px;
    margin-bottom: 80px;
    position: relative;
}

.roadmap-current:last-child {
    margin-bottom: 0px;
}

.roadmap-current-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--green);
    color: var(--black);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.roadmap-current h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 24px;
}

.roadmap-current-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.rcf-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-300);
    padding: 8px 0;
}

/* Timeline */
.roadmap-timeline {
    position: relative;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--white-20), var(--white-05));
}

.timeline-item {
    position: relative;
    width: 50%;
    padding-right: 60px;
    padding-bottom: 60px;
    margin-left: 0;
}

.timeline-item.right {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    top: 0;
    right: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--black);
    z-index: 2;
}

.timeline-item.right .timeline-dot {
    right: auto;
    left: -8px;
}

.timeline-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--white-20);
    animation: timelinePulse 3s ease-in-out infinite;
}

@keyframes timelinePulse {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.timeline-content {
    padding: 32px;
}

.timeline-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--white-10);
    border: 1px solid var(--white-15);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-200);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.timeline-content h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* ─── RECOGNITION ─── */
.recognition-section {
    padding: 120px 0;
    position: relative;
}

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

.recognition-card {
    padding: 40px 32px;
    text-align: center;
    position: relative;
}

.recognition-icon {
    margin-bottom: 20px;
    color: var(--gray-300);
}

.recognition-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 8px;
}

.recognition-card p {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.recognition-year {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    background: var(--white-05);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
}

/* ─── CONTACT ─── */
.contact-section {
    padding: 120px 0;
    position: relative;
}

.contact-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.02) 0%, transparent 50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white-05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    flex-shrink: 0;
}

.contact-card h4, .contact-card h3 {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.contact-card > div {
    min-width: 0;
}

.contact-card a, .contact-card p {
    font-size: 0.95rem;
    color: var(--white);
    overflow-wrap: anywhere;
}

.contact-card a:hover {
    color: var(--gray-300);
}

.founders-contact {
    margin-top: 32px;
}

.founders-contact h4, .founders-contact h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 16px;
}

.founder-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--white-05);
}

.founder-link span:first-child {
    font-size: 0.95rem;
    color: var(--gray-200);
}

.founder-role {
    font-size: 0.8rem;
    color: var(--gray-500) !important;
}

/* Contact Form */
.contact-form-wrapper {
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--white);
    background: var(--white-05);
    border: 1px solid var(--white-10);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
    resize: vertical;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--white-40);
    background: var(--white-08);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.05);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--white-40), transparent);
    transition: width 0.4s;
    border-radius: 10px;
}

.form-group input:focus ~ .input-glow,
.form-group textarea:focus ~ .input-glow {
    width: 100%;
}

.form-success {
    text-align: center;
    padding: 40px;
}

.form-success h3 {
    font-family: var(--font-display);
    color: var(--white);
    margin: 16px 0 8px;
}

.form-success p {
    color: var(--gray-400);
}

/* ─── FOOTER ─── */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--white-05);
    position: relative;
    z-index: 2;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--gray-500);
    max-width: 300px;
    line-height: 1.6;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h5, .footer-col h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-500);
    padding: 6px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--white-05);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.footer-tagline {
    font-style: italic;
}

/* ─── BACK TO TOP ─── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white-10);
    backdrop-filter: blur(10px);
    border: 1px solid var(--white-15);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    pointer-events: none;
}

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

.back-to-top:hover {
    background: var(--white-20);
    transform: translateY(-4px);
}

/* ─── AOS ANIMATIONS ───
   Initial hidden states are gated behind html.js so the page stays
   fully readable if JavaScript fails to run (progressive enhancement). */
/* Content is always visible: no fade-in on scroll */
.js [data-aos] {
    opacity: 1;
    transform: none;
}

/* ─── LOADING SCREEN ─── */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo-img {
    height: 180px;
    width: auto;
    object-fit: contain;
    animation: loaderLogoPulse 1.5s ease-in-out infinite;
}

@keyframes loaderLogoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.7; transform: scale(0.97); }
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--white-10);
    border-radius: 10px;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0;
    height: 100%;
    background: var(--white);
    border-radius: 10px;
    animation: loaderFill 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderFill {
    to { width: 100%; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .mission-content {
        grid-template-columns: 1fr;
    }

    .about-story {
        grid-template-columns: 1fr;
    }

    .about-story-visual {
        display: none;
    }

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

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

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

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

    .impact-opportunity {
        grid-template-columns: 1fr;
    }

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

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

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

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Timeline mobile */
    .timeline-line {
        left: 20px;
    }

    .timeline-item,
    .timeline-item.right {
        width: 100%;
        margin-left: 0;
        padding-left: 56px;
        padding-right: 0;
    }

    .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 12px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 100px 32px 40px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--white-10);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 12px 16px;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

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

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

    .product-features {
        grid-template-columns: 1fr;
    }

    .impact-stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta-group {
        flex-direction: column;
    }

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

    .about-story {
        padding: 24px;
    }

    .impact-opportunity {
        padding: 24px;
    }

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

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ─── SMOOTH SCROLLBAR (custom) ─── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-700);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* ─── SECTION DIVIDERS ─── */
.stats-section::before,
.mission-section::before,
.about-section::before,
.product-section::before,
.impact-section::before,
.roadmap-section::before,
.recognition-section::before,
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--white-08), transparent);
}

/* ─── MAGNETIC HOVER EFFECT ON CARDS ─── */
/* No blanket will-change here: promoting ~35 backdrop-filtered cards to
   persistent composited layers wrecks scroll performance and memory on
   low-end phones. Browsers promote layers on demand for the hover tilt. */

/* ─── NOISE TEXTURE OVERLAY ─── */

/* ─── SERVICE CARD VIEW WORK BUTTON ─── */
.value-card {
    display: flex;
    flex-direction: column;
}

/* Pain-point line on service cards: the client's problem, stated to their face */
.value-card .service-pain {
    color: var(--white);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
}

.btn-service-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding: 10px 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    background: transparent;
    border: 1px solid var(--white-20);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.btn-service-view:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255,255,255,0.12);
}

/* ─── SERVICE POPUP OVERLAY ─── */
.service-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    transition: opacity 0.35s ease;
    padding: 24px;
}

.service-popup-overlay.active {
    display: flex;
    opacity: 1;
}

/* ─── SERVICE POPUP CARD ─── */
.service-popup {
    position: relative;
    width: 100%;
    max-width: 960px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 48px;
    border-radius: var(--radius-xl);
    animation: popupSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes popupSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.service-popup::-webkit-scrollbar {
    width: 4px;
}
.service-popup::-webkit-scrollbar-track {
    background: transparent;
}
.service-popup::-webkit-scrollbar-thumb {
    background: var(--white-15);
    border-radius: 4px;
}

.service-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white-05);
    border: 1px solid var(--white-10);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.service-popup-close:hover {
    background: var(--white-15);
    color: var(--white);
    transform: rotate(90deg);
}

.service-popup-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 8px;
    padding-right: 48px;
}

.service-popup-desc {
    font-size: 0.95rem;
    color: var(--gray-400);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ─── SERVICE POPUP GRID ─── */
.service-popup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-popup-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--white-08);
    background: var(--white-05);
    transition: var(--transition);
}

.service-popup-item:hover {
    border-color: var(--white-20);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.service-popup-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.service-popup-item img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-popup-item:hover img {
    transform: scale(1.04);
}

.service-popup-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
    font-size: 0.95rem;
    grid-column: 1 / -1;
}

/* ─── SERVICE POPUP RESPONSIVE ─── */
@media (max-width: 1024px) {
    .service-popup-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-popup {
        padding: 32px;
    }
}

@media (max-width: 600px) {
    .service-popup-grid {
        grid-template-columns: 1fr;
    }
    .service-popup {
        padding: 24px;
        max-height: 90vh;
    }
    .service-popup-title {
        font-size: 1.3rem;
    }
}

body.popup-open {
    overflow: hidden;
}

/* ─── SERVICE DEMO FRAMEWORK (View Work → 3 or 4 interactive demos) ─── */
.service-demo-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.service-demo-tab {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--white-08);
    background: var(--white-05);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}
.service-demo-tab:hover {
    border-color: var(--white-20);
    transform: translateY(-2px);
    background: var(--white-08);
}
.service-demo-tab.active {
    border-color: var(--white-40);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);
}
.service-demo-tab-top {
    display: flex;
    align-items: center;
    gap: 9px;
}
.service-demo-tab-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--white-08);
    color: var(--white);
    transition: var(--transition);
}
.service-demo-tab.active .service-demo-tab-icon {
    background: var(--white);
    color: var(--black);
}
.service-demo-tab-label {
    font-weight: 600;
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1.2;
}
.service-demo-tab-tag {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    border: 1px solid var(--white-10);
    padding: 2px 7px;
    border-radius: 100px;
    margin-left: auto;
    white-space: nowrap;
}
.service-demo-tab.active .service-demo-tab-tag {
    color: var(--green);
    border-color: rgba(34, 197, 94, 0.4);
}
.service-demo-tab-blurb {
    font-size: 0.72rem;
    color: var(--gray-400);
    line-height: 1.45;
}

/* Hint strip telling users the demo below is playable */
.service-demo-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: -6px 0 14px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--white-15);
    background: rgba(255, 255, 255, 0.03);
    color: var(--gray-200);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.service-demo-hint .hint-icon {
    color: var(--white);
    flex: 0 0 16px;
}
@media (prefers-reduced-motion: no-preference) {
    .service-demo-hint .hint-icon {
        animation: hintTap 1.8s ease-in-out infinite;
        transform-origin: 30% 70%;
    }
}
@keyframes hintTap {
    0%, 55%, 100% { transform: scale(1); }
    65%           { transform: scale(0.82); }
    75%           { transform: scale(1.05); }
}

.service-demo-stage {
    position: relative;
    min-height: 360px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--white-08);
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    overflow: hidden;
}
.service-demo-stage > * {
    animation: demoStageFade 0.4s ease both;
}
@keyframes demoStageFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}
.service-demo-stage .demo-error {
    color: var(--gray-400);
    font-size: 0.85rem;
    text-align: center;
    padding: 48px 16px;
}

@media (max-width: 720px) {
    .service-demo-tabs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .service-demo-tab-blurb { display: none; }
    .service-demo-stage { min-height: 320px; padding: 14px; }
}

/* ─── PLATFORMS STRIP (platforms we build / upgrade / migrate) ─── */
.platforms-strip {
    margin-top: 52px;
    text-align: center;
}
.platforms-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gray-400);
    margin-bottom: 22px;
}
.platforms-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}
.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    color: var(--gray-200);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}
.platform-chip:hover {
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--white-20);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.platform-icon {
    display: inline-flex;
    color: var(--white-60);
    transition: var(--transition);
}
.platform-chip:hover .platform-icon {
    color: var(--green);
}
@media (max-width: 600px) {
    .platform-chip { padding: 10px 18px; font-size: 0.88rem; }
}

/* ─── REAL WORK (clickable proof) ─── */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.work-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.work-card:hover {
    transform: translateY(-4px);
    border-color: var(--white-20);
}
.work-card h4, .work-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--white);
}
.work-card p {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.6;
    flex: 1;
}
.work-card .work-visit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    padding: 9px 18px;
    border-radius: 100px;
    border: 1px solid var(--white-20);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.work-card .work-visit:hover {
    background: var(--white);
    color: var(--black);
}
@media (max-width: 900px) {
    .work-grid { grid-template-columns: 1fr; }
}

/* ─── HOW IT WORKS (3 steps) ─── */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.plan-step {
    position: relative;
    padding: 30px 26px;
    border-radius: var(--radius-lg);
}
.plan-step .plan-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--white-15);
    line-height: 1;
    margin-bottom: 14px;
}
.plan-step h4, .plan-step h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 10px;
}
.plan-step p {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.65;
}
@media (max-width: 900px) {
    .plan-grid { grid-template-columns: 1fr; }
}

/* ─── FAQ (accordion) ─── */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    border: 1px solid var(--white-08);
    border-radius: var(--radius-md);
    background: var(--white-05);
    transition: var(--transition);
    overflow: hidden;
}
.faq-item[open] {
    border-color: var(--white-20);
    background: rgba(255, 255, 255, 0.06);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    flex: 0 0 auto;
    font-size: 1.2rem;
    color: var(--gray-400);
    transition: var(--transition);
}
.faq-item[open] summary::after {
    content: '-';
    color: var(--white);
}
.faq-item .faq-answer {
    padding: 0 22px 20px;
    color: var(--gray-300);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ─── NOISE TEXTURE OVERLAY (original) ─── */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   3D SCROLL DEPTH ENHANCEMENTS
   ============================================================ */

/* ─── SCROLL PROGRESS BAR ─── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1002;
    pointer-events: none;
}

.scroll-progress-bar {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.35));
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

/* ─── SCROLL-LINKED AMBIENT LIGHT ─── */
.scroll-ambient {
    position: fixed;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse 55% 38% at 50% 50%, rgba(255,255,255,0.05), transparent 70%);
    will-change: transform;
}

/* ─── SCROLL-DRIVEN SECTION DEPTH ─── */
/* Transformed by the rAF scroll engine (desktop, no reduced motion only) */
.depth-container {
    transform-origin: 50% 0;
}

/* ─── HERO 3D WIREFRAME CUBE ─── */
.hero-3d-object {
    position: absolute;
    top: 16%;
    right: 7%;
    width: 180px;
    height: 180px;
    perspective: 800px;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
}

@supports (transform-style: preserve-3d) {
    .hero-3d-object {
        opacity: 1;
    }

    .hero-cube {
        position: relative;
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        animation: cubeSpin 22s linear infinite;
    }

    .cube-face {
        position: absolute;
        inset: 0;
        border: 1px solid rgba(255,255,255,0.28);
        background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
        border-radius: 2px;
        box-shadow: inset 0 0 32px rgba(255,255,255,0.04);
    }

    .cube-front  { transform: translateZ(80px); }
    .cube-back   { transform: rotateY(180deg) translateZ(80px); }
    .cube-right  { transform: rotateY(90deg) translateZ(80px); }
    .cube-left   { transform: rotateY(-90deg) translateZ(80px); }
    .cube-top    { transform: rotateX(90deg) translateZ(80px); }
    .cube-bottom { transform: rotateX(-90deg) translateZ(80px); }
}

@keyframes cubeSpin {
    from { transform: rotateX(-18deg) rotateY(0deg); }
    50%  { transform: rotateX(18deg) rotateY(180deg); }
    to   { transform: rotateX(-18deg) rotateY(360deg); }
}

@media (max-width: 1024px) {
    .hero-3d-object {
        display: none;
    }
}

/* ─── PRODUCT MOCKUP 3D PRESENTATION ─── */
.product-showcase {
    perspective: 1400px;
    perspective-origin: 50% 30%;
}

.product-mockup {
    transform-origin: 50% 20%;
    will-change: transform;
    /* The scroll engine writes transform every frame; the inherited
       all-props transition would smear each write and make the mockup
       rubber-band behind the scroll. Keep hover transitions for the rest. */
    transition: border-color var(--transition), box-shadow var(--transition),
                background var(--transition);
}

/* ─── CARD LIGHT-GLARE SHEEN (follows cursor, desktop only) ─── */
.glass-card,
.glass-card-large {
    position: relative;
}

@media (hover: hover) and (min-width: 769px) {
    .glass-card::after,
    .glass-card-large::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(420px circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255,255,255,0.09), transparent 65%);
        opacity: 0;
        transition: opacity 0.35s ease;
        pointer-events: none;
        z-index: 1;
    }

    .glass-card:hover::after,
    .glass-card-large:hover::after {
        opacity: 1;
    }
}

/* ─── 3D NUMBER POP (stats + impact counters) ─── */
@supports (transform-style: preserve-3d) {
    .js .stat-card .stat-number,
    .js .impact-stat .impact-number {
        opacity: 0;
        transform: perspective(600px) rotateX(55deg) translateY(14px) scale(0.92);
    }

    .js .stat-card.animated .stat-number,
    .js .impact-stat.animated .impact-number {
        animation: numberPop3d 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
}

@keyframes numberPop3d {
    0% {
        opacity: 0;
        transform: perspective(600px) rotateX(55deg) translateY(14px) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: perspective(600px) rotateX(0deg) translateY(0) scale(1);
    }
}

/* ─── SERVICES GRID (replaces old inline style) ─── */
.services-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── OVERFLOW SAFETY / GRID CHILD SHRINKING ─── */
.stats-grid > *,
.values-grid > *,
.impact-stats-grid > *,
.team-grid > *,
.product-features > *,
.recognition-grid > *,
.testimonial-grid > *,
.contact-grid > *,
.footer-links-grid > * {
    min-width: 0;
}

.impact-number,
.stat-number,
.section-title,
.hero-title {
    overflow-wrap: break-word;
}

/* ─── NAV: BODY SCROLL LOCK WHEN MOBILE MENU OPEN ─── */
body.nav-open {
    overflow: hidden;
}

/* ─── ACCESSIBILITY: FOCUS VISIBLE ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--white-60);
    outline-offset: 3px;
}

/* ─── LARGE DESKTOP (>1440px) ─── */
@media (min-width: 1600px) {
    .container,
    .nav-container {
        max-width: 1280px;
    }
}

/* ─── MOBILE POLISH (client-demo quality) ─── */
@media (max-width: 768px) {
    .mission-section,
    .about-section,
    .product-section,
    .impact-section,
    .recognition-section,
    .contact-section {
        padding: 80px 0;
    }

    .stats-section {
        padding: 64px 0;
    }

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

    .nav-logo-img {
        height: 60px;
    }

    .footer-logo-img {
        height: 120px;
    }

    .nav-toggle {
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .team-linkedin {
        width: 44px;
        height: 44px;
    }

    .footer-col a {
        padding: 10px 0;
    }

    .btn-service-view {
        padding: 13px 20px;
    }

    .team-view-profile {
        padding: 12px 18px;
    }

    /* Readable body copy on phones (>= 15px) */
    .value-card p,
    .team-card p,
    .impact-stat p,
    .feature-card p,
    .mission-card p,
    .recognition-card p,
    .chat-bubble p,
    .stat-label {
        font-size: 0.95rem;
    }

    .footer-brand p,
    .footer-col a,
    .footer-bottom p {
        font-size: 0.9rem;
    }

    /* "R150 to R500" and friends must never overflow at 360px */
    .impact-number {
        font-size: clamp(1.75rem, 7.5vw, 2.5rem);
        line-height: 1.15;
    }

    .impact-stat,
    .stat-card {
        padding: 32px 22px;
    }

    .mockup-body {
        padding: 20px 14px;
        max-height: 420px;
    }

    .chat-bubble {
        max-width: 88%;
        padding: 14px 16px;
    }

    .values-grid:not(.services-grid) {
        margin-bottom: 64px;
    }

    .contact-grid {
        gap: 32px;
    }

    .footer {
        padding: 48px 0 24px;
    }

    .footer-top {
        gap: 36px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 400px) {
    .container,
    .nav-container {
        padding: 0 18px;
    }

    .impact-number {
        font-size: 1.7rem;
    }

    .about-story,
    .impact-opportunity,
    .contact-form-wrapper {
        padding: 20px;
    }

    .ring-chart {
        width: 160px;
        height: 160px;
    }
}

/* ─── REDUCED MOTION: STATIC, READABLE, CALM ─── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001s !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }

    .js [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }

    .js .stat-card .stat-number,
    .js .impact-stat .impact-number {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .chat-message {
        opacity: 1 !important;
        animation: none !important;
    }

    .hero-3d-object,
    .scroll-ambient,
    .cursor-glow {
        display: none !important;
    }

    .hero-gradient-orb,
    .shape,
    .scroll-line,
    .gradient-text,
    .hero-cube {
        animation: none !important;
    }

    .depth-container,
    .product-mockup,
    .parallax-bg,
    .hero-grid,
    .hero-content {
        transform: none !important;
    }
}

/* ==========================================================================
   Site wide legal links strip (footer)
   ========================================================================== */

.site-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    align-items: center;
    justify-content: center;
    margin: 18px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--white-08);
    list-style: none;
    font-size: 13px;
    line-height: 1.6;
}

.site-legal-links li { margin: 0; }

.site-legal-links a {
    color: var(--white-60);
    text-decoration: none;
    transition: color var(--transition);
}

.site-legal-links a:hover,
.site-legal-links a:focus-visible {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-legal-address {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.65;
    color: var(--gray-400);
    max-width: 76ch;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .site-legal-links {
        gap: 6px 14px;
        font-size: 12.5px;
    }

    .site-legal-address { font-size: 11.5px; }
}

/* ==========================================================================
   Client results
   ========================================================================== */

.results-section { padding-top: 40px; }

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.result-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border-radius: var(--radius-lg);
}

.result-service {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.result-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.result-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--gray-300);
    margin: 0;
}

.result-card .result-outcome {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--white-10);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--white);
}

.result-metric {
    display: block;
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--green);
}

.result-card .result-client {
    font-size: 0.85rem;
    color: var(--gray-400);
}

@media (max-width: 900px) {
    .results-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Partners
   ========================================================================== */

.partners-section { padding: 40px 0 100px; }

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

.partners-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.partner-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 170px;
    padding: 24px;
    background: #060608;
    border: 1px solid var(--white-10);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.partner-tile:hover { border-color: var(--white-20); }

.partner-tile img {
    max-width: 100%;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 900px) {
    .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partner-tile { height: 140px; padding: 20px; }
    .partner-tile img { max-height: 90px; }
}

/* ==========================================================================
   Service landing pages (ai-receptionist.html and siblings)
   ========================================================================== */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--white);
    color: var(--black);
    padding: 12px 20px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { left: 0; }

.svc-page .navbar { background: rgba(0,0,0,0.85); }

.svc-hero {
    padding: 150px 0 80px;
    background:
        radial-gradient(800px 360px at 15% 0%, rgba(255,255,255,0.06), transparent 70%),
        var(--black);
}

.svc-breadcrumb ol {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--gray-400);
}
.svc-breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--gray-600); }
.svc-breadcrumb a { color: var(--gray-300); text-decoration: none; }
.svc-breadcrumb a:hover { color: var(--white); }
.svc-breadcrumb [aria-current] { color: var(--white); }

.svc-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.4vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--white);
    max-width: 18ch;
    margin: 0 0 24px;
}

.svc-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--gray-200);
    max-width: 64ch;
    margin: 0 0 32px;
}
.svc-lead a, .svc-body a, .svc-feature a, .svc-page .faq-answer a, .svc-microcopy a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.svc-cta-group { display: flex; flex-wrap: wrap; gap: 14px; }
.svc-cta-center { justify-content: center; }

.svc-microcopy {
    margin: 16px 0 0;
    font-size: 0.88rem;
    color: var(--gray-400);
}

.svc-section {
    padding: 90px 0;
    border-top: 1px solid var(--white-05);
}

.svc-narrow { max-width: 760px; }
.svc-left-title { text-align: left; margin-bottom: 20px; }
.svc-narrow p, .svc-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--gray-200);
    margin: 0 0 16px;
}

.svc-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.svc-feature { padding: 28px; border-radius: var(--radius-lg); }
.svc-feature-icon { display: inline-flex; color: var(--green); margin-bottom: 14px; }
.svc-feature h3 {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 10px;
}
.svc-feature p { font-size: 0.93rem; line-height: 1.65; color: var(--gray-300); margin: 0; }

.svc-proof { max-width: 720px; margin: 0 auto; }

.svc-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.svc-steps li { padding: 28px; border-radius: var(--radius-lg); }
.svc-step-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-600);
    margin-bottom: 12px;
}
.svc-steps h3 { font-size: 1.08rem; color: var(--white); margin: 0 0 10px; }
.svc-steps p { font-size: 0.93rem; line-height: 1.65; color: var(--gray-300); margin: 0; }

.svc-related {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.svc-related-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px;
    border-radius: var(--radius-lg);
    text-decoration: none;
}
.svc-related-card:hover { border-color: var(--white-20); transform: translateY(-2px); }
.svc-related-name { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-400); }
.svc-related-desc { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--white); line-height: 1.35; }
.svc-related-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: 0.9rem; color: var(--gray-200); }
.svc-related-more svg { width: 16px; height: 16px; }

.svc-final-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 40px;
    text-align: center;
    border-radius: var(--radius-lg);
}
.svc-final-card .svc-body { max-width: 56ch; margin: 0 auto 28px; }

.service-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--gray-200);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-bottom: 14px;
}
.service-learn-more:hover { color: var(--white); }
.value-card h4 a, .value-card h3 a { color: inherit; text-decoration: none; }
.value-card h4 a:hover, .value-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) {
    .svc-features, .svc-steps, .svc-related { grid-template-columns: 1fr; }
    .svc-hero { padding: 120px 0 60px; }
    .svc-section { padding: 64px 0; }
    .svc-final-card { padding: 40px 22px; }
}

.form-error {
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    border-radius: var(--radius-sm);
    background: rgba(248, 113, 113, 0.08);
    color: #fecaca;
    font-size: 0.9rem;
    line-height: 1.55;
}
.form-error a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.form-error[hidden] { display: none; }

/* Thank-you page */
.thanks-hero { padding-bottom: 60px; }
.thanks-card {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 40px;
    text-align: center;
    border-radius: var(--radius-lg);
}
.thanks-icon {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    border-radius: 50%;
    color: var(--green);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.35);
}
.thanks-title { max-width: none; margin-left: auto; margin-right: auto; font-size: clamp(1.9rem, 4.6vw, 3rem); }
.thanks-card .svc-lead { margin: 0 auto; }
.thanks-card .hero-badge { display: block; margin-bottom: 18px; }
.thanks-urgent { text-align: center; margin-top: 32px; }
.thanks-back { margin-top: 20px; }
@media (max-width: 600px) { .thanks-card { padding: 36px 22px; } }

.value-card[data-href] { cursor: pointer; }
.value-card[data-href]:hover { border-color: var(--white-20); }

/* Demo video on service pages */
.svc-video-grid {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}
.svc-video-frame {
    border-radius: 26px;
    padding: 8px;
    background: linear-gradient(180deg, #1a1a1d, #0b0b0d);
    border: 1px solid var(--white-15);
    box-shadow: 0 0 60px rgba(34, 197, 94, 0.12), 0 30px 70px rgba(0, 0, 0, 0.6);
}
.svc-video-frame video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    background: #000;
}
.svc-video .btn { margin-top: 8px; }
@media (max-width: 900px) {
    .svc-video-grid { grid-template-columns: 1fr; gap: 28px; }
    .svc-video-frame { max-width: 320px; margin: 0 auto; }
}

/* ─── HERO FITS ANY SCREEN: buttons always on the first screen ─── */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 96px 0 48px;
}
.hero-badge { margin-bottom: clamp(12px, 2.6vh, 32px); }
.hero-title {
    font-size: clamp(2rem, min(6.4vw, 7.4vh), 5rem);
    margin-bottom: clamp(12px, 2.2vh, 24px);
}
.hero-sub {
    font-size: clamp(0.95rem, min(2vw, 2.3vh), 1.2rem);
    margin-bottom: clamp(18px, 3.6vh, 40px);
}
@media (max-width: 768px) {
    .hero { padding: 84px 0 32px; }
    .hero-title { font-size: clamp(1.75rem, min(8vw, 5.6vh), 3.5rem); }
    .hero-sub { line-height: 1.6; }
}
@media (max-height: 860px) {
    .hero-scroll-indicator { display: none; }
}
@media (max-height: 680px) {
    .hero-badge { margin-bottom: 10px; }
    .hero-sub { margin-bottom: 16px; }
    .hero-cta-group { gap: 10px; }
}

/* ─── SEO UPDATE 2026-10-23 ─── */
/* footer text passes WCAG AA contrast on black */
.footer-col a, .footer-brand p, .footer-bottom p { color: #8c8c8c; }
.footer-brand .footer-bbbee { margin-top: 12px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-200); }
.team-avatar picture { display: block; width: 100%; height: 100%; }
h1.hero-badge { line-height: 1.5; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid .stat-number { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; } }
/* guides and long-form service content */
.svc-title-wide { max-width: 26ch; font-size: clamp(2rem, 4.6vw, 3.2rem); }
.svc-byline { font-size: 0.9rem; line-height: 1.6; color: var(--gray-300); max-width: 64ch; margin: -8px 0 22px; }
.svc-byline a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.svc-prose h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.35; color: var(--white); margin: 34px 0 12px; }
.svc-prose ul, .svc-prose ol { margin: 0 0 18px; padding-left: 1.3em; font-size: 1.05rem; line-height: 1.75; color: var(--gray-200); }
.svc-prose li { margin-bottom: 8px; }
.svc-prose li::marker { color: var(--gray-400); }
.svc-prose strong { color: var(--white); }
.svc-prose em { color: var(--gray-100); }
.svc-prose a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.svc-table-wrap { overflow-x: auto; margin: 6px 0 22px; -webkit-overflow-scrolling: touch; }
.svc-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.95rem; line-height: 1.55; }
.svc-table caption { caption-side: bottom; text-align: left; font-size: 0.8rem; color: var(--gray-400); padding-top: 10px; }
.svc-table th, .svc-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--white-08); color: var(--gray-200); }
.svc-table thead th { color: var(--white); font-weight: 700; border-bottom-color: var(--white-20); }
.svc-table tbody th { color: var(--white); font-weight: 600; }

/* ─── OUR WORK CATEGORIES + DASHBOARD TEMPLATES 2026-10-23 ─── */
.work-cat { margin-top: 56px; }
.section-header + .work-cat { margin-top: 8px; }
.work-cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid var(--white-08); }
.work-cat-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--white); }
.work-cat-note { flex: 1 1 320px; font-size: 0.9rem; line-height: 1.6; color: var(--gray-300); }
.work-cat-more { font-size: 0.88rem; color: var(--white); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.work-kind { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-300); }
.work-grid.work-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .work-grid.work-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .work-grid.work-grid-4 { grid-template-columns: 1fr; } }
.work-card .work-visit.btn-service-view { margin-top: 0; font-family: inherit; text-transform: none; letter-spacing: 0; background: transparent; cursor: pointer; }
.work-card .work-visit.btn-service-view:hover { background: var(--white); color: var(--black); }
.bi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.bi-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; }
.bi-card.bi-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.bi-shot { display: block; background: var(--black-card); border-bottom: 1px solid var(--white-08); }
.bi-featured .bi-shot { border-bottom: 0; border-right: 1px solid var(--white-08); }
.bi-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.bi-body { display: flex; flex-direction: column; gap: 12px; padding: 26px; flex: 1; }
.bi-body h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin: 0; }
.bi-problem { margin: 0; font-size: 0.98rem; line-height: 1.6; color: var(--gray-200); }
.bi-figure { margin: 0; font-size: 0.9rem; color: var(--gray-300); }
.bi-figure strong { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1.15; color: var(--white); }
.bi-points { margin: 0; padding-left: 1.2em; font-size: 0.92rem; line-height: 1.65; color: var(--gray-300); }
.bi-points li { margin-bottom: 4px; }
.bi-for { margin: 0; font-size: 0.85rem; color: var(--gray-300); }
.bi-open { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 100px; border: 1px solid var(--white-20); color: var(--white); font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: var(--transition); }
.bi-open:hover { background: var(--white); color: var(--black); }
@media (max-width: 900px) {
    .bi-grid { grid-template-columns: 1fr; }
    .bi-card.bi-featured { display: flex; }
    .bi-featured .bi-shot { border-right: 0; border-bottom: 1px solid var(--white-08); }
}

/* ─── NAV FITS ON ONE LINE, TABLET TO SMALL LAPTOP (2026-10-24) ─── */
.nav-link { white-space: nowrap; }
@media (min-width: 769px) and (max-width: 1000px) {
    .nav-links { gap: 2px; }
    .nav-link { padding: 8px 10px; }
}
@media (min-width: 769px) and (max-width: 860px) {
    .nav-link { padding: 8px 7px; }
}

/* ─── HERO REDESIGN: SPLIT LAYOUT, REAL WORK ON THE RIGHT (2026-10-29) ─── */
/* Fills the first screen; content sits in the middle of the space below the fixed nav */
.hero.hero-split {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 96px 0 24px;
    border-bottom: 1px solid var(--white-08);
}
.hero.hero-split > .container { width: 100%; }
/* On wide screens the homepage hero (and the nav above it) use more of the width */
@media (min-width: 1280px) {
    .page-home .nav-container,
    .hero.hero-split > .container { max-width: 2200px; padding-left: clamp(24px, 3.5vw, 56px); padding-right: clamp(24px, 3.5vw, 56px); }
}
.hero-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(36px, 3.2vw, 80px);
    align-items: center;
}

/* Type follows the screen's width AND height (whichever is tighter), so the hero fills the
   first screen on short laptops and big monitors alike. Each sentence breaks onto two
   balanced lines on desktop. */
.hero-copy { min-width: 0; }
.hero-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, min(3.9vw, 6.4vh), 5.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--white);
    margin: 0 0 0.5em;
}
.hero-heading > span { display: block; text-wrap: balance; }
.hero-heading-quiet { color: var(--gray-300); }
.hero-lede {
    font-size: clamp(1.05rem, min(1.5vw, 2.4vh), 1.75rem);
    line-height: 1.7;
    color: var(--gray-200);
    max-width: 34em;
    margin: 0 0 1.8em;
}
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 28px;
}
.hero-actions .btn-primary { padding: 0.95em 1.65em; font-size: clamp(1rem, min(1.25vw, 2vh), 1.4rem); }
.hero-textlink {
    color: var(--white);
    font-size: clamp(1rem, min(1.25vw, 2vh), 1.4rem);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--white-40);
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}
.hero-textlink:hover { text-decoration-color: var(--white); }

/* Services card stack (2026-10-30): the front card shows one service, the next two peek
   out behind it. Each turn the front card dips aside and tucks in at the back. */
.hero-visual {
    --peek: clamp(10px, 2.2cqi, 22px);
    position: relative;
    margin: 0;
    min-width: 0;
    overflow: visible; /* sections clip by default; the leaving card swings outside this box */
    container: hero-carousel / inline-size;
}
.hero-stack {
    display: grid;
    padding: calc(var(--peek) * 2) calc(var(--peek) * 2) 0 0;
}
.hero-card {
    grid-area: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--white-15);
    background: #f5f7fa;
    box-shadow: 0 30px 70px rgba(0,0,0,0.55);
    transform-origin: top right;
    transition: transform 0.65s cubic-bezier(0.2, 0.75, 0.2, 1), opacity 0.45s ease, filter 0.65s ease;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}
.hero-card[data-pos="0"] { z-index: 5; }
.hero-card[data-pos="1"] { z-index: 4; transform: translate(var(--peek), calc(var(--peek) * -1)) scale(0.95); filter: brightness(0.6); }
.hero-card[data-pos="2"] { z-index: 3; transform: translate(calc(var(--peek) * 2), calc(var(--peek) * -2)) scale(0.9); filter: brightness(0.35); }
.hero-card[data-pos="3"],
.hero-card[data-pos="4"],
.hero-card[data-pos="5"] { z-index: 1; transform: translate(calc(var(--peek) * 2), calc(var(--peek) * -2)) scale(0.9); filter: brightness(0.35); opacity: 0; }
.hero-card.is-leaving,
.hero-card.is-entering { z-index: 6; transform: translate(-7%, 7%) rotate(-4deg) scale(0.94); filter: none; opacity: 1; }
.hero-card.is-leaving { transition: transform 0.38s cubic-bezier(0.4, 0, 0.7, 1); }
.hero-card.is-entering,
.hero-card.is-dragging { transition: none; }
.hero-card-link { display: block; color: inherit; -webkit-user-drag: none; }
.hero-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; -webkit-user-drag: none; }
.hero-card:hover { border-color: var(--white-40); }
.hero-card-link:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.hero-shot-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75em 1.3em;
    background: #ffffff;
    border-bottom: 1px solid #e4e7ec;
    font-size: clamp(0.72rem, 1.8cqi, 0.95rem);
    color: #5b6472;
}
.hero-shot-bar > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-shot-open { margin-left: auto; color: #0f1b2d; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #b8bfca; white-space: nowrap; }
.hero-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: start;
    margin: 18px calc(var(--peek) * 2) 0 0;
}
.hero-tab {
    background: none;
    border: 0;
    padding: 0 0 4px;
    font: inherit;
    font-size: clamp(0.75rem, 1.7cqi, 0.98rem);
    line-height: 1.35;
    text-align: left;
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.2s ease;
}
.hero-tab:hover { color: var(--gray-200); }
.hero-tab.is-active { color: var(--white); }
.hero-tab-bar {
    display: block;
    height: 2px;
    margin-bottom: 10px;
    border-radius: 2px;
    background: var(--white-15);
    overflow: hidden;
}
.hero-tab-bar i { display: block; height: 100%; background: var(--white); transform: scaleX(0); transform-origin: left center; }
.hero-tab.is-done .hero-tab-bar i { background: var(--white-40); }
.hero-pause {
    width: 28px;
    height: 28px;
    margin-top: -4px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--white-15);
    background: none;
    color: var(--gray-300);
    cursor: pointer;
}
.hero-pause:hover { color: var(--white); border-color: var(--white-40); }
.hero-tab:focus-visible, .hero-pause:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .hero-card { transition: none; }
}
/* Too narrow for five names: keep the progress bars as tap targets, names stay for screen readers */
@container hero-carousel (max-width: 480px) {
    .hero-tab { position: relative; padding: 10px 0; }
    .hero-tab-bar { margin-bottom: 0; }
    .hero-tab-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Phones, small tablets and portrait tablets: one column, text first, cards below */
@media (max-width: 900px), (orientation: portrait) and (max-width: 1366px) {
    .hero.hero-split { padding: 104px 0 56px; }
    .hero-split-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .hero-heading { font-size: clamp(1.7rem, 4.6vw, 2.4rem); }
    .hero-lede { font-size: clamp(1rem, 2.3vw, 1.15rem); }
}
@media (max-width: 768px) {
    .hero.hero-split { padding: 96px 0 48px; }
    .hero-heading { font-size: clamp(1.7rem, 7vw, 2.2rem); line-height: 1.2; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 16px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-textlink { align-self: center; }
    .hero-tabs { gap: 10px; }
}
