@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
    /* Premium Color Palette */
    --brand-primary: #3b82f6;
    /* Vibrant Blue */
    --brand-secondary: #8b5cf6;
    /* Deep Purple */
    --brand-accent: #10b981;
    /* Success Green */

    --surface-dark: #0f172a;
    /* Slate 900 */
    --surface-darker: #020617;
    /* Slate 950 */
    --surface-light: #f8fafc;
    /* Slate 50 */
    --surface-card: #ffffff;

    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-light: #f1f5f9;
    /* Slate 100 */

    /* Complex Gradients */
    --grad-hero: radial-gradient(circle at top right, #1e1b4b 0%, #020617 100%);
    --grad-text: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --grad-purple: linear-gradient(135deg, #c084fc 0%, #7e22ce 100%);
    --grad-glow: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);

    /* Shadows & Glass */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);

    /* Typography */
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Outfit', -apple-system, sans-serif;

    /* Layout */
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--surface-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--surface-dark);
}

h3 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: 1rem;
}

h4 {
    font-family: var(--font-body);
    color: var(--brand-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.lead {
    font-size: 1.35rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 800px;
}

.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Layout Core */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.section-sm {
    padding: 4rem 0;
}

.section-dark {
    background: var(--surface-darker);
    color: var(--text-light);
}

.section-dark h2 {
    color: white;
}

.section-dark p {
    color: #cbd5e1;
}

/* Interactive Elements: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 2.5rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--surface-darker);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: var(--grad-glow);
    background-size: 50% 100%;
    z-index: -1;
    transition: var(--transition-smooth);
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover::before {
    opacity: 1;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

.btn-outline {
    background: transparent;
    color: var(--surface-darker);
    border: 2px solid rgba(15, 23, 42, 0.1);
}

.btn-outline:hover {
    border-color: var(--surface-darker);
    transform: translateY(-3px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--surface-darker);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -1px;
}

.logo i {
    color: var(--brand-primary);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--surface-darker);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--brand-primary);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Contextual Header colors depending on page */
.page-dark-header header:not(.scrolled) .logo,
.page-dark-header header:not(.scrolled) .nav-links a {
    color: white;
}

.page-dark-header header:not(.scrolled) .nav-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Next-Gen Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    position: relative;
    overflow: hidden;
    background: var(--surface-light);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape-1 {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.shape-2 {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-text h1 {
    margin-bottom: 2rem;
    color: var(--surface-darker);
}

.hero-mockup {
    position: relative;
    perspective: 2000px;
}

.hero-mockup .main-screen {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transform: rotateY(-15deg) rotateX(5deg) scale(0.95);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: white;
}

.hero-mockup:hover .main-screen {
    transform: rotateY(-5deg) rotateX(2deg) scale(1);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.3);
}

.hero-mockup img {
    width: 100%;
    display: block;
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 20;
    animation: float 6s ease-in-out infinite;
}

.badge-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 15%;
    right: -5%;
    animation-delay: 2s;
}

.floating-badge i {
    font-size: 1.5rem;
    color: var(--brand-accent);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* General Page Headers */
.page-header {
    background: var(--surface-darker);
    padding: 12rem 0 8rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    opacity: 0.5;
}

.page-header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-header h1 {
    color: white;
    margin-bottom: 1.5rem;
}

/* Feature Modules Layout */
.module-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 10rem;
}

.module-row:nth-child(even) .module-text {
    order: 2;
}

.module-row:nth-child(even) .module-gallery {
    order: 1;
}

.module-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

/* Value Propositions / Checklists */
.value-list {
    list-style: none;
    margin-top: 3rem;
    display: grid;
    gap: 2rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.value-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.section-dark .value-icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--brand-light);
}

.value-content h5 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--surface-darker);
}

.section-dark .value-content h5 {
    color: white;
}

.value-content p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Image Showcases (The Wow factor) */
.showcase-grid {
    display: grid;
    gap: 2rem;
}

.showcase-grid.layout-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
}

.showcase-grid.layout-bento .span-full {
    grid-column: 1 / -1;
}

.showcase-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-premium);
    background: var(--surface-darker);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    cursor: crosshair;
}

.showcase-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.showcase-card img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
    transition: opacity 0.3s, transform 0.5s ease;
}

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

.showcase-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95), transparent);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.showcase-card:hover .showcase-caption {
    transform: translateY(0);
    opacity: 1;
}

.showcase-caption strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
}

/* Premium KPI/Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.stat-num {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 900;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
}

/* App Showcase Specifics (Phones) */
.app-showcase-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem 2rem;
    margin-top: 6rem;
}

.phone-mockup {
    border-radius: 40px;
    background: #000;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), inset 0 0 0 2px #333;
    position: relative;
    transition: var(--transition-smooth);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 25px;
    background: #000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 20;
}

.phone-mockup:hover {
    transform: translateY(-20px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3), inset 0 0 0 2px #555;
}

.phone-screen {
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background: #fff;
    mask-image: radial-gradient(white, black);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.phone-screen img {
    width: 100%;
    display: block;
}

.phone-label {
    text-align: center;
    margin-top: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--surface-darker);
}

/* AI Highlight Box - Premium Glass */
.ai-glass-box {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.9), rgba(15, 23, 42, 0.95));
    border-radius: var(--radius-xl);
    padding: 6rem 4rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 8rem 0;
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-glass-box::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, rgba(168, 85, 247, 0.2), transparent);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.ai-content {
    position: relative;
    z-index: 10;
}

.ai-content i {
    font-size: 4rem;
    color: #c084fc;
    margin-bottom: 2rem;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(192, 132, 252, 0.5));
}

/* CTA Section */
.cta-premium {
    background: var(--surface-darker);
    color: white;
    text-align: center;
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.cta-premium h2 {
    color: white;
    font-size: 4rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: #020617;
    padding: 6rem 0 3rem;
    color: #64748b;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations Triggered via Class (optional JS observer later) */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

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

/* Responsive */
@media (max-width: 1200px) {
    .module-row {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .module-row:nth-child(even) .module-text,
    .module-row:nth-child(even) .module-gallery {
        order: unset;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text .lead {
        margin: 0 auto 2.5rem;
    }

    .hero-mockup .main-screen {
        transform: none;
    }

    .floating-badge {
        display: none;
    }

    /* Hide for cleaner mobile */
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Add burger menu later if needed */
    .hero {
        padding-top: 10rem;
    }

    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2.25rem;
    }

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

    .ai-glass-box {
        padding: 4rem 2rem;
    }

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

/* Lightbox Modal (Click to Zoom) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--brand-primary);
    transform: scale(1.1);
}

img.zoomable {
    cursor: zoom-in;
}