/* YAPI Yazılım — mühendislik odaklı arayüz */
:root {
  --bg-deep: #060708;
  --bg: #0a0b0f;
  --bg-elevated: #111318;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.35);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --muted-light: #71717a;
  --accent: #38bdf8;
  --accent-dim: #0ea5e9;
  --accent-deep: #0284c7;
  --radius: 12px;
  --radius-lg: 16px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .bg-mesh,
  .hero-art,
  .hero-art-glow,
  .hero-art-ring,
  .hero-art-dots span {
    animation: none !important;
  }
  [data-reveal] {
    filter: none !important;
    transition-duration: 0.35s !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Arka plan katmanları */
.bg-layers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(56, 189, 248, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(14, 165, 233, 0.1), transparent 45%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(6, 182, 212, 0.08), transparent 50%);
  animation: mesh-shift 22s ease-in-out infinite alternate;
}

@keyframes mesh-shift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(2%, 1%) scale(1.03);
    opacity: 0.95;
  }
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 70%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 7, 8, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color 0.2s var(--ease-out);
}

.logo:hover {
  color: var(--accent);
}

.logo-mark {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  margin-right: 0.5rem;
  vertical-align: -0.12em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.nav {
  display: flex;
  gap: 0.25rem;
}

.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim));
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  min-height: min(78vh, 720px);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: auto;
    padding-top: 2.5rem;
  }
  .hero-visual {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
  opacity: 0.95;
}

.hero-title {
  font-size: clamp(2.1rem, 4.5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 1.125rem;
  letter-spacing: -0.038em;
  background: linear-gradient(135deg, #fafafa 0%, #e4e4e7 45%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 2rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.15), 0 12px 40px -8px rgba(14, 165, 233, 0.45);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 20px 50px -12px rgba(14, 165, 233, 0.5);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
  margin-top: 1rem;
}

.hero-trust {
  margin: 1.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  animation: hero-float 8s ease-in-out infinite;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-10px) rotateX(2deg);
  }
}

.hero-art-inner {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.9) 0%, rgba(6, 7, 8, 0.95) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(56, 189, 248, 0.06);
  overflow: hidden;
}

.hero-art-glow {
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  background: conic-gradient(from 180deg at 50% 50%, rgba(56, 189, 248, 0.15), transparent 40%, rgba(6, 182, 212, 0.1), transparent 75%);
  animation: art-spin 14s linear infinite;
}

@keyframes art-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, black, transparent);
}

.hero-art-ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.2);
  animation: ring-pulse 4s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

.hero-art-dots {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.hero-art-dots span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: dot-orbit 10s linear infinite;
}

.hero-art-dots span:nth-child(1) {
  animation-delay: 0s;
}
.hero-art-dots span:nth-child(2) {
  animation-delay: -3.33s;
  opacity: 0.7;
  width: 4px;
  height: 4px;
}
.hero-art-dots span:nth-child(3) {
  animation-delay: -6.66s;
  opacity: 0.5;
  width: 3px;
  height: 3px;
}

@keyframes dot-orbit {
  from {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(100px) rotate(-360deg);
  }
}

.section {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.35));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-cta {
  padding-bottom: 5rem;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-sub {
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.section-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted-light);
  font-family: var(--font-mono);
  opacity: 0.9;
}

.section-tight {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.section-stats {
  border-bottom: 1px solid var(--border);
  background: rgba(6, 7, 8, 0.35);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.5), rgba(6, 7, 8, 0.85));
  transition: border-color 0.25s, box-shadow 0.25s;
}

.stat-card:hover {
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.stat-value {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.section-process .process-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .section-process .process-track {
    grid-template-columns: 1fr;
  }
}

.process-step {
  position: relative;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.process-step:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.2);
}

.process-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.process-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.process-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.section-tech {
  border-top: 1px solid var(--border);
  text-align: center;
}

.tech-label {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.65rem;
}

.tech-badges span {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-services {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.grid-products {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.35s;
}

.card-warn {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow:
    0 20px 44px -18px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(56, 189, 248, 0.12),
    0 0 40px -12px rgba(56, 189, 248, 0.15);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out),
    filter 0.65s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.product-card .product-img-wrap {
  margin: -0.35rem -0.35rem 1rem;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.product-card:hover img {
  transform: scale(1.03);
}

.product-desc {
  min-height: 2.75rem;
}

.product-price {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin: 1rem 0 0;
}

.product-price--quote {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.product-placeholder {
  margin: -0.35rem -0.35rem 1rem;
  border-radius: 10px;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(17, 24, 39, 0.6));
  border: 1px dashed var(--border);
}

.cta-inner {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.6) 0%, rgba(6, 7, 8, 0.85) 100%);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
}

.cta-inner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.cta-inner p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.25rem 1.5rem;
  background: rgba(6, 7, 8, 0.6);
}

.footer-inner {
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-family: var(--font);
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-copy {
  margin: 0;
}

/* Sohbet — tema ile uyumlu */
.egex-chat {
  position: fixed;
  z-index: 9999;
  right: 1.25rem;
  bottom: 1.25rem;
  font-family: var(--font);
}

.egex-chat-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.2rem;
  min-height: 2.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.95), rgba(6, 7, 8, 0.98));
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.015em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.2s;
  white-space: nowrap;
}

