/* =========================================================
   REPRO İSTANBUL — Hero Prototype
   Design tokens sourced from /docs/14-design-system-spec.md
   ========================================================= */

:root {
  /* --- Color --- */
  --bg-dark: #0B0C0E;
  --surface-container: #14161A;
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;

  --cmyk-cyan: #00E5FF;
  --cmyk-magenta: #FF0055;
  --cmyk-yellow: #FFD600;
  --cmyk-key: #18191C;

  --lock-active: #00FF66;

  /* --- Typography --- */
  --font-display: 'Cabinet Grotesk', 'General Sans', sans-serif;
  --font-body: 'Inter', 'Satoshi', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* --- Motion --- */
  --ease-snap-lock: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Layout --- */
  --grid-cell: 64px;
  --container-pad: clamp(24px, 5vw, 96px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px var(--container-pad) 40px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(0, 229, 255, 0.05), transparent 60%),
    var(--bg-dark);
}

/* --- Grid Overlay: 64x64 milimetrik grid --- */
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: var(--grid-cell) var(--grid-cell);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

/* --- Crosshairs (registration marks, 4 corners) --- */
.crosshairs {
  position: absolute;
  inset: 24px;
  pointer-events: none;
  z-index: 2;
}

.crosshair {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--text-secondary);
  opacity: 0.55;
  transition: color 0.4s var(--ease-snap-lock), opacity 0.4s var(--ease-snap-lock), text-shadow 0.4s var(--ease-snap-lock);
}
/* Glyph box is centered exactly on each corner point (Phase 9A QA pass) */
.crosshair--tl { top: 0; left: 0; transform: translate(-50%, -50%); }
.crosshair--tr { top: 0; right: 0; transform: translate(50%, -50%); }
.crosshair--bl { bottom: 0; left: 0; transform: translate(-50%, 50%); }
.crosshair--br { bottom: 0; right: 0; transform: translate(50%, 50%); }

.crosshairs.is-locked .crosshair {
  color: var(--lock-active);
  opacity: 1;
  text-shadow: 0 0 12px rgba(0, 255, 102, 0.55);
}

/* --- Top bar --- */
.hero__topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.hero__wordmark span { color: var(--text-secondary); font-weight: 600; }

.hero__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em; /* standardized site-wide, see Phase 9A QA pass */
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* --- Hero content (headline / subheadline / CTA) --- */
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  margin-top: 48px;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(34px, 5.4vw, 68px);
  margin: 0 0 24px;
  color: var(--text-primary);
}

.hero__headline-accent {
  background: linear-gradient(90deg, var(--cmyk-cyan), var(--cmyk-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subheadline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 0 36px;
}

/* --- CTA Group --- */
.hero__cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 6px;
  transition: transform 0.3s var(--ease-snap-lock), background 0.3s var(--ease-snap-lock), color 0.3s var(--ease-snap-lock), border-color 0.3s var(--ease-snap-lock);
  cursor: pointer;
}

.btn--primary {
  background: var(--text-primary);
  color: var(--bg-dark);
  border: 1px solid var(--text-primary);
}
.btn--primary:hover {
  background: var(--cmyk-cyan);
  border-color: var(--cmyk-cyan);
  color: var(--bg-dark);
  transform: translateY(-1px);
}
.btn--primary:hover .btn__arrow { transform: translateX(3px); }
.btn__arrow { transition: transform 0.3s var(--ease-snap-lock); }

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn--secondary:hover {
  border-color: var(--lock-active);
  color: var(--lock-active);
}
.btn__lock-point {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: background 0.3s var(--ease-snap-lock), box-shadow 0.3s var(--ease-snap-lock);
}
.btn--secondary:hover .btn__lock-point {
  background: var(--lock-active);
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.7);
}

/* =========================================================
   REGISTRATION LOCK VISUAL
   ========================================================= */

