/* =========================================================
   ZRD Yazılım — Portfolio
   Palet: lacivert tonları + buz mavisi vurgu
   ========================================================= */

:root {
    --bg: #040b1c;
    --bg-2: #071430;
    --navy-900: #0a1b3a;
    --navy-800: #0c2a4e;   /* logo zemini */
    --navy-700: #13396b;
    --navy-600: #1d4d8f;
    --primary: #3b82f6;
    --primary-2: #60a5fa;
    --cyan: #38bdf8;
    --ice: #bfdbfe;
    --text: #e7eef9;
    --muted: #8da2c3;
    --faint: #5b6f91;
    --border: rgba(148, 180, 235, 0.12);
    --border-strong: rgba(148, 180, 235, 0.22);
    --surface: rgba(16, 38, 78, 0.38);
    --surface-2: rgba(22, 50, 100, 0.5);
    --gradient: linear-gradient(120deg, #bfdbfe 0%, #60a5fa 35%, #38bdf8 65%, #a5b4fc 100%);
    --gradient-btn: linear-gradient(135deg, #2563eb 0%, #3b82f6 45%, #0ea5e9 100%);
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Sora", var(--font);
    --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-h: 78px;
    color-scheme: dark;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background:
        radial-gradient(1200px 800px at 85% -10%, rgba(29, 77, 143, 0.35), transparent 60%),
        radial-gradient(900px 700px at -10% 20%, rgba(19, 57, 107, 0.35), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(59, 130, 246, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--navy-700); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--navy-600); }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-size: 0.85em; }
.muted { color: var(--muted); }
.text-gradient {
    background: var(--gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* ---------- Page transitions (View Transitions API) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px) scale(0.99); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
::view-transition-group(*) { animation-duration: 0.6s; animation-timing-function: var(--ease); }

/* ---------- Preloader ---------- */
.preloader {
    position: fixed; inset: 0; z-index: 1000;
    display: grid; place-content: center; gap: 28px; justify-items: center;
    background: var(--bg);
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader__logo { width: 96px; animation: pulse 1.4s var(--ease) infinite; }
.preloader__bar { width: 140px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 40%; background: var(--gradient-btn); animation: loadbar 1s var(--ease) infinite; }
@keyframes loadbar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes pulse { 50% { transform: scale(0.94); opacity: 0.7; } }
body.is-loaded .preloader, .no-preloader .preloader { opacity: 0; visibility: hidden; pointer-events: none; }
.no-preloader .preloader { transition: none; }

/* ---------- Ambient layers ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 200;
    background: var(--gradient-btn); transform-origin: 0 50%; transform: scaleX(0);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
}
.cursor-glow {
    position: fixed; top: 0; left: 0; z-index: 0; pointer-events: none;
    width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.11), transparent 65%);
    transform: translate3d(var(--x, -999px), var(--y, -999px), 0);
    transition: opacity 0.4s;
}
.bg-grid {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 180, 235, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 180, 235, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
main, footer, header { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
    --pad: 16px 28px;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: var(--pad); border-radius: 999px;
    font-weight: 600; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s, border-color 0.3s;
}
.btn--sm { --pad: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary {
    color: #fff; background: var(--gradient-btn);
    box-shadow: 0 10px 30px -8px rgba(37, 99, 235, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(135deg, #1d4ed8, #2563eb, #0284c7);
    opacity: 0; transition: opacity 0.3s;
}
.btn--primary::after {
    content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg); transition: left 0.7s var(--ease);
}
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(37, 99, 235, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn--primary:hover::after { left: 140%; }
.btn--ghost { border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--primary-2); background: rgba(59, 130, 246, 0.1); }
.btn .icon { transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn[disabled] { opacity: 0.7; pointer-events: none; }

.icon-btn {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--border-strong); transition: 0.3s var(--ease);
}
.icon-btn:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.06); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary-2); }
.link-arrow .icon { transition: transform 0.3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(5px); }

.chip {
    --accent: var(--primary);
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
    color: color-mix(in srgb, var(--accent) 70%, white);
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
    font-family: var(--font-mono); font-size: 12px; color: var(--muted);
    padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
}
.tags--lg span { font-size: 13px; padding: 7px 12px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
    font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--cyan);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Navigation ---------- */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
    display: flex; align-items: center;
    transition: background-color 0.4s, backdrop-filter 0.4s, border-color 0.4s, transform 0.4s var(--ease), height 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
    --nav-h: 66px;
    background: rgba(4, 11, 28, 0.72);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-color: var(--border);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { width: 44px; height: auto; transition: transform 0.5s var(--ease); }
.nav__brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav__brand-text strong { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.14em; }
.nav__brand-text span { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }
.nav__links { display: flex; gap: 4px; margin-left: auto; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border); }
.nav__links a {
    position: relative; padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--muted);
    transition: color 0.3s, background-color 0.3s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: #fff; background: rgba(59, 130, 246, 0.18); }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; z-index: 120; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.4s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; right: 17px; }
.menu-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__toggle span:last-child { top: 21px; right: 11px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 90; padding: calc(var(--nav-h) + 30px) 28px 36px;
    display: flex; flex-direction: column; justify-content: space-between;
    background: rgba(4, 11, 28, 0.97); backdrop-filter: blur(20px);
    clip-path: circle(0% at calc(100% - 46px) 39px);
    transition: clip-path 0.7s var(--ease); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 46px) 39px); visibility: visible; }
