/* ================================================================
   CYDRA SOLUTIONS — Design System
   Palette: Deep navy + Cyan / Sky-blue + Subtle emerald
================================================================ */
:root {
    --bg-primary:    #06080f;
    --bg-secondary:  #0b0f1a;
    --bg-card:       #111827;
    --text-primary:  #f1f5f9;
    --text-secondary:#94a3b8;
    --text-muted:    #475569;
    --accent-primary:   #06b6d4;   /* cyan-500  */
    --accent-secondary: #3b82f6;   /* blue-500  */
    --accent-tertiary:  #10b981;   /* emerald-500 */
    --accent-glow:   rgba(6, 182, 212, 0.30);
    --gradient-1:    linear-gradient(135deg, #06b6d4 0%, #3b82f6 55%, #8b5cf6 100%);
    --gradient-2:    linear-gradient(180deg, rgba(6, 182, 212, 0.07) 0%, transparent 60%);
    --border-color:  rgba(255, 255, 255, 0.07);
    --radius-sm:  8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
}

/* ---- Utilities ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================================
   NAVIGATION
================================================================ */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(6, 8, 15, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Sora', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--gradient-1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.logo-gif {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.logo-dot {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
    background: var(--gradient-1);
    color: white;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-2);
    pointer-events: none;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(circle at 25% 25%, rgba(6, 182, 212, 0.13) 0%, transparent 45%),
        radial-gradient(circle at 75% 65%, rgba(59, 130, 246, 0.10) 0%, transparent 45%);
    animation: float 22s ease-in-out infinite;
}

/* Dot grid overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
    background-size: 44px 44px;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(-1.5%, 1.5%) scale(1.02); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 36px;
    animation: fadeInUp 0.7s ease both;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-tertiary);
    border-radius: 50%;
    animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.8rem, 6.5vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 20px;
    animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-kicker {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 28px;
    animation: fadeInUp 0.7s ease 0.15s both;
}

.hero-desc {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 44px;
    animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s ease 0.3s both;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    padding: 15px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.975rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 44px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 15px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.975rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: rgba(6, 182, 212, 0.4);
}

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

/* ================================================================
   STATS BAR
================================================================ */
.stats {
    padding: 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 0;
    gap: 0;
    flex-wrap: wrap;
}

.stat {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 24px;
}

.stat-number {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-plus, .stat-pct, .stat-x {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.75em;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 52px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* ================================================================
   SERVICES
================================================================ */
.services {
    padding: 120px 0;
}

section[id] { scroll-margin-top: 88px; }

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

.section-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    line-height: 1.15;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto;
}

/* Two-pillar overview */
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.pillar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 44px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}

.pillar-ai {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.07) 0%, var(--bg-card) 60%);
}

.pillar-eng {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.07) 0%, var(--bg-card) 60%);
}

.pillar:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-4px);
}

.pillar-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.pillar h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.pillar > p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.pillar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pillar-list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.pillar-list li:last-child { border-bottom: none; }