.hero__visual {
  position: absolute;
  right: max(4vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.registration-lock {
  position: relative;
  width: min(38vw, 420px);
  aspect-ratio: 1 / 1.15;
  isolation: isolate;
}

.channel {
  position: absolute;
  inset: 8%;
  clip-path: polygon(
    18% 0%, 82% 0%, 100% 16%, 100% 78%, 82% 100%, 18% 100%, 0% 78%, 0% 16%
  );
  mix-blend-mode: screen;
  filter: blur(var(--channel-blur, 3px));
  will-change: transform, filter;
  /* Same real product photo behind every channel — each one just
     tints it a different CMYK color (background-blend-mode: color
     keeps the photo's own shape/detail, only recolors it), so the
     drift-then-lock animation below reads as color separations of
     one image converging, instead of abstract flat shapes. Uses
     the same asset already shipped for the Repro Transformer
     section (packaging.png) — no new file, no script.js changes,
     since script.js only ever sets the --cx/--cy/etc custom
     properties consumed above, never touches background at all. */
  background-image: url("packaging.png");
  background-size: cover;
  background-position: center;
  background-blend-mode: color;
}

.channel--cyan {
  background-color: var(--cmyk-cyan);
  transform: translate(var(--cx, -18px), var(--cy, -12px));
  opacity: 0.85;
}
.channel--magenta {
  background-color: var(--cmyk-magenta);
  transform: translate(var(--mx, 16px), var(--my, 10px));
  opacity: 0.85;
}
.channel--yellow {
  background-color: var(--cmyk-yellow);
  transform: translate(var(--yx, -10px), var(--yy, 16px));
  opacity: 0.8;
}
.channel--key {
  /* The "locked" layer: no color tint, just the real photo at
     full clarity — the moment the other three channels converge
     onto this one, the true, correctly registered image appears. */
  background-color: transparent;
  background-blend-mode: normal;
  transform: translate(var(--kx, 8px), var(--ky, -8px)) scale(0.94);
  opacity: 0.9;
  mix-blend-mode: normal;
}

.lock-flash {
  position: absolute;
  inset: 8%;
  clip-path: polygon(
    18% 0%, 82% 0%, 100% 16%, 100% 78%, 82% 100%, 18% 100%, 0% 78%, 0% 16%
  );
  background: var(--lock-active);
  opacity: 0;
  pointer-events: none;
  will-change: opacity; /* Phase 9A: GPU-composited flash fade */
}

/* --- Micron Counter --- */
.mm-counter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(20, 22, 26, 0.6);
  backdrop-filter: blur(6px);
}
.mm-counter__label { color: var(--text-secondary); }
.mm-counter__value {
  color: var(--text-primary);
  font-weight: 500;
  min-width: 68px;
  text-align: right;
}
.mm-counter__status {
  color: var(--text-secondary);
  font-size: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
  transition: color 0.3s var(--ease-snap-lock);
}
.mm-counter.is-locked .mm-counter__value,
.mm-counter.is-locked .mm-counter__status {
  color: var(--lock-active);
}

/* =========================================================
   SCROLL HINT
   ========================================================= */

.hero__scroll-hint {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.hero__scroll-hint-line {
  width: 28px;
  height: 1px;
  background: var(--border);
}
.hero__scroll-hint-text { color: var(--text-secondary); }
.hero__scroll-hint-sub {
  color: rgba(156, 163, 175, 0.55);
  font-family: var(--font-body);
  letter-spacing: 0;
  font-size: 11.5px;
}

/* =========================================================
   RESPONSIVE — Mobile
   Ref: /docs/11-information-architecture.md (Desktop vs Mobile)
   (Hero-only rules — unchanged from the working prototype)
   ========================================================= */

@media (max-width: 860px) {
  .hero { padding-top: 20px; }
  .hero__content { margin-top: 32px; }
  .hero__visual {
    position: relative;
    inset: auto;
    transform: none;
    align-self: center;
    margin-top: 40px;
    right: auto;
    top: auto;
  }
  .registration-lock { width: min(70vw, 320px); }
  .crosshairs { inset: 14px; }
  .hero__scroll-hint { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .channel, .crosshair, .btn, .btn__arrow, .btn__lock-point { transition: none !important; }
}

/* =========================================================
   HİZALAMA KİLİDİ — Phase 6 Signature Interaction
   Independent module: its own classes/ids only (reglock__*),
   plus the shared :root design tokens. Does not read or alter
   any Hero rule above (.hero, .channel, .crosshairs,
   .registration-lock, .mm-counter, script.js's controller) —
   the Hero's CSS and animation setup stays untouched.
   Ref: /docs/09-signature-interaction.md
   ========================================================= */

.reglock {
  position: relative;
  z-index: -1; /* Hero pins itself (position:fixed) while scrolling through
    its runway; without this, this section — being positioned too —
    would paint over the pinned Hero per DOM order. This rule lives
    entirely on the new section, Hero's own rules are untouched. */
  padding: 100px var(--container-pad) 96px;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
  overflow: hidden;
  text-align: center;
}

.reglock__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: var(--grid-cell) var(--grid-cell);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 80%);
  pointer-events: none;
}

.reglock__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 3.4vw, 40px);
  margin: 0 0 56px;
  color: var(--text-primary);
}

