/* ===== CSS Custom Properties ===== */
:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8B83FF;
    --secondary: #FF6584;
    --accent: #00D4AA;
    --dark: #0F0E17;
    --dark-2: #1A1932;
    --dark-3: #252442;
    --gray-100: #F7F7FC;
    --gray-200: #EBEBF5;
    --gray-300: #D1D1E0;
    --gray-400: #A0A0B8;
    --gray-500: #6E6E85;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-text: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    --shadow-sm: 0 2px 8px rgba(15, 14, 23, 0.08);
    --shadow-md: 0 8px 30px rgba(15, 14, 23, 0.12);
    --shadow-lg: 0 20px 60px rgba(15, 14, 23, 0.15);
    --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    z-index: 1200;
    width: 0%;
    transition: width 0.05s linear;
    pointer-events: none;
}

/* ===== Custom Cursor ===== */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.15s ease;
    mix-blend-mode: difference;
    opacity: 0;
}

.cursor-dot.active {
    opacity: 1;
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(108, 99, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    opacity: 0;
}

.cursor-ring.active {
    opacity: 1;
}

.cursor-ring.hover {
    width: 56px;
    height: 56px;
    border-color: var(--secondary);
}

@media (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ===== Demo Banner ===== */
.demo-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background: var(--gradient);
    padding: 10px 0;
    font-size: 0.875rem;
    color: var(--white);
    text-align: center;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.demo-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.demo-banner a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 700;
}

.demo-banner a:hover {
    opacity: 0.85;
}

.demo-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 4px 8px;
}

.demo-close:hover {
    opacity: 1;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font);
    background: var(--dark);
    color: var(--gray-300);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.page-enter {
    opacity: 1;
}

body.page-exit {
    opacity: 0;
    transition: opacity 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

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

.section {
    padding: 100px 0;
    overflow: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    color: var(--white);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: textShimmer 4s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

/* ===== Animated Underline for Links ===== */
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:not(.btn) {
    position: relative;
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
    width: 60%;
    left: 20%;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.6);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Button ripple effect */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.1);
    transform: translateY(-3px) scale(1.02);
}

.btn-outline:active {
    transform: translateY(0) scale(0.98);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-nav {
    padding: 10px 24px;
    font-size: 0.875rem;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}

.navbar.scrolled {
    background: rgba(15, 14, 23, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--primary);
    font-size: 1.2rem;
    display: inline-block;
    animation: gentleFloat 4s ease-in-out infinite;
}

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

.nav-links a {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--gray-400);
    transition: color 0.3s ease, background 0.3s ease;
    will-change: color, background;
}

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

.nav-links a.active {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

/* Particle canvas */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

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

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    opacity: 0.1;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    opacity: 0.08;
    animation: float 15s ease-in-out infinite;
}

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

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

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    animation: tagPulse 3s ease-in-out infinite;
}

@keyframes tagPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(108, 99, 255, 0); }
}

.hero-content > p {
    font-size: 1.15rem;
    color: var(--gray-400);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
    position: relative;
}

.stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(108, 99, 255, 0.3), transparent);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Hero Card Mock */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    width: 100%;
    max-width: 480px;
    background: var(--dark-2);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: cardFloat 6s ease-in-out infinite;
}

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

