/* ============================================
   SAQL WEBSITE v2 — PREMIUM DESIGN SYSTEM
   ============================================ */

:root {
    /* Colors */
    --primary: #381793;
    --primary-light: #635ce8;
    --primary-dark: #2a1170;
    --accent: #7c3aed;
    --accent-light: #a78bfa;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gray-950: #020617;

    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #381793 0%, #635ce8 50%, #7c3aed 100%);
    --gradient-hero: linear-gradient(135deg, #0f0c29 0%, #1a1145 30%, #302b63 60%, #24243e 100%);
    --gradient-glow: radial-gradient(ellipse at 50% 50%, rgba(99, 92, 232, 0.15) 0%, transparent 70%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(99, 92, 232, 0.3);
    --shadow-glow-lg: 0 0 80px rgba(99, 92, 232, 0.2);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section {
    padding: var(--space-24) 0;
    position: relative;
}

.features-section,
.use-cases-section,
.tech-section {
    padding: var(--space-20) 0;
}

.features-section .section-header,
.use-cases-section .section-header,
.tech-section .section-header {
    margin-bottom: var(--space-12);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 92, 232, 0.08);
    color: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-4);
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 5vw, var(--text-5xl));
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--space-4);
    color: var(--gray-900);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-500);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Glass morphism base */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--duration-base) var(--ease);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .nav-link {
    color: var(--gray-700);
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
}

.logo {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter var(--duration-base) var(--ease);
}

.navbar.scrolled .logo {
    filter: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--duration-fast) var(--ease);
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: var(--radius-full);
    transition: all var(--duration-base) var(--ease);
}

.navbar.scrolled .hamburger span {
    background: var(--gray-800);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: var(--radius-xl);
    transition: all var(--duration-base) var(--ease);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 92, 232, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(99, 92, 232, 0.4);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2xl);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: var(--text-xs);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: var(--text-base);
    border-radius: var(--radius-2xl);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: var(--space-10);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 92, 232, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(56, 23, 147, 0.3) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Floating diamonds */
.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.11;
    transform: rotate(45deg);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(99, 92, 232, 0.08));
    border: 1px solid rgba(196, 181, 253, 0.35);
    box-shadow: 0 0 35px rgba(99, 92, 232, 0.16);
    animation: floatDiamond 20s ease-in-out infinite;
}

.shape-1 {
    width: 280px;
    height: 280px;
    top: -10%;
    right: -5%;
    animation-delay: 0s;
    animation-duration: 24s;
}

.shape-2 {
    width: 170px;
    height: 170px;
    bottom: 10%;
    left: -3%;
    animation-delay: -5s;
    animation-duration: 19s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 15%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.shape-4 {
    width: 90px;
    height: 90px;
    top: 20%;
    left: 10%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.shape-5 {
    width: 150px;
    height: 150px;
    bottom: -5%;
    right: 30%;
    animation-delay: -8s;
    animation-duration: 21s;
}

@keyframes floatDiamond {

    0%,
    100% {
        transform: translate(0, 0) rotate(45deg);
    }

    25% {
        transform: translate(24px, -28px) rotate(50deg);
    }

    50% {
        transform: translate(-18px, 18px) rotate(39deg);
    }

    75% {
        transform: translate(14px, -8px) rotate(47deg);
    }
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.hero-logo {
    width: 220px;
    height: auto;
    margin: 0 auto var(--space-8);
    display: block;
    animation: fadeInDown 0.8s var(--ease);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-8);
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s var(--ease);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, var(--text-7xl));
    font-weight: 900;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.8s var(--ease) 0.1s backwards;
}

.hero-gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 50%, #e9d5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.7);
    max-width: 650px;
    margin: 0 auto var(--space-10);
    line-height: 1.7;
    animation: fadeInUp 0.8s var(--ease) 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-16);
    animation: fadeInUp 0.8s var(--ease) 0.3s backwards;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-10);
    padding: var(--space-6) var(--space-10);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(10px);
    margin-bottom: var(--space-4);
    animation: fadeInUp 0.8s var(--ease) 0.4s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--space-1);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem-section {
    background: var(--white);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-6);
}

.problem-card {
    padding: var(--space-8);
    background: var(--gray-50);
    border-radius: var(--radius-2xl);
    text-align: center;
    transition: all var(--duration-base) var(--ease);
    border: 1px solid var(--gray-100);
}

.problem-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.problem-icon-wrapper {
    margin-bottom: var(--space-4);
}

.problem-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 92, 232, 0.16), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(99, 92, 232, 0.2);
    box-shadow: 0 12px 24px rgba(56, 23, 147, 0.08);
}

.problem-icon i {
    font-size: 1.7rem;
    color: var(--primary);
}

.problem-card h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--gray-900);
}