.reglock__stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 0 0 32px;
}

.reglock__crosshairs {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}
.reglock__crosshair {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--text-secondary);
  opacity: 0.55;
  transition: color 0.4s var(--ease-snap-lock), opacity 0.4s var(--ease-snap-lock);
}
/* Glyph box is centered exactly on each corner point (Phase 9A QA pass) */
.reglock__crosshair--tl { top: 0; left: 0; transform: translate(-50%, -50%); }
.reglock__crosshair--tr { top: 0; right: 0; transform: translate(50%, -50%); }
.reglock__crosshair--bl { bottom: 0; left: 0; transform: translate(-50%, 50%); }
.reglock__crosshair--br { bottom: 0; right: 0; transform: translate(50%, 50%); }
.reglock__crosshairs.is-locked .reglock__crosshair {
  color: var(--lock-active);
  opacity: 1;
  text-shadow: 0 0 2px rgba(0, 255, 102, 0.8);
}

.reglock__visual {
  position: relative;
  width: min(48vw, 360px);
  aspect-ratio: 1 / 1.15;
  isolation: isolate;
}

.reglock__channel {
  position: absolute;
  inset: 8%;
  mix-blend-mode: screen;
  will-change: transform; /* Phase 9A: GPU-composited position, no per-frame paint */
}
.reglock__visual.is-snapping .reglock__channel {
  transition: transform 90ms var(--ease-snap-lock);
}
.reglock__channel--cyan {
  background: var(--cmyk-cyan);
  border: 1px solid rgba(0, 229, 255, 0.9);
  transform: translate(var(--rx-c, -18px), var(--ry-c, -12px));
  opacity: 0.7;
}
.reglock__channel--magenta {
  background: var(--cmyk-magenta);
  border: 1px solid rgba(255, 0, 85, 0.9);
  transform: translate(var(--rx-m, 16px), var(--ry-m, 10px));
  opacity: 0.7;
}
.reglock__channel--yellow {
  background: var(--cmyk-yellow);
  border: 1px solid rgba(255, 214, 0, 0.9);
  transform: translate(var(--rx-y, -10px), var(--ry-y, 16px));
  opacity: 0.65;
}
.reglock__channel--key {
  background: var(--cmyk-key);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: translate(var(--rx-k, 8px), var(--ry-k, -8px)) scale(0.94);
  opacity: 0.9;
  mix-blend-mode: normal;
}

.reglock__flash {
  position: absolute;
  inset: 8%;
  background: var(--lock-active);
  opacity: 0;
  will-change: opacity; /* Phase 9A: GPU-composited flash fade */
  pointer-events: none;
}

