:root {
  --bg: #070708;
  --bg-elevated: #0e0e10;
  --surface: #141417;
  --line: #26262c;
  --line-soft: #1c1c21;
  --text: #e8e8eb;
  --text-muted: #8a8a94;
  --text-faint: #5c5c66;
  --accent: #c8c8d0;
  --white: #f4f4f6;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  color: var(--white);
  font-weight: 600;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--text-faint);
  margin: 0 0 1rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: linear-gradient(to bottom, rgba(7, 7, 8, 0.92), transparent);
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(52vw, 280px);
  object-fit: contain;
}

.logo span {
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.35rem;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.25s var(--ease);
}

.nav a:hover {
  color: var(--white);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switch {
  position: relative;
}

.lang-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(14, 14, 16, 0.75);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-toggle:hover,
.lang-switch.is-open .lang-toggle {
  color: var(--white);
  border-color: var(--text-faint);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 60;
  display: none;
  min-width: 9.5rem;
  padding: 0.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.lang-switch.is-open .lang-menu {
  display: grid;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, #121216 0%, transparent 55%),
    var(--bg);
}

#tech-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-hex {
  position: absolute;
  inset: -10%;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath fill='none' stroke='rgba(180,180,190,0.14)' stroke-width='1' d='M28 0 L56 16 L56 50 L28 66 L0 50 L0 16 Z'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 42%, black 10%, transparent 72%);
  animation: hexShift 40s linear infinite;
}

@keyframes hexShift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 56px 100px;
  }
}

.hero-floor {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -5%;
  height: 55%;
  background-image:
    linear-gradient(rgba(180, 180, 190, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 180, 190, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, black 5%, transparent 78%);
  animation: floorScroll 12s linear infinite;
}

@keyframes floorScroll {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 48px;
  }
}

.hero-radar {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(72vw, 640px);
  height: min(72vw, 640px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(180, 180, 190, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(180, 180, 190, 0.04),
    0 0 0 80px rgba(180, 180, 190, 0.015),
    0 0 0 160px rgba(180, 180, 190, 0.01);
}

.hero-radar::before,
.hero-radar::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px dashed rgba(160, 160, 170, 0.12);
  animation: spinSlow 48s linear infinite;
}

.hero-radar::after {
  inset: 34%;
  border-style: solid;
  border-color: rgba(160, 160, 170, 0.08);
  animation-duration: 32s;
  animation-direction: reverse;
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 42% at 50% 40%, rgba(255, 255, 255, 0.035), transparent 68%),
    linear-gradient(to top, var(--bg) 0%, transparent 38%),
    linear-gradient(to bottom, rgba(7, 7, 8, 0.55) 0%, transparent 28%),
    linear-gradient(to right, rgba(7, 7, 8, 0.65) 0%, transparent 18%, transparent 82%, rgba(7, 7, 8, 0.65) 100%);
}

/* HUD frame */
.hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hud-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(180, 180, 190, 0.45);
  border-style: solid;
  border-width: 0;
}

.hud-corner.tl {
  top: 5.5rem;
  left: 1.5rem;
  border-top-width: 1px;
  border-left-width: 1px;
}

.hud-corner.tr {
  top: 5.5rem;
  right: 1.5rem;
  border-top-width: 1px;
  border-right-width: 1px;
}