.menu-open { overflow: hidden; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
    display: flex; align-items: baseline; gap: 14px; font-family: var(--font-display); font-size: clamp(30px, 8vw, 44px); font-weight: 600;
    opacity: 0; transform: translateY(20px); transition: 0.5s var(--ease);
}
.mobile-menu nav a small { font-family: var(--font-mono); font-size: 13px; color: var(--cyan); }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: 0.05s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: 0.1s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: 0.15s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: 0.2s; }
.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: 0.25s; }
.mobile-menu__footer { display: flex; flex-direction: column; gap: 16px; color: var(--muted); }

.socials { display: flex; gap: 10px; }
.socials a {
    width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
    border: 1px solid var(--border); color: var(--muted); transition: 0.3s var(--ease);
}
.socials a:hover { color: #fff; border-color: var(--primary); background: var(--primary); transform: translateY(-3px); }

/* ---------- Entrance animations ---------- */
.fade-up { opacity: 0; transform: translateY(30px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, 0s); animation-play-state: paused; }
.fade-in { opacity: 0; animation: fadeIn 1.4s var(--ease) forwards; animation-delay: var(--d, 0s); animation-play-state: paused; }
body.is-loaded .fade-up, body.is-loaded .fade-in { animation-play-state: running; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 100px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.8; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero__orb--1 { width: 520px; height: 520px; right: -120px; top: 10%; background: radial-gradient(circle, rgba(37, 99, 235, 0.45), transparent 70%); animation: drift 14s ease-in-out infinite alternate; }
.hero__orb--2 { width: 420px; height: 420px; left: -160px; bottom: -80px; background: radial-gradient(circle, rgba(14, 165, 233, 0.25), transparent 70%); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.1); } }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }

.badge-live {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
    padding: 7px 16px 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
    background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.28); color: #a7f3d0;
}
.badge-live .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #10b981; }
.badge-live .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #10b981; animation: ping 1.8s var(--ease) infinite; }
/* Proje almaya kapalıyken (AvailableForWork: false) */
.badge-live--busy { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.3); color: #fde68a; }
.badge-live--busy .dot { background: #f59e0b; }
.badge-live--busy .dot::after { border-color: #f59e0b; animation: none; opacity: 0; }
.availability-note {
    display: flex; gap: 14px; align-items: flex-start; max-width: 520px; padding: 18px 20px; border-radius: 16px;
    background: rgba(245, 158, 11, 0.07); border: 1px solid rgba(245, 158, 11, 0.28);
}
.availability-note .dot { flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 12px #f59e0b; }
.availability-note strong { color: #fde68a; }
.availability-note p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }

.hero__title { font-size: clamp(36px, 4.8vw, 68px); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 28px; }
.hero__title .line { display: block; }
.hero__title .line:first-child { font-size: 0.5em; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); margin-bottom: 0.25em; }
.hero__title .line--typed { white-space: nowrap; font-size: min(1em, 8.4vw); }
.typed-caret { display: inline-block; margin-left: 4px; font-weight: 300; color: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { display: inline-flex; align-items: center; gap: 16px; margin-top: 44px; }
.hero__trust p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.hero__trust strong { color: var(--text); }
.hero__avatars { display: flex; }
.hero__avatars span {
    width: 70px; height: 44px; margin-left: -10px; border-radius: 12px; display: grid; place-items: center; padding: 6px 8px; overflow: hidden;
    border: 2px solid var(--bg); transition: transform 0.3s var(--ease);
}
.hero__avatars span:first-child { margin-left: 0; }
.hero__avatars img { width: 100%; height: 100%; object-fit: contain; }
.hero__trust:hover .hero__avatars span { transform: translateY(-3px); }

.hero__visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin-left: auto; }
.hero__rings { position: absolute; inset: 0; }
.hero__rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--border); }
.hero__rings span:nth-child(2) { inset: 12%; border-style: dashed; animation: spin 60s linear infinite; }
.hero__rings span:nth-child(3) { inset: 24%; border-color: var(--border-strong); }
.orbit-dot { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.orbit-dot::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.orbit-dot--2 { inset: 12%; animation-duration: 26s; animation-direction: reverse; }
.orbit-dot--2::before { background: var(--primary-2); box-shadow: 0 0 18px var(--primary-2); }
.orbit-dot--3 { inset: 24%; animation-duration: 12s; }
.orbit-dot--3::before { width: 7px; height: 7px; background: #a5b4fc; box-shadow: 0 0 14px #a5b4fc; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__logo {
    position: absolute; inset: 30%; display: grid; place-items: center; border-radius: 32%;
    background: radial-gradient(circle at 30% 20%, var(--navy-700), var(--navy-800) 60%, var(--navy-900));
    border: 1px solid var(--border-strong);
    box-shadow: 0 40px 100px -20px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform-style: preserve-3d; transition: transform 0.2s ease-out;
}
.hero__logo img { width: 72%; filter: drop-shadow(0 8px 24px rgba(96, 165, 250, 0.4)); transform: translateZ(40px); }

.float-card {
    position: absolute; z-index: 2; padding: 14px 16px; border-radius: 16px;
    background: rgba(8, 22, 50, 0.72); border: 1px solid var(--border-strong);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }
.float-card--code { left: -12%; bottom: 6%; padding: 0; overflow: hidden; animation-delay: -2s; }
.float-card__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.float-card__bar i, .code-window__bar i, .pv__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; opacity: 0.85; }
.float-card__bar i:nth-child(2), .code-window__bar i:nth-child(2), .pv__bar i:nth-child(2) { background: #f59e0b; }
.float-card__bar i:nth-child(3), .code-window__bar i:nth-child(3), .pv__bar i:nth-child(3) { background: #10b981; }
.float-card__bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.float-card pre { margin: 0; padding: 14px 18px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: #cbd5e1; }
.k { color: #c084fc; } .t { color: #5eead4; } .f { color: #7dd3fc; } .s { color: #fcd34d; } .c { color: var(--faint); font-style: italic; }
.float-card--stat { top: 8%; right: -4%; display: flex; align-items: center; gap: 12px; animation-delay: -4s; }
.float-card--stat strong { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1; }
.float-card--stat small { color: var(--muted); font-size: 12px; }
.float-card__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--gradient-btn); }
.float-card--perf { top: 38%; left: -8%; display: flex; flex-direction: column; align-items: center; gap: 6px; animation-delay: -1s; }
.float-card--perf small { font-size: 11px; color: var(--muted); }
.perf-ring { position: relative; width: 58px; height: 58px; }
.perf-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.perf-ring circle { fill: none; stroke: var(--border-strong); stroke-width: 3; }
.perf-ring circle.val { stroke: #10b981; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ring 2s 1.2s var(--ease) forwards; }
@keyframes ring { to { stroke-dashoffset: 2; } }
.perf-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 16px; color: #6ee7b7; }

.hero__scroll { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid var(--border-strong); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--cyan); animation: scrollDot 2s var(--ease) infinite; }
@keyframes scrollDot { 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee, .clients { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee { padding: 26px 0; border-block: 1px solid var(--border); background: rgba(10, 27, 58, 0.35); }
.marquee__track, .clients__track { display: flex; width: max-content; gap: 28px; align-items: center; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; color: var(--muted); white-space: nowrap; transition: color 0.3s; }
.marquee__track span:hover { color: var(--text); }
.marquee__track i { color: var(--primary); font-style: normal; font-size: 16px; }
.marquee:hover .marquee__track, .clients:hover .clients__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section--tight { padding-top: 20px; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(10, 27, 58, 0.45) 15%, rgba(10, 27, 58, 0.45) 85%, transparent); }
.section-title { font-size: clamp(34px, 4.4vw, 58px); font-weight: 700; margin-bottom: 22px; }
.section-lead { color: var(--muted); font-size: 17px; max-width: 520px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 64px; flex-wrap: wrap; }
.section-head .section-title { margin-bottom: 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head--center .section-title { margin-bottom: 8px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__visual { position: relative; }
.code-window {
    border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(160deg, rgba(12, 42, 78, 0.8), rgba(6, 16, 38, 0.9));
    border: 1px solid var(--border-strong); box-shadow: var(--shadow), 0 0 0 8px rgba(59, 130, 246, 0.04);
    transform: perspective(1200px) rotateY(8deg) rotateX(2deg); transition: transform 0.8s var(--ease);
}
.about__visual:hover .code-window { transform: perspective(1200px) rotateY(0) rotateX(0); }
.code-window__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.code-window__bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.code-window__body { margin: 0; padding: 22px 22px 26px; font-family: var(--font-mono); font-size: clamp(11.5px, 1.1vw, 13.5px); line-height: 1.85; color: #cbd5e1; overflow-x: auto; }
.code-window__body .ln { display: inline-block; width: 2.2em; color: var(--faint); user-select: none; }
.about__badge {
    position: absolute; right: -18px; bottom: -28px; display: flex; align-items: center; gap: 12px;
    padding: 18px 22px; border-radius: 18px; background: var(--gradient-btn); box-shadow: 0 20px 50px -10px rgba(37, 99, 235, 0.7);
    animation: float 7s ease-in-out infinite;
}
.about__badge strong { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.about__badge span { font-size: 13px; line-height: 1.3; opacity: 0.9; }
.about__text { color: var(--muted); font-size: 16.5px; }
.check-list { display: grid; gap: 12px; margin-top: 28px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.check-list li > span {
    flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px;
    color: var(--cyan); background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.25);
}
.check-list--grid { grid-template-columns: repeat(2, 1fr); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(70px, 9vw, 120px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--border); }
.stat { padding: 36px 28px; background: var(--bg-2); text-align: center; transition: background-color 0.4s; }
.stat:hover { background: var(--navy-900); }
.stat__value { font-family: var(--font-display); font-size: clamp(40px, 4.4vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.stat__value em { font-style: normal; color: var(--cyan); }
.stat__label { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 0.4s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, 0.16), transparent 45%);
}
.spotlight::after {
    content: ""; position: absolute; inset: -1px; z-index: -2; border-radius: inherit; opacity: 0; transition: opacity 0.4s;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(96, 165, 250, 0.7), transparent 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: 1px;
}
.spotlight:hover::before, .spotlight:hover::after { opacity: 1; }
.service-card {
    padding: 34px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
    transition: transform 0.5s var(--ease), border-color 0.4s, opacity 0.9s var(--ease);
}
.service-card:hover { transform: translateY(-6px); }
.service-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.service-card__icon {
    width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; color: var(--ice);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(14, 165, 233, 0.08)); border: 1px solid rgba(96, 165, 250, 0.3);
    transition: transform 0.5s var(--ease);
}
.service-card:hover .service-card__icon { transform: rotate(-8deg) scale(1.08); }
.service-card__num { color: var(--faint); }
.service-card h3 { font-size: 21px; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 15px; }
.service-card ul { display: grid; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.service-card li { position: relative; padding-left: 18px; font-size: 14px; color: #b9c8e0; }
.service-card li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 2px; background: var(--primary); transform: rotate(45deg); }

/* ---------- Process ---------- */
.process-wrap { position: relative; }
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; counter-reset: step; }
.process__line { position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; background: var(--border); }
.process__line span { display: block; height: 100%; width: 100%; background: var(--gradient-btn); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 14px rgba(56, 189, 248, 0.6); }
.process__step { position: relative; text-align: center; padding: 0 6px; }
.process__num {
    position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 50%;
    font-family: var(--font-display); font-weight: 700; font-size: 20px;
    background: var(--bg-2); border: 2px solid var(--navy-600); transition: 0.5s var(--ease);
}
.process__step.is-visible .process__num { border-color: var(--primary-2); box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.12), 0 0 30px rgba(59, 130, 246, 0.4); }
.process__step:hover .process__num { background: var(--primary); transform: scale(1.1); }
.process__step h3 { font-size: 18px; margin-bottom: 10px; }
.process__step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Showcase ---------- */
.showcase { display: grid; gap: clamp(80px, 10vw, 130px); }
.showcase__item { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.showcase__item.is-reversed .showcase__visual { order: 2; }
.showcase__visual { display: block; border-radius: 24px; }
.showcase__visual .pv { transition: transform 0.8s var(--ease); }
.showcase__visual:hover .pv { transform: scale(1.02); }
.showcase__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.showcase__meta > .mono:first-child { color: var(--cyan); }
.showcase__info h3 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 16px; }
.showcase__info > p { color: var(--muted); font-size: 16.5px; }
.showcase__results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; padding: 22px 0; border-block: 1px solid var(--border); }
.showcase__results strong { display: block; font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.showcase__results span { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; margin-top: 4px; }
.showcase__info .tags { margin-bottom: 28px; }

/* ---------- Project visual (CSS mockups) ---------- */
.pv {
    --accent: var(--primary);
    position: relative; aspect-ratio: 16 / 11; border-radius: 24px; overflow: hidden; isolation: isolate;
    display: grid; place-items: center;
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 55%),
        radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
        linear-gradient(160deg, var(--navy-800), var(--navy-900) 60%, #06102a);
    border: 1px solid var(--border-strong);
}
.pv::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(180deg, #000, transparent 90%); }
.pv__glow { position: absolute; width: 60%; height: 60%; border-radius: 50%; background: var(--accent); filter: blur(90px); opacity: 0.25; z-index: -1; }
.pv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv__browser, .pv__terminal {
    width: 84%; border-radius: 14px; overflow: hidden; background: rgba(6, 16, 38, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    transform: perspective(1400px) rotateX(6deg) translateY(4%); transition: transform 0.8s var(--ease);
}
a:hover .pv__browser, a:hover .pv__terminal { transform: perspective(1400px) rotateX(0) translateY(0); }
.pv__bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.pv__bar i { width: 7px; height: 7px; }
.pv__bar span { flex: 1; max-width: 45%; height: 8px; margin-left: 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.pv__terminal .pv__bar span { background: none; height: auto; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
/* dashboard */
.pv__dash { display: grid; grid-template-columns: 20% 1fr; min-height: 0; aspect-ratio: 16 / 9; }
.pv__dash aside { display: flex; flex-direction: column; gap: 9px; padding: 14px 10px; border-right: 1px solid rgba(255, 255, 255, 0.06); }
.pv__dash aside b { height: 12px; width: 70%; border-radius: 4px; background: var(--accent); margin-bottom: 8px; }
.pv__dash aside span { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
.pv__dash aside span:first-of-type { background: color-mix(in srgb, var(--accent) 50%, transparent); }
.pv__dash-main { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.pv__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv__kpis i { height: 34px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.06); position: relative; overflow: hidden; }
.pv__kpis i::after { content: ""; position: absolute; left: 8px; bottom: 8px; width: 45%; height: 6px; border-radius: 3px; background: var(--accent); opacity: 0.8; }
.pv__chart { flex: 1; display: flex; align-items: flex-end; gap: 6%; padding: 10px 12px 0; border-radius: 8px; background: rgba(255, 255, 255, 0.03); min-height: 60px; }
.pv__chart span { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent)); transform-origin: bottom; animation: grow 1.4s var(--ease) both; }
.pv__chart span:nth-child(2n) { animation-delay: 0.1s; } .pv__chart span:nth-child(3n) { animation-delay: 0.2s; }
@keyframes grow { from { transform: scaleY(0); } }
.pv__rows { display: grid; gap: 6px; }
.pv__rows span { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.pv__rows span:nth-child(2) { width: 80%; } .pv__rows span:nth-child(3) { width: 60%; }
/* web */
.pv__web { padding: 12px 16px 16px; aspect-ratio: 16 / 9; display: flex; flex-direction: column; gap: 14px; }
.pv__web-nav { display: flex; align-items: center; gap: 10px; }
.pv__web-nav b { width: 18%; height: 10px; border-radius: 4px; background: var(--accent); margin-right: auto; }
.pv__web-nav span { width: 9%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.pv__web-hero { flex: 1; display: grid; grid-template-columns: 1fr 0.8fr; gap: 14px; align-items: center; }
.pv__web-hero div { display: grid; gap: 8px; }
.pv__web-hero span { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.pv__web-hero span.lg { height: 16px; width: 90%; background: rgba(255, 255, 255, 0.22); }
.pv__web-hero span.short, .pv__phone .short { width: 60%; }
.pv__web-hero b { width: 38%; height: 16px; border-radius: 999px; background: var(--accent); margin-top: 6px; }
.pv__web-hero figure { margin: 0; height: 100%; min-height: 60px; border-radius: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 60%, transparent), rgba(255, 255, 255, 0.04)); }
.pv__web-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pv__web-cards i { height: 34px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.06); }
/* mobile */
.pv--mobile { grid-template-columns: 1fr 1fr; gap: 0; }
.pv__phone {
    position: relative; grid-row: 1; grid-column: 1 / -1; width: 30%; aspect-ratio: 9 / 19; padding: 22px 10px 10px; border-radius: 26px;
    background: #050c20; border: 3px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
    display: flex; flex-direction: column; gap: 7px; overflow: hidden; z-index: 2; translate: -30% 0;
    transition: transform 0.8s var(--ease);
}
.pv__phone--back { z-index: 1; translate: 45% 6%; rotate: 8deg; opacity: 0.75; }
a:hover .pv__phone { transform: translateY(-4%); }
a:hover .pv__phone--back { transform: translateY(2%) rotate(3deg); }
.pv__notch { position: absolute; top: 7px; left: 50%; width: 34%; height: 8px; translate: -50% 0; border-radius: 6px; background: rgba(255, 255, 255, 0.1); }
.pv__phone-head { display: flex; justify-content: space-between; align-items: center; }
.pv__phone-head span { width: 50%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); }
.pv__phone-head i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
.pv__phone-card { display: grid; gap: 5px; padding: 10px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #050c20)); }
.pv__phone-card b { width: 45%; height: 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.85); }
.pv__phone-card span, .pv__phone-row span { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); }
.pv__phone-row { display: flex; gap: 7px; align-items: center; padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.pv__phone-row i { flex: none; width: 16px; height: 16px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.pv__phone-row div { flex: 1; display: grid; gap: 4px; }
.pv__phone-row span { background: rgba(255, 255, 255, 0.12); }
.pv__phone-fab { position: absolute; right: 10px; bottom: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); box-shadow: 0 4px 12px var(--accent); }
.pv__map { flex: 1; border-radius: 12px; position: relative; background:
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 14px 14px,
    color-mix(in srgb, var(--accent) 14%, #050c20); }
.pv__map i { position: absolute; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.pv__map i:nth-child(1) { top: 22%; left: 30%; } .pv__map i:nth-child(2) { top: 50%; left: 62%; } .pv__map i:nth-child(3) { top: 72%; left: 25%; }
/* api */
.pv__terminal pre { margin: 0; padding: 14px 16px 18px; font-family: var(--font-mono); font-size: clamp(8px, 0.95vw, 11.5px); line-height: 1.9; color: #cbd5e1; white-space: pre; overflow: hidden; }
.pv__terminal em { color: var(--faint); font-style: normal; }
.pv__terminal b { color: #34d399; font-weight: 500; }
.pv__terminal u { text-decoration: none; color: var(--accent); }
.pv__terminal .caret { color: var(--accent); animation: blink 1s steps(1) infinite; }
.pv__nodes { position: absolute; inset: 0; z-index: -1; }
.pv__nodes i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); animation: pulse 3s ease-in-out infinite; }
.pv__nodes i:nth-child(1) { top: 10%; left: 8%; } .pv__nodes i:nth-child(2) { top: 14%; right: 10%; animation-delay: -1s; }
.pv__nodes i:nth-child(3) { bottom: 10%; left: 14%; animation-delay: -2s; } .pv__nodes i:nth-child(4) { bottom: 12%; right: 7%; animation-delay: -1.5s; }

/* ---------- Stack / tabs / timeline ---------- */
.stack { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 8vw, 110px); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 28px; }
.tabs__btn { padding: 9px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--muted); border: 1px solid var(--border); transition: 0.3s var(--ease); }
.tabs__btn:hover { color: var(--text); border-color: var(--border-strong); }
.tabs__btn.is-active { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 8px 24px -8px rgba(59, 130, 246, 0.8); }
.tabs__panel { display: none; flex-wrap: wrap; gap: 12px; }
.tabs__panel.is-active { display: flex; }
.tech-pill {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 14px;
    font-weight: 600; background: var(--surface); border: 1px solid var(--border);
    animation: popIn 0.5s var(--ease) both; transition: 0.3s var(--ease);
}
.tech-pill:hover { border-color: var(--primary-2); transform: translateY(-3px); }
.tech-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.tabs__panel .tech-pill:nth-child(2) { animation-delay: 0.04s; } .tabs__panel .tech-pill:nth-child(3) { animation-delay: 0.08s; }
.tabs__panel .tech-pill:nth-child(4) { animation-delay: 0.12s; } .tabs__panel .tech-pill:nth-child(5) { animation-delay: 0.16s; }
.tabs__panel .tech-pill:nth-child(6) { animation-delay: 0.2s; }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(0.95); } }

.timeline { position: relative; margin-top: 10px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--primary), var(--border) 80%); }
.timeline__item { position: relative; padding-bottom: 34px; }
.timeline__item::before { content: ""; position: absolute; left: -30px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary-2); box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.12); }
.timeline__period { color: var(--cyan); }
.timeline__item h3 { font-size: 20px; margin: 6px 0 4px; }
.timeline__company { display: inline-flex; align-items: center; gap: 6px; color: var(--ice); font-size: 14px; margin-bottom: 8px; }
.timeline__item p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials { position: relative; max-width: 880px; margin-inline: auto; }
.testimonials__track { display: grid; }
.testimonial {
    grid-area: 1 / 1; margin: 0; padding: clamp(32px, 5vw, 56px); border-radius: 28px; text-align: center;
    background: linear-gradient(160deg, rgba(19, 57, 107, 0.45), rgba(8, 20, 46, 0.6));
    border: 1px solid var(--border-strong);
    opacity: 0; transform: translateX(40px) scale(0.97); visibility: hidden;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), visibility 0.7s;
}
.testimonial.is-active { opacity: 1; transform: none; visibility: visible; }
.testimonial.is-leaving { transform: translateX(-40px) scale(0.97); }
.testimonial__quote-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 18px; color: var(--cyan); background: rgba(56, 189, 248, 0.1); }
.testimonial blockquote { margin: 0 0 32px; font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); font-weight: 500; line-height: 1.55; letter-spacing: -0.01em; }
.testimonial figcaption { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; flex-wrap: wrap; }
.testimonial figcaption strong { display: block; }
.testimonial figcaption small { color: var(--muted); }
.testimonial__avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 19px; background: var(--gradient-btn); }
.testimonial__stars { color: #fbbf24; letter-spacing: 2px; margin-left: 8px; }
.testimonials__controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; }
.testimonials__dots { display: flex; gap: 8px; }
.testimonials__dots button { width: 8px; height: 8px; border-radius: 8px; background: var(--border-strong); transition: 0.4s var(--ease); }
.testimonials__dots button.is-active { width: 32px; background: var(--cyan); }

