/* ==========================================================================
   Atalay Mühendislik — temel tasarım sistemi
   Renkler logodan türetildi: kırmızı (ısı) + lacivert/indigo (serinlik)
   ========================================================================== */

:root {
  /* Zemin (mürekkep-indigo) */
  --ink-950: #06061a;
  --ink-900: #0a0a21;
  --ink-850: #0f0f2a;
  --ink-800: #151535;
  --ink-750: #1b1b40;
  --ink-700: #24244e;

  /* Metin */
  --text: #eef0ff;
  --text-2: #b0b3d6;
  --text-3: #7a7da6;
  --text-4: #555879;

  /* Çizgiler */
  --line: rgba(196, 200, 255, 0.09);
  --line-2: rgba(196, 200, 255, 0.16);
  --line-3: rgba(196, 200, 255, 0.26);

  /* Marka */
  --heat: #ff4b2e;        /* Atalay kırmızısı (koyu zemine uyarlanmış) */
  --heat-2: #ff8c42;
  --heat-deep: #d8261c;
  --cool: #6c7bff;        /* Atalay laciverti → koyu zeminde indigo */
  --cool-2: #8fa2ff;
  --ice: #82e6ff;
  --note: #ffd27a;        /* önizleme rozeti */
  --indigo-logo: #3c2a84;
  --red-logo: #e8322a;

  /* Kağıt bölümleri */
  --paper: #f4f2ed;
  --paper-2: #ebe8e1;
  --paper-3: #dedad1;
  --on-paper: #12122e;
  --on-paper-2: #4a4a66;
  --on-paper-3: #7c7c94;
  --paper-line: rgba(18, 18, 46, 0.1);

  /* Termal skala */
  --thermal: linear-gradient(90deg, #2b1e8f 0%, #4f6bff 20%, #82e6ff 40%, #ecebf6 50%, #ffc07a 62%, #ff6a3d 80%, #c81e1e 100%);
  --thermal-soft: linear-gradient(90deg, rgba(108,123,255,.9), rgba(130,230,255,.9) 40%, rgba(255,140,66,.9) 70%, rgba(255,75,46,.95));

  /* Yazı tipleri */
  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Ölçü */
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --header-h: 72px;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* İnce film greni */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--heat); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--text); color: var(--ink-900);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografi ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--heat);
  box-shadow: 0 0 0 4px rgba(255, 75, 46, .16), 0 0 18px rgba(255, 75, 46, .7);
}
.eyebrow .dot.cool {
  background: var(--ice);
  box-shadow: 0 0 0 4px rgba(130, 230, 255, .14), 0 0 18px rgba(130, 230, 255, .6);
}

.h-display {
  font-weight: 600;
  font-size: clamp(2.9rem, 7.6vw, 7.8rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0;
}
.h-xl {
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
}
.h-lg {
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
}
.h-md {
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}
.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.mono { font-family: var(--f-mono); letter-spacing: 0; }
.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 58ch;
}
.muted { color: var(--text-2); }
.grad-text {
  background: var(--thermal-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Butonlar ---------- */
.btn {
  --bh: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--bh);
  padding: 0 22px 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), color .35s var(--ease);
  isolation: isolate;
  overflow: hidden;
}
.btn:hover { border-color: var(--line-3); background: rgba(255, 255, 255, 0.07); }
.btn .arr {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: transform .45s var(--ease), background .35s var(--ease);
}
.btn:hover .arr { transform: translateX(3px) rotate(-45deg); }
.btn-primary {
  background: var(--text);
  color: var(--ink-900);
  border-color: transparent;
}
.btn-primary .arr { background: var(--ink-900); color: var(--text); }
.btn-primary::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--thermal-soft);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.btn-primary:hover { background: var(--text); color: var(--ink-900); }
.btn-primary:hover::before { opacity: .22; }
.btn-heat { background: var(--heat); border-color: transparent; color: #fff; }
.btn-heat .arr { background: rgba(0,0,0,.18); }
.btn-heat:hover { background: #ff5d40; }
.btn-sm { --bh: 42px; padding: 0 16px 0 18px; font-size: .9rem; }
.btn-sm .arr { width: 22px; height: 22px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
  background: rgba(255,255,255,.02);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .5s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 10, 33, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.14em;
}
.preview-tag {
  font: 500 .6rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--note); border: 1px solid color-mix(in srgb, var(--note) 40%, transparent);
  background: color-mix(in srgb, var(--note) 8%, transparent); padding: 4px 6px; border-radius: 6px;
}
.brand-word small {
  margin-top: 5px;
  font-family: var(--f-mono);
  font-size: 0.56rem;
  letter-spacing: 0.42em;
  color: var(--text-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.nav a {
  position: relative;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: .9rem;
  color: var(--text-2);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.08); }
.nav a .new {
  margin-left: 6px;
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .08em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 75, 46, .16);
  color: #ffb19f;
  vertical-align: 2px;
}
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: .82rem;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .3s var(--ease);
}
.header-phone:hover { color: var(--text); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03);
  position: relative;
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1.5px;
  background: var(--text);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(8, 8, 28, .96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a.mm-link {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -.03em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .mm-foot { margin-top: auto; display: grid; gap: 12px; }

@media (max-width: 1080px) {
  .header-phone { display: none; }
}
@media (max-width: 920px) {
  .nav { display: none; }
  .burger { display: block; }
  .header-cta .btn { display: none; }
}

/* ---------- Bölümler ---------- */
.section {
  position: relative;
  padding-block: clamp(80px, 11vw, 160px);
}
.section-tight { padding-block: clamp(56px, 7vw, 96px); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head .eyebrow { margin-bottom: 22px; }
.section-head p { margin: 0; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
}

.paper {
  background: var(--paper);
  color: var(--on-paper);
  color-scheme: light;
}
.paper .eyebrow { color: var(--on-paper-2); }
.paper .lead, .paper .muted { color: var(--on-paper-2); }
.paper ::selection { background: var(--indigo-logo); color: #fff; }

/* Ortaya çıkış animasyonları */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

.split-line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
.split-line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
.is-in .split-line > span,
.split-line.is-in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .split-line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- WhatsApp ---------- */
.wa-fab {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #1fbf5a;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 6px rgba(31,191,90,.12);
  transition: transform .35s var(--ease);
}
.wa-fab:hover { transform: scale(1.06); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 40px;
  background: var(--ink-950);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  margin: 0 0 14px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--text-2); transition: color .25s; }
.footer a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--text-3);
}
.footer-thermal {
  height: 2px;
  background: var(--thermal);
  opacity: .8;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