.problem-card p {
    color: var(--gray-500);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.feature-card {
    padding: var(--space-8);
    background: var(--white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
    transition: all var(--duration-base) var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 92, 232, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card.featured {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.feature-card.featured::before {
    display: none;
}

.feature-card.featured:hover {
    box-shadow: var(--shadow-glow);
}

.feature-card.featured h3,
.feature-card.featured p {
    color: var(--white);
}

.feature-card.featured .feature-list li {
    color: rgba(255, 255, 255, 0.9);
}

.feature-card.featured .feature-list li::before {
    color: rgba(255, 255, 255, 0.7);
}

.feature-icon-wrapper {
    margin-bottom: var(--space-5);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 92, 232, 0.14), rgba(124, 58, 237, 0.06));
    border: 1px solid rgba(99, 92, 232, 0.18);
}

.feature-icon i {
    font-size: 1.4rem;
    color: var(--primary);
}

.feature-card.featured .feature-icon {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.26);
}

.feature-card.featured .feature-icon i {
    color: var(--white);
}

.feature-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-500);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-top: var(--space-4);
    border-top: 1px solid var(--gray-100);
    padding-top: var(--space-4);
}

.feature-card.featured .feature-list {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.feature-list li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* ============================================
   PLATFORM PREVIEW SECTION
   ============================================ */
.platform-section {
    background: var(--gray-900);
    color: var(--white);
    overflow: hidden;
}

.platform-section .section-tag {
    background: rgba(99, 92, 232, 0.2);
    color: var(--accent-light);
}

.platform-section .section-title {
    color: var(--white);
}

.platform-section .section-subtitle {
    color: var(--gray-400);
}

.platform-section .section-header {
    margin-bottom: var(--space-12);
}

.platform-showcase {
    max-width: 1100px;
    margin: 0 auto;
}

.platform-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-7);
    flex-wrap: wrap;
}

.platform-tab {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    color: var(--gray-400);
    cursor: pointer;
    font-family: var(--font);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--duration-base) var(--ease);
}

.platform-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.15);
}

.platform-tab.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(99, 92, 232, 0.4);
}

.tab-icon {
    width: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tab-icon i {
    font-size: 0.95rem;
}

.tab-label {
    font-weight: 600;
}

.platform-display {
    position: relative;
}

.screenshot-frame {
    background: var(--gray-800);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl), var(--shadow-glow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: perspective(1200px) rotateX(2deg);
    transition: transform var(--duration-slow) var(--ease);
}

.screenshot-frame:hover {
    transform: perspective(1200px) rotateX(0deg);
}

.frame-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-5);
    background: var(--gray-800);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.frame-dots {
    display: flex;
    gap: 6px;
}

.frame-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-600);
}

.frame-dots span:first-child {
    background: #ff5f57;
}

.frame-dots span:nth-child(2) {
    background: #febc2e;
}

.frame-dots span:nth-child(3) {
    background: #28c840;
}

.frame-title {
    font-size: var(--text-sm);
    color: var(--gray-400);
    font-weight: 500;
}

.screenshot-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1904 / 906;
    background: var(--gray-900);
    transition: background var(--duration-slow) var(--ease);
}

/* Mobile portrait mode: show full image centred on a dark radial bg */
.screenshot-container.mobile-mode {
    background: radial-gradient(ellipse 60% 80% at 50% 50%, #1a1145 0%, var(--gray-950) 100%);
}

.screenshot-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    opacity: 0;
    transform: scale(1.02);
    transition: all var(--duration-slow) var(--ease);
}

.screenshot-img.active {
    opacity: 1;
    transform: scale(1);
}

/* Portrait image sits centred, auto-width, full height */
.screenshot-container.mobile-mode .screenshot-img[data-tab="mobile"].active {
    width: auto;
    height: 100%;
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: center;
}

.gallery-controls {
    margin-top: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    width: 100%;
}

.gallery-dots {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease);
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.55);
}

.gallery-dot.active {
    width: 28px;
    background: var(--accent-light);
    border-color: rgba(167, 139, 250, 0.75);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.5);
}

.gallery-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease);
}

.gallery-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.36);
}

.gallery-toggle i {
    font-size: 0.75rem;
}

.gallery-toggle.paused {
    background: rgba(167, 139, 250, 0.18);
    border-color: rgba(167, 139, 250, 0.48);
    color: #efe9ff;
}

.screenshot-descriptions {
    margin-top: var(--space-6);
    text-align: center;
}

.screenshot-desc {
    display: none;
    animation: fadeIn 0.4s var(--ease);
}

.screenshot-desc.active {
    display: block;
}

.screenshot-desc h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--white);
}

.screenshot-desc p {
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    text-align: center;
    padding: var(--space-10);
    background: var(--gray-50);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
    transition: all var(--duration-base) var(--ease);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.team-image-wrapper {
    margin-bottom: var(--space-5);
}

.team-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
    transition: transform var(--duration-base) var(--ease);
}

.team-image.team-image-lower-1 {
    object-position: center 18% !important;
}

