/* ============================================
   ATTUNED TECH - Modern Landing Page Styles
   Premium SaaS Design with Unified Brand System
   ============================================ */

/* CSS Variables — Unified Blue System */
:root {
    /* Brand blues — single cohesive family */
    --primary: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --primary-deeper: #172554;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    
    /* Gradient tokens */
    --gradient-brand: linear-gradient(135deg, #1d4ed8 0%, #06b6d4 100%);
    --gradient-brand-subtle: linear-gradient(135deg, rgba(29,78,216,0.08) 0%, rgba(6,182,212,0.08) 100%);
    --gradient-brand-vivid: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    /* Surfaces */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-dark-card: rgba(255, 255, 255, 0.04);
    
    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-white: #ffffff;
    --text-white-muted: #cbd5e1;
    
    /* Borders */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-brand: rgba(29, 78, 216, 0.2);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.08), 0 4px 10px -4px rgb(0 0 0 / 0.04);
    --shadow-xl: 0 20px 40px -8px rgb(0 0 0 / 0.1), 0 8px 16px -6px rgb(0 0 0 / 0.05);
    --shadow-glow: 0 0 50px -12px rgba(29, 78, 216, 0.25);
    --shadow-brand: 0 4px 20px -4px rgba(29, 78, 216, 0.3);
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: all 0.3s var(--ease-out);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s var(--ease-out);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ============================================
   BUTTONS — Gradient-powered
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--text-white);
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -4px rgba(29, 78, 216, 0.4);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border-brand);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: var(--gradient-brand-subtle);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

/* ============================================
   LOGO ANIMATION - Navbar only
   ============================================ */
.navbar .logo-icon .logo-part-a {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: logo-draw-a 1s ease-out forwards;
    animation-delay: 0.2s;
}

.navbar .logo-icon .logo-part-t {
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: logo-draw-t 1s ease-out forwards;
    animation-delay: 0.8s;
}

.navbar .logo-icon .logo-part-circle {
    stroke-dasharray: 630;
    stroke-dashoffset: 630;
    animation: logo-draw-circle 1s ease-out forwards;
    animation-delay: 1.2s;
}

@keyframes logo-draw-a {
    to { stroke-dashoffset: 0; }
}

@keyframes logo-draw-t {
    to { stroke-dashoffset: 0; }
}

@keyframes logo-draw-circle {
    to { stroke-dashoffset: 0; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.06), 0 0 0 1px rgb(0 0 0 / 0.02);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 52px;
    height: 52px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover .logo-icon .logo-part-circle {
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.4));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 22px;
    font-size: 14px;
    border-radius: var(--radius-full);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 1px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(29, 78, 216, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 78, 216, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* Aurora Canvas - handled via JavaScript */
.aurora-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 620px;
    position: relative;
    z-index: 1;
}

/* Hero entrance animations */
.hero-badge,
.hero-title,
.hero-subtitle,
.hero-ctas,
.hero-stats {
    opacity: 0;
    transform: translateY(30px);
}

.hero-loaded .hero-badge {
    animation: heroFadeIn 0.7s var(--ease-out) 0.1s forwards;
}
.hero-loaded .hero-title {
    animation: heroFadeIn 0.7s var(--ease-out) 0.2s forwards;
}
.hero-loaded .hero-subtitle {
    animation: heroFadeIn 0.7s var(--ease-out) 0.35s forwards;
}
.hero-loaded .hero-ctas {
    animation: heroFadeIn 0.7s var(--ease-out) 0.5s forwards;
}
.hero-loaded .hero-stats {
    animation: heroFadeIn 0.7s var(--ease-out) 0.65s forwards;
}
.hero-loaded .hero-visual {
    animation: heroFadeIn 0.8s var(--ease-out) 0.4s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--gradient-brand-subtle);
    border: 1px solid var(--border-brand);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: 58px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero-title .highlight {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 6px;
    font-weight: 500;
}

/* Code Window Visual */
.hero-visual {
    position: relative;
    z-index: 1;
    display: block;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(30px);
}

.code-window {
    background: var(--bg-dark);
    border-radius: var(--radius-xl);
    padding: 28px;
    width: 420px;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient shine on code window */
.code-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-dots {
    display: flex;
    gap: 7px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }

.code-title {
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 500;
}

.code-content {
    font-family: 'SF Mono', 'Monaco', 'Consolas', 'Liberation Mono', monospace;
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-white);
}

