﻿/* ═══════════════════════════════════════════════════════════
   FENYX — Dark Startup Design System
   ═══════════════════════════════════════════════════════════ */

/* ─── Google Fonts ─── */
/* NOTE: Fonts are loaded non-blocking via <link rel="preload"> in HTML.
   The @import is intentionally removed to eliminate a render-blocking
   2-hop network chain: CSS fetch → parse → @import fetch → font fetch. */

/* ─── CSS Variables ─── */
:root {
    --bg:            #F8FAFC;
    --bg-card:       #ffffff;
    --bg-card-hover: #f1f5f9;
    --primary:        #2ecc71;
    --primary-light:  #58d68d;
    --primary-glow:   rgba(46, 204, 113, 0.35);
    --blue:          #3B82F6;
    --blue-light:    #60A5FA;
    --blue-glow:     rgba(59, 130, 246, 0.35);
    --green:         #10B981;
    --gradient:      linear-gradient(135deg, #2ecc71, #3B82F6);
    --gradient-text: linear-gradient(135deg, #58d68d, #60A5FA);
    --text-main:    #0F172A;
    --text-secondary:#475569;
    --text-muted:    #64748B;
    --border:        rgba(0, 0, 0, 0.08);
    --border-hover:  rgba(0, 0, 0, 0.15);
    --font-heading:  'Space Grotesk', sans-serif;
    --font-body:     'Inter', sans-serif;
    --radius:        16px;
    --radius-lg:     24px;
    --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card:   0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-glow-primary: 0 0 40px rgba(46, 204, 113, 0.2);
    --shadow-glow-blue:   0 0 40px rgba(59, 130, 246, 0.2);
}

/* ─── Accessibility — Skip Link ─── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ─── Accessibility — Screen Reader Only ─── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── Accessibility — Focus Visible ─── */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-card);
    overflow-x: hidden;
    width: 100%;
}

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: var(--bg-card); }
html::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    font-size: 16px;
}

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }

/* ─── Gradient Text ─── */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Glass Card (Dark) ─── */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card), var(--shadow-glow-primary);
    transform: translateY(-4px);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-ghost {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.62rem 1.45rem;
    font-size: 0.88rem;
}

.btn:active { transform: scale(0.97) !important; }

/* ─── Background Orbs ─── */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite;
    /* GPU layer promotion — transform-only animation composited on GPU */
    will-change: transform;
    transform: translateZ(0);
}

.bg-orb-1 {
    width: 700px; height: 700px;
    top: -200px; right: -200px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.15) 0%, transparent 70%);
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 600px; height: 600px;
    bottom: 10%; left: -200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    animation-delay: -4s;
}

.bg-orb-3 {
    width: 400px; height: 400px;
    top: 50%; left: 40%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.08) 0%, transparent 70%);
    animation-delay: -8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33%       { transform: translate3d(30px, -30px, 0) scale(1.05); }
    66%       { transform: translate3d(-20px, 20px, 0) scale(0.97); }
}

/* ─── Grid Overlay ─── */
.canvas-grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 100%);
    /* Promote canvas to its own GPU compositor layer */
    transform: translateZ(0);
    will-change: contents;
}

/* ─── Mouse Glow ─── */
#mouse-glow {
    position: fixed;
    width: 500px; height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(46, 204, 113, 0.07) 0%, transparent 70%);
    transition: opacity 0.3s ease;
}

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

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

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

.nav-logo .logo-img {
    height: 75px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.04);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px; height: 18px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 280px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(30px);
    border-left: 1px solid var(--border);
    z-index: 999;
    padding: 5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.mobile-nav.open { transform: translateX(0); visibility: visible; }

.mobile-nav ul { display: flex; flex-direction: column; gap: 0.25rem; }

.mobile-nav-link {
    display: block;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 10px;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.04);
}

.mobile-cta { margin-top: 1.5rem; justify-content: center; }

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 0 5rem;
    position: relative;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Hero Content */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.1rem;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #58d68d;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 8px var(--primary-light);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-headline {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.3rem 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    border-radius: 50px;
}

.hero-tag i {
    color: var(--green);
    font-size: 0.7rem;
}

/* Hero Visual — Floating Cards */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-cards-container {
    position: relative;
    width: 420px;
    height: 420px;
}

.cards-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 204, 113,0.2) 0%, transparent 70%);
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
    50%       { opacity: 1;   transform: translate(-50%,-50%) scale(1.15); }
}

.hero-float-card {
    position: absolute;
    padding: 1.2rem 1.4rem;
    animation: cardFloat 10s ease-in-out infinite;
    /* GPU compositor layer — transform/opacity animations only */
    will-change: transform;
    transform: translateZ(0);
}

@keyframes cardFloat {
    0%, 100% { transform: translate3d(0, 0px, 0); }
    50%       { transform: translate3d(0, -8px, 0); }
}

.float-delay-1 { animation-delay: -1.5s; }
.float-delay-2 { animation-delay: -3s; }
.float-delay-3 { animation-delay: -4.5s; }

/* Main card — large, centered */
.card-main {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    animation: none;
}

.card-header-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.card-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.card-icon.primary { background: rgba(46, 204, 113,0.2); color: #58d68d; }
.card-icon.blue   { background: rgba(59,130,246,0.2);  color: #60A5FA; }
.card-icon.green  { background: rgba(16,185,129,0.2);  color: #34D399; }
.card-icon.small  { width: 28px; height: 28px; font-size: 0.8rem; }

.card-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex: 1;
}

.card-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-badge.live {
    background: rgba(16,185,129,0.15);
    color: #34D399;
    border: 1px solid rgba(16,185,129,0.3);
}

.live-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #34D399;
    animation: pulseDot 1.5s ease-in-out infinite;
    will-change: transform, opacity;
}

.card-stat {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
}

.card-mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}

.mini-bar {
    flex: 1;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
}

.mini-bar.active {
    background: linear-gradient(to top, var(--primary), var(--blue));
}

/* Secondary floating cards */
.card-secondary {
    top: 10%;
    right: 5%;
    width: 170px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
}

.card-tertiary {
    bottom: 15%;
    left: 5%;
    width: 170px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
}

.card-secondary-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.card-sec-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-sec-val {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-main);
}

.trend-up { color: #34D399 !important; font-size: 0.85rem !important; }

/* Tech card */
.card-tech {
    bottom: 8%;
    right: 6%;
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.tech-row {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.tech-pill {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    background: rgba(46, 204, 113,0.15);
    color: #58d68d;
    border: 1px solid rgba(46, 204, 113,0.25);
    border-radius: 50px;
}

.tech-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: scrollBounce 2s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes scrollBounce {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.5; }
    50%       { transform: translate3d(0, 8px, 0); opacity: 1; }
}

/* ─── Hero Mobile Stats (phone-only replacement for floating cards) ─── */
.hero-mobile-stats {
    display: none;
}

.hero-mobile-stats-inner {
    display: flex;
    justify-content: center;
    gap: 0;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.hms-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.1rem 0.5rem;
    gap: 0.25rem;
    position: relative;
}

.hms-item + .hms-item::before {
    content: '';
    position: absolute;
    left: 0; top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border);
}

.hms-val {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hms-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
}

/* ─── Load Animations ─── */
.animate-load-1 { animation: fadeUp 0.7s ease 0.1s both; }
.animate-load-2 { animation: fadeUp 0.7s ease 0.25s both; }
.animate-load-3 { animation: fadeUp 0.7s ease 0.4s both; }
.animate-load-4 { animation: fadeUp 0.7s ease 0.55s both; }

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

/* ═══════════════════════════════════════════════════════════
   STATS SECTION
   ═══════════════════════════════════════════════════════════ */
.stats-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
    content-visibility: auto;
    contain-intrinsic-size: auto 200px;
}

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

.stat-item {
    flex: 1;
    text-align: center;
    padding: 1.5rem 2rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

/* ═══════════════════════════════════════════════════════════
   SECTION COMMONS
   ═══════════════════════════════════════════════════════════ */
section { position: relative; z-index: 1; }

.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #58d68d;
    margin-bottom: 0.75rem;
}

.section-eyebrow.light { color: rgba(167, 139, 250, 0.7); }

.section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.section-header { margin-bottom: 4rem; }

