/* ============================================
   Mindyards v2 - Modern Premium Design System
   ============================================ */

:root {
    /* Brand Colors */
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #ede9fe;
    --primary-glow: rgba(124, 58, 237, 0.4);

    /* Accent Colors */
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-rose: #f43f5e;

    /* Neutral Palette */
    --bg: #fafafa;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --ink: #0f172a;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    --gradient-hero: linear-gradient(135deg, #faf5ff 0%, #ede9fe 50%, #e0f2fe 100%);
    --gradient-mesh: radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.12) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base Reset */
*, *::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-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-crop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-crop img {
    display: block;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.nav-logo-mark {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.nav-logo-mark img {
    height: 76px;
    object-fit: contain;
}

.nav-brand-text {
    color: var(--primary-dark);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform var(--transition);
}

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

.nav-link.active::after,
.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

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

.bar {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

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

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: var(--gradient-hero);
}

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

.hero-mesh {
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(124, 58, 237, 0.15);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.12);
    bottom: -50px;
    left: -50px;
    animation-delay: -4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    color: var(--primary-dark);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    width: fit-content;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: var(--ink);
}

.gradient-text {
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 480px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.45);
}

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

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
}

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

.btn-full {
    width: 100%;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.trust-avatars {
    display: flex;
}

.trust-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 2px solid var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.75rem;
    margin-left: -8px;
}

.trust-avatar:first-child {
    margin-left: 0;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 420px;
}

.hero-logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 3;
    animation: floatLogo 6s ease-in-out infinite;
}

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

.hero-logo-center img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-card {
    position: absolute;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 220px;
    z-index: 2;
    animation: floatCard 5s ease-in-out infinite;
}

.hero-card.card-1 {
    top: 20px;
    left: 0;
    animation-delay: 0s;
}

.hero-card.card-2 {
    top: 80px;
    right: 0;
    animation-delay: -1.5s;
}

.hero-card.card-3 {
    bottom: 60px;
    left: 20px;
    animation-delay: -3s;
}

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

.hc-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.hc-content h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.125rem;
}

.hc-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}

.arrows span {
    display: block;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    margin: 2px auto;
    animation: scrollArrow 2s ease-in-out infinite;
}

.arrows span:nth-child(2) { animation-delay: 0.2s; }
.arrows span:nth-child(3) { animation-delay: 0.4s; }

@keyframes scrollArrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-4px, -4px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(4px, 4px); }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.35rem 0.875rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   SERVICES SECTION - BENTO GRID
   ============================================ */
.services {
    padding: var(--space-2xl) 0;
    background: var(--bg);
}

.services-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-bento-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.service-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 1;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
}

.bento-tall {
    grid-row: span 1;
}

.bento-wide {
    grid-column: span 2;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
}

.sb-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.08);
    filter: blur(40px);
    pointer-events: none;
    transition: all var(--transition);
}

.sb-glow.blue {
    background: rgba(59, 130, 246, 0.08);
}

.sb-glow.cyan {
    background: rgba(6, 182, 212, 0.08);
}

.sb-glow.green {
    background: rgba(16, 185, 129, 0.08);
}

.service-bento-card:hover .sb-glow {
    transform: scale(1.4);
    opacity: 0.6;
}

.sb-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--border-light);
    line-height: 1;
    user-select: none;
    transition: color var(--transition);
}

.service-bento-card:hover .sb-number {
    color: rgba(124, 58, 237, 0.12);
}

.sb-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.sb-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.sb-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.sb-icon.cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.25);
}

.sb-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.sb-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: var(--ink);
}

.sb-content > p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.sb-features {
    list-style: none;
}

.sb-features li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.35rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.sb-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.sb-dot.blue { background: var(--accent-blue); }
.sb-dot.cyan { background: var(--accent-cyan); }
.sb-dot.green { background: var(--accent-green); }

/* Service Visuals */
.sb-visual {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-orbit {
    position: relative;
    width: 100%;
    height: 100%;
}

.sb-orbit-item {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow);
    animation: orbitFloat 4s ease-in-out infinite;
}

.sb-orbit-item:nth-child(1) {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.sb-orbit-item:nth-child(2) {
    bottom: 15%;
    left: 15%;
    animation-delay: -1.3s;
}

.sb-orbit-item:nth-child(3) {
    bottom: 15%;
    right: 15%;
    animation-delay: -2.6s;
}

@keyframes orbitFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

/* Code preview visual */
.sb-code-preview {
    background: #0f172a;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-top: auto;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.75rem;
    line-height: 1.8;
}

.sb-code-line {
    color: #94a3b8;
}

.sb-code-line .kw { color: #c084fc; }
.sb-code-line .var { color: #60a5fa; }
.sb-code-line .str { color: #4ade80; }
.sb-code-line .cmt { color: #64748b; }

/* Cloud visual */
.sb-cloud-visual {
    position: relative;
    width: 160px;
    height: 120px;
    margin: 0 auto;
    margin-top: auto;
}

.sb-cloud-node {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    box-shadow: var(--shadow);
}

.sb-cloud-node:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.sb-cloud-node:nth-child(2) { bottom: 0; left: 10%; }
.sb-cloud-node:nth-child(3) { bottom: 0; right: 10%; }

.sb-cloud-line {
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    bottom: 20px;
    border: 2px dashed var(--border);
    border-radius: 50% 50% 0 0;
    border-bottom: none;
    opacity: 0.5;
}

/* Shield visual */
.sb-shield-visual {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-shield-visual > i {
    font-size: 2rem;
    color: var(--accent-green);
    position: relative;
    z-index: 2;
}

.sb-shield-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--accent-green);
    opacity: 0.15;
    animation: shieldPulse 3s ease-in-out infinite;
}

.sb-shield-ring:nth-child(1) {
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

.sb-shield-ring:nth-child(2) {
    width: 100px;
    height: 100px;
    animation-delay: -1s;
}

.sb-shield-ring:nth-child(3) {
    width: 140px;
    height: 140px;
    animation-delay: -2s;
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.08); opacity: 0.3; }
}

/* ============================================
   TECHNOLOGIES SECTION
   ============================================ */
.technologies {
    padding: var(--space-2xl) 0;
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.tech-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.tech-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--border);
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.tech-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.tech-header h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ink);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-item {
    background: var(--surface);
    color: var(--text-secondary);
    padding: 0.4rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.tech-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ============================================
   CLIENTS SECTION - SHOWCASE CARDS
   ============================================ */
.clients {
    padding: var(--space-2xl) 0;
    background: var(--bg);
}

.clients-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.client-showcase-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.client-showcase-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
    border-color: var(--border);
}

.client-showcase-left {
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.client-showcase-left::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.client-showcase-left.csl-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.client-showcase-left.csl-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.client-showcase-left.csl-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.client-showcase-logo {
    text-align: center;
    position: relative;
    z-index: 1;
}

.csl-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.375rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.client-showcase-logo h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.csl-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255,255,255,0.15);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.2);
}

