/* ============================================================
   İDEAL MAKİNA — site.css
   Compiled output of /scss/*. Edit SCSS in production.
   Bold industrial system · IBM Plex Mono + IBM Plex Sans
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --brand: #ff4400;
  --brand-strong: #e63d00;
  --brand-contrast: #ffffff;

  /* light theme (default) */
  --bg: #f4f2ef;
  --bg-2: #ebe7e1;
  --surface: #ffffff;
  --surface-2: #f4f2ef;
  --ink: #1a1714;
  --ink-2: #6a635b;
  --ink-3: #938b81;
  --line: rgba(26, 23, 20, 0.12);
  --line-2: rgba(26, 23, 20, 0.06);
  --hero-overlay: linear-gradient(180deg, rgba(18,16,15,.30) 0%, rgba(18,16,15,.78) 100%);
  --ph-a: #e7e2db;
  --ph-b: #ddd6cc;
  --shadow: 0 1px 2px rgba(26,23,20,.06), 0 10px 30px -12px rgba(26,23,20,.18);

  /* type */
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* layout */
  --maxw: 1280px;
  --nav-h: 76px;
  --radius: 4px;
  --radius-lg: 8px;
}

[data-theme="dark"] {
  --brand: #ff5a22;
  --brand-strong: #ff6a35;
  --brand-contrast: #15110e;

  --bg: #131110;
  --bg-2: #0d0b0a;
  --surface: #1c1917;
  --surface-2: #232019;
  --ink: #f2eee8;
  --ink-2: #a89f94;
  --ink-3: #7a7268;
  --line: rgba(255, 255, 255, 0.13);
  --line-2: rgba(255, 255, 255, 0.06);
  --hero-overlay: linear-gradient(180deg, rgba(8,7,6,.45) 0%, rgba(8,7,6,.88) 100%);
  --ph-a: #232019;
  --ph-b: #2b271f;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -16px rgba(0,0,0,.6);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-mono); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand); color: var(--brand-contrast); }

.container-x { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
@media (max-width: 600px) { .container-x { padding-inline: 20px; } }

/* eyebrow / mono labels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brand-strong);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--brand);
  display: inline-block;
}
.eyebrow.no-tick::before { display: none; }

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.lead { font-size: 1.18rem; color: var(--ink-2); line-height: 1.65; }

/* ---------- Buttons ---------- */
.btn-x {
  --b: var(--brand);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .7em;
  padding: 15px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .15s ease, background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-x:hover { transform: translateY(-2px); }
.btn-x:active { transform: translateY(0); }
.btn-x .arr { transition: transform .2s ease; }
.btn-x:hover .arr { transform: translateX(4px); }

.btn-primary-x { background: var(--brand); color: var(--brand-contrast); }
.btn-primary-x:hover { background: var(--brand-strong); }
.btn-outline-x { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline-x:hover { border-color: var(--ink); }
.btn-ghost-x { color: var(--ink); padding-inline: 4px; }
.btn-ghost-x:hover { color: var(--brand-strong); }
.btn-light-x { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(4px); }
.btn-light-x:hover { background: #fff; color: var(--ink); border-color:#fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s, border-color .35s;
}
.site-header .nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand-logo { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo img { height: 34px; width: auto; }
.brand-logo .l-dark { display: none; }
[data-theme="dark"] .brand-logo .l-light { display: none; }
[data-theme="dark"] .brand-logo .l-dark { display: block; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-2);
  padding: 10px 14px; border-radius: var(--radius);
  position: relative; transition: color .18s;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--brand);
}
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* theme toggle + lang */
.icon-btn {
  width: 42px; height: 42px; border-radius: var(--radius);
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer;
  transition: border-color .18s, background-color .18s, color .18s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
[data-theme="dark"] .icon-btn .i-sun { display: block; }
[data-theme="dark"] .icon-btn .i-moon { display: none; }
.icon-btn .i-sun { display: none; }
.icon-btn .i-moon { display: block; }

.lang-wrap { position: relative; }
.lang-btn {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  height: 42px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-transform: uppercase;
  transition: border-color .18s;
}
.lang-btn:hover { border-color: var(--ink); }
.lang-btn .chev { width: 12px; height: 12px; transition: transform .2s; }
.lang-wrap.open .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60;
}
.lang-wrap.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: .92rem; color: var(--ink);
  padding: 10px 12px; border-radius: var(--radius); display: flex; align-items: center; gap: 10px;
}
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button .code { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); margin-left: auto; }
.lang-menu button.sel { color: var(--brand-strong); }

.burger { display: none; }

/* ---------- Mobile nav ---------- */
.mobile-panel {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: var(--bg); transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1); overflow-y: auto;
  display: flex; flex-direction: column; padding: 24px 28px 40px;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel a {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em;
  font-size: 1.4rem; font-weight: 500; padding: 18px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); display: flex; justify-content: space-between; align-items: center;
}
.mobile-panel a .arr { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(560px, 86vh, 860px);
  display: flex; align-items: flex-end; color: #fff; overflow: hidden;
}
.hero .hero-media { position: absolute; inset: 0; z-index: 0; }
.hero .hero-media::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero .hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 7vw, 96px); padding-top: 120px; }
.hero .eyebrow { color: #ff8a5c; }
.hero .eyebrow::before { background: var(--brand); }
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 5.4vw, 5rem); letter-spacing: -0.03em; line-height: 1.0;
  max-width: 17ch; margin: 22px 0 0;
}
.hero .hero-sub { font-size: clamp(1.05rem, 1.7vw, 1.4rem); color: rgba(255,255,255,.85); max-width: 46ch; margin: 24px 0 36px; font-weight: 300; }
.hero .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .scroll-hint {
  position: absolute; right: 28px; bottom: 32px; z-index: 2;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.6); writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px;
}
@media (max-width: 700px){ .hero .scroll-hint { display: none; } }