.pillar-list li::before {
    content: '→';
    color: var(--accent-primary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Capability cards grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cap-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cap-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}

.cap-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

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

.cap-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(59,130,246,0.15));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.cap-card h4 {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.cap-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ================================================================
   PROJECTS SLIDESHOW
================================================================ */
.projects {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.slideshow-wrapper {
    position: relative;
}

.slideshow {
    position: relative;
    min-height: 380px;
}

/* Each slide — hidden by default */
.slide {
    display: none;
    grid-template-columns: 280px 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    min-height: 380px;
    animation: slideReveal 0.5s ease both;
}

.slide.active { display: grid; }

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

/* Visual panel (left) */
.slide-visual {
    background: linear-gradient(160deg, var(--c1), var(--c2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 36px 32px;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.slide-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}

.slide-icon-wrap {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: auto;
    padding-top: 12px;
}

/* Logo image inside slide-visual */
.slide-logo {
    position: relative;
    z-index: 1;
    width: 110px;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    margin-bottom: auto;
    padding-top: 4px;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.55));
}

/* Background-image version — photo (e.g. Ohrid) stays cover */
.slide-visual--bg {
    background-size: cover;
    background-position: center;
}

/* Screenshot slides: wider 50/50 panel so contain fills the space */
.slide--screenshot {
    grid-template-columns: 1fr 1fr;
}
.slide--screenshot .slide-visual {
    background-color: #06080f;
}
.slide--screenshot .slide-visual--bg {
    background-position: top center;
}
.slide--screenshot .slide-visual::before {
    background: rgba(0,0,0,0.04);
}
/* Dark gradient at bottom so label badges are always readable */
.slide--screenshot .slide-visual::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 110px;
    background: linear-gradient(to top, rgba(6,8,15,0.92) 0%, transparent 100%);
    pointer-events: none;
}
/* Solid pill style for category badge on screenshot slides */
.slide--screenshot .slide-category {
    background: var(--accent-primary);
    border-color: transparent;
    color: #06080f;
    font-weight: 700;
}
/* Solid pill style for client tag on screenshot slides */
.slide--screenshot .slide-client-tag {
    background: rgba(6,8,15,0.72);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 4px 12px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
}


.slide-category {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
}

.slide-client-tag {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Content panel (right) */
.slide-content {
    background: var(--bg-card);
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.slide-content h3 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    line-height: 1.25;
}

.slide-content p {
    color: var(--text-secondary);
    font-size: 0.975rem;
    line-height: 1.7;
    max-width: 580px;
}

.slide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.slide-tags span {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}

.slide-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 4px;
}

.result-number {
    font-family: 'Sora', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.result-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    max-width: 260px;
    line-height: 1.4;
}

.slide-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.slide-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient-1);
    color: white;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.slide-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow);
}

.result-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-tertiary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
}

/* Slideshow controls */
.slideshow-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.slide-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: inherit;
}

.slide-arrow:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: scale(1.08);
}

.slide-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}

.dot.active, .dot:hover {
    background: var(--accent-primary);
    transform: scale(1.35);
}

/* ================================================================
   TEAM
================================================================ */
.team {
    padding: 120px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 44px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
    transition: border-color 0.3s, transform 0.3s;
}

.team-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-4px);
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.team-info {
    flex: 1;
    min-width: 0;
}

.team-info h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.825rem;
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 14px;
}

.team-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.team-skills span {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 50px;
}

.team-links {
    display: flex;
    gap: 16px;
}

.team-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.825rem;
    font-weight: 600;
    transition: color 0.2s;
}

.team-links a:hover { color: var(--accent-primary); }