/* Referans logoları: sürekli kayan şerit. Kesintisiz döngü için boşluk gap yerine margin ile verilir. */
.clients { padding: 14px 0 20px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients__track { gap: 0; align-items: stretch; animation-duration: 38s; }
/* Logolar yatay/kare karışık olduğu için üstte geniş bir logo alanı, altında metin */
.client-card {
    flex: none; width: 300px; margin-right: 22px;
    display: flex; flex-direction: column; gap: 16px; padding: 12px 12px 20px; border-radius: 22px;
    background: var(--surface); border: 1px solid var(--border);
    transition: border-color 0.4s, background-color 0.4s, transform 0.5s var(--ease);
}
.client-card:hover { border-color: rgba(96, 165, 250, 0.45); background: var(--surface-2); transform: translateY(-6px); }
.client-card__logo {
    height: 140px; display: grid; place-items: center; padding: 18px 26px; border-radius: 14px; overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.client-card__text { padding: 0 8px; }
.client-card__logo img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s var(--ease); }
.client-card:hover .client-card__logo img { transform: scale(1.08); }
.client-card__initials {
    display: grid; place-items: center; width: 100%; height: 100%; border-radius: 12px;
    font-family: var(--font-display); font-weight: 700; font-size: 28px; color: #fff; background: var(--gradient-btn);
}
.client-card__text { display: grid; gap: 4px; min-width: 0; }
.client-card__text strong { font-family: var(--font-display); font-size: 18px; line-height: 1.25; }
.client-card__text small { color: var(--muted); font-size: 14px; line-height: 1.45; }
.testimonials-title { text-align: center; font-size: clamp(24px, 2.6vw, 32px); margin: clamp(70px, 9vw, 110px) 0 36px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.faq__list { display: grid; gap: 14px; }
.faq__item { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.3s, background-color 0.3s; }
.faq__item[open] { border-color: rgba(96, 165, 250, 0.4); background: var(--surface-2); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 17.5px; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary > span { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); transition: 0.4s var(--ease); }
.faq__item[open] summary > span { transform: rotate(135deg); background: var(--primary); border-color: var(--primary); }
.faq__answer { padding: 0 26px 22px; color: var(--muted); }
.faq__answer p { margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 90px); align-items: start; }
.contact__cards { display: grid; gap: 14px; margin-top: 36px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: 0.35s var(--ease); }
a.contact-card:hover { border-color: var(--primary-2); transform: translateX(6px); }
.contact-card__icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--gradient-btn); }
.contact-card small { display: block; color: var(--muted); font-size: 13px; }
.contact-card strong { font-weight: 600; word-break: break-word; }

