/* ============================================
   KeyBrothers Tech. — Stylesheet
   White/Silver color scheme, Inter + Playfair Display
   ============================================ */

:root {
    --bg: #0c0c0c;
    --bg-alt: #080808;
    --surface: #111111;
    --surface-light: #161616;
    --fg: #f0ece4;
    --muted: #888580;
    --muted-dark: rgba(255,255,255,0.20);
    --gold: #d4d4d8;
    --gold-light: #fafafa;
    --gold-glow: rgba(255,255,255,0.04);
    --gold-border: rgba(255,255,255,0.15);
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading { overflow: hidden; }

::selection { background: rgba(212,212,216,0.3); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
    outline: 2px solid rgba(212,212,216,0.6);
    outline-offset: 2px;
}
button:focus-visible, .btn:focus-visible {
    outline: 2px solid rgba(212,212,216,0.6);
    outline-offset: 2px;
}

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

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed; top: 0; left: 0; z-index: 10001;
    width: 0%; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    transition: width 0.05s linear;
    box-shadow: 0 0 10px rgba(255,255,255,0.25);
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.preloader-logo-img { width: 48px; height: 48px; border-radius: 12px; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.05);opacity:0.8} }

.preloader-text { display: flex; flex-direction: column; gap: 4px; }
.preloader-brand { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.preloader-status { font-size: 0.75rem; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.preloader-bar-wrap { width: 200px; height: 2px; background: var(--border); border-radius: 10px; overflow: hidden; }
.preloader-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 10px; transition: width 0.1s linear; }
.preloader-percent { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(12,12,12,0.8);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    opacity: 0; transform: translateY(-8px);
    transition: opacity 0.4s, transform 0.4s, background 0.3s;
}
.navbar.visible { opacity: 1; transform: translateY(0); }
.navbar.scrolled { background: rgba(12,12,12,0.95); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); }
.nav-logo-img { width: 28px; height: 28px; border-radius: 6px; }
.nav-logo-muted { font-weight: 400; color: rgba(255,255,255,0.4); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 0.8rem; color: rgba(255,255,255,0.5); transition: color var(--transition); position: relative; }
.nav-link:hover { color: var(--fg); }
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
    background: var(--fg); transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta {
    padding: 8px 20px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em;
    color: var(--fg); border: 1px solid rgba(255,255,255,0.15); border-radius: 2px;
    transition: var(--transition);
}
.nav-cta:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 20px; height: 1px; background: var(--fg); transition: var(--transition); }
.nav-burger.active span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* Mobile Menu */
.mobile-menu { position: fixed; inset: 0; z-index: 999; background: rgba(12,12,12,0.95); backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mobile-link { font-size: 1.2rem; font-weight: 500; color: rgba(255,255,255,0.6); transition: var(--transition); }
.mobile-link:hover { color: var(--fg); }
.mobile-cta { margin-top: 12px; padding: 12px 32px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; color: var(--fg); border: 1px solid rgba(255,255,255,0.15); transition: var(--transition); }
.mobile-cta:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ============================================
   HERO
   ============================================ */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 120px 24px 80px; overflow: hidden; }

/* Background Video */
.hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
    opacity: 0.2;
}
.hero-video-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg,
        rgba(12,12,12,0.6) 0%,
        rgba(12,12,12,0.3) 40%,
        rgba(12,12,12,0.5) 70%,
        rgba(12,12,12,0.95) 100%
    );
    pointer-events: none;
}

.hero-glow { position: absolute; border-radius: 50%; filter: blur(150px); pointer-events: none; z-index: 2; }
.hero-glow-1 { width: 700px; height: 500px; top: -200px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.03); }
.hero-glow-2 { width: 400px; height: 400px; bottom: -100px; right: -100px; background: rgba(255,255,255,0.02); }

.hero-grid-bg {
    position: absolute; inset: 0; z-index: 2;
    background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
}