.reglock__led {
  position: relative;
  z-index: 1;
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto 40px;
  border-radius: 50%;
  background: var(--text-secondary);
  opacity: 0.4;
  transition: background 0.2s linear, opacity 0.2s linear, box-shadow 0.2s linear;
}
.reglock__led.is-on {
  background: var(--lock-active);
  opacity: 1;
  box-shadow: 0 0 4px rgba(0, 255, 102, 0.8);
}

.reglock__control {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
}
.reglock__slider-tag {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  white-space: nowrap;
}
.reglock__slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
.reglock__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 4px;
  height: 20px;
  border-radius: 1px;
  background: var(--text-primary);
  border: none;
  cursor: pointer;
  transition: background 0.15s linear, box-shadow 0.15s linear;
}
.reglock__slider::-moz-range-thumb {
  width: 4px;
  height: 20px;
  border-radius: 1px;
  background: var(--text-primary);
  border: none;
  cursor: pointer;
}
.reglock__slider:focus-visible::-webkit-slider-thumb,
.reglock__slider:active::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.25);
}

.reglock__message {
  position: relative;
  z-index: 1;
  margin: 32px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--lock-active);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease-snap-lock), transform 0.35s var(--ease-snap-lock);
}
.reglock__message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .reglock { padding: 72px var(--container-pad) 72px; }
  .reglock__visual { width: min(70vw, 300px); }
}

@media (max-width: 480px) {
  /* Phase 9A QA pass: the two nowrap slider tags + the range input
     were not allowed to wrap, risking horizontal overflow on very
     narrow phones. The slider now takes its own full-width row. */
  .reglock__control { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .reglock__slider { flex: 1 1 100%; order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .reglock__message, .reglock__led, .reglock__crosshair { transition: none !important; }
}

/* =========================================================
   TEKNİK HİZMET MATRİSİ — Phase 7A
   Independent module: own classes only (techmatrix__*), plus
   the shared :root design tokens. Does not read or alter any
   Hero or Hizalama Kilidi rule above — both stay untouched.
   ========================================================= */

.techmatrix {
  padding: 100px var(--container-pad) 112px;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
  /* So the header's Süreçler dropdown links (which hash-jump
     here) don't land with the fixed 64px header covering the
     section's own top edge. Purely additive — no existing
     layout/spacing value changed. */
  scroll-margin-top: 64px;
}

.techmatrix__header {
  max-width: 640px;
  margin: 0 0 64px;
}

.techmatrix__eyebrow {
  position: relative;
  display: inline-block;
  margin: 0 0 20px;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em; /* standardized site-wide, see Phase 9A QA pass */
  text-transform: uppercase;
  color: var(--text-secondary);
}
.techmatrix__eyebrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--border);
}

.techmatrix__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3.6vw, 42px);
  margin: 0 0 16px;
  color: var(--text-primary);
}

.techmatrix__desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0;
}

.techmatrix__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.techmatrix__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s var(--ease-snap-lock);
}
.techmatrix__card:hover {
  border-color: var(--cmyk-cyan);
}

.techmatrix__card-mark {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--cmyk-cyan);
  opacity: 0;
  transition: opacity 0.2s linear;
}
.techmatrix__card:hover .techmatrix__card-mark {
  opacity: 1;
}

.techmatrix__card-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.techmatrix__card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.techmatrix__card-title span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}

.techmatrix__card-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.techmatrix__card-tags {
  list-style: none;
  margin: 0 0 24px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.techmatrix__card-tags li {
  position: relative;
  padding-left: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.techmatrix__card-tags li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--cmyk-cyan);
}

.techmatrix__card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cmyk-cyan);
  text-decoration: none;
  width: fit-content;
}
.techmatrix__card-link svg {
  transition: transform 0.25s var(--ease-snap-lock);
}
.techmatrix__card-link:hover svg {
  transform: translateX(3px);
}