.egex-chat-fab:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(56, 189, 248, 0.12);
}

.egex-chat-fab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.egex-chat-fab-icon {
  display: flex;
  color: var(--accent);
}

.egex-chat-fab-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.egex-chat-panel[hidden] {
  display: none !important;
}

.egex-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.65rem);
  width: min(100vw - 2rem, 370px);
  height: min(68vh, 440px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(6, 7, 8, 0.99));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(56, 189, 248, 0.08);
  overflow: hidden;
}

.egex-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.egex-chat-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.egex-chat-close:hover {
  color: var(--text);
  background: var(--surface);
}

.egex-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(6, 7, 8, 0.5);
}

.egex-chat-bubble {
  max-width: 90%;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.egex-chat-bubble--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.egex-chat-bubble--assistant {
  align-self: flex-start;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text);
}

.egex-chat-loading {
  color: var(--muted);
  font-size: 0.875rem;
}

.egex-chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: rgba(6, 7, 8, 0.8);
}

.egex-chat-form input[type="text"] {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
}

.egex-chat-form input[type="text"]:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.egex-chat-send {
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8125rem;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  transition: filter 0.2s, transform 0.15s;
}

.egex-chat-send:hover {
  filter: brightness(1.08);
}

/* ——— Mobil & dokunmatik (telefon / küçük tablet) ——— */
@media (max-width: 768px) {
  body {
    touch-action: manipulation;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.6rem max(1rem, env(safe-area-inset-left)) 0.45rem max(1rem, env(safe-area-inset-right));
  }

  .logo {
    font-size: clamp(0.92rem, 4vw, 1.125rem);
    align-self: flex-start;
  }

  .nav--scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin: 0 -0.35rem;
    padding: 0.1rem 0.35rem 0.45rem;
    mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent);
  }

  .nav--scroll::-webkit-scrollbar {
    display: none;
  }

  .nav--scroll a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0.65rem 0.9rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    border-radius: 10px;
  }

  .nav--scroll a::after {
    display: none;
  }

  .hero {
    padding: 1.5rem max(1rem, env(safe-area-inset-left)) 2.25rem max(1rem, env(safe-area-inset-right));
    gap: 1.5rem;
  }

  .hero-content {
    text-align: center;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .hero-title {
    font-size: clamp(1.55rem, 6.5vw, 2.35rem);
  }

  .hero-lead {
    font-size: 1rem;
    margin-bottom: 1.35rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
    gap: 0.65rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1.2rem;
  }

  .hero-trust {
    font-size: 0.75rem;
    line-height: 1.55;
    margin-top: 1.35rem;
  }

  .hero-visual {
    max-width: min(100%, 300px);
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 2rem max(1rem, env(safe-area-inset-left)) 2.35rem max(1rem, env(safe-area-inset-right));
  }

  .section-tight {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .section-head {
    margin-bottom: 1.35rem;
    text-align: center;
  }

  .section-head .section-sub {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9375rem;
  }

  .section-hint {
    text-align: center;
  }

  .grid-services,
  .grid-products {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1.3rem 1.15rem;
  }

  .stats-grid {
    gap: 0.65rem;
  }

  .stat-card {
    padding: 1.1rem 0.95rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .process-step {
    padding: 1.25rem 1.1rem;
  }

  .tech-badges {
    gap: 0.4rem 0.45rem;
    justify-content: center;
  }

  .tech-badges span {
    padding: 0.42rem 0.72rem;
    font-size: 0.78rem;
  }

  .cta-inner {
    padding: 1.85rem 1.15rem;
  }

  .cta-inner h2 {
    font-size: clamp(1.15rem, 4.8vw, 1.45rem);
  }

  .cta-inner .btn {
    min-height: 48px;
    width: 100%;
    max-width: 18rem;
  }

  .footer {
    padding: 1.5rem max(1rem, env(safe-area-inset-left)) max(1.25rem, env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-right));
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
  }

  .footer-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.5rem;
    font-size: 0.9rem;
  }

  .egex-chat {
    right: max(0.65rem, env(safe-area-inset-right));
    bottom: max(0.65rem, env(safe-area-inset-bottom));
  }

  .egex-chat-fab {
    min-height: 48px;
    padding: 0.78rem 1rem;
  }

  .egex-chat-form input[type="text"],
  .egex-chat-send {
    min-height: 44px;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .egex-chat-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: none;
    height: min(78dvh, 520px);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 0.5rem);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.55);
  }

  .egex-chat-panel .egex-chat-form {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .egex-chat-fab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .egex-chat-fab {
    width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .egex-chat-fab-icon svg {
    width: 22px;
    height: 22px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .card-hover:active {
    transform: translateY(-2px);
  }

  .card-hover:hover,
  .process-step:hover,
  .stat-card:hover {
    transform: none;
    box-shadow: none;
  }

  .card-hover:hover {
    border-color: var(--border);
  }

  .btn-primary:hover,
  .btn-ghost:hover {
    transform: none;
  }

  .egex-chat-fab:hover {
    transform: none;
  }
}