.hero-card-header {
    padding: 16px 20px;
    background: var(--dark-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dots {
    display: flex;
    gap: 8px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dots span:nth-child(1) { background: #FF5F57; }
.dots span:nth-child(2) { background: #FEBC2E; }
.dots span:nth-child(3) { background: #28C840; }

.hero-card-body {
    padding: 30px;
}

.mock-line {
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    margin-bottom: 12px;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.mock-line.w-60 { width: 60%; }
.mock-line.w-80 { width: 80%; }
.mock-line.w-40 { width: 40%; }

.mock-block {
    height: 100px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(255, 101, 132, 0.2));
    border-radius: var(--radius-sm);
    margin: 20px 0;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mock-card-sm {
    height: 60px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 1s ease 1.5s both;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--gray-500);
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.wheel {
    width: 3px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    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); }
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(108, 99, 255, 0.15);
}

.section-header p {
    color: var(--gray-400);
    font-size: 1.1rem;
    margin-top: 16px;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    perspective: 1000px;
}

.service-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(108, 99, 255, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(108, 99, 255, 0.2);
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.15), 0 0 40px rgba(108, 99, 255, 0.08);
}

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

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary-light);
    margin-bottom: 20px;
    transition: transform 0.4s ease, background 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(108, 99, 255, 0.2);
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.925rem;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.service-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
}

.service-link:hover {
    color: var(--white);
}

/* ===== Features Section ===== */
.features-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.features-content .section-tag {
    display: inline-block;
}

.features-content h2 {
    margin-bottom: 20px;
}

.features-content > p {
    color: var(--gray-400);
    font-size: 1.05rem;
    margin-bottom: 36px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-check {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}

.feature-item h4 {
    color: var(--white);
    margin-bottom: 4px;
    font-size: 1rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--gray-400);
}

/* Feature Showcase */
.feature-showcase {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.showcase-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    transition: var(--transition);
}

.showcase-card:hover {
    transform: translateX(8px);
    border-color: rgba(108, 99, 255, 0.2);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.1);
}

.sc-icon {
    font-size: 1.5rem;
}

.sc-label {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}

.sc-bar {
    grid-column: 1 / -1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.sc-fill {
    height: 100%;
    width: var(--fill);
    background: var(--gradient);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sc-fill.animate {
    transform: scaleX(1);
}

.sc-value {
    font-weight: 700;
    color: var(--primary-light);
    font-size: 0.95rem;
}

/* ===== Testimonials ===== */
.testimonials {
    background: var(--dark-2);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.testimonial-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(108, 99, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stars {
    color: #FFB800;
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card > p {
    font-size: 0.95rem;
    color: var(--gray-300);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--white);
}

.testimonial-author strong {
    display: block;
    color: var(--white);
    font-size: 0.95rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ===== CTA Section ===== */
.cta-card {
    background: var(--dark-2);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(108, 99, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: ctaPulse 6s ease-in-out infinite;
}

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

/* Animated border glow */
.cta-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-xl);
    background: conic-gradient(from var(--border-angle, 0deg), transparent, var(--primary), var(--secondary), var(--accent), transparent);
    z-index: -1;
    opacity: 0.3;
    animation: rotateBorder 4s linear infinite;
}

@keyframes rotateBorder {
    to { --border-angle: 360deg; }
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.cta-card h2 {
    margin-bottom: 16px;
    position: relative;
}

.cta-card p {
    color: var(--gray-400);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 36px;
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ===== Footer ===== */
.footer {
    padding: 80px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand p {
    color: var(--gray-500);
    margin-top: 16px;
    font-size: 0.925rem;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--gray-400);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px) rotate(8deg);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li,
.footer-links a {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== Page Hero (About & Contact) ===== */
.page-hero {
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-hero-content {
    max-width: 650px;
    margin: 0 auto;
}

.page-hero-content h1 {
    margin-bottom: 20px;
}

.page-hero-content p {
    color: var(--gray-400);
    font-size: 1.15rem;
}

/* ===== About Page - Story ===== */
.story-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-content .section-tag { display: inline-block; }

.story-content h2 { margin-bottom: 24px; }

.story-content p {
    color: var(--gray-400);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.story-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.story-block {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.story-block:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: rgba(108, 99, 255, 0.2);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.1);
}

.year-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--gradient);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.story-block p {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* ===== Values Section ===== */
.values {
    background: var(--dark-2);
}

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

.value-card {
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 99, 255, 0.2);
    box-shadow: 0 15px 50px rgba(108, 99, 255, 0.1);
}

.value-card:hover .value-number {
    transform: scale(1.1);
}

.value-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
    transition: transform 0.4s ease;
    display: inline-block;
}

.value-card h3 { margin-bottom: 12px; }

.value-card p {
    font-size: 0.925rem;
    color: var(--gray-400);
}

/* ===== Team Section ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.team-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(108, 99, 255, 0.15);
}

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

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    margin: 0 auto;
}

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

.team-card p {
    font-size: 0.9rem;
    color: var(--gray-400);
}

/* ===== Contact Page ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.contact-card:hover {
    border-color: rgba(108, 99, 255, 0.2);
    transform: translateX(6px);
    box-shadow: -4px 0 20px rgba(108, 99, 255, 0.1);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    background: rgba(108, 99, 255, 0.2);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--primary-light);
    margin-bottom: 16px;
    transition: transform 0.4s ease, background 0.4s ease;
}

.contact-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-card p {
    color: var(--gray-400);
    font-size: 0.925rem;
}

.contact-card a {
    color: var(--primary-light);
}

.contact-card a:hover {
    color: var(--white);
}

.text-muted {
    color: var(--gray-500) !important;
    font-size: 0.85rem !important;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.contact-form h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--gray-400);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-300);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15), 0 0 20px rgba(108, 99, 255, 0.08);
    transform: translateY(-1px);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A0A0B8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--secondary);
}

/* Form Success */
.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.form-success h3 {
    margin-bottom: 8px;
}

.form-success p {
    color: var(--gray-400);
}

/* Form Error */
.form-error {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-error.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.error-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 101, 132, 0.15);
    color: var(--secondary);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.form-error h3 {
    margin-bottom: 8px;
}

.form-error p {
    color: var(--gray-400);
    margin-bottom: 20px;
}

/* Loading spinner */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-placeholder {
    height: 300px;
    background: var(--dark-2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay {
    text-align: center;
    position: relative;
    z-index: 2;
}

.map-pin {
    animation: bounce 2s ease-in-out infinite;
    margin-bottom: 8px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.map-overlay p {
    color: var(--gray-400);
    font-size: 0.95rem;
}

.map-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 1px;
    opacity: 0.3;
}

.map-cell {
    border: 1px solid rgba(108, 99, 255, 0.08);
}

/* ===== Scroll Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Slide from left animation */
.slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right animation */
.slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up animation */
.scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Blur in animation */
.blur-in {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

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

/* Staggered children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Floating animation for decorative elements */
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(1deg); }
    66% { transform: translateY(4px) rotate(-1deg); }
}

/* Glow pulse for highlighted elements */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(108, 99, 255, 0.1); }
    50% { box-shadow: 0 0 40px rgba(108, 99, 255, 0.25); }
}

/* Noise/grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

/* Smooth focus styles */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content > p { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .features-layout { grid-template-columns: 1fr; gap: 48px; }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .story-layout { grid-template-columns: 1fr; gap: 48px; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .scroll-indicator { display: none; }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
    
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark-2);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 8px;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links.open { right: 0; }

    .nav-links a {
        display: block;
        padding: 12px 18px;
    }

    .services-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .story-image-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 32px 24px; }
    .cta-card { padding: 48px 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .page-hero { padding: 130px 0 60px; }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat:not(:last-child)::after {
        display: none;
    }
}