@media (max-width: 1180px) {
  .techmatrix__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .techmatrix { padding: 72px var(--container-pad) 72px; }
  .techmatrix__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .techmatrix__card, .techmatrix__card-mark, .techmatrix__card-link svg { transition: none !important; }
}

/* =========================================================
   SEKTÖREL AMBALAJ ÇÖZÜMLERİ — Phase 7B
   Independent module: own classes only (sectorgrid__*,
   sectorcard__*), plus the shared :root design tokens. Does
   not read or alter any Hero, Hizalama Kilidi, or Teknik
   Hizmet Matrisi rule above — all three stay untouched.
   ========================================================= */

.sectorgrid {
  padding: 100px var(--container-pad) 112px;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
}

.sectorgrid__header {
  max-width: 760px;
  margin: 0 0 64px;
}

.sectorgrid__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(26px, 3.2vw, 38px);
  margin: 0;
  color: var(--text-primary);
}

.sectorgrid__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.sectorcard {
  position: relative;
  overflow: hidden;
  padding: 32px 28px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.4s var(--ease-snap-lock);
}
.sectorcard:hover {
  border-color: var(--cmyk-cyan);
}

/* Faint technical grid that appears on hover, behind the content */
.sectorcard__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-snap-lock);
  pointer-events: none;
}
.sectorcard:hover .sectorcard__grid-overlay {
  opacity: 1;
}

/* 4-corner registration crosshairs, independent of Hero's/
   Hizalama Kilidi's .crosshair classes */
.sectorcard__crosshair {
  position: absolute;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  color: var(--text-secondary);
  opacity: 0.35;
  transition: color 0.3s var(--ease-snap-lock), opacity 0.3s var(--ease-snap-lock);
}
/* Glyph box is centered exactly on each corner point (Phase 9A QA pass) */
.sectorcard__crosshair--tl { top: 10px; left: 10px; transform: translate(-50%, -50%); }
.sectorcard__crosshair--tr { top: 10px; right: 10px; transform: translate(50%, -50%); }
.sectorcard__crosshair--bl { bottom: 10px; left: 10px; transform: translate(-50%, 50%); }
.sectorcard__crosshair--br { bottom: 10px; right: 10px; transform: translate(50%, 50%); }
.sectorcard:hover .sectorcard__crosshair {
  color: var(--cmyk-cyan);
  opacity: 1;
}

.sectorcard__index {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.sectorcard__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.sectorcard__title span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}

.sectorcard__desc {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 22px;
}

.sectorcard__specs {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0 0 24px;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sectorcard__specs li {
  position: relative;
  padding-left: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.sectorcard__specs li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--cmyk-cyan);
}

.sectorcard__cta {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease-snap-lock);
}
.sectorcard:hover .sectorcard__cta {
  color: var(--cmyk-cyan);
}

@media (max-width: 860px) {
  .sectorgrid { padding: 72px var(--container-pad) 72px; }
  .sectorgrid__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .sectorgrid__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .sectorcard, .sectorcard__grid-overlay, .sectorcard__crosshair, .sectorcard__cta {
    transition: none !important;
  }
}

/* =========================================================
   KAPANIŞ — CTA, İletişim & Industrial Footer (Phase 8)
   Independent module: own classes only (closing__*,
   sitefooter__*), plus the shared :root design tokens. Does
   not read or alter any Hero, Hizalama Kilidi, Teknik Hizmet
   Matrisi, or Sektörel Ambalaj Çözümleri rule above — all
   four stay untouched.
   ========================================================= */

.closing {
  padding: 100px var(--container-pad) 96px;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
}

.closing__header {
  max-width: 700px;
  margin: 0 0 56px;
}

.closing__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(28px, 3.8vw, 44px);
  margin: 0 0 20px;
  color: var(--text-primary);
}

.closing__subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0;
}

.closing__panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.closing__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-content: start;
}

