/* ============================================================
   SSD Yazılım — habu ecosystem
   Design system tokens + base styles
   ============================================================ */

:root {
  /* Brand — habu crimson (exact brand values) */
  --brand: #a32015;
  --brand-deep: #7c1810;
  --brand-bright: #d8371f;
  --brand-glow: rgba(163, 32, 21, 0.35);
  --brand-tint: rgba(163, 32, 21, 0.08);

  /* SSD Yazılım — corporate blue (company mark) */
  --ssd-blue: #3f4f72;
  --ssd-blue-light: #6577a1;

  /* Warm neutrals */
  --ink: #1c1614;
  --ink-soft: #463c38;
  --muted: #7a6e69;
  --muted-2: #9a8e88;
  --line: #e7ddd6;
  --line-soft: #f0e8e2;
  --paper: #faf6f2;
  --paper-2: #f3ece5;
  --white: #fffdfb;

  /* Dark (ecosystem) sections — warm charcoal */
  --night: #15100e;
  --night-2: #1f1815;
  --night-3: #2a211d;
  --night-line: rgba(255, 255, 255, 0.09);
  --night-ink: #f7f0ea;
  --night-muted: #b3a59d;

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 11px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(28, 22, 20, 0.04), 0 4px 14px rgba(28, 22, 20, 0.05);
  --shadow-md: 0 2px 6px rgba(28, 22, 20, 0.05), 0 18px 48px rgba(28, 22, 20, 0.10);
  --shadow-brand: 0 18px 48px -12px var(--brand-glow);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--brand); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

section { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--brand);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--brand);
  display: inline-block;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }

.h-sec { font-size: clamp(30px, 4.4vw, 52px); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); line-height: 1.6; max-width: 60ch; }

.sec-head { max-width: 720px; }
.sec-head .h-sec { margin-top: 18px; margin-bottom: 16px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 22px;
  border-radius: 999px;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Reveal animation (progressive enhancement) ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
