/* =========================================================
   TROYA METAL — Kurumsal Tasarım Sistemi
   Endüstriyel · Çelik · Mühendislik
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --primary:        #0D8B85;
  --primary-2:      #15A8A0;
  --primary-deep:   #073F3D;
  --accent:         #0FB8AE;
  --accent-2:       #19D0C4;
  --accent-deep:    #0C938C;

  --bg:             #FFFFFF;
  --bg-alt:         #EFF6F5;
  --bg-steel:       #08383A;
  --surface:        #FFFFFF;
  --surface-2:      #F4FAF9;
  --text:           #233030;
  --text-soft:      #46585A;
  --text-muted:     #6E8385;
  --border:         #DCE9E7;
  --border-strong:  #C2D6D3;
  --on-steel:       #E9F4F2;
  --on-steel-muted: #95B7B4;
  --grid-line:      rgba(13,139,133,0.07);

  --shadow-sm: 0 1px 2px rgba(8,40,40,0.06), 0 2px 6px rgba(8,40,40,0.05);
  --shadow-md: 0 8px 24px rgba(8,40,40,0.10);
  --shadow-lg: 0 24px 60px rgba(8,40,40,0.16);

  --maxw: 1200px;
  --nav-h: 76px;
  --radius: 4px;
  --radius-lg: 8px;

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-serif: "Cinzel", "Times New Roman", serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"] {
  --primary:        #2FC0B6;
  --primary-2:      #1C9690;
  --primary-deep:   #04201F;
  --accent:         #2FD4C7;
  --accent-2:       #4DE6DA;
  --accent-deep:    #1FB6AB;

  --bg:             #07211F;
  --bg-alt:         #0A2A28;
  --bg-steel:       #051A1B;
  --surface:        #0E2E2C;
  --surface-2:      #123633;
  --text:           #E7F3F1;
  --text-soft:      #B6CECB;
  --text-muted:     #7FA09C;
  --border:         #1C443F;
  --border-strong:  #285E58;
  --on-steel:       #E9F4F2;
  --on-steel-muted: #8FB4B0;
  --grid-line:      rgba(80,200,190,0.08);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--primary);
}
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 { color: var(--text); }

h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
p { text-wrap: pretty; }

.kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.kicker.center { justify-content: center; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--text-soft); line-height: 1.55; }
.muted { color: var(--text-muted); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.section.alt { background: var(--bg-alt); }
.section.steel { background: var(--bg-steel); color: var(--on-steel); }
.section.steel h2, .section.steel h3 { color: #fff; }
.section.steel .lead { color: var(--on-steel-muted); }

.grid { display: grid; gap: 28px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.sec-head { max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }
.sec-head .kicker { margin-bottom: 18px; }
.sec-head h2 { margin-bottom: 16px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Blueprint grid background ---------- */
.blueprint {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 38px 38px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.98rem;
  padding: 0.92em 1.7em;
  border-radius: var(--radius);
  transition: transform .2s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  white-space: nowrap;
  position: relative;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(15,184,174,0.35); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15,184,174,0.45); }