.contact-form {
    padding: clamp(26px, 4vw, 44px); border-radius: 28px;
    background: linear-gradient(160deg, rgba(19, 57, 107, 0.4), rgba(6, 16, 38, 0.65));
    border: 1px solid var(--border-strong); box-shadow: var(--shadow);
    display: grid; gap: 22px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; display: block; }
.field input, .field textarea {
    width: 100%; padding: 26px 18px 10px; border-radius: 14px; font: inherit; font-size: 15.5px; color: var(--text);
    background: rgba(4, 11, 28, 0.55); border: 1px solid var(--border-strong); outline: none; resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 150px; }
.field span { position: absolute; left: 19px; top: 18px; color: var(--muted); font-size: 15px; pointer-events: none; transition: 0.25s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: 8px; font-size: 11.5px; color: var(--cyan); letter-spacing: 0.04em; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #f87171; }
.field__error { display: block; margin-top: 6px; font-size: 13px; color: #fca5a5; }
.choice-group { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice-group legend { width: 100%; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: 14px; cursor: pointer; border: 1px solid var(--border-strong); transition: 0.25s var(--ease); }
.choice span:hover { border-color: var(--primary-2); }
.choice input:checked + span { background: rgba(59, 130, 246, 0.2); border-color: var(--primary-2); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: -6px 0 0; font-size: 13px; color: var(--faint); text-align: center; }
.form-alert { padding: 14px 18px; border-radius: 12px; font-size: 14.5px; }
.form-alert--ok { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35); color: #a7f3d0; }
.form-alert--err { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35); color: #fecaca; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; padding-top: clamp(80px, 10vw, 130px); border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(10, 27, 58, 0.4), var(--bg)); }
.footer__cta { text-align: center; padding-bottom: clamp(70px, 9vw, 110px); }
.footer__cta .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.footer__title { font-size: clamp(38px, 6.5vw, 88px); font-weight: 700; letter-spacing: -0.04em; margin-bottom: 44px; }
.footer__mail { display: inline-flex; align-items: center; gap: 18px; padding: 12px 12px 12px 32px; border-radius: 999px; font-size: clamp(17px, 2vw, 21px); font-weight: 600; border: 1px solid var(--border-strong); transition: 0.4s var(--ease); }
.footer__mail-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--gradient-btn); transition: transform 0.5s var(--ease); }
.footer__mail:hover { border-color: var(--primary-2); background: rgba(59, 130, 246, 0.08); }
.footer__mail:hover .footer__mail-icon { transform: rotate(45deg); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0; border-top: 1px solid var(--border); }
.footer__grid h4 { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; font-family: var(--font-mono); font-weight: 500; }
.footer__grid > div:not(.footer__about) { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__grid a, .footer__grid span { color: var(--muted); font-size: 15px; transition: color 0.3s; }
.footer__grid a:hover { color: var(--text); }
.footer__about p { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 340px; }
.footer__grid .socials { margin-top: 8px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0 36px; border-top: 1px solid var(--border); color: var(--faint); font-size: 14px; }
.footer__watermark {
    position: absolute; left: 50%; bottom: -0.28em; translate: -50% 0; z-index: -1; pointer-events: none;
    font-family: var(--font-display); font-weight: 800; font-size: clamp(140px, 30vw, 440px); line-height: 1; letter-spacing: 0.04em;
    color: transparent; -webkit-text-stroke: 1px rgba(148, 180, 235, 0.07);
}

.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(8, 22, 50, 0.85); border: 1px solid var(--border-strong); backdrop-filter: blur(10px);
    opacity: 0; transform: translateY(20px); pointer-events: none; transition: 0.4s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--primary); border-color: var(--primary); }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(50px, 8vw, 100px)) 0 clamp(40px, 5vw, 60px); }