.hud-corner.bl {
  bottom: 2.5rem;
  left: 1.5rem;
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.hud-corner.br {
  bottom: 2.5rem;
  right: 1.5rem;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

.hud-rail {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.55;
}

.hud-rail.left {
  left: 1.15rem;
}

.hud-rail.right {
  right: 1.15rem;
  align-items: flex-end;
}

.hud-rail .tick {
  display: block;
  width: 10px;
  height: 1px;
  background: rgba(180, 180, 190, 0.55);
}

.hud-rail .tick.tall {
  width: 18px;
  background: rgba(220, 220, 228, 0.7);
}

.hud-meta {
  position: absolute;
  margin: 0;
  color: rgba(140, 140, 150, 0.75);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.hud-meta.top-left {
  top: 5.85rem;
  left: 3.4rem;
}

.hud-meta.top-right {
  top: 5.85rem;
  right: 3.4rem;
}

.hud-meta.bottom-left {
  bottom: 2.85rem;
  left: 3.4rem;
}

.hud-meta.bottom-right {
  bottom: 2.85rem;
  right: 3.4rem;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  max-width: 48rem;
  width: 100%;
  margin: 0 auto;
  animation: riseIn 1.1s var(--ease) both;
}

.hero-content .brand {
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.08);
}

.hero-logo {
  display: block;
  width: min(88vw, 560px);
  height: auto;
  margin: 0.35rem auto 1.5rem;
  object-fit: contain;
  background: transparent;
  /* Soldaki monogram nedeniyle BALKAP sağa kaçıyor —
     logoyu sola kaydırıp alt yazıyla aynı optik ortaya getir */
  transform: translateX(-5.5%);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  margin: 0 0 1.25rem;
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--white);
}

.brand span {
  display: inline-block;
  margin-left: 0.2em;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-content .eyebrow {
  margin-bottom: 0.85rem;
  width: 100%;
  text-align: center;
}

.lede {
  margin: 0 auto 2rem;
  max-width: 28rem;
  width: 100%;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 400;
  text-align: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.cta.primary {
  background: var(--white);
  color: var(--bg);
}

.cta.primary:hover {
  background: #d8d8dc;
}

.cta.ghost {
  border-color: var(--line);
  color: var(--text-muted);
}

.cta.ghost:hover {
  border-color: var(--text-faint);
  color: var(--white);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-faint);
}

.scroll-hint span {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--text-faint), transparent);
  animation: pulseLine 1.8s ease-in-out infinite;
}

@keyframes pulseLine {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Arms */
.arms {
  position: relative;
  padding: 7rem 1.5rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-head {
  max-width: 32rem;
  margin-bottom: 4rem;
}

.section-head h2,
.contact h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.1;
}

.section-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.arms-stage {
  display: grid;
  gap: 3.5rem;
}

.arm {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.arm.visible {
  opacity: 1;
  transform: translateY(0);
}

.arm:nth-child(2).visible {
  transition-delay: 0.12s;
}

.arm-visual {
  position: relative;
  height: 220px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.arm-copy .label {
  color: var(--text-faint);
  margin: 0 0 0.5rem;
}

.arm-copy h3 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

.arm-copy p {
  margin: 0;
  color: var(--text-muted);
  max-width: 36rem;
}

/* Spedition visual */
.route-map {
  position: relative;
  width: 100%;
  height: 100%;
}

.routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route {
  fill: none;
  stroke: #3a3a42;
  stroke-width: 1.5;
  stroke-dasharray: 8 10;
  animation: routeFlow 6s linear infinite;
}

.route.r2 {
  stroke: #4a4a54;
  animation-duration: 8s;
  animation-direction: reverse;
}

.route.r3 {
  stroke: #2e2e36;
  animation-duration: 10s;
}

@keyframes routeFlow {
  to {
    stroke-dashoffset: -120;
  }
}

.node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9a9aa4;
  box-shadow: 0 0 0 6px rgba(154, 154, 164, 0.12);
  animation: nodePulse 2.4s ease-in-out infinite;
}

.node.n1 {
  left: 12%;
  top: 72%;
}
.node.n2 {
  left: 38%;
  top: 28%;
  animation-delay: 0.4s;
}
.node.n3 {
  left: 62%;
  top: 55%;
  animation-delay: 0.8s;
}
.node.n4 {
  left: 84%;
  top: 22%;
  animation-delay: 1.2s;
}

@keyframes nodePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

/* Tech / ChatSee visual */
.app-orbit {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid #2a2a32;
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.orbit-ring::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: #a8a8b0;
  border-radius: 50%;
}

.orbit-ring.delay {
  width: 220px;
  height: 220px;
  border-color: #222228;
  animation-duration: 28s;
  animation-direction: reverse;
}

.orbit-ring.delay::before {
  background: #6a6a74;
  width: 4px;
  height: 4px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.app-core {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  animation: coreFloat 4s ease-in-out infinite;
}

@keyframes coreFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.app-name {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
}

.app-tag {
  color: var(--text-faint);
}

/* Brands marquee */
.brands {
  padding: 2rem 0 3.5rem;
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}

.brands-head {
  max-width: 1100px;
  margin: 0 auto 1.25rem;
  padding: 0 1.5rem;
}

.brands-marquee {
  position: relative;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.brands-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.brands-marquee:hover .brands-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.brand-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  height: 72px;
  padding: 0 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  opacity: 0.92;
}

.brand-pill img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.brand-pill-icon {
  height: 40px !important;
  width: 40px !important;
  max-width: none;
}

.brand-pill-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .brands-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  .brands-marquee {
    mask-image: none;
  }

  .brand-pill:nth-child(n + 3) {
    display: none;
  }
}

/* Contact */
.contact {
  padding: 5rem 1.5rem 7rem;
  border-top: 1px solid var(--line-soft);
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.contact .section-copy {
  margin-bottom: 2.5rem;
  max-width: 32rem;
}

.inline-link {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--accent);
}

.contact-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
}

.form-row {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-faint);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #5c5c66;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
  cursor: pointer;
}

