/**
 * Cosmic Accounting - Cosmic Dark Theme
 * A bold space-inspired design with deep darks, glowing accents, and stellar animations
 */

/* =====================================================
   FONTS
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
    /* Core Colors - Deep Space Palette */
    --color-void: #050508;
    --color-deep-space: #0a0a0f;
    --color-nebula-dark: #12121a;
    --color-nebula-mid: #1a1a24;
    --color-nebula-light: #242430;
    --color-stardust: #3a3a4a;

    /* Text Colors */
    --color-text-primary: #f0f0f5;
    --color-text-secondary: #a0a0b0;
    --color-text-muted: #6a6a7a;

    /* Accent Colors - Cosmic Glow */
    --color-accent-primary: #7c3aed;
    --color-accent-secondary: #06b6d4;
    --color-accent-tertiary: #ec4899;
    --color-accent-gold: #f59e0b;

    /* Gradients */
    --gradient-cosmic: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-secondary) 100%);
    --gradient-aurora: linear-gradient(135deg, var(--color-accent-tertiary) 0%, var(--color-accent-primary) 50%, var(--color-accent-secondary) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    --gradient-radial-glow: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15) 0%, transparent 70%);

    /* Typography */
    --font-display: 'Sora', sans-serif;
    --font-mono: 'Space Mono', monospace;

    /* Font Sizes - Fluid */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    --text-4xl: clamp(2.5rem, 1.75rem + 3.75vw, 4rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 900px;
    --header-height: 80px;

    /* Effects */
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 32px;
    --border-radius-full: 9999px;

    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.3);
    --shadow-glow-sm: 0 0 20px rgba(124, 58, 237, 0.2);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =====================================================
   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-display);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-deep-space);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* Starfield Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 200px 50px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 250px 160px, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 300px 90px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 350px 200px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 400px 140px, rgba(255,255,255,0.3), transparent);
    background-size: 450px 250px;
    animation: starfieldDrift 120s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

@keyframes starfieldDrift {
    from { transform: translateY(0); }
    to { transform: translateY(-250px); }
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-5xl) 0;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: var(--color-nebula-dark);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-4xl);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-secondary);
    background: rgba(6, 182, 212, 0.1);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius-full);
    border: 1px solid rgba(6, 182, 212, 0.3);
    margin-bottom: var(--space-lg);
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-lg);
    color: var(--color-text-primary);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

.btn-primary {
    background: var(--gradient-cosmic);
    color: white;
    box-shadow: var(--shadow-glow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-stardust);
}

.btn-outline:hover {
    border-color: var(--color-accent-primary);
    color: var(--color-accent-primary);
    background: rgba(124, 58, 237, 0.1);
}

.btn-white {
    background: white;
    color: var(--color-deep-space);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255,255,255,0.2);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-base);
}

.btn-full {
    width: 100%;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

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

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    z-index: 1001;
}

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

.logo-accent {
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-secondary);
    position: relative;
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-cosmic);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
}

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

.nav-cta {
    display: none;
}

.nav-toggle {
    display: none;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before,
.hamburger::after {
    content: '';
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero > .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-gold);
    background: rgba(245, 158, 11, 0.1);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-full);
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease forwards;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-accent-gold);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-location {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

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

/* Hero Visual - Cosmic Orb */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.hero-shape {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(6, 182, 212, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, var(--color-nebula-dark) 0%, var(--color-void) 100%);
    position: relative;
    animation: cosmicPulse 8s ease-in-out infinite;
    box-shadow:
        0 0 60px rgba(124, 58, 237, 0.3),
        0 0 120px rgba(6, 182, 212, 0.2),
        inset 0 0 60px rgba(124, 58, 237, 0.2);
}

.hero-shape::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 2px solid rgba(124, 58, 237, 0.2);
    border-radius: 50%;
    animation: orbitRing 20s linear infinite;
}

.hero-shape::after {
    content: '';
    position: absolute;
    inset: -50px;
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 50%;
    animation: orbitRing 30s linear infinite reverse;
}