/* Floating particles */
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.particle {
    position: absolute;
    left: var(--x); top: var(--y);
    width: var(--size); height: var(--size);
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: particleFloat var(--dur) ease-in-out infinite;
    animation-delay: var(--delay);
}
@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    25% { transform: translate(15px, -20px) scale(1.2); opacity: 0.5; }
    50% { transform: translate(-10px, -35px) scale(0.8); opacity: 0.3; }
    75% { transform: translate(20px, -15px) scale(1.1); opacity: 0.4; }
}

/* Floating geometric shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.shape {
    position: absolute; left: var(--x); top: var(--y);
    opacity: 0.06; transition: transform 0.3s;
}
.shape-ring {
    width: 60px; height: 60px; border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 50%; animation: shapeFloat 12s ease-in-out infinite;
}
.shape-cross {
    width: 24px; height: 24px; position: absolute;
    animation: shapeFloat 10s ease-in-out infinite reverse;
}
.shape-cross::before, .shape-cross::after {
    content: ''; position: absolute; background: rgba(255,255,255,0.5);
}
.shape-cross::before { width: 100%; height: 1.5px; top: 50%; transform: translateY(-50%); }
.shape-cross::after { width: 1.5px; height: 100%; left: 50%; transform: translateX(-50%); }
.shape-diamond {
    width: 20px; height: 20px; border: 1.5px solid rgba(255,255,255,0.5);
    transform: rotate(45deg); animation: shapeFloat 14s ease-in-out infinite;
}
@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
.shape-diamond { animation-name: shapeDiamond; }
@keyframes shapeDiamond {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-20px); }
}

.hero-scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scroll-text { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.3em; color: rgba(255,255,255,0.2); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent); animation: pulseGlow 3s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100%{opacity:0.3} 50%{opacity:1} }

.hero-content { position: relative; text-align: center; max-width: 800px; margin: 0 auto; z-index: 4; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; font-size: 0.68rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.3em;
    color: rgba(255,255,255,0.6); margin-bottom: 24px;
}
.badge-dot { width: 6px; height: 6px; background: var(--fg); border-radius: 50%; animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-gradient-text {
    font-style: italic;
    background: linear-gradient(135deg, #a1a1aa 0%, #ffffff 50%, #a1a1aa 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-desc { font-size: 0.95rem; line-height: 1.8; color: rgba(255,255,255,0.5); max-width: 520px; margin: 0 auto 40px; }

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.15em;
    transition: var(--transition); cursor: pointer; border: none; font-family: var(--font-sans);
    position: relative; overflow: hidden;
}
.btn-primary { color: var(--bg); background: var(--fg); border: 1px solid var(--fg); }
.btn-primary:hover { background: transparent; color: var(--fg); }
.btn-outline { color: rgba(255,255,255,0.8); background: transparent; border: 1px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

.btn::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 0; height: 0; background: rgba(255,255,255,0.06);
    border-radius: 50%; transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
}
.btn:hover::before { width: 300px; height: 300px; }

/* Terminal */
.hero-visual { position: relative; z-index: 4; width: 100%; max-width: 680px; margin: 56px auto 0; }
.hero-terminal {
    background: rgba(17,17,17,0.9); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    transition: transform 0.4s, box-shadow 0.4s;
}
.hero-terminal:hover { transform: translateY(-4px); box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1); }
.terminal-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border); }
.terminal-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.terminal-title { font-size: 0.68rem; font-family: var(--font-mono); color: var(--muted); }
.terminal-body { padding: 20px; font-family: var(--font-mono); font-size: 0.78rem; line-height: 2; }
.terminal-line { opacity: 0; transform: translateY(5px); }
.terminal-line.visible { opacity: 1; transform: translateY(0); transition: opacity 0.3s, transform 0.3s; }
.terminal-prompt { color: var(--gold); margin-right: 8px; }
.terminal-cmd { color: var(--fg); }
.terminal-output { color: rgba(255,255,255,0.45); font-size: 0.72rem; padding-left: 20px; }
.terminal-success { color: #28c840; }
.terminal-online { color: #28c840; font-weight: 600; }
.terminal-cursor-line { opacity: 0; }
.terminal-cursor-line.visible { opacity: 1; }
.terminal-blink { color: var(--fg); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ============================================
   DOUBLE MARQUEE
   ============================================ */
.marquee-section { padding: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; background: var(--bg-alt); }
.marquee-track { display: flex; overflow: hidden; padding: 14px 0; }
.marquee-track + .marquee-track { border-top: 1px solid var(--border); }
.marquee-content { display: flex; align-items: center; animation: marqueeScroll 40s linear infinite; white-space: nowrap; }
.marquee-content span { font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3em; color: rgba(255,255,255,0.2); padding: 0 24px; }
.marquee-dot { width: 4px !important; height: 4px; background: rgba(255,255,255,0.15); border-radius: 50%; display: inline-block; flex-shrink: 0; padding: 0 !important; }

.marquee-reverse .marquee-content { animation: marqueeScrollReverse 35s linear infinite; }
.marquee-reverse .marquee-content span { color: rgba(255,255,255,0.12); }

@keyframes marqueeScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes marqueeScrollReverse { from{transform:translateX(-50%)} to{transform:translateX(0)} }

/* ============================================
   COUNTERS
   ============================================ */
.counters-section {
    padding: 80px 0; position: relative;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.counters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.counter-card {
    position: relative; padding: 40px 24px; text-align: center;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: rgba(255,255,255,0.02);
    transition: var(--transition); overflow: hidden;
}
.counter-card::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0; transition: opacity 0.5s;
}
.counter-card:hover { border-color: var(--gold-border); background: rgba(255,255,255,0.04); transform: translateY(-4px); }
.counter-card:hover::before { opacity: 1; }

.counter-number { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin-bottom: 12px; }
.counter-value {
    font-family: var(--font-serif); font-size: 3rem; font-weight: 700;
    color: #fff; line-height: 1;
}
.counter-suffix { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: rgba(255,255,255,0.6); }
.counter-label { font-size: 0.85rem; font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.counter-desc { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.25); }

/* ============================================
   COMMON
   ============================================ */
.section-tag {
    display: inline-block; font-size: 0.68rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.3em;
    color: var(--gold); margin-bottom: 20px;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700; line-height: 1.2;
}
.section-title-left {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700; line-height: 1.2; margin-top: 20px;
}
.section-subtitle {
    font-size: 0.88rem; color: rgba(255,255,255,0.4); max-width: 480px;
    margin: 16px auto 0; line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header-left { margin-bottom: 64px; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; }

.gold-italic { font-style: italic; color: var(--gold); }
.gradient-gold {
    background: linear-gradient(135deg, #a1a1aa, #ffffff, #a1a1aa);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.link-gold {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.75rem; font-weight: 500; color: var(--gold);
    transition: color var(--transition), gap var(--transition);
}
.link-gold:hover { color: #fff; gap: 12px; }

.gold-line-top { position: relative; width: 100%; height: 1px; }
.gold-line-top::after { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 66%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); }

.desktop-only { display: inline-flex; }
.mobile-only { display: none; }
.center-text { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ============================================
   ABOUT
   ============================================ */
.about { padding: 128px 0; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-text { margin-top: 24px; font-size: 0.9rem; line-height: 1.8; color: rgba(255,255,255,0.45); margin-bottom: 32px; }

.stats-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-mini-card {
    padding: 28px; text-align: center;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: rgba(255,255,255,0.02); backdrop-filter: blur(4px);
    transition: var(--transition);
}
.stat-mini-card:hover { border-color: var(--gold-border); background: rgba(255,255,255,0.04); transform: translateY(-2px); }
.stat-mini-value { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; color: #fff; }
.stat-mini-label { margin-top: 8px; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.3); }

/* ============================================
   TECH STACK
   ============================================ */
.tech-section { padding: 100px 0 80px; background: var(--bg-alt); position: relative; overflow: hidden; }

.tech-marquee-wrap {
    overflow: hidden; position: relative;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.tech-marquee-track {
    display: flex; gap: 16px; width: max-content;
    animation: techScroll 30s linear infinite;
}
.tech-pill {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 100px;
    border: 1px solid var(--border); background: rgba(255,255,255,0.02);
    font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.5);
    white-space: nowrap; flex-shrink: 0;
    transition: var(--transition);
}
.tech-pill:hover { border-color: var(--gold-border); color: var(--fg); background: rgba(255,255,255,0.05); }
.tech-abbr {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,0.08);
    font-size: 0.62rem; font-weight: 700; color: #fff;
    letter-spacing: 0; flex-shrink: 0;
}
@keyframes techScroll { from{transform:translateX(0)} to{transform:translateX(calc(-50% - 8px))} }

/* ============================================
   SERVICES
   ============================================ */
.services { padding: 128px 0; background: var(--bg); position: relative; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.service-card {
    display: flex; flex-direction: column; height: 100%;
    padding: 28px; border: 1px solid var(--border); border-radius: var(--radius);
    background: rgba(255,255,255,0.02);
    transition: var(--transition); position: relative; overflow: hidden;
}
.service-card:hover { border-color: var(--gold-border); background: rgba(255,255,255,0.04); transform: translateY(-4px); }
.service-num {
    font-family: var(--font-serif); font-size: 2.5rem; font-weight: 700;
    color: rgba(255,255,255,0.06); transition: color 0.5s; margin-bottom: 16px;
}
.service-card:hover .service-num { color: rgba(255,255,255,0.12); }
.service-card h3 { font-size: 1rem; font-weight: 600; color: var(--fg); margin-bottom: 12px; }
.service-card p { font-size: 0.8rem; line-height: 1.8; color: rgba(255,255,255,0.4); flex: 1; }
.service-line { margin-top: 24px; height: 1px; width: 32px; background: rgba(255,255,255,0.12); transition: width 0.5s, background 0.5s; }
.service-card:hover .service-line { width: 64px; background: rgba(255,255,255,0.4); }

/* ============================================
   GLOW CARD EFFECT
   ============================================ */
.glow-card { position: relative; overflow: hidden; }
.glow-card-bg {
    position: absolute; inset: 0; opacity: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.04), transparent 40%);
    transition: opacity 0.3s;
    pointer-events: none;
}
.glow-card:hover .glow-card-bg { opacity: 1; }

/* ============================================
   SOLUTIONS
   ============================================ */
.solutions { padding: 128px 0; }
.solutions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.solution-card {
    display: flex; flex-direction: column; height: 100%;
    padding: 32px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface);
    transition: var(--transition); position: relative; overflow: hidden;
}
.solution-card:hover { border-color: var(--gold-border); background: var(--surface-light); transform: translateY(-4px); }
.solution-tag { font-size: 0.62rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.25em; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.solution-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--fg); margin-bottom: 12px; }
.solution-card p { font-size: 0.8rem; line-height: 1.8; color: rgba(255,255,255,0.4); flex: 1; }

/* ============================================
   PROCESS TIMELINE
   ============================================ */
.process-home {
    padding: 128px 0; background: var(--bg-alt); position: relative;
    overflow: hidden;
}
.process-home::before {
    content: ''; position: absolute; top: 50%; right: -200px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.02), transparent 60%);
    pointer-events: none;
}

.timeline { position: relative; max-width: 700px; margin: 0 auto; }

.timeline-line {
    position: absolute; left: 20px; top: 0; bottom: 0; width: 2px;
    background: var(--border);
}
.timeline-line-fill {
    width: 100%; height: 0%;
    background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
    transition: height 0.1s linear;
}

.timeline-step {
    position: relative; padding-left: 64px; padding-bottom: 48px;
}
.timeline-step:last-child { padding-bottom: 0; }

.timeline-dot-wrap {
    position: absolute; left: 11px; top: 4px;
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
}
.timeline-dot {
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid var(--border); background: var(--bg-alt);
    transition: var(--transition); position: relative;
}
.timeline-step.in-view .timeline-dot {
    border-color: #fff; background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.1);
}

.timeline-content {
    padding: 24px 28px; border: 1px solid var(--border); border-radius: var(--radius);
    background: rgba(255,255,255,0.02);
    transition: var(--transition);
}
.timeline-step.in-view .timeline-content { border-color: var(--gold-border); }

.timeline-num {
    font-family: var(--font-serif); font-size: 0.85rem; font-weight: 700;
    color: var(--fg); display: inline-block; margin-bottom: 4px;
}
.timeline-duration {
    float: right; font-size: 0.62rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: 0.15em; color: rgba(255,255,255,0.25); margin-top: 4px;
    padding: 3px 10px; border: 1px solid var(--border); border-radius: 100px;
}
.timeline-content h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.timeline-content p { font-size: 0.8rem; line-height: 1.8; color: rgba(255,255,255,0.4); }

/* ============================================
   WHY US
   ============================================ */
.why-us { padding: 128px 0; background: var(--bg); position: relative; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.why-card {
    position: relative; padding: 28px; text-align: center;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: rgba(10,10,10,0.9);
    transition: var(--transition); overflow: hidden;
}
.why-card:hover { border-color: var(--gold-border); transform: translateY(-4px); }
.why-badge {
    display: inline-block; padding: 4px 12px; font-size: 0.68rem; font-weight: 700;
    background: #fff;
    color: var(--bg); border-radius: 100px; margin-bottom: 16px;
}
.why-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.why-card p { font-size: 0.8rem; line-height: 1.8; color: rgba(255,255,255,0.4); }

/* ============================================
   GUARANTEES
   ============================================ */
.guarantees-section {
    padding: 128px 0; background: var(--bg-alt); position: relative;
    overflow: hidden;
}
.guarantees-section::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 400px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.02), transparent 60%);
    pointer-events: none;
}
.guarantees-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.guarantee-card {
    position: relative; padding: 48px 32px 36px; text-align: center;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: rgba(255,255,255,0.02);
    transition: var(--transition); overflow: hidden;
}
.guarantee-card:hover { border-color: var(--gold-border); background: rgba(255,255,255,0.04); transform: translateY(-6px); }
.guarantee-card::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: width 0.5s;
}
.guarantee-card:hover::after { width: 80%; }