/* ---------- Placeholder media ---------- */
.ph {
  position: relative; background:
    repeating-linear-gradient(135deg, var(--ph-a) 0 14px, var(--ph-b) 14px 28px);
  display: grid; place-items: center; overflow: hidden; color: var(--ink-3);
}
.ph::after {
  content: attr(data-label);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); background: color-mix(in srgb, var(--bg) 78%, transparent);
  padding: 7px 12px; border-radius: 3px; border: 1px solid var(--line); text-align: center; max-width: 80%;
}
.ph.dark { --ph-a:#26211b; --ph-b:#2d2820; color:#9a9080; }

/* ---------- Stat strip ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-mono); font-size: clamp(2.2rem, 3.4vw, 3.2rem); font-weight: 600; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.stat .num .u { color: var(--brand); }
.stat .lab { font-size: .95rem; color: var(--ink-2); margin-top: 12px; }
@media (max-width: 820px){ .stats .grid { grid-template-columns: repeat(2,1fr); } .stat:nth-child(2){border-right:0;} .stat:nth-child(1),.stat:nth-child(2){border-bottom:1px solid var(--line);} }
@media (max-width: 480px){ .stat{ padding: 28px 20px; } }

/* ---------- Section heading ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); max-width: 20ch; }
.sec-head .eyebrow { margin-bottom: 18px; }

/* ---------- Machine cards ---------- */
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 980px){ .m-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .m-grid { grid-template-columns: 1fr; } }
.m-card {
  background: var(--surface); padding: 0; display: flex; flex-direction: column;
  position: relative; transition: background-color .2s; min-height: 100%;
}
.m-card:hover { background: var(--surface-2); }
.m-card .m-thumb { aspect-ratio: 4/3; width: 100%; }
.m-card .m-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.m-card .m-cat { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 12px; }
.m-card h3 { font-size: 1.18rem; letter-spacing: -.01em; line-height: 1.15; }
.m-card .m-desc { font-size: .95rem; color: var(--ink-2); margin: 12px 0 20px; flex: 1; }
.m-card .m-link { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.m-card .m-link .arr { color: var(--brand); transition: transform .2s; }
.m-card:hover .m-link .arr { transform: translateX(5px); }
.m-card::after { content:""; position:absolute; left:0; top:0; width:100%; height:3px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.m-card:hover::after { transform: scaleX(1); }

/* ---------- Filter bar ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filterbar button {
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 16px; border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  border-radius: 999px; cursor: pointer; transition: all .16s; white-space: nowrap;
}
.filterbar button:hover { color: var(--ink); border-color: var(--ink-3); }
.filterbar button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-count { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); margin-left: auto; align-self: center; }

/* ---------- Reference marquee ---------- */
.ref-strip { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; background: var(--surface); }
.ref-track { display: flex; gap: 0; width: max-content; animation: marquee 60s linear infinite; }
.ref-strip:hover .ref-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ref-item {
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; color: var(--ink-2);
  padding: 18px 38px; border-right: 1px solid var(--line); white-space: nowrap; display: flex; align-items: center; gap: 12px;
}
.ref-item::before { content: "—"; color: var(--brand); }
@media (prefers-reduced-motion: reduce){ .ref-track { animation: none; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
[data-theme="dark"] .cta-band { background: #000; }
.cta-band .container-x { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-block: clamp(56px,7vw,92px); }
.cta-band h2 { color: var(--bg); font-size: clamp(1.8rem,3.4vw,2.9rem); max-width: 18ch; }
.cta-band .blob { position: absolute; right: -80px; top: -60px; width: 380px; height: 380px; background: var(--brand); opacity: .14; filter: blur(40px); border-radius: 50%; z-index: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 48px; }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.footer-grid a, .footer-grid p { color: var(--ink-2); font-size: .95rem; display: block; margin-bottom: 12px; transition: color .16s; }
.footer-grid a:hover { color: var(--brand-strong); }
.footer-brand img { height: 32px; margin-bottom: 18px; }
.footer-brand img.l-dark { display: none; }
[data-theme="dark"] .footer-brand img.l-light { display: none; }
[data-theme="dark"] .footer-brand img.l-dark { display: block; }
.footer-brand p { max-width: 30ch; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom, .footer-bottom a { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: clamp(64px,9vw,120px) 0 clamp(40px,5vw,64px); border-bottom: 1px solid var(--line); position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.03em; margin-top: 20px; max-width: 18ch; }
.page-hero .lead { margin-top: 22px; max-width: 56ch; }
.breadcrumb { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 10px; align-items: center; }
.breadcrumb a:hover { color: var(--brand-strong); }
.breadcrumb .sep { color: var(--line); }

/* lang notice banner */
.lang-notice {
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  border-radius: var(--radius); padding: 14px 18px; margin: 0 0 8px;
  font-size: .92rem; color: var(--ink); display: flex; gap: 12px; align-items: flex-start;
}
.lang-notice b { font-family: var(--font-mono); font-weight: 600; }
.lang-notice .x { margin-left: auto; cursor: pointer; color: var(--ink-3); background: none; border: 0; font-size: 1.1rem; line-height: 1; }

/* fade-in on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } }
