/* ============================================
   IMPACTLY EXHIBITION WEBSITE — STYLE SYSTEM
   ============================================ */

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

:root {
    /* Primary Palette */
    --primary: #6366F1;
    --primary-light: #818CF8;
    --primary-dark: #4F46E5;
    --primary-glow: rgba(99, 102, 241, 0.3);

    /* Accent Colors */
    --emerald: #10B981;
    --emerald-glow: rgba(16, 185, 129, 0.25);
    --amber: #F59E0B;
    --amber-glow: rgba(245, 158, 11, 0.25);
    --rose: #F43F5E;
    --rose-glow: rgba(244, 63, 94, 0.25);
    --purple: #A855F7;
    --purple-glow: rgba(168, 85, 247, 0.25);
    --teal: #14B8A6;
    --teal-glow: rgba(20, 184, 166, 0.25);

    /* Dark Theme */
    --bg-dark: #0A0A0F;
    --bg-section: #0F0F18;
    --bg-card: #151520;
    --bg-card-hover: #1A1A2E;
    --bg-surface: #1E1E30;

    /* Text */
    --text-primary: #F1F1F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #A855F7 50%, #EC4899 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--primary);
    color: #fff;
}

/* ----- CONTAINER ----- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- UTILITY CLASSES ----- */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease-out);
    background: transparent;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-primary);
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.85;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

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

.nav-links a {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.25s var(--ease-out);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s var(--ease-out);
}

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

.nav-links a:hover::after {
    width: 20px;
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 24px 60px;
    max-width: var(--container-width);
    margin: 0 auto;
    gap: 60px;
    overflow: hidden;
}

.hero-bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

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

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -150px;
    right: -100px;
    opacity: 0.15;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--purple);
    bottom: -100px;
    left: -100px;
    opacity: 0.12;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--emerald);
    top: 40%;
    left: 40%;
    opacity: 0.08;
    animation-delay: -14s;
}

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

.hero-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--gradient-glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s var(--ease-out) both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s var(--ease-out) both;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.25s; }

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s var(--ease-out) 0.35s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
    animation: fadeInUp 0.8s var(--ease-out) 0.45s both;
}

/* ----- BUTTONS ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 24px var(--primary-glow), 0 1px 3px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--primary-glow), 0 2px 6px rgba(0,0,0,0.3);
}

.btn-outline {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* ----- HERO STATS ----- */
.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.8s var(--ease-out) 0.55s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ----- PHONE MOCKUP ----- */
.hero-visual {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s var(--ease-out) 0.5s both;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 580px;
    border-radius: 36px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.1);
    background: #000;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 650px;
    background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

/* ----- SCROLL INDICATOR ----- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 0.8s var(--ease-out) 1s both;
    z-index: 1;
}

.mouse {
    width: 24px;
    height: 38px;
    border-radius: 12px;
    border: 2px solid var(--text-muted);
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

.scroll-indicator span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-dark {
    background: var(--bg-section);
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

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

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.problem-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.problem-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
}

.problem-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.problem-card:hover::before {
    opacity: 1;
}

.problem-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(243, 63, 94, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--rose);
}

.problem-stat {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--rose);
    margin-bottom: 8px;
}

.problem-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

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

/* ----- CALLOUT ----- */
.problem-callout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 32px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.callout-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.callout-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.callout-text strong {
    color: var(--text-primary);
}

/* ============================================
   SOLUTION SECTION
   ============================================ */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.solution-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.solution-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.solution-card-large {
    grid-column: span 1;
    grid-row: span 2;
}

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

.solution-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.solution-icon-wrap.emerald { background: var(--emerald-glow); }
.solution-icon-wrap.indigo { background: var(--primary-glow); }
.solution-icon-wrap.purple { background: var(--purple-glow); }
.solution-icon-wrap.amber { background: var(--amber-glow); }
.solution-icon-wrap.rose { background: var(--rose-glow); }
.solution-icon-wrap.teal { background: rgba(20, 184, 166, 0.15); }