.page-hero__title { font-size: clamp(40px, 6vw, 78px); font-weight: 700; letter-spacing: -0.035em; margin: 18px 0 20px; }
.page-hero__lead { max-width: 640px; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--cyan); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.filters__btn { padding: 10px 20px; border-radius: 999px; font-weight: 500; font-size: 14.5px; color: var(--muted); border: 1px solid var(--border-strong); transition: 0.3s var(--ease); }
.filters__btn sup { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); margin-left: 2px; }
.filters__btn:hover { color: var(--text); border-color: var(--primary-2); }
.filters__btn.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters__btn.is-active sup { color: var(--navy-600); }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project-card { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.project-card.is-hidden { display: none; }
.project-card__link { display: block; height: 100%; padding: 12px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.4s, transform 0.5s var(--ease), background-color 0.4s; }
.project-card__link:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-6px); }
.project-card__visual .pv { border-radius: 20px; }
.project-card__body { padding: 22px 14px 12px; }
.project-card__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--faint); }
.project-card h3 { font-size: 23px; margin-bottom: 10px; }
.project-card p { color: var(--muted); font-size: 15px; }
.project-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; }
.project-card__arrow { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); transition: 0.4s var(--ease); }
.project-card__link:hover .project-card__arrow { background: var(--primary); border-color: var(--primary); transform: rotate(45deg); }