.closing__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.closing__field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.closing__field input,
.closing__field select {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--surface-container);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.3s var(--ease-snap-lock);
}
.closing__field input:focus,
.closing__field select:focus {
  border-color: var(--cmyk-cyan);
}

.closing__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.closing__info-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 8px;
}
.closing__info-value {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  margin: 0;
}
.closing__info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.closing__info-list li {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
}

.closing__cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.closing__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 6px;
  padding: 15px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease-snap-lock), background 0.3s var(--ease-snap-lock), color 0.3s var(--ease-snap-lock), border-color 0.3s var(--ease-snap-lock);
}

.closing__btn--primary {
  background: var(--text-primary);
  color: var(--bg-dark);
  border-color: var(--text-primary);
}
.closing__btn--primary:hover {
  background: var(--cmyk-cyan);
  border-color: var(--cmyk-cyan);
  color: var(--bg-dark);
  transform: translateY(-1px);
}
.closing__btn--primary:hover .closing__btn-arrow { transform: translateX(3px); }
.closing__btn-arrow { transition: transform 0.3s var(--ease-snap-lock); }

.closing__btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.closing__btn--secondary:hover {
  border-color: var(--lock-active);
  color: var(--lock-active);
}
.closing__btn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: background 0.3s var(--ease-snap-lock), box-shadow 0.3s var(--ease-snap-lock);
}
.closing__btn--secondary:hover .closing__btn-dot {
  background: var(--lock-active);
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.7);
}

@media (max-width: 860px) {
  .closing { padding: 72px var(--container-pad) 64px; }
  .closing__panel { grid-template-columns: 1fr; gap: 40px; }
  .closing__form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .closing__btn, .closing__btn-arrow, .closing__btn-dot, .closing__field input, .closing__field select {
    transition: none !important;
  }
}

/* --- Industrial Footer --- */

.sitefooter {
  position: relative;
  padding: 24px var(--container-pad);
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
}

.sitefooter__crosshairs {
  position: absolute;
  inset: 16px;
  pointer-events: none;
}
.sitefooter__crosshair {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--text-secondary);
  opacity: 0.4;
}
/* Glyph box is centered exactly on each corner point (Phase 9A QA pass) */
.sitefooter__crosshair--tl { top: 0; left: 0; transform: translate(-50%, -50%); }
.sitefooter__crosshair--tr { top: 0; right: 0; transform: translate(50%, -50%); }
.sitefooter__crosshair--bl { bottom: 0; left: 0; transform: translate(-50%, 50%); }
.sitefooter__crosshair--br { bottom: 0; right: 0; transform: translate(50%, 50%); }

/* Phase 10B: single horizontal legal bar — company name / copyright /
   legal links, all on one row on desktop, stacked+centered on mobile. */
.sitefooter__bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.sitefooter__company {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.sitefooter__copyright {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--text-secondary);
  text-align: center;
  flex: 1 1 auto;
}