.solution-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.solution-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.solution-visual {
    margin-top: 20px;
}

.mini-tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.3s;
}

.chip:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary-light);
}

.points-display {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.points-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.points-val {
    font-weight: 700;
    color: var(--emerald);
    font-family: 'Outfit', sans-serif;
}

/* ============================================
   USP / UNIQUENESS SECTION
   ============================================ */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.usp-card {
    padding: 36px 32px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.usp-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.08);
}

.usp-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
    margin-bottom: 16px;
}

.usp-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.usp-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================
   FEATURES TIMELINE
   ============================================ */
.features-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.feature-item {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 24px;
}

.connector-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    flex-shrink: 0;
    margin-top: 6px;
}

.connector-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--primary), transparent);
    margin-top: 8px;
}

.feature-content {
    flex: 1;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    transition: all 0.4s var(--ease-out);
}

.feature-content:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
}

.feature-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.feature-icon-badge.emerald { background: var(--emerald-glow); }
.feature-icon-badge.indigo { background: var(--primary-glow); }
.feature-icon-badge.purple { background: var(--purple-glow); }
.feature-icon-badge.amber { background: var(--amber-glow); }
.feature-icon-badge.rose { background: var(--rose-glow); }

.feature-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.feature-content ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-content li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.feature-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: 600;
}

/* ============================================
   SCREENSHOTS CAROUSEL
   ============================================ */
.screenshots-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.screenshot-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all 0.5s var(--ease-out);
}

.screenshot-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.12);
}

.screenshot-frame {
    overflow: hidden;
    aspect-ratio: 9/18;
    background: #000;
}

.screenshot-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.screenshot-card:hover .screenshot-frame img {
    transform: scale(1.05);
}

.screenshot-info {
    padding: 20px 24px;
}

.screenshot-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.screenshot-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   TECH STACK
   ============================================ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tech-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: all 0.4s var(--ease-out);
}

.tech-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.tech-card-featured {
    background: linear-gradient(180deg, rgba(99,102,241,0.08) 0%, rgba(99,102,241,0.02) 100%);
    border-color: rgba(99, 102, 241, 0.15);
}

.tech-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-md);
}

.tech-logo-text {
    font-size: 2rem;
    margin-bottom: 16px;
}

.tech-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.tech-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.tech-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   ARCHITECTURE
   ============================================ */
.arch-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    margin-bottom: 64px;
}

.arch-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.arch-layer {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%;
}

.client-layer {
    border-color: rgba(99, 102, 241, 0.2);
}

.backend-layer {
    border-color: rgba(16, 185, 129, 0.2);
}

.layer-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

.layer-boxes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.layer-boxes-row {
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.arch-box {
    padding: 16px 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 200px;
}

.arch-box-sm {
    min-width: 100px;
    padding: 16px 18px;
}

.arch-box-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 6px;
}

.arch-box-title {
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
}

.arch-box-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.arch-arrow-down {
    font-size: 1.2rem;
    color: var(--text-muted);
    padding: 8px 0;
}

.arch-connector {
    display: flex;
    justify-content: center;
    padding: 4px 0;
}

/* ----- Schema Sidebar ----- */
.arch-sidebar h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.schema-table {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.schema-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.schema-row:last-child {
    border-bottom: none;
}

.schema-row:hover {
    background: rgba(255,255,255,0.02);
}

.schema-header {
    background: rgba(99, 102, 241, 0.06);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.schema-row code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-light);
    font-size: 0.82rem;
}

.schema-row span:last-child {
    color: var(--text-secondary);
}

.rls-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 18px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--emerald);
    font-weight: 500;
}

/* ----- Folder Structure ----- */
.folder-structure {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
}

.folder-structure h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.folder-tree pre {
    background: rgba(0,0,0,0.3);
    padding: 24px;
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.folder-tree code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre;
}