@keyframes cosmicPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* Floating Stars around Orb */
.hero-visual::before,
.hero-visual::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white, 0 0 20px rgba(255,255,255,0.5);
    animation: twinkle 3s ease-in-out infinite;
}

.hero-visual::before {
    top: 15%;
    right: 20%;
    animation-delay: 0s;
}

.hero-visual::after {
    bottom: 25%;
    left: 15%;
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Stats Card */
.hero-stats {
    position: absolute;
    bottom: 10%;
    right: -10%;
}

.stat-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl) var(--space-2xl);
    text-align: center;
    animation: floatCard 6s ease-in-out infinite;
}

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

.stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-3xl);
    font-weight: 700;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    max-width: 180px;
}

/* =====================================================
   SERVICES OVERVIEW
   ===================================================== */
.services-overview {
    background: var(--color-nebula-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-cosmic);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: var(--shadow-glow);
}

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

.service-card.featured {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-color: rgba(124, 58, 237, 0.3);
}

.service-card.featured::before {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--space-xl);
    color: var(--color-accent-primary);
}

.service-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.service-description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.service-link {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-accent-secondary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: gap var(--transition-fast);
}

.service-link::after {
    content: '\2192';
    transition: transform var(--transition-fast);
}

.service-link:hover {
    gap: var(--space-md);
}

.service-link:hover::after {
    transform: translateX(4px);
}

/* =====================================================
   WHY US SECTION
   ===================================================== */
.why-us-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.why-us-content .section-title {
    text-align: left;
    margin-bottom: var(--space-xl);
}

.features-list {
    margin-top: var(--space-2xl);
}

.feature-item {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--border-radius-md);
    color: var(--color-accent-secondary);
    flex-shrink: 0;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.feature-content strong {
    font-size: var(--text-base);
    font-weight: 600;
}

.feature-content span {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* Credential Card */
.why-us-visual {
    display: flex;
    justify-content: center;
}

.credential-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-xl);
    padding: var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.credential-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(124, 58, 237, 0.1), transparent 30%);
    animation: credentialGlow 10s linear infinite;
}

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

.credential-badge {
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: var(--text-5xl);
    font-weight: 700;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.credential-text {
    position: relative;
    z-index: 1;
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.credential-subtext {
    position: relative;
    z-index: 1;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* =====================================================
   HOW IT WORKS
   ===================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.step-card {
    position: relative;
    padding: var(--space-2xl);
    text-align: center;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 20%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-stardust), transparent);
}

.step-card:last-child::after {
    display: none;
}

.step-number {
    font-family: var(--font-mono);
    font-size: var(--text-4xl);
    font-weight: 700;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
    margin-bottom: var(--space-lg);
}

.step-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.step-description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    background: var(--gradient-cosmic);
    padding: var(--space-5xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-lg);
    color: white;
}

.cta-text {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-2xl);
}

/* =====================================================
   PAGE HERO (Inner Pages)
   ===================================================== */
.page-hero {
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
    text-align: center;
    position: relative;
    background: var(--gradient-radial-glow);
}

.page-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-lg);
}

.page-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   SERVICES DETAIL PAGE
   ===================================================== */
.service-detail {
    padding: var(--space-4xl) 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-4xl);
    align-items: start;
}

.service-detail-grid.reverse {
    direction: rtl;
}

.service-detail-grid.reverse > * {
    direction: ltr;
}

.service-detail-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--space-xl);
    color: var(--color-accent-primary);
}

.service-detail-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-lg);
}

.service-detail-intro {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.service-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
    color: var(--color-accent-secondary);
}

.service-list {
    margin-bottom: var(--space-2xl);
}

.service-list li {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li strong {
    font-size: var(--text-base);
    font-weight: 600;
}

.service-list li span {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.service-cta {
    margin-top: var(--space-2xl);
}

/* Sidebar Cards */
.service-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.sidebar-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
}

.sidebar-card.highlight {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-color: rgba(124, 58, 237, 0.3);
}

.sidebar-card h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
}