.sitefooter__legal {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sitefooter__legal a,
.sitefooter__legal-btn {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s var(--ease-snap-lock);
}
.sitefooter__legal a:hover,
.sitefooter__legal-btn:hover {
  color: var(--cmyk-cyan);
}

@media (max-width: 860px) {
  .sitefooter__bar {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .sitefooter__company { order: 1; }
  .sitefooter__copyright { order: 2; }
  .sitefooter__legal { order: 3; justify-content: center; }
}

/* =========================================================
   TEKLİF & DOSYA ANALİZİ MODALI — Phase 9B
   Independent module: own classes/ids only (modal__*, modal*),
   plus the shared :root design tokens. Does not read or alter
   any Hero, Hizalama Kilidi, Teknik Hizmet Matrisi, Sektörel
   Ambalaj Çözümleri, or Kapanış/Footer rule above — all five
   stay untouched. Triggered by modal.js.
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-snap-lock), visibility 0s linear 0.3s;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease-snap-lock), visibility 0s linear 0s;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 14, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__box {
  position: relative;
  z-index: 1;
  width: min(92vw, 560px);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  padding: 48px 40px 40px;
  transform: translateY(12px);
  transition: transform 0.3s var(--ease-snap-lock);
}
.modal.is-open .modal__box {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.3s var(--ease-snap-lock);
}
.modal__close:hover { color: var(--cmyk-cyan); }

.modal__crosshairs {
  position: absolute;
  inset: 12px;
  pointer-events: none;
}
.modal__crosshair {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--text-secondary);
  opacity: 0.4;
}
/* Glyph box centered exactly on each corner point, matching the
   convention standardized site-wide in Phase 9A */
.modal__crosshair--tl { top: 0; left: 0; transform: translate(-50%, -50%); }
.modal__crosshair--tr { top: 0; right: 0; transform: translate(50%, -50%); }
.modal__crosshair--bl { bottom: 0; left: 0; transform: translate(-50%, 50%); }
.modal__crosshair--br { bottom: 0; right: 0; transform: translate(50%, 50%); }

.modal__steps {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.modal__step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s var(--ease-snap-lock);
}
.modal__step-dot.is-active {
  background: var(--cmyk-cyan);
}

.modal__step {
  display: none;
}
.modal__step.is-active {
  display: block;
}

.modal__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.modal__title {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--text-primary);
  margin: 0 0 28px;
}

.modal__option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.modal__option {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-primary);
  background: var(--surface-container);
  border: 1px solid var(--border);
  padding: 20px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-snap-lock), color 0.3s var(--ease-snap-lock);
}
.modal__option:hover {
  border-color: var(--cmyk-cyan);
}
.modal__option.is-selected {
  border-color: var(--cmyk-cyan);
  color: var(--cmyk-cyan);
}

.modal__dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 20px;
  border: 1px dashed var(--border);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.3s var(--ease-snap-lock);
  margin-bottom: 20px;
}
.modal__dropzone.is-dragover,
.modal__dropzone:hover {
  border-color: var(--cmyk-cyan);
}
.modal__dropzone.has-file {
  border-style: solid;
  border-color: var(--lock-active);
}
.modal__dropzone-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
}
.modal__dropzone-formats {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.modal__analyzing {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--lock-active);
  text-align: center;
  margin: 0;
  opacity: 0;
  transition: opacity 0.3s var(--ease-snap-lock);
}
.modal__analyzing.is-visible {
  opacity: 1;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.modal__form.is-hidden {
  display: none;
}
.modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal__field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.modal__field input {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--surface-container);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.3s var(--ease-snap-lock);
}
.modal__field input:focus {
  border-color: var(--cmyk-cyan);
}

.modal__submit {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border);
  padding: 15px 22px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-snap-lock), color 0.3s var(--ease-snap-lock), text-shadow 0.3s var(--ease-snap-lock);
}
.modal__submit:hover {
  border-color: var(--lock-active);
  color: var(--lock-active);
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}

.modal__success {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  text-align: center;
  margin: 0;
  display: none;
}
.modal__success.is-visible {
  display: block;
}

/* Body-scroll lock while the modal is open — a new selector,
   the existing `body { ... }` rule elsewhere is left untouched */
body.modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .modal__option-grid { grid-template-columns: 1fr; }
  .modal__box { padding: 40px 24px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal, .modal__box, .modal__close, .modal__step-dot, .modal__option,
  .modal__dropzone, .modal__analyzing, .modal__field input, .modal__submit {
    transition: none !important;
  }
}

/* =========================================================
   PHASE 10A — additive-only modal consent notice
   (sitefooter__legal was redefined in place at the Footer's own
   CSS block above as part of Phase 10B's footer redesign, so it
   no longer needs a separate rule here.)
   ========================================================= */

.modal__legal-notice {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
}
.modal__legal-notice a {
  color: var(--text-secondary);
  text-decoration: underline;
}
.modal__legal-notice a:hover {
  color: var(--cmyk-cyan);
}