.guarantee-icon {
    font-family: var(--font-serif); font-size: 3.5rem; font-weight: 700;
    line-height: 1; margin-bottom: 16px;
    color: #fff;
}
.guarantee-icon span { font-size: 2rem; }
.guarantee-label {
    display: inline-block; padding: 3px 12px; font-size: 0.58rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.2em;
    border: 1px solid var(--gold-border); border-radius: 100px;
    color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.guarantee-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; }
.guarantee-card p { font-size: 0.8rem; line-height: 1.8; color: rgba(255,255,255,0.4); }

/* ============================================
   CTA
   ============================================ */
.cta-section { padding: 128px 0; position: relative; overflow: hidden; background: var(--bg); }
.cta-glow { position: absolute; width: 600px; height: 400px; top: 50%; left: 50%; transform: translate(-50%,-50%); background: radial-gradient(ellipse, rgba(255,255,255,0.03), transparent 60%); pointer-events: none; }
.cta-content { text-align: center; position: relative; z-index: 1; }
.cta-title { font-family: var(--font-serif); font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 700; line-height: 1.2; margin-top: 20px; margin-bottom: 24px; }
.cta-desc { font-size: 0.88rem; color: rgba(255,255,255,0.4); max-width: 420px; margin: 0 auto 40px; line-height: 1.7; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.cta-info { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.cta-info-item { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.cta-info-item svg { color: var(--gold); flex-shrink: 0; stroke: var(--gold); }

/* ============================================
   FOOTER
   ============================================ */
.footer { padding: 56px 0 28px; border-top: 1px solid var(--border); background: var(--bg); }
.footer-gold-line { position: relative; width: 100%; }
.footer-gold-line::after { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent); }

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

.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-logo-img { width: 28px; height: 28px; border-radius: 6px; }
.footer-about { font-size: 0.8rem; color: rgba(255,255,255,0.3); line-height: 1.6; max-width: 260px; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.25); margin-bottom: 4px; }
.footer-col a, .footer-col span { font-size: 0.8rem; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-col a:hover { color: rgba(255,255,255,0.7); }
.footer-col span { color: rgba(255,255,255,0.2); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.68rem; color: rgba(255,255,255,0.2); }
.footer-bottom a { color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer-bottom a:hover { color: rgba(255,255,255,0.5); }

/* ============================================
   ANIMATIONS
   ============================================ */
[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease-out, transform 0.7s ease-out; }
[data-animate="fade-left"] { transform: translateX(-24px) translateY(0); }
[data-animate="fade-right"] { transform: translateX(24px) translateY(0); }
[data-animate].in-view { opacity: 1; transform: translateY(0) translateX(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-layout { grid-template-columns: 1fr; gap: 48px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .guarantees-grid { grid-template-columns: 1fr; }
    .counters-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .desktop-only { display: none !important; }
    .mobile-only { display: block; }

    .hero { padding: 100px 20px 60px; min-height: auto; }
    .hero-title { font-size: clamp(2.5rem, 10vw, 3.5rem); }
    .hero-visual { margin-top: 40px; }
    .terminal-body { font-size: 0.68rem; padding: 14px; }
    .hero-scroll-indicator { display: none; }
    .hero-shapes { display: none; }

    .services-grid { grid-template-columns: 1fr; }
    .solutions-grid { grid-template-columns: 1fr; }
    .section-header-row { flex-direction: column; align-items: flex-start; gap: 12px; }

    .counters-grid { grid-template-columns: 1fr 1fr; }
    .counter-value { font-size: 2.2rem; }

    .timeline-step { padding-left: 52px; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .about, .services, .solutions, .why-us, .cta-section, .process-home, .guarantees-section { padding: 80px 0; }
    .tech-section { padding: 64px 0; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .stats-mini-grid { grid-template-columns: 1fr; }
    .counters-grid { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; justify-content: center; }
    .cta-info { flex-direction: column; gap: 12px; }
    .contact-layout { grid-template-columns: 1fr; }
}

/* ============================================
   INNER PAGES
   ============================================ */
.inner-page main { padding-top: 64px; }
.nav-link-active { color: var(--fg) !important; }
.nav-link-active::after { width: 100% !important; }

.page-header {
    position: relative; overflow: hidden;
    padding: 100px 0 64px; text-align: center;
}
.page-header .hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0; opacity: 0.15;
}
.page-header .hero-video-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg,
        rgba(12,12,12,0.5) 0%,
        rgba(12,12,12,0.3) 40%,
        rgba(12,12,12,0.7) 80%,
        var(--bg) 100%
    );
    pointer-events: none;
}
.page-header .hero-glow { z-index: 2; }
.page-header .hero-grid-bg { z-index: 2; }
.page-header .container { position: relative; z-index: 3; }
.page-header-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700; line-height: 1.15; margin-top: 20px;
}
.page-header-desc { font-size: 0.88rem; color: rgba(255,255,255,0.45); max-width: 520px; margin: 20px auto 0; line-height: 1.7; }

.content-section { padding: 80px 0; position: relative; overflow: hidden; }
.prose p { font-size: 0.9rem; line-height: 1.8; color: rgba(255,255,255,0.55); margin-bottom: 20px; }

/* Stats bar */
.stats-bar { padding: 80px 0; background: var(--bg-alt); position: relative; }
.stats-bar-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stats-bar-item { padding: 40px 24px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,0.02); }
@media (max-width: 768px) { .stats-bar-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stats-bar-grid { grid-template-columns: 1fr; } }

/* Why list */
.why-list { margin-top: 56px; }
.why-list-item { display: flex; gap: 24px; padding: 28px 0; border-top: 1px solid var(--border); }
.why-list-item:first-child { border-top: none; }
.why-list-num { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; color: rgba(255,255,255,0.15); flex-shrink: 0; line-height: 1; padding-top: 4px; }
.why-list-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.why-list-item p { font-size: 0.82rem; line-height: 1.8; color: rgba(255,255,255,0.45); }

/* Page CTA */
.page-cta { padding: 80px 0; position: relative; overflow: hidden; background: var(--bg-alt); }

/* Service detail list */
.service-detail-row { display: grid; grid-template-columns: 200px 1fr 1.2fr; gap: 32px; padding: 56px 0; border-top: 1px solid var(--border); }
.service-detail-row:first-child { border-top: none; padding-top: 0; }
.service-detail-num { font-family: var(--font-serif); font-size: 3.5rem; font-weight: 700; color: rgba(255,255,255,0.04); }
.service-detail-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.service-detail-info p { font-size: 0.85rem; line-height: 1.8; color: rgba(255,255,255,0.45); }
.service-detail-scope { display: block; }
.scope-label { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.25); margin-bottom: 12px; }
.service-detail-scope ul, .product-card-right ul { list-style: none; }
.service-detail-scope li, .product-card-right li { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: rgba(255,255,255,0.5); padding: 6px 0; }
.service-detail-scope li::before, .product-card-right li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.3); flex-shrink: 0; }