/* ============================================
   RESEARCH SECTION
   ============================================ */
.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 64px;
}

.research-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
}

.research-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

/* ----- Methodology Steps ----- */
.methodology-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.method-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.method-step:hover {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.15);
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.step-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

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

/* ----- Survey Findings ----- */
.survey-findings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.finding-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.finding-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.bar-track {
    width: 100%;
    height: 28px;
    background: rgba(255,255,255,0.04);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    width: 0;
    border-radius: 100px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    transition: width 1.5s var(--ease-out);
}

.bar-fill.visible {
    width: var(--fill-width);
}

.bar-fill.emerald { background: linear-gradient(90deg, rgba(16,185,129,0.3) 0%, var(--emerald) 100%); }
.bar-fill.amber { background: linear-gradient(90deg, rgba(245,158,11,0.3) 0%, var(--amber) 100%); }
.bar-fill.purple { background: linear-gradient(90deg, rgba(168,85,247,0.3) 0%, var(--purple) 100%); }
.bar-fill.rose { background: linear-gradient(90deg, rgba(244,63,94,0.3) 0%, var(--rose) 100%); }

/* ----- Personas ----- */
.personas-section {
    margin-bottom: 64px;
}

.personas-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 28px;
    text-align: center;
}

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

.persona-card {
    display: flex;
    gap: 24px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all 0.4s var(--ease-out);
}

.persona-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.persona-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
}

.avatar-circle.alt {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--teal) 100%);
}

.persona-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.persona-role {
    font-size: 0.82rem;
    color: var(--primary-light);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.persona-bio {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.persona-goals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.goal-tag {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

/* ----- Usability ----- */
.usability-section {
    text-align: center;
}

.usability-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 28px;
}

.usability-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.usability-stat {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    transition: all 0.3s;
}

.usability-stat:hover {
    border-color: var(--emerald);
}

.usability-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--emerald);
    margin-bottom: 8px;
}

.usability-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.usability-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ROADMAP
   ============================================ */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.roadmap-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: all 0.4s var(--ease-out);
}

.roadmap-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.1);
}

.roadmap-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.roadmap-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.roadmap-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ============================================
   TEAM
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.team-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    text-align: center;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.team-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.1);
}

.team-avatar {
    margin-bottom: 20px;
}

.team-avatar-1 {
    background: var(--gradient-primary);
}

.team-avatar-2 {
    background: linear-gradient(135deg, var(--emerald) 0%, #0EA5E9 100%);
}

.team-card .avatar-circle {
    margin: 0 auto;
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
}

.team-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

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

.team-note {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 24px 32px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-lg);
}

.team-note p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    padding: 64px 0 40px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.footer-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.footer-link:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

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

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.footer-license {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: 8px;
}

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

/* Generic reveal animation class */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        gap: 40px;
    }

    .hero-subtitle {
        margin: 0 auto 36px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

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

    .solution-card-large {
        grid-column: span 2;
        grid-row: span 1;
    }

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

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

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

    .arch-layout {
        grid-template-columns: 1fr;
    }

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

    .roadmap-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 14px 32px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1000;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .phone-frame {
        width: 220px;
        height: 460px;
    }

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

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

    .solution-card-large {
        grid-column: span 1;
    }

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

    .screenshots-carousel {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

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

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

    .persona-card {
        flex-direction: column;
        text-align: center;
    }

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

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

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

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }

    .footer-tagline {
        margin-left: 0;
    }

    .scroll-indicator {
        display: none;
    }

    .layer-boxes-row {
        flex-direction: column;
    }

    .arch-box-sm {
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .hero-stats {
        gap: 16px;
    }

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

    .phone-frame {
        width: 180px;
        height: 380px;
    }

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

    .feature-item {
        gap: 16px;
    }

    .feature-content {
        padding: 20px;
    }

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