.client-showcase-right {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.client-showcase-right h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--ink);
    line-height: 1.4;
}

.client-showcase-right p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.client-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    width: fit-content;
}

.client-link:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

.client-link i {
    font-size: 0.75rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--space-2xl) 0;
    background: var(--surface);
    border-top: 1px solid var(--border-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-tag {
    margin-bottom: 0.875rem;
}

.about-text h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--ink);
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 0.375rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-card {
    background: var(--bg);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    max-width: 340px;
    text-align: center;
}

.about-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.about-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: var(--ink);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.about-dots {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 1.5rem;
}

.about-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
}

.about-dots span:nth-child(1) { background: var(--primary); }
.about-dots span:nth-child(2) { background: var(--accent-cyan); }
.about-dots span:nth-child(3) { background: var(--accent-green); }

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.contact .section-header h2 {
    color: #fff;
}

.contact .section-header p {
    color: rgba(255, 255, 255, 0.65);
}

.contact .section-tag {
    background: rgba(124, 58, 237, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.contact-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all var(--transition);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.contact-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, 0.2);
    color: #c4b5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.contact-detail a,
.contact-detail p {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.contact-detail a:hover {
    color: #c4b5fd;
}

.contact-cta {
    margin-top: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.contact-cta p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(10px);
}

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

.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: #fff;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(124, 58, 237, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9375rem;
    pointer-events: none;
    transition: all var(--transition);
    background: transparent;
    padding: 0 0.25rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid + label {
    top: -0.55rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: #c4b5fd;
    background: #1e1b4b;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    opacity: 1;
}

.form-group select option {
    background: #1e1b4b;
    color: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0b0f19;
    color: #94a3b8;
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-brand .logo-crop {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-brand .logo-crop img {
    height: 68px;
    object-fit: contain;
}

.footer-brand-text {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-brand > p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #94a3b8;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: #c4b5fd;
    transform: translateX(3px);
}

.footer-contact a {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact a:hover {
    color: #c4b5fd;
}

.footer-contact i {
    font-size: 0.8125rem;
    color: var(--primary);
    width: 16px;
}

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: #64748b;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-legal-links a {
    color: #64748b;
    font-size: 0.8125rem;
    transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
    color: #c4b5fd;
}

.footer-legal-links .divider {
    color: #334155;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
    border: none;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
}

/* ============================================
   ANIMATIONS
   ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="fade-right"].animated {
    transform: translateX(0);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate="fade-left"].animated {
    transform: translateX(0);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    color: white;
    font-weight: 500;
    font-size: 0.9375rem;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 400px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.toast-show {
    transform: translateX(0);
}

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

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-visual {
        order: -1;
    }

    .hero-card-stack {
        height: 360px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.25rem;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s ease;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-card-stack {
        height: 320px;
        max-width: 360px;
    }

    .hero-card {
        width: 180px;
        padding: 1rem;
    }

    .hero-logo-center {
        width: 130px;
        height: 130px;
    }

    .hero-card.card-1 { top: 10px; left: 0; }
    .hero-card.card-2 { top: 60px; right: 0; }
    .hero-card.card-3 { bottom: 40px; left: 10px; }

    .services-bento {
        grid-template-columns: 1fr 1fr;
    }
    .bento-large,
    .bento-wide {
        grid-column: span 2;
        flex-direction: column;
    }
    .sb-visual,
    .sb-shield-visual {
        width: 100%;
        height: 160px;
    }
    .sb-orbit {
        margin: 0 auto;
        width: 200px;
    }

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

    .about-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

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

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

    .footer-brand > p {
        max-width: none;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .client-showcase-card {
        grid-template-columns: 1fr;
    }
    .client-showcase-left {
        padding: 1.5rem;
    }
    .client-showcase-right {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .services-bento {
        grid-template-columns: 1fr;
    }
    .bento-large,
    .bento-wide {
        grid-column: span 1;
    }

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

    .hero-card-stack {
        display: none;
    }

    .hero-visual::after {
        content: '';
        display: block;
        width: 200px;
        height: 200px;
        background: var(--surface);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-xl);
        margin: 0 auto;
        background-image: url('mind_trans.png');
        background-size: 70%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .toast {
        right: 1rem;
        left: 1rem;
        max-width: none;
        transform: translateY(-120%);
    }

    .toast-show {
        transform: translateY(0);
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}