.team-note {
    text-align: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.team-note p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ================================================================
   CTA / CONTACT
================================================================ */
.cta {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(6,182,212,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-badge {
    display: inline-block;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.22);
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.cta h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 18px;
    line-height: 1.15;
}

.cta > .cta-content > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(6, 182, 212, 0.5);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form .btn-primary {
    align-self: center;
}

.cta-direct {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.cta-direct a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.cta-direct a:hover { opacity: 0.75; }

/* ================================================================
   FOOTER
================================================================ */
footer {
    padding: 64px 0 32px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 14px; }

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.65;
}

.footer-column h4 {
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 16px;
}

.footer-column ul { list-style: none; }

.footer-column li { margin-bottom: 11px; }

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-column a:hover { color: var(--text-primary); }

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

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

.footer-loc { font-size: 0.75rem !important; }

/* ================================================================
   MOBILE MENU
================================================================ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 15, 0.97);
    backdrop-filter: blur(24px);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 600;
    transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--accent-primary); }

.mobile-nav .nav-cta {
    font-size: 1rem;
    margin-top: 12px;
}

.mobile-close-btn {
    position: absolute;
    top: 22px;
    right: 22px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

/* ================================================================
   HERO — SPLIT LAYOUT
================================================================ */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    min-height: calc(100vh - 88px);
    padding: 48px 0;
}

.hero-left { text-align: left; }

.hero-left .hero-badge  { justify-content: flex-start; }
.hero-left .hero-desc   { margin-left: 0; margin-right: 0; max-width: 500px; }
.hero-left .hero-buttons { justify-content: flex-start; }
.hero-left h1           { margin-left: 0; margin-right: 0; }

/* ================================================================
   TERMINAL
================================================================ */
.hero-terminal {
    background: #070c18;
    border: 1px solid rgba(6, 182, 212, 0.16);
    border-radius: 14px;
    overflow: hidden;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    box-shadow:
        0 0 0 1px rgba(6, 182, 212, 0.04),
        0 40px 80px rgba(0, 0, 0, 0.65),
        0 0 100px rgba(6, 182, 212, 0.04);
}

.terminal-bar {
    background: #0e1526;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.t-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.t-dot.r { background: #ff5f57; }
.t-dot.y { background: #febc2e; }
.t-dot.g { background: #28c840; }

.terminal-label {
    margin-left: 8px;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.07em;
}

.terminal-body {
    padding: 22px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.t-cmd {
    color: #e2e8f0;
    font-size: 0.76rem;
    margin-top: 16px;
    line-height: 1.5;
}
.t-cmd::before { content: '$ '; color: var(--accent-primary); }
.t-cmd:first-child { margin-top: 0; }

.t-out {
    color: var(--text-muted);
    font-size: 0.7rem;
    padding-left: 16px;
    line-height: 1.65;
}

.t-ok {
    color: #28c840;
    font-size: 0.7rem;
    padding-left: 16px;
    line-height: 1.65;
}
.t-ok::before { content: '✓  '; }

.t-cursor {
    color: var(--accent-primary);
    font-size: 1rem;
    margin-top: 16px;
    animation: blink-cur 1.1s step-end infinite;
}
@keyframes blink-cur {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Staggered line reveal */
.terminal-body > * {
    opacity: 0;
    transform: translateX(-6px);
    animation: termReveal 0.3s ease forwards;
}
.terminal-body > *:nth-child(1)  { animation-delay: 0.5s; }
.terminal-body > *:nth-child(2)  { animation-delay: 0.85s; }
.terminal-body > *:nth-child(3)  { animation-delay: 1.15s; }
.terminal-body > *:nth-child(4)  { animation-delay: 2.0s; }
.terminal-body > *:nth-child(5)  { animation-delay: 2.3s; }
.terminal-body > *:nth-child(6)  { animation-delay: 2.6s; }
.terminal-body > *:nth-child(7)  { animation-delay: 3.4s; }
.terminal-body > *:nth-child(8)  { animation-delay: 3.7s; }
.terminal-body > *:nth-child(9)  { animation-delay: 4.0s; }
.terminal-body > *:nth-child(10) { animation-delay: 4.8s; }
.terminal-body > *:nth-child(11) { animation-delay: 5.1s; }
.terminal-body > *:nth-child(12) { animation-delay: 5.4s; }
.terminal-body > *:nth-child(13) { animation-delay: 6.1s; }

@keyframes termReveal {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ================================================================
   CAP-CARDS — numbered style
================================================================ */
.cap-num {
    display: block;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.67rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    opacity: 0.75;
}

/* ================================================================
   SCROLL FADE-IN
================================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
    .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
    .pillars-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }

    .hero-split { grid-template-columns: 1fr; gap: 48px; min-height: auto; padding: 60px 0 20px; }
    .hero-left { text-align: center; }
    .hero-left .hero-badge { justify-content: center; }
    .hero-left .hero-desc { max-width: 100%; margin: 0 auto 40px; }
    .hero-left .hero-buttons { justify-content: center; }
    .hero-left h1 { margin: 0 auto; }
    .hero-right { display: none; }

    .slide { grid-template-columns: 220px 1fr; }
    .slide--screenshot { grid-template-columns: 1fr 1fr; }
    .slide-content { padding: 36px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-btn { display: block; }

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

    .slide { grid-template-columns: 1fr; min-height: auto; }
    .slide--screenshot { grid-template-columns: 1fr; }
    .slide-visual { min-height: 200px; }
    .slide-content { padding: 32px 28px; }

    .form-row { grid-template-columns: 1fr; }

    .contact-form .btn-primary { align-self: stretch; justify-content: center; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .stats-grid { padding: 32px 0; }
    .stat-divider { display: none; }

    .team-card { flex-direction: column; }
    .team-avatar { width: 60px; height: 60px; font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .slide-result { flex-direction: column; align-items: flex-start; gap: 6px; }
}