.btn-steel { background: var(--primary); color: #fff; }
.btn-steel:hover { background: var(--primary-deep); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-onsteel { border: 1.5px solid rgba(255,255,255,0.4); color: #fff; }
.btn-onsteel:hover { background: #fff; color: var(--primary); transform: translateY(-2px); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1da851; transform: translateY(-2px); }
.btn-lg { font-size: 1.05rem; padding: 1.05em 2em; }

/* ---------- Link arrow ---------- */
.link-arrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.95rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(15,184,174,0.22), var(--shadow-md); border-color: var(--accent); }
.card-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 { color: var(--primary); }
html[data-theme="dark"] .card-body h3 { color: var(--text); }
.card-body p { color: var(--text-soft); font-size: 0.98rem; }
.card-foot { margin-top: auto; padding-top: 8px; }

/* product visual placeholder block on cards */
.card-visual {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.card-visual .ghost-icon { width: 64px; height: 64px; color: rgba(255,255,255,0.5); }
.card-visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.card-visual .corner-tag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.25); padding: 3px 8px; border-radius: 3px;
  z-index: 2;
}

/* ---------- Image placeholder (standalone) ---------- */
.imgph {
  background: var(--surface-2);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  display: grid; place-items: center;
  text-align: center;
  color: var(--text-muted);
  padding: 32px;
  min-height: 240px;
  position: relative;
}
.imgph .ph-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.imgph svg { width: 48px; height: 48px; color: var(--border-strong); }
.imgph .ph-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.imgph.steel { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.7); }
.imgph.steel svg { color: rgba(255,255,255,0.4); }
.imgph.tall { min-height: 380px; }

/* ---------- Feature / icon item ---------- */
.feature { display: flex; flex-direction: column; gap: 14px; }
.feature .ficon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  display: grid; place-items: center; color: var(--accent);
  flex-shrink: 0;
}
.feature .ficon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--text-soft); font-size: 0.96rem; }
.section.steel .feature .ficon { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.section.steel .feature p { color: var(--on-steel-muted); }

/* ---------- Spec / list ---------- */
.spec-list { display: flex; flex-direction: column; gap: 2px; }
.spec-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: none; }
.spec-row .sx { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.spec-row .sx svg { width: 22px; height: 22px; }
.spec-row h4 { font-size: 1.1rem; margin-bottom: 4px; color: var(--primary); }
html[data-theme="dark"] .spec-row h4 { color: var(--text); }
.spec-row p { color: var(--text-soft); font-size: 0.96rem; }

/* check list */
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.checklist .ck {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  color: #fff; display: grid; place-items: center; flex-shrink: 0; margin-top: 2px;
}
.checklist .ck svg { width: 13px; height: 13px; }

/* standard chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-soft);
}
.chip strong { color: var(--accent); font-weight: 600; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.step { position: relative; }
.step .snum {
  font-family: var(--font-head); font-weight: 700; font-size: 3.4rem;
  color: var(--accent); line-height: 1; opacity: 0.95;
  -webkit-text-stroke: 0;
}
.step h3 { font-size: 1.25rem; margin: 12px 0 8px; }
.step p { color: var(--text-soft); font-size: 0.95rem; }
.section.steel .step p { color: var(--on-steel-muted); }
.step .sbar { width: 44px; height: 3px; background: var(--accent); margin: 14px 0 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg-steel);
  color: var(--on-steel);
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(60px,9vw,110px)) 0 clamp(72px,10vw,130px);
}
.hero::before {
  content: ""; 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: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 90% at 70% 30%, #000 30%, transparent 85%);
}
.hero .diag {
  position: absolute; top: 0; right: 0; bottom: 0; width: 42%;
  background: linear-gradient(135deg, var(--primary-2), var(--primary-deep));
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.55;
}
.hero .accent-bar { position: absolute; top: 0; left: 0; height: 6px; width: 100%; background: linear-gradient(90deg, var(--accent), transparent 60%); }
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero .kicker { margin-bottom: 20px; }
.hero h1 { color: #fff; margin-bottom: 26px; line-height: 1.05; }
.hero h1 .em { color: var(--accent); }
.hero .lead { color: var(--on-steel-muted); max-width: 640px; margin-bottom: 34px; font-size: clamp(1.05rem,1.6vw,1.35rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 30px; }
.hero-meta .hm { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .hm .v { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: #fff; text-transform: uppercase; letter-spacing: 0.04em; }
.hero-meta .hm .l { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-steel-muted); }

/* page hero (interior) */
.page-hero {
  position: relative; background: var(--bg-steel); color: var(--on-steel);
  padding: calc(var(--nav-h) + clamp(48px,6vw,80px)) 0 clamp(48px,6vw,80px);
  overflow: hidden;
}
.page-hero::before {
  content: ""; 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: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 100% at 80% 0%, #000, transparent 80%);
}
.page-hero .accent-bar { position: absolute; top: 0; left: 0; height: 6px; width: 100%; background: linear-gradient(90deg, var(--accent), transparent 55%); }
.page-hero-inner { position: relative; z-index: 2; max-width: 820px; }
.page-hero h1 { color: #fff; margin: 16px 0 18px; font-size: clamp(2.2rem,5vw,4rem); }
.page-hero .lead { color: var(--on-steel-muted); max-width: 660px; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-steel-muted); display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-steel); color: #fff; position: relative; overflow: hidden; }
.cta-band .accent-edge { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: clamp(48px,6vw,72px) 0; position: relative; z-index: 2; }
.cta-inner h2 { color: #fff; max-width: 620px; }
.cta-inner .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px; opacity: 0.7;
}

/* ====================================================
   NAVBAR
   ==================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); background: color-mix(in srgb, var(--bg) 95%, transparent); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; height: 100%; padding: 0 28px; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand .logo { width: 46px; height: 40px; object-fit: contain; }
html[data-theme="dark"] .brand .logo { filter: brightness(1.2) saturate(1.05); }
.brand .bt { display: flex; flex-direction: column; line-height: 1; }
.brand .bt .bn { font-family: var(--font-serif); font-weight: 700; font-size: 1.46rem; letter-spacing: 0.06em; color: var(--primary); text-transform: uppercase; }
html[data-theme="dark"] .brand .bt .bn { color: var(--primary); }
.brand .bt .bs { font-family: var(--font-serif); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.46em; color: var(--text-muted); text-transform: uppercase; margin-top: 4px; padding-left: 2px; }

.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-head); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 0.92rem;
  padding: 10px 14px; border-radius: var(--radius); color: var(--text-soft);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--primary); }
html[data-theme="dark"] .nav-link.active { color: var(--accent); }
.nav-link .caret { width: 12px; height: 12px; transition: transform .25s; }
.nav-item.open .nav-link .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 280px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-item.open .dropdown, .nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }

/* mega (Çözümler) */
.dropdown.mega { min-width: 600px; padding: 0; }
.mega-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 12px; border-bottom: 1px solid var(--border); }
.mega-title { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.mega-all { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; font-weight: 500; color: var(--accent); }
.mega-all:hover { color: var(--accent-deep); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px; }
.mega-link .ddt .t { line-height: 1.25; }
.dd-link { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); transition: background .2s; }
.dd-link:hover { background: var(--bg-alt); }
.dd-link .ddi { width: 34px; height: 34px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.dd-link .ddi svg { width: 18px; height: 18px; }
.dd-link .ddt { display: flex; flex-direction: column; gap: 2px; }
.dd-link .ddt .t { font-family: var(--font-head); font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.92rem; color: var(--primary); line-height: 1.22; }
html[data-theme="dark"] .dd-link .ddt .t { color: var(--text); }
.dd-link .ddt .d { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: grid; place-items: center; color: var(--text-soft);
  border: 1px solid var(--border); background: var(--surface);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.wa:hover { color: #25D366; border-color: #25D366; }

.ctrl-group { display: flex; align-items: center; gap: 6px; padding-left: 6px; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
}
.lang-toggle button {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em;
  padding: 9px 11px; color: var(--text-muted); transition: background .2s, color .2s;
}
.lang-toggle button.on { background: var(--accent); color: #fff; }
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle .sun, .theme-toggle .moon { transition: transform .4s var(--ease), opacity .3s; position: absolute; }
html[data-theme="light"] .theme-toggle .moon { transform: translateY(140%); opacity: 0; }
html[data-theme="dark"]  .theme-toggle .sun  { transform: translateY(-140%); opacity: 0; }

.nav-cat-label { display: none; }
.hamburger { display: none; width: 42px; height: 42px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text); margin: 3px auto; transition: transform .3s, opacity .3s; }
.nav.menu-open .hamburger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.nav.menu-open .hamburger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ====================================================
   FOOTER
   ==================================================== */
.footer { background: var(--primary-deep); color: var(--on-steel); padding: clamp(56px,7vw,84px) 0 0; position: relative; }
html[data-theme="light"] .footer { background: #0A302E; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), transparent 50%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer .brand .bt .bn { color: #fff; }
.footer .brand .bt .bs { color: var(--on-steel-muted); }
.footer-col h4 { color: #fff; font-size: 0.92rem; letter-spacing: 0.1em; margin-bottom: 18px; font-family: var(--font-mono); font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col .fc-text { color: var(--on-steel-muted); font-size: 0.92rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-about p { color: var(--on-steel-muted); font-size: 0.92rem; margin: 18px 0; max-width: 320px; }
.footer-contact-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; color: var(--on-steel-muted); font-size: 0.92rem; }
.footer-contact-row svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-contact-row a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { color: var(--on-steel-muted); font-size: 0.82rem; }
.footer-bottom .fb-links { display: flex; gap: 20px; }
.footer-bottom .fb-links a { color: var(--on-steel-muted); font-size: 0.82rem; }
.footer-bottom .fb-links a:hover { color: var(--accent); }

/* ====================================================
   FORM
   ==================================================== */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(28px,4vw,44px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; font-weight: 500; color: var(--text-soft); margin-bottom: 8px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--border-strong); border-radius: var(--radius);
  background: var(--bg); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214,69,69,0.12); }
.field .err { color: #d64545; font-size: 0.8rem; margin-top: 6px; display: none; font-family: var(--font-mono); }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; animation: pop .5s var(--ease); }
.form-success .sc-ic { width: 64px; height: 64px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .sc-ic svg { width: 32px; height: 32px; }

/* contact info card */
.info-card { display: flex; flex-direction: column; gap: 6px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row .ic { width: 46px; height: 46px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.info-row .ic svg { width: 22px; height: 22px; }
.info-row .it .l { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.info-row .it .v { font-family: var(--font-head); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--primary); }
.info-row .it .v[href^="mailto"] { text-transform: none; letter-spacing: 0; font-size: 1rem; }
html[data-theme="dark"] .info-row .it .v { color: var(--text); }
.info-row .it .v.sm { font-size: 1rem; }

/* ====================================================
   ANIMATIONS
   ==================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.from-left  { transform: translateX(-44px); }
.reveal.from-right { transform: translateX( 44px); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes heroUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
body.loaded .hero-inner > * { animation: heroUp .9s var(--ease) backwards; }
body.loaded .hero-inner > *:nth-child(1) { animation-delay: .05s; }
body.loaded .hero-inner > *:nth-child(2) { animation-delay: .15s; }
body.loaded .hero-inner > *:nth-child(3) { animation-delay: .25s; }
body.loaded .hero-inner > *:nth-child(4) { animation-delay: .35s; }
body.loaded .hero-inner > *:nth-child(5) { animation-delay: .45s; }

@keyframes drawBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .accent-bar, .page-hero .accent-bar { transform-origin: left; animation: drawBar 1s var(--ease) .2s backwards; }

/* page fade */
.page-fade { animation: pageFade .5s var(--ease); }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }


/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --nav-h: 66px; }
  .nav-menu { display: none; }
  .nav-cat-label { display: block; }
  .hamburger { display: block; }
  .nav-right .cat-hide { display: none; }
  .ctrl-group { display: none; }

  /* mobile menu panel */
  .nav-menu.mobile {
    display: flex; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--bg); padding: 18px 24px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .35s var(--ease);
    border-top: 1px solid var(--border);
  }
  .nav.menu-open .nav-menu.mobile { transform: translateX(0); }
  .nav-menu.mobile .nav-item { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-menu.mobile .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.05rem; }
  .nav-menu.mobile .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; min-width: 0; padding: 0 0 8px; max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .nav-menu.mobile .nav-item.open .dropdown { max-height: 800px; }
  .nav-menu.mobile .dropdown.mega { min-width: 0; padding: 0; }
  .nav-menu.mobile .dropdown.mega .mega-head { display: none; }
  .nav-menu.mobile .dropdown.mega .mega-grid { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .nav-menu.mobile .mobile-ctrl {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 4px 14px; border-bottom: 1px solid var(--border);
  }
  .nav-menu.mobile .mobile-actions { display: flex; gap: 12px; margin-top: 22px; }
  .nav-menu.mobile .mobile-actions .btn { flex: 1; }
}
@media (min-width: 861px) {
  .nav-menu.mobile .mobile-actions { display: none; }
  .mobile-ctrl { display: none; }
}

@media (max-width: 760px) {
  .cols-3, .cols-4, .cols-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .split-2 { grid-template-columns: 1fr !important; }
}

/* ---------- Utility ---------- */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
.split-2.top { align-items: start; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 44px; }
.mb-m { margin-bottom: 28px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.center-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.eyebrow-num { font-family: var(--font-mono); color: var(--accent); font-size: 0.8rem; letter-spacing: 0.1em; }
.divider { height: 1px; background: var(--border); margin: 0; border: none; }

/* engineering note callout */
.note {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 22px 26px;
}
.note .ni { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.note .ni svg { width: 24px; height: 24px; }
.note p { color: var(--text-soft); font-size: 0.97rem; font-style: italic; margin: 0; }
.section.steel .note { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }
.section.steel .note p { color: var(--on-steel-muted); }

/* usage tags row */
.usage { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.usage span { font-size: 0.9rem; color: var(--text-soft); background: var(--surface); border: 1px solid var(--border); padding: 7px 14px; border-radius: var(--radius); }

/* ====================================================
   MOBILE-NAV-360 FIX — geri almak için bu bloğu sil
   ==================================================== */
@media (max-width: 390px) {
  .nav-inner { gap: 10px; }
  .lang-toggle button { padding: 9px 8px; }
}

/* ====================================================
   WHATSAPP FLOATING BUTTON
   ==================================================== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.wa-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  flex-shrink: 0;
  animation: pulse-wa 2.2s ease-out infinite;
}
@keyframes pulse-wa {
  0%   { box-shadow: 0 4px 18px rgba(37,211,102,.45), 0 0 0 0   rgba(37,211,102,.55); }
  70%  { box-shadow: 0 4px 18px rgba(37,211,102,.45), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 18px rgba(37,211,102,.45), 0 0 0 0   rgba(37,211,102,0); }
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 30px; height: 30px; }

.wa-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px 20px 16px;
  max-width: 260px;
  opacity: 0;
  transform: translateY(10px) scale(.97);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.wa-bubble.wa-bubble-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.wa-bubble p {
  margin: 0 0 14px;
  font-size: .95rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.wa-bubble-close {
  float: right;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--text-muted);
  margin: -4px -6px 6px 8px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .15s;
}
.wa-bubble-close:hover { color: var(--text); }

html[data-theme="dark"] .wa-bubble {
  background: var(--surface);
  border-color: var(--border);
}

@media (max-width: 600px) {
  .wa-float { bottom: 18px; right: 16px; }
  .wa-fab { width: 52px; height: 52px; }
  .wa-fab svg { width: 26px; height: 26px; }
  .wa-bubble { max-width: 220px; }
}