.sidebar-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.sidebar-list li {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    padding-left: var(--space-lg);
}

.sidebar-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-accent-secondary);
    border-radius: 50%;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

/* Industries Grid - 3-2 Layout */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.industry-item {
    grid-column: span 2;
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius-md);
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

/* Center the last 2 items on the second row */
.industry-item:nth-child(4) {
    grid-column: 2 / span 2;
}

.industry-item:nth-child(5) {
    grid-column: 4 / span 2;
}

.industry-item:hover {
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-sm);
}

.industry-name {
    font-size: var(--text-sm);
    font-weight: 500;
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-section {
    padding-bottom: var(--space-5xl);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-4xl);
    align-items: start;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius-xl);
    padding: var(--space-3xl);
}

.form-header {
    margin-bottom: var(--space-2xl);
}

.form-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

.form-subtitle {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.form-group .required {
    color: var(--color-accent-tertiary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-md);
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    background-size: 20px;
}

.form-group select option {
    background: var(--color-nebula-dark);
    color: var(--color-text-primary);
}

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

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

.form-disclaimer {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-lg);
    text-align: center;
}

/* Form Success */
.form-success {
    text-align: center;
    padding: var(--space-3xl);
}

.success-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    margin: 0 auto var(--space-xl);
    color: var(--color-accent-secondary);
}

.success-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
}

.success-message {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
}

/* Contact Sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-info-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius-xl);
    padding: var(--space-2xl);
}

.contact-info-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
}

.contact-info-item {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--border-radius-md);
    color: var(--color-accent-primary);
    flex-shrink: 0;
}

.contact-info-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.contact-info-label {
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.contact-info-value {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
}

a.contact-info-value:hover {
    color: var(--color-accent-secondary);
}

.contact-info-note {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* CTA Card (Contact Page) */
.cta-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--border-radius-xl);
    padding: var(--space-2xl);
    text-align: center;
}

.cta-card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.cta-card-text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

/* FAQ Section */
.faq-section {
    background: var(--color-nebula-dark);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.faq-item {
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
}

.faq-question {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
}

.faq-answer {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--color-void);
    padding: var(--space-4xl) 0 var(--space-2xl);
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.footer-tagline {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    max-width: 280px;
}

.footer-location {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer-heading {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
}

.footer-menu li {
    margin-bottom: var(--space-sm);
}

.footer-menu a,
.footer-contact-list a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer-menu a:hover,
.footer-contact-list a:hover {
    color: var(--color-accent-secondary);
}

.footer-contact-list li {
    margin-bottom: var(--space-sm);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.copyright {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer-credit {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer-credit a {
    color: var(--color-accent-secondary);
}

.footer-credit a:hover {
    text-decoration: underline;
}

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

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

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

    .hero-visual {
        min-height: 400px;
    }

    .hero-shape {
        width: 300px;
        height: 300px;
    }

    .hero-stats {
        right: auto;
        bottom: 0;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .why-us-content .section-title {
        text-align: center;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-grid.reverse {
        direction: ltr;
    }

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

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .step-card::after {
        display: none;
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .industries-grid .industry-item {
        grid-column: span 1;
    }

    .industries-grid .industry-item:nth-child(4),
    .industries-grid .industry-item:nth-child(5) {
        grid-column: span 1;
    }

    /* Center the 5th item when it's alone on the last row */
    .industries-grid .industry-item:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: var(--space-4xl) 0;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-deep-space);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-xl);
        transition: right var(--transition-base);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: var(--text-xl);
    }

    .nav-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    }

    .hero-visual {
        min-height: 300px;
    }

    .hero-shape {
        width: 240px;
        height: 240px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-logo {
        justify-content: center;
    }

    .footer-tagline {
        max-width: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .industries-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }

    .industries-grid .industry-item,
    .industries-grid .industry-item:nth-child(4),
    .industries-grid .industry-item:nth-child(5) {
        grid-column: span 1;
        max-width: 100%;
    }

    .contact-form-wrapper {
        padding: var(--space-xl);
    }
}