/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════ */
.about-section {
    padding: 7rem 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 700px;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text .section-title { margin-bottom: 1.5rem; }

.about-para {
    color: var(--text-secondary);
    font-size: 0.97rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.about-pillars {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.pillar-item > i {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.pillar-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}

.pillar-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* About Visual Card Stack */
.about-visual { display: flex; justify-content: center; }

.about-card-stack {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    max-width: 380px;
}

.abt-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius);
}

.abt-card-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.abt-card-icon.primary { background: rgba(46, 204, 113,0.2); color: #58d68d; }
.abt-card-icon.blue   { background: rgba(59,130,246,0.2);  color: #60A5FA; }
.abt-card-icon.green  { background: rgba(16,185,129,0.2);  color: #34D399; }

.abt-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.abt-card p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.abt-card-1 { transform: translate3d(-20px, 0, 0); animation: cardFloat 7s ease-in-out infinite;       will-change: transform; }
.abt-card-2 { transform: translate3d(20px, 0, 0);  animation: cardFloat 7s ease-in-out -2.3s infinite; will-change: transform; }
.abt-card-3 { transform: translate3d(-10px, 0, 0); animation: cardFloat 7s ease-in-out -4.6s infinite; will-change: transform; }

/* ═══════════════════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════════════════ */
.services-section {
    padding: 7rem 0;
    background: linear-gradient(to bottom, transparent, rgba(46, 204, 113,0.03), transparent);
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: default;
}

.service-card:hover .service-card-glow { opacity: 1; }

.service-card-glow {
    position: absolute;
    bottom: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 204, 113,0.15) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.service-icon.primary { background: rgba(46, 204, 113,0.2); color: #58d68d; }
.service-icon.blue   { background: rgba(59,130,246,0.2);  color: #60A5FA; }

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.service-card > p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.service-list li {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-left: 1rem;
    position: relative;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════
   HOW WE WORK SECTION
   ═══════════════════════════════════════════════════════════ */
.how-section {
    padding: 7rem 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.step-item { display: flex; gap: 1rem; }

.step-number-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.step-num {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.step-line {
    width: 2px;
    flex: 1;
    min-height: 20px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    margin-top: 6px;
}

.step-line.no-line { background: transparent; }

.step-card {
    flex: 1;
    padding: 1.4rem 1.5rem;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.step-icon {
    width: 36px; height: 36px;
    background: rgba(46, 204, 113,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #58d68d;
    margin-bottom: 0.8rem;
}

.step-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.step-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCTS SECTION
   ═══════════════════════════════════════════════════════════ */
.products-section {
    padding: 7rem 0;
    background: linear-gradient(to bottom, transparent, rgba(59,130,246,0.03), transparent);
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

.products-scroll-wrapper {
    position: relative;
    overflow: hidden;
}

.products-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0.5rem 2rem;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.products-track::-webkit-scrollbar { display: none; }
.products-track.dragging { cursor: grabbing; }

.scroll-fade-right {
    display: none;
}

.product-card {
    min-width: 280px;
    max-width: 280px;
    padding: 1.8rem;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
}

.product-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}

.product-status.available {
    background: rgba(16,185,129,0.12);
    color: #34D399;
    border: 1px solid rgba(16,185,129,0.25);
}

.product-status.coming-soon {
    background: rgba(46, 204, 113,0.12);
    color: #58d68d;
    border: 1px solid rgba(46, 204, 113,0.25);
}

.product-status.in-dev {
    background: rgba(59,130,246,0.12);
    color: #60A5FA;
    border: 1px solid rgba(59,130,246,0.25);
}

.status-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: pulseDot 2s ease-in-out infinite;
}

.product-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.product-icon.primary { background: rgba(46, 204, 113,0.2); color: #58d68d; }
.product-icon.blue   { background: rgba(59,130,246,0.2);  color: #60A5FA; }

.product-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.product-card p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.2rem;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ptag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   WHY FENYX SECTION
   ═══════════════════════════════════════════════════════════ */
.why-section {
    padding: 7rem 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 700px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.why-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.why-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}

.why-icon.primary { background: rgba(46, 204, 113,0.2); color: #58d68d; }
.why-icon.blue   { background: rgba(59,130,246,0.2);  color: #60A5FA; }

.why-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.why-card p {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   TECH STACK SECTION
   ═══════════════════════════════════════════════════════════ */
.tech-section {
    padding: 7rem 0;
    background: linear-gradient(to bottom, transparent, rgba(46, 204, 113,0.03), transparent);
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

.tech-groups {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.tech-group {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.tech-group-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    min-width: 160px;
    padding-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-group-label i { color: var(--primary-light); }

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-tag {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
    cursor: default;
}

.tech-tag.primary {
    background: rgba(46, 204, 113,0.1);
    color: #58d68d;
    border: 1px solid rgba(46, 204, 113,0.2);
}

.tech-tag.blue {
    background: rgba(59,130,246,0.1);
    color: #60A5FA;
    border: 1px solid rgba(59,130,246,0.2);
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--primary-glow);
}

/* ═══════════════════════════════════════════════════════════
   FUTURE VISION SECTION
   ═══════════════════════════════════════════════════════════ */
.future-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

.future-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46, 204, 113,0.12) 0%, rgba(59,130,246,0.08) 50%, transparent 100%);
    border-top: 1px solid rgba(46, 204, 113,0.15);
    border-bottom: 1px solid rgba(46, 204, 113,0.15);
}

.future-container { text-align: center; position: relative; }

.future-headline {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.future-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.future-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.future-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.future-item:hover {
    background: rgba(46, 204, 113,0.1);
    border-color: rgba(46, 204, 113,0.3);
    color: #58d68d;
    transform: translateY(-3px);
}

.future-item i {
    color: var(--primary-light);
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════ */
.contact-section {
    padding: 7rem 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-headline {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.contact-sub {
    font-size: 0.97rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.contact-icon.primary { background: rgba(46, 204, 113,0.15); color: #58d68d; }
.contact-icon.blue   { background: rgba(59,130,246,0.15);  color: #60A5FA; }

.contact-item-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.1rem;
}

.contact-item-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.contact-item-val:hover { color: #58d68d; }

/* Contact Form */
.contact-form-wrap { padding: 2.5rem; }

.form-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-main);
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

.form-group select option {
    background: #ffffff;
    color: var(--text-main);
}

.form-group textarea {
    resize: none;
    min-height: 100px;
    line-height: 1.6;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(46, 204, 113,0.5);
    background: rgba(46, 204, 113,0.05);
    box-shadow: 0 0 0 3px rgba(46, 204, 113,0.1);
}

.submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    font-size: 0.97rem;
    padding: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
    border-top: 1px solid var(--border);
    padding-top: 5rem;
    position: relative;
    z-index: 1;
}

.footer-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 4rem;
    gap: 2rem;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.footer-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    text-align: center;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(46, 204, 113,0.05);
    border: 1px solid rgba(46, 204, 113,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #58d68d;
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(46, 204, 113,0.15);
    border-color: rgba(46, 204, 113,0.3);
    color: #58d68d;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

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

/* ═══════════════════════════════════════════════════════════
   SUCCESS MODAL
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

.modal-content {
    padding: 3rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border-radius: var(--radius-lg);
    animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalIn {
    from { transform: scale(0.85) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-icon {
    width: 64px; height: 64px;
    background: rgba(16,185,129,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #34D399;
    margin: 0 auto 1.5rem;
}

.modal-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.modal-content p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: none;
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — ULTRA-WIDE (1536px+)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1536px) {
    .container { max-width: 1440px; }
    .hero-headline { font-size: 4rem; }
    .hero-cards-container { width: 500px; height: 500px; }
    .hero-container { gap: 6rem; }
    .about-container { gap: 7rem; }
    .contact-container { gap: 7rem; }
    .tech-groups { padding: 3.5rem; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — LARGE DESKTOP (1280px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
    .container { max-width: 1100px; }
    .hero-container { gap: 3rem; }
    .hero-cards-container { width: 390px; height: 390px; }
    .about-container { gap: 4rem; }
    .contact-container { gap: 4rem; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET LANDSCAPE (1024px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-container { gap: 2.5rem; }
    .hero-cards-container { width: 340px; height: 340px; }

    .card-main { width: 180px; }
    .card-secondary,
    .card-tertiary { width: 150px; }

    .about-container { gap: 3rem; }
    .about-card-stack { max-width: 340px; }

    .contact-container { gap: 3rem; }

    .tech-group-label { min-width: 130px; }

    .steps-timeline { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

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

    .future-grid { gap: 0.85rem; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET / MOBILE NAV BREAKPOINT (900px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    /* Navbar */
    .nav-links { display: none; }
    .hamburger { display: flex; margin-right: 0.5rem; }
    #navCta { display: none; }

    /* Hero — stack vertically */
    .hero-section { padding: 6.5rem 0 4rem; min-height: auto; }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content { order: 1; }
    .hero-visual  { order: 2; display: flex; justify-content: center; }

    .hero-sub {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
    }

    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .hero-tags    { justify-content: center; }

    .hero-cards-container {
        width: 320px;
        height: 320px;
    }

    .card-main { width: 165px; }
    .card-secondary,
    .card-tertiary { width: 145px; }

    /* About */
    .about-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-text  { order: 1; text-align: center; }
    .about-visual { order: 2; }
    .about-card-stack { max-width: 100%; }
    .abt-card-1,
    .abt-card-2,
    .abt-card-3 { transform: none !important; animation: none; }
    .about-pillars { align-items: center; }
    .pillar-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 320px;
        width: 100%;
    }
    .pillar-item > i { margin-top: 0; margin-bottom: 0.5rem; }

    /* Contact */
    .contact-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-info { text-align: center; }
    .contact-actions { justify-content: center; }
    .contact-details { align-items: flex-start; width: fit-content; margin: 0 auto; }
    .contact-item { text-align: left; }

    /* Steps */
    .steps-timeline { grid-template-columns: 1fr; gap: 1.5rem; }

    /* Stats */
    .stats-grid { flex-wrap: wrap; gap: 0; }
    .stat-divider { display: none; }
    .stat-item { min-width: 50%; padding: 1.2rem 1rem; }

    /* Products */
    .product-card { min-width: 260px; max-width: 260px; }

    /* Footer logo */
    .footer-logo-row { flex-direction: column; align-items: center; gap: 0.75rem; }
    .footer-tagline { font-size: 0.95rem; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET PORTRAIT (768px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Section padding */
    .about-section,
    .services-section,
    .how-section,
    .products-section,
    .why-section,
    .tech-section,
    .future-section,
    .contact-section { padding: 5rem 0; }

    /* Grids → single column */
    .services-grid { grid-template-columns: 1fr; }
    .why-grid      { grid-template-columns: 1fr; }

    /* Tech stack: label above tags */
    .tech-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    .tech-group-label { min-width: auto; }
    .tech-groups { padding: 1.8rem; gap: 1.5rem; }

    /* Hero visual smaller */
    .hero-cards-container { width: 290px; height: 290px; }
    .card-main { width: 155px; }

    /* Contact actions wrap */
    .contact-actions { flex-direction: column; gap: 0.75rem; }
    .contact-actions .btn { width: 100%; justify-content: center; }

    /* Section header margin */
    .section-header { margin-bottom: 2.5rem; }

    /* About pillars */
    .about-pillars { gap: 1rem; }
    .pillar-item { padding: 1rem; }

    /* Future grid */
    .future-grid { gap: 0.75rem; }
    .future-sub { font-size: 0.97rem; }

    /* Steps — single column */
    .steps-timeline { grid-template-columns: 1fr; }

    /* Footer */
    .footer-logo-row { flex-direction: column; align-items: center; gap: 0.75rem; }
    .footer-centered { padding-bottom: 2.5rem; gap: 1.5rem; }
    .footer-bottom .container { flex-direction: column; text-align: center; }

    /* Modal */
    .modal-content { padding: 2.5rem 2rem; }

    /* Products */
    .products-track { gap: 1rem; }
    .product-card   { min-width: 240px; max-width: 240px; padding: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — LARGE PHONE (480px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    html { font-size: 14px; }
    .container { padding: 0 1.2rem; }

    /* Decrease content text size for phones */
    p, .about-para, .contact-sub { font-size: 0.85rem; line-height: 1.6; }
    .service-card p, .why-card p, .product-card p, .abt-card p, .pillar-item p { font-size: 0.78rem; }

    /* Hero */
    .hero-section { padding: 8.5rem 0 3.5rem; }
    .hero-headline { font-size: clamp(1.75rem, 7vw, 2.4rem); line-height: 1.2; }
    .hero-sub { font-size: 0.88rem; }
    .hero-buttons { flex-direction: column; gap: 0.75rem; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
    .btn { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
    .btn-lg { padding: 0.5rem 1rem; font-size: 0.82rem; }
    /* Show the complex floating-card visual on phones, perfectly centered and scaled */
    .hero-visual {
        display: flex !important;
        justify-content: center;
        margin-top: 1rem;
    }

    .hero-cards-container {
        width: 320px;
        height: 320px;
    }

    .card-main {
        width: 165px;
        padding: 0.8rem 0.8rem;
    }

    .card-header-row {
        gap: 0.3rem;
        margin-bottom: 0.6rem;
    }

    .card-badge {
        font-size: 0.55rem;
        padding: 0.1rem 0.35rem;
        gap: 0.2rem;
    }

    .card-stat {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .card-mini-bars {
        height: 30px;
    }

    .card-secondary {
        top: 8%;
        right: 2%;
        width: 130px;
        padding: 0.7rem 0.8rem;
    }

    .card-tertiary {
        bottom: 10%;
        left: 2%;
        width: 130px;
        padding: 0.7rem 0.8rem;
    }

    .card-tech {
        bottom: 2%;
        right: 2%;
        padding: 0.6rem 0.8rem;
    }

    .tech-pill {
        font-size: 0.55rem;
        padding: 0.15rem 0.4rem;
    }

    .card-sec-val {
        font-size: 0.95rem;
    }

    .card-sec-label {
        font-size: 0.6rem;
    }

    .card-icon {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }

    .card-icon.small {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    /* Hide the inline stats strip since the interactive dashboard visual is shown */
    .hero-mobile-stats { display: none !important; }

    /* Section titles */
    .section-title { font-size: clamp(1.6rem, 6vw, 2rem); }
    .section-sub { font-size: 0.85rem; }

    /* Section padding */
    .about-section,
    .services-section,
    .how-section,
    .products-section,
    .why-section,
    .tech-section,
    .future-section,
    .contact-section { padding: 4rem 0; }

    .section-header { margin-bottom: 2rem; }

    /* Navbar logo & Hamburger */
    .nav-logo .logo-img { height: 56px; }
    .footer-logo { height: 56px; }
    .hamburger { width: 20px; height: 13px; }
    .hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

    /* About */
    .about-card-stack { gap: 0.85rem; }
    .abt-card { padding: 1.2rem; }

    /* Services / Why */
    .service-card { padding: 1.5rem; }
    .why-card     { padding: 1.5rem; }

    /* Stats */
    .stat-item { min-width: 100%; padding: 1rem; }
    .stat-number { font-size: 2.2rem; }

    /* Steps */
    .step-card { padding: 1.2rem; }
    .step-item { gap: 0.75rem; }
    .step-num  { width: 38px; height: 38px; font-size: 0.78rem; }

    /* Tech */
    .tech-groups { padding: 1.4rem; gap: 1.2rem; }
    .tech-tag    { font-size: 0.75rem; padding: 0.35rem 0.85rem; }

    /* Future */
    .future-headline { font-size: clamp(1.7rem, 6vw, 2.4rem); }
    .future-sub { font-size: 0.85rem; margin-bottom: 2rem; }
    .future-item { font-size: 0.82rem; padding: 0.65rem 1.1rem; }

    /* Contact */
    .contact-headline { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .contact-form-wrap { padding: 1.5rem; }
    .form-group input,
    .form-group select,
    .form-group textarea { font-size: 0.9rem; }

    /* Products */
    .product-card { min-width: 220px; max-width: 220px; padding: 1.2rem; }

    /* Modal */
    .modal-content { padding: 2rem 1.5rem; width: 95%; }

    /* Footer */
    .footer-tagline { font-size: 0.92rem; }
    .footer-socials { gap: 0.75rem; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL PHONE (375px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 375px) {
    .container { padding: 0 1rem; }

    .hero-headline { font-size: 1.65rem; }
    .hero-buttons .btn { max-width: 100%; }

    .section-title { font-size: 1.5rem; }

    .tech-groups { padding: 1.2rem; }
    .tech-tag { font-size: 0.72rem; padding: 0.3rem 0.7rem; }

    .future-item { padding: 0.6rem 0.9rem; font-size: 0.78rem; }

    .contact-form-wrap { padding: 1.2rem; }

    .stat-number { font-size: 2rem; }

    .btn-lg { padding: 0.7rem 1.35rem; font-size: 0.9rem; }

    .step-card h3 { font-size: 0.9rem; }
    .step-card p  { font-size: 0.75rem; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TINY PHONE (320px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 320px) {
    .container { padding: 0 0.85rem; }

    .hero-headline { font-size: 1.5rem; }
    .section-title { font-size: 1.4rem; }

    .nav-logo .logo-img { height: 48px; }
    .footer-logo { height: 48px; }

    .service-card,
    .why-card { padding: 1.2rem; }

    .tech-groups { padding: 1rem; }
    .tech-group-label { font-size: 0.75rem; }
    .tech-tag { font-size: 0.68rem; padding: 0.28rem 0.6rem; }

    .future-item { font-size: 0.75rem; padding: 0.55rem 0.8rem; }

    .contact-form-wrap { padding: 1rem; }
    .form-group input,
    .form-group select,
    .form-group textarea { padding: 0.75rem 0.85rem; }

    .product-card { min-width: 200px; max-width: 200px; }

    .modal-content { padding: 1.5rem 1rem; }

    .btn { font-size: 0.82rem; padding: 0.55rem 1rem; }
    .btn-lg { font-size: 0.85rem; padding: 0.65rem 1.1rem; }
}

/* ═══════════════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════════════ */
.faq-section {
    padding: 7rem 0;
    position: relative;
    z-index: 1;
    content-visibility: auto;
    contain-intrinsic-size: auto 700px;
}

.faq-grid {
    max-width: 800px;
    margin: 2.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    transition: var(--transition);
}

.faq-trigger:hover {
    color: var(--primary-light);
}

.faq-icon-wrap {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}

.faq-item.active .faq-icon-wrap {
    background: var(--gradient);
    color: #fff;
}

.faq-answer-wrapper {
    height: 0;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
    padding: 0 1.8rem 1.6rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer-content p {
    margin: 0;
}

@media (max-width: 480px) {
    .faq-trigger {
        padding: 1.2rem 1.4rem;
        font-size: 0.95rem;
    }
    .faq-answer-content {
        padding: 0 1.4rem 1.2rem 1.4rem;
        font-size: 0.82rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   PERFORMANCE — REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}


/* ═══════════════════════════════════════════════════════════
   PERFORMANCE — MOBILE DEVICE OPTIMIZATIONS
   Keeps lightweight animations (scroll-reveal, card float,
   dot pulses, background orbs) for a polished mobile feel
   while disabling only the truly expensive effects.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* 1. Background orbs — keep visible with reduced blur + size. */
    .bg-orb {
        filter: blur(60px) !important;
        opacity: 0.4;
        animation: orbFloat 20s ease-in-out infinite !important;
    }
    .bg-orb-1 { width: 350px; height: 350px; top: -100px; right: -100px; }
    .bg-orb-2 { width: 300px; height: 300px; bottom: 15%; left: -120px; }
    .bg-orb-3 { width: 200px; height: 200px; }

    /* 2. Remove canvas grid overlay (JS physics, not interactive on touch). */
    .canvas-grid-overlay { display: none !important; }

    /* 3. Cards glow — simplify instead of hiding. */
    .cards-glow {
        filter: blur(20px) !important;
        opacity: 0.4;
    }

    /* 4. Glass-card backdrop blurs — reduce intensity. */
    .glass-card,
    .hero-mobile-stats-inner {
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }
    .mobile-nav,
    .navbar.scrolled {
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
    }

    /* 5. Hero floating card animations — keep, just gentler. */
    .hero-float-card { animation-duration: 14s !important; }

    /* 6. Keep live-dot, badge-dot, scroll-dot pulse animations
          (tiny elements — negligible GPU cost). */

    /* 7. Scroll-reveal — lightweight fade-in on scroll. */
    .reveal,
    .reveal-left,
    .reveal-right {
        transition: opacity 0.5s ease, transform 0.5s ease !important;
    }

    /* 8. About cards — allow lightweight transitions. */
    .abt-card {
        transition: opacity 0.4s ease, transform 0.4s ease !important;
    }

    /* 9. Glass-card hover — subtle lift on tap. */
    .glass-card {
        transition: box-shadow 0.2s ease, transform 0.2s ease !important;
    }
    .glass-card:hover { transform: translateY(-2px) !important; }

    /* 10. Remove mouse-glow (desktop-only). */
    #mouse-glow { display: none !important; }

    /* 11. Service card glow — hide (requires mousemove). */
    .service-card-glow { display: none !important; }

    /* 12. Buttons — snappy transitions for touch. */
    .btn {
        transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease !important;
    }
    .btn:hover { transform: translateY(-1px) !important; }

    /* 13. Hardware-accelerated scroll on products track. */
    #productsTrack {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .product-card { scroll-snap-align: start; }
}


/* Custom Form Validation Styles */
.error-msg {
    color: #ff4a4a;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #ff4a4a !important;
    background: rgba(255, 74, 74, 0.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