.consent input {
  margin-top: 0.2rem;
  width: auto;
  accent-color: #9a9aa4;
}

.consent a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form .cta {
  justify-self: start;
  margin-top: 0.35rem;
  border: none;
  cursor: pointer;
}

.contact-form .cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.contact-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-card {
  margin: 0;
  padding: 1.35rem 1.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  font-style: normal;
}

.contact-card .label {
  color: var(--text-faint);
  margin: 0 0 0.75rem;
}

.contact-card p:last-child {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-card a {
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.contact-card a:hover {
  color: var(--white);
}

.contact-map {
  padding: 0;
  overflow: hidden;
  min-height: 220px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 80;
  transform: translateX(-50%);
  display: none;
  max-width: min(92vw, 420px);
  padding: 0.85rem 1.15rem;
  background: rgba(14, 14, 16, 0.96);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.9rem;
  text-align: center;
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 1rem 1.25rem 1.25rem;
  background: rgba(7, 7, 8, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.cookie-banner-text {
  flex: 1 1 280px;
  max-width: 46rem;
}

.cookie-banner-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.cookie-banner-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.cookie-banner-text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-btn {
  appearance: none;
  border: 1px solid var(--line);
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.cookie-btn.ghost {
  background: transparent;
  color: var(--text-muted);
}

.cookie-btn.ghost:hover {
  color: var(--white);
  border-color: var(--text-faint);
}

.cookie-btn.solid {
  background: var(--white);
  border-color: var(--white);
  color: var(--bg);
}

.cookie-btn.solid:hover {
  background: #d8d8dc;
}

@media (max-width: 640px) {
  .cookie-banner {
    padding: 0.9rem 1rem 1rem;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.75rem;
    align-items: start;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--line-soft);
}

.site-footer p {
  margin: 0;
  color: var(--text-faint);
}

.site-footer .muted {
  color: var(--text-faint);
  opacity: 0.7;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.legal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-faint);
  font-size: 0.72rem;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.legal-link img {
  width: 16px;
  height: 16px;
  opacity: 0.75;
}

.legal-link:hover,
.legal-link.is-active {
  color: var(--text);
  opacity: 1;
}

.legal-link:hover img,
.legal-link.is-active img {
  opacity: 1;
}

/* Legal pages */
.legal-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  position: sticky;
  background: rgba(7, 7, 8, 0.92);
  border-bottom: 1px solid var(--line-soft);
}

.legal-header .logo-img {
  height: 34px;
  max-width: min(48vw, 260px);
}

.legal-main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}

.legal-hero {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line-soft);
}

.legal-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.legal-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
}

.legal-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.legal-blocks {
  display: grid;
  gap: 1rem;
}

.legal-block {
  padding: 1.25rem 1.3rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
}

.legal-block h2 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}

.legal-block p,
.legal-block address,
.legal-block li {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  font-style: normal;
}

.legal-block ul {
  margin: 0.75rem 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.legal-block li {
  margin-bottom: 0.35rem;
}

.legal-block a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-block a:hover {
  color: var(--white);
}

.legal-footer {
  margin-top: auto;
}

@media (min-width: 768px) {
  .arm {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 2.5rem;
  }

  .arm-tech {
    direction: rtl;
  }

  .arm-tech > * {
    direction: ltr;
  }

  .arm-visual {
    height: 280px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }

  .header-right {
    gap: 0.65rem;
  }

  .logo-img {
    height: 26px;
    max-width: 150px;
  }

  .hero-logo {
    width: min(94vw, 420px);
  }

  .nav {
    gap: 0.75rem;
  }

  .nav a {
    font-size: 0.8rem;
  }

  .lang-switch {
    gap: 0;
  }

  .lang-toggle {
    width: 2rem;
    height: 2rem;
  }

  .lang-btn {
    padding: 0.55rem 0.7rem;
    font-size: 0.72rem;
  }

  .hud-meta,
  .hud-rail {
    display: none;
  }

  .hud-corner.tl,
  .hud-corner.tr {
    top: 4.5rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