/* Case study */
.case .chip { --accent: inherit; }
.page-hero--case::before { content: ""; position: absolute; inset: 0 0 -200px; z-index: -1; background: radial-gradient(700px 400px at 80% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.case__head { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 50px; align-items: end; margin-top: 18px; }
.case__head .chip { margin-bottom: 0; }
.case__facts { margin: 0; display: grid; gap: 1px; border-radius: 18px; overflow: hidden; background: var(--border); border: 1px solid var(--border); }
.case__facts div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 18px; background: var(--bg-2); }
.case__facts dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.case__facts dd { margin: 0; font-weight: 600; font-size: 14.5px; text-align: right; }
.case__facts dd a { color: var(--primary-2); }
.case__visual .pv { aspect-ratio: 16 / 8; border-radius: 28px; }
.case__visual .pv__browser, .case__visual .pv__terminal { width: 70%; }
.case__visual .pv__phone { width: 20%; }
.case__results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 50px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--border); }
.case__results .stat__value em { color: var(--accent); }
.case__body { display: grid; grid-template-columns: 1fr 340px; gap: clamp(40px, 6vw, 80px); padding: clamp(60px, 8vw, 100px) 0; align-items: start; }
.case__main { display: grid; gap: 50px; }
.case__block { position: relative; padding-left: 70px; }
.case__block-icon { position: absolute; left: 0; top: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.case__block h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 14px; }
.case__block p { color: var(--muted); font-size: 17px; }
.case__block .check-list li > span { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.case__aside { position: sticky; top: calc(var(--nav-h) + 20px); padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.case__aside h3 { font-size: 16px; margin-bottom: 16px; }
.case__aside-cta { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.case__aside-cta p { color: var(--muted); font-size: 15px; }
.case__nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding: 40px 0 clamp(60px, 8vw, 100px); border-top: 1px solid var(--border); }
.case__nav-link { display: grid; gap: 6px; padding: 22px 26px; border-radius: 18px; border: 1px solid var(--border); transition: 0.4s var(--ease); }
.case__nav-link:hover { border-color: var(--primary-2); background: var(--surface); }
.case__nav-link small { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.case__nav-link strong { font-family: var(--font-display); font-size: clamp(16px, 1.6vw, 20px); }
.case__nav-link--next { text-align: right; justify-items: end; }
.case__nav-all { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); transition: 0.4s var(--ease); }
.case__nav-all:hover { background: var(--primary); border-color: var(--primary); transform: rotate(90deg); }

.error-page { min-height: 80svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 60px) 0 60px; text-align: center; }
.error-page .page-hero__lead { margin-inline: auto; margin-bottom: 36px; }
.error-page .hero__actions { justify-content: center; }
.error-page__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(110px, 22vw, 240px); line-height: 1; letter-spacing: -0.05em; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9; }