.code-keyword { color: #c792ea; }
.code-var { color: #82aaff; }
.code-property { color: #ffcb6b; }
.code-string { color: #c3e88d; }
.code-param { color: #f78c6c; }

/* ============================================
   SECTION COMMON
   ============================================ */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 72px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--gradient-brand-subtle);
    border: 1px solid var(--border-brand);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.section-title {
    font-size: 42px;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.nda-notice {
    font-size: 13px;
    color: var(--text-tertiary);
    font-style: italic;
    margin-top: 20px;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: inline-block;
    border: 1px solid var(--border-light);
}

/* Section reveal animations */
.section-header,
.service-card,
.project-card,
.why-card,
.category-header {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.section-header.revealed,
.service-card.revealed,
.project-card.revealed,
.why-card.revealed,
.category-header.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for service cards */
.service-card.revealed:nth-child(1) { transition-delay: 0.05s; }
.service-card.revealed:nth-child(2) { transition-delay: 0.1s; }
.service-card.revealed:nth-child(3) { transition-delay: 0.15s; }
.service-card.revealed:nth-child(4) { transition-delay: 0.2s; }
.service-card.revealed:nth-child(5) { transition-delay: 0.25s; }
.service-card.revealed:nth-child(6) { transition-delay: 0.3s; }

/* Staggered delays for why cards */
.why-card.revealed:nth-child(1) { transition-delay: 0.05s; }
.why-card.revealed:nth-child(2) { transition-delay: 0.1s; }
.why-card.revealed:nth-child(3) { transition-delay: 0.15s; }
.why-card.revealed:nth-child(4) { transition-delay: 0.2s; }

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-primary);
    padding: 36px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Gradient border on hover via pseudo-element */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: var(--gradient-brand);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-brand-subtle);
    border: 1px solid var(--border-brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-brand);
    border-color: transparent;
}

.service-card:hover .service-icon svg {
    stroke: white;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
    transition: var(--transition);
}

.service-card h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tags li {
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--border-light);
}

/* ============================================
   WORK/PROJECTS SECTION
   ============================================ */
.work {
    padding: 120px 0;
    background: var(--bg-primary);
}

.project-category {
    margin-bottom: 64px;
}

.project-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 26px;
    height: 26px;
}

/* Unified brand tints for category icons */
.category-icon.federal {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: white;
}

.category-icon.nonprofit {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
}

.category-icon.private {
    background: linear-gradient(135deg, #1e3a8a 0%, #6366f1 100%);
    color: white;
}

.category-header h3 {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 700;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 44px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--border-brand);
    box-shadow: var(--shadow-lg);
}

/* Gap between project cards in same category */
.project-card + .project-card {
    margin-top: 32px;
}

.project-type {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gradient-brand-subtle);
    border: 1px solid var(--border-brand);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

.project-content h4 {
    font-size: 26px;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.project-content > p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-item {
    padding: 6px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.tech-item:hover {
    border-color: var(--border-brand);
    color: var(--primary);
}

/* Project Visuals */
.project-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Data Flow Visual */
.visual-block {
    width: 100%;
    padding: 24px;
}

.data-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.flow-node {
    padding: 8px 16px;
    background: var(--gradient-brand);
    color: white;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-brand);
}

.flow-arrow {
    color: var(--primary-light);
    font-size: 18px;
    font-weight: bold;
}

.flow-line {
    height: 2px;
    background: var(--gradient-brand);
    margin-bottom: 20px;
    border-radius: 1px;
    opacity: 0.5;
}

.data-processing {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.process-box {
    padding: 12px 20px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border-brand);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.flow-result {
    text-align: center;
    padding: 14px;
    background: var(--gradient-brand);
    color: white;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-brand);
}

/* Portal Diagram */
.portal-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.portal-core {
    padding: 20px 40px;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 20px -4px rgba(8, 145, 178, 0.4);
}

.portal-connections {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.conn-item {
    padding: 10px 20px;
    background: var(--bg-primary);
    border: 1.5px solid #06b6d4;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: #0891b2;
    transition: var(--transition);
}

.conn-item:hover {
    background: rgba(6, 182, 212, 0.08);
}

/* Mobile Showcase */
.mobile-showcase {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-end;
}

.phone-mockup {
    width: 110px;
    height: 220px;
    background: var(--bg-dark);
    border-radius: 20px;
    padding: 8px;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.phone-mockup.ios {
    border: 3px solid #1e293b;
}

.phone-mockup.android {
    border: 3px solid #334155;
    transform: translateY(-10px);
}

.phone-screen {
    background: var(--bg-tertiary);
    border-radius: 14px;
    height: 100%;
    overflow: hidden;
}

.app-header {
    height: 28px;
    background: var(--gradient-brand);
    border-radius: 6px 6px 0 0;
}

.app-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-content::before,
.app-content::after {
    content: '';
    height: 8px;
    background: var(--border);
    border-radius: var(--radius-full);
}

.app-content::before {
    width: 70%;
}

/* Dashboard Visual */
.dashboard-visual {
    width: 100%;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
}

.dashboard-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 1.5s infinite;
}

.status-dot.live {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.dashboard-grid {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: var(--radius-md);
    padding: 14px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 5px;
}

.chart-line {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    opacity: 0.7;
}

.chart-line:nth-child(1) { width: 70%; height: 16px; }
.chart-line:nth-child(2) { width: 45%; opacity: 0.4; background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.chart-line:nth-child(3) { width: 85%; opacity: 0.3; }

.data-ticker {
    display: flex;
    gap: 8px;
}

.ticker-item {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.ticker-item.up {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.ticker-item.down {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.metric-cards {
    display: flex;
    gap: 8px;
}

.metric-card {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-align: center;
}

/* ============================================
   WHY US SECTION
   ============================================ */
.why-us {
    padding: 120px 0;
    background: var(--gradient-dark);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.12) 0%, transparent 60%);
    border-radius: 50%;
}

.why-us::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
    border-radius: 50%;
}

.why-us .section-header {
    position: relative;
    z-index: 1;
}

.why-us .section-tag {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--accent-light);
}

.why-us .section-title {
    color: var(--text-white);
}

.why-us .section-subtitle {
    color: var(--text-white-muted);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.why-card {
    background: var(--bg-dark-card);
    padding: 36px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Subtle top gradient accent line */
.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.why-card:hover::before {
    opacity: 1;
}

.why-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
    margin-bottom: 20px;
    line-height: 1;
}

.why-card h3 {
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 15px;
    color: var(--text-white-muted);
    line-height: 1.7;
}

/* ============================================
   CTA / CONTACT SECTION
   ============================================ */
.cta {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(29, 78, 216, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 78, 216, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 40px;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-content > p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.7;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.contact-link:hover {
    border-color: var(--border-brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-link svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-tertiary);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    align-self: center;
    min-width: 220px;
}

/* ============================================
   FOOTER — Dark theme, flows from Why Us
   ============================================ */
.footer {
    padding: 64px 0 32px;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand .footer-logo .logo-icon {
    width: 44px;
    height: 44px;
}

.footer-brand .footer-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #ffffff;
    background-clip: unset;
    color: #ffffff;
}

.footer-brand p {
    font-size: 15px;
    color: var(--text-white-muted);
    max-width: 320px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-column h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    font-size: 14px;
    color: var(--text-white-muted);
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--text-white);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    color: white;
    border-radius: var(--radius-md);
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    animation: slideInUp 0.4s var(--ease-out);
}

.notification-success {
    background: linear-gradient(135deg, #059669, #10b981);
}

.notification-error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 0 24px;
        gap: 0;
        box-shadow: 0 10px 40px -8px rgb(0 0 0 / 0.15);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s var(--ease-out);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 16px;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transition: none;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .hero-title {
        font-size: 40px;
        letter-spacing: -1px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 16px 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .project-card {
        padding: 24px;
        overflow-x: hidden;
    }
    
    .project-visual {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .visual-block {
        min-width: 280px;
    }
    
    .data-flow {
        flex-wrap: wrap;
        min-width: 0;
    }
    
    .data-processing {
        flex-wrap: wrap;
    }
    
    .contact-options {
        flex-direction: column;
        align-items: center;
    }
}