@media (max-width: 768px) {
    .service-detail-row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
    .service-detail-num { font-size: 2rem; }
}

/* Process */
.process-section { padding: 128px 0; background: var(--bg-alt); position: relative; }
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 56px; }
.process-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,0.02); transition: var(--transition); }
.process-card:hover { border-color: var(--gold-border); background: rgba(255,255,255,0.04); }
.process-step { font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.4); }
.process-card h3 { font-size: 1rem; font-weight: 600; margin-top: 8px; margin-bottom: 8px; }
.process-card p { font-size: 0.8rem; line-height: 1.8; color: rgba(255,255,255,0.4); }
@media (max-width: 768px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }

/* Product cards (cozumler) */
.product-list { display: flex; flex-direction: column; gap: 24px; }
.product-card-detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; padding: 32px 40px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: var(--transition); }
.product-card-detail:hover { border-color: rgba(255,255,255,0.12); }
.product-card-left h3 { font-size: 1.2rem; font-weight: 700; margin-top: 8px; margin-bottom: 12px; }
.product-card-left p { font-size: 0.85rem; line-height: 1.8; color: rgba(255,255,255,0.45); }
@media (max-width: 768px) { .product-card-detail { grid-template-columns: 1fr; padding: 24px; } }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-info-item svg { color: rgba(255,255,255,0.4); stroke: rgba(255,255,255,0.4); flex-shrink: 0; margin-top: 2px; }
.contact-label { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.3); margin-bottom: 4px; }
.contact-value { font-size: 0.9rem; color: var(--fg); transition: color var(--transition); display: block; }
a.contact-value:hover { color: #fff; }
.contact-map { margin-top: 8px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

.contact-form-wrap { padding: 32px 40px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.contact-form-wrap h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.35); }
.form-group input, .form-group textarea {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 8px;
    padding: 12px 16px; font-size: 0.85rem; color: var(--fg); font-family: var(--font-sans);
    transition: border-color var(--transition); outline: none; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: rgba(255,255,255,0.3); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.2); }

@media (max-width: 768px) {
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-wrap { padding: 24px; }
}