.team-image.team-image-lower-2 {
    object-position: center 24% !important;
}

.team-card:hover .team-image {
    transform: scale(1.05);
}

.team-info h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.team-role {
    color: var(--primary-light);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-4);
}

.team-bio {
    color: var(--gray-500);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ============================================
   PROGRESS SECTION
   ============================================ */
.progress-section {
    background: var(--gray-50);
}

.progress-content {
    display: grid;
    gap: var(--space-16);
}

.progress-timeline {
    display: grid;
    gap: var(--space-6);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.progress-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: var(--space-5);
    position: relative;
}

.timeline-marker {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--gray-500);
    position: relative;
    z-index: 1;
}

.timeline-item.completed .timeline-marker {
    background: var(--success);
    color: var(--white);
}

.timeline-item.active .timeline-marker {
    background: var(--primary-light);
    color: var(--white);
}

.timeline-marker.pulse {
    position: relative;
}

.pulse-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.timeline-content {
    padding: var(--space-5) var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    transition: all var(--duration-base) var(--ease);
}

.timeline-item:hover .timeline-content {
    transform: translateX(6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.timeline-content h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--gray-900);
}

.timeline-content p {
    color: var(--gray-500);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* Roadmap */
.roadmap {
    padding: var(--space-10);
    background: var(--white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
}

.roadmap-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-8);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.roadmap-card {
    padding: var(--space-6);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    transition: all var(--duration-base) var(--ease);
}

.roadmap-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.roadmap-period {
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
}

.roadmap-card ul {
    list-style: none;
}

.roadmap-card ul li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.roadmap-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: 600;
}

/* ============================================
   USE CASES SECTION
   ============================================ */
.use-cases-section {
    background: var(--white);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.use-case-card {
    padding: var(--space-8);
    background: var(--gray-50);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
    transition: all var(--duration-base) var(--ease);
}

.use-case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.use-case-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-4);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 92, 232, 0.16), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(99, 92, 232, 0.2);
}

.use-case-icon i {
    font-size: 1.4rem;
    color: var(--primary);
}

.use-case-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}

.use-case-card p {
    color: var(--gray-500);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.use-case-tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(99, 92, 232, 0.08);
    color: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

/* ============================================
   TECH SECTION
   ============================================ */
.tech-section {
    background: var(--gray-50);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-6);
}

.tech-card {
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: all var(--duration-base) var(--ease);
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.tech-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto var(--space-3);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 92, 232, 0.12), rgba(124, 58, 237, 0.04));
    border: 1px solid rgba(99, 92, 232, 0.18);
}

.tech-icon i {
    font-size: 1.2rem;
    color: var(--primary);
}

.tech-card h4 {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.tech-card p {
    color: var(--gray-500);
    font-size: var(--text-xs);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 50% 80% at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.cta-title {
    font-size: clamp(2rem, 5vw, var(--text-5xl));
    font-weight: 800;
    margin-bottom: var(--space-5);
    color: var(--white);
    line-height: 1.15;
}

.cta-subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-10);
    opacity: 0.9;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-secondary-link {
    align-self: center;
    color: rgba(255, 255, 255, 0.86);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 0.7rem 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease),
        transform var(--duration-fast) var(--ease);
}

.cta-secondary-link:hover {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.82);
    transform: translateY(-1px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-950);
    color: var(--white);
    padding: var(--space-16) 0 var(--space-6);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-16);
    margin-bottom: var(--space-12);
}

.footer-logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: var(--space-4);
}

.footer-tagline {
    color: var(--gray-500);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.footer-column h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
    color: var(--gray-300);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: var(--space-2);
}

.footer-column a {
    color: var(--gray-500);
    font-size: var(--text-sm);
    transition: color var(--duration-fast) var(--ease);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: var(--space-6);
    text-align: center;
    color: var(--gray-600);
    font-size: var(--text-sm);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .problems-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-16) 0;
    }

    .features-section,
    .use-cases-section,
    .tech-section {
        padding: var(--space-16) 0;
    }

    .features-section .section-header,
    .use-cases-section .section-header,
    .tech-section .section-header {
        margin-bottom: var(--space-10);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--gray-900);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px var(--space-8) var(--space-8);
        transition: left var(--duration-base) var(--ease);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        font-size: var(--text-xl);
        color: var(--white);
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: var(--space-24) 0 var(--space-16);
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, var(--text-5xl));
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
        padding: var(--space-6);
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .roadmap-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .platform-tabs {
        gap: var(--space-1);
    }

    .platform-tab {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }

    .tab-label {
        display: none;
    }

    .tab-icon {
        font-size: 1.3rem;
    }

    .gallery-controls {
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .screenshot-frame {
        transform: none;
    }

    .screenshot-frame:hover {
        transform: none;
    }

    .screenshot-container {
        aspect-ratio: 16 / 9;
        max-height: none;
    }
}

@media (max-width: 480px) {
    .problems-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: var(--space-3);
    }
}