/* Proje görselinde müşteri logosu */
.pv__logo {
    position: absolute; top: 16px; left: 16px; z-index: 3; max-width: 42%; padding: 8px 12px; border-radius: 12px;
    display: flex; align-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.pv__logo img { display: block; height: 30px; width: auto; max-width: 100%; object-fit: contain; }
.case__visual .pv__logo { top: 24px; left: 24px; max-width: 30%; padding: 10px 16px; }
.case__visual .pv__logo img { height: 40px; }
.case__aside-logo { height: 120px; display: grid; place-items: center; padding: 18px 24px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.case__aside-logo img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.case__aside-cta--solo { margin-top: 0; padding-top: 0; border-top: 0; }

/* Sonuç rakamı olmayan projelerde öne çıkan özellikler listelenir */
.showcase__features { grid-template-columns: repeat(2, 1fr); gap: 12px 18px; margin: 26px 0; padding: 22px 0; border-block: 1px solid var(--border); }
.showcase__features li { font-size: 14.5px; align-items: flex-start; }
.showcase__features li > span { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.stack--single { grid-template-columns: 1fr; }
.tech-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 16px; }
.tech-group { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.tech-group h3 { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.tech-group__items { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-group .tech-pill { padding: 10px 16px; font-size: 14.5px; animation: none; }

/* Grid çocuklarının uzun içerikle (kod blokları vb.) taşmasını engelle */
.about > *, .stack > *, .faq > *, .contact > *, .showcase__item > *, .case__head > *, .case__body > * { min-width: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nav__links { display: none; }
    .nav__cta { margin-left: auto; }
    .nav__toggle { display: block; margin-left: 0; }
    .services { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: repeat(3, 1fr); row-gap: 50px; }
    .process__line { display: none; }
    .float-card--code { left: -4%; }
}
@media (max-width: 900px) {
    .hero__inner, .about, .stack, .faq, .contact, .showcase__item, .case__head, .case__body { grid-template-columns: 1fr; }
    .hero { text-align: left; }
    .hero__visual { max-width: 420px; margin: 20px auto 0; }
    .showcase__item.is-reversed .showcase__visual { order: 0; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .about__visual { max-width: 560px; }
    .code-window { transform: none; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__about { grid-column: 1 / -1; }
    .case__aside { position: static; }
    .project-grid { grid-template-columns: 1fr; }
    .cursor-glow { display: none; }
}
@media (max-width: 640px) {
    .container { width: calc(100% - 32px); }
    .nav__cta { display: none; }
    .nav__toggle { margin-left: auto; }
    .services, .process { grid-template-columns: 1fr; }
    .process__step { text-align: left; padding-left: 76px; }
    .process__num { position: absolute; left: 0; top: -6px; margin: 0; }
    .form-row, .check-list--grid { grid-template-columns: 1fr; }
    .hero__actions .btn { flex: 1; }
    .float-card--code { display: none; }
    .float-card--perf { left: -2%; }
    .float-card--stat { right: 0; }
    .about__badge { right: 10px; bottom: -24px; padding: 14px 18px; }
    .about__badge strong { font-size: 32px; }
    .showcase__results { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .showcase__results strong { font-size: 22px; }
    .case__results { grid-template-columns: 1fr; }
    .case__visual .pv { aspect-ratio: 4 / 3; }
    .case__visual .pv__browser, .case__visual .pv__terminal { width: 88%; }
    .case__visual .pv__phone { width: 32%; }
    .case__block { padding-left: 0; }
    .case__block-icon { position: static; margin-bottom: 16px; }
    .case__nav { grid-template-columns: 1fr; }
    .case__nav-all { display: none; }
    .case__nav-link--next { text-align: left; justify-items: start; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__mail { padding-left: 24px; }
    .testimonial__stars { width: 100%; text-align: center; margin: 0; }
    .client-card { width: 260px; }
    .client-card__logo { height: 120px; padding: 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .reveal, .fade-up, .fade-in { opacity: 1; transform: none; }
    .marquee__track, .clients__track { animation: none; }
    .clients { overflow-x: auto; }
}
