/* ==========================================================================
   RehberIQ — web sitesi ortak stil
   Palet kilidi: yalnızca beyaz / füme / charcoal. Mavi veya vurgu rengi YOK.
   Referans: WEBSITE_COMPONENT_BREAKDOWN.md + C00_SURFACE_SYSTEM_PROMPT.md
   ========================================================================== */

/* Başlık: Space Grotesk (SIL OFL, ticari serbest, Google Fonts). Gövde: Inter.
   İkisi de tam Türkçe karakter desteğine sahip; ayrı bir lisans/dosya gerekmez. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* --------------------------------------------------------------- tokens ---- */
:root {
  /* açık yüzeyler — sakin, ısıtılmış (saf beyaz yok) */
  --canvas:   #F4F3F0;
  --recessed: #ECEBE7;
  --fume:     #E3E2DD;
  /* koyu yüzeyler — açılmış charcoal (saf siyah yok) */
  --panel: #2C2C29;
  --deep:  #1D1D1B;
  /* açık zeminde metin */
  --ink:   #1C1C1A;
  --body:  #57564F;
  --muted: #8A8A85;
  /* koyu zeminde metin */
  --on-dark:       #F2F2EF;
  --on-dark-body:  #D8D8D4;
  --on-dark-muted: #8A8A85;
  /* kenarlıklar */
  --hair:        #DEDDD8;
  --hair-strong: #CBCAC4;
  --hair-dark:   #37372F;

  --display: "Space Grotesk", "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;

  --maxw: 1200px;
  --gutter: 32px;
  --nav-h: 64px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------- reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 0;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* grain — geniş açık alanların "ampul gibi" parlamasını keser (C00 §4) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------- layout --- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 84px 0; position: relative; }
.section--tight { padding: 56px 0; }
.section--canvas   { background: var(--canvas); }
.section--recessed { background: var(--recessed); }
.section--fume     { background: var(--fume); }
.section--deep     { background: var(--deep); color: var(--on-dark); }
.section--panel    { background: var(--panel); color: var(--on-dark); }

/* koyu bölümlerde metin rengi */
.section--deep p, .section--panel p { color: var(--on-dark-body); }

/* Koyu↔açık bölüm geçişleri: kenarlar bilinçli olarak KESKİN (gradyan/duman yok).
   Şok, tonları yumuşatarak azaltıldı: koyu #1D1D1B, açık #F4F3F0 (~15:1) — saf
   siyah/beyaz kullanılmıyor. Bkz. token bloğu. */

/* --------------------------------------------------------------- tipografi -- */
.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 18px;
}
.section--deep .eyebrow, .section--panel .eyebrow { color: var(--on-dark-muted); }

.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.04;
  color: var(--ink);
}
.section--deep .display, .section--panel .display { color: var(--on-dark); }

.h-hero { font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.02; }
.h1     { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
.h2     { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.display .soft { color: var(--muted); }
.section--deep .display .soft, .section--panel .display .soft { color: #6E6E69; }
/* hero ve alt sayfa başlık bandı da koyu zemindir */
.hero .display, .pagehead .display { color: var(--on-dark); }
.hero .display .soft, .pagehead .display .soft { color: #6E6E69; }
.hero .eyebrow, .pagehead .eyebrow { color: var(--on-dark-muted); }
.hero .chip, .pagehead .chip { color: var(--on-dark-muted); border-color: var(--hair-dark); }

.h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 8px;
}
.section--deep .h3, .section--panel .h3 { color: var(--on-dark); }

.lead {
  font-size: 1.06rem;
  line-height: 1.58;
  color: var(--body);
  max-width: 60ch;
}
.section--deep .lead, .section--panel .lead { color: var(--on-dark-body); }

.small { font-size: 0.9rem; line-height: 1.55; color: var(--body); }
.section--deep .small { color: var(--on-dark-body); }

.chip {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hair-strong);
  padding: 5px 10px;
  font-variant-numeric: tabular-nums;
}
.section--deep .chip, .section--panel .chip {
  color: var(--on-dark-muted);
  border-color: var(--hair-dark);
}

/* --------------------------------------------------------------- butonlar -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--canvas); }
.btn--primary:hover { background: var(--panel); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hair-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.section--deep .btn--primary, .section--panel .btn--primary { background: var(--on-dark); color: var(--deep); }
.section--deep .btn--primary:hover { background: #FCFCFA; }
.section--deep .btn--ghost, .section--panel .btn--ghost { color: var(--on-dark); border-color: var(--hair-dark); }
.section--deep .btn--ghost:hover { border-color: var(--on-dark); }
.hero .btn--primary, .pagehead .btn--primary { background: var(--on-dark); color: var(--deep); }
.hero .btn--primary:hover, .pagehead .btn--primary:hover { background: #FCFCFA; }
.hero .btn--ghost, .pagehead .btn--ghost { color: var(--on-dark); border-color: var(--hair-dark); }
.hero .btn--ghost:hover, .pagehead .btn--ghost:hover { border-color: var(--on-dark); }

/* --------------------------------------------------------------- nav ------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--deep);
  border-bottom: 1px solid var(--hair-dark);
  transition: background 0.25s var(--ease), height 0.25s var(--ease);
}
.nav.scrolled {
  height: 56px;
  background: rgba(29, 29, 27, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__inner {
  max-width: none;
  margin: 0;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__logo { flex: 0 0 auto; display: flex; align-items: center; }
.nav__logo img { height: 29px; width: auto; }
.nav__links { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 28px; }
.nav__links a {
  font-size: 0.86rem;
  color: var(--on-dark-body);
  letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--on-dark); border-color: var(--hair-dark); }
.nav__cta {
  flex: 0 0 auto;
  background: var(--on-dark);
  color: var(--deep);
  padding: 10px 18px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background 0.16s var(--ease);
}
.nav__cta:hover { background: #FCFCFA; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 20px; height: 1.5px; background: var(--on-dark); margin: 4px 0; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }

/* mobil menü */
.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--deep);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.32s var(--ease), visibility 0s linear 0.32s;
}
.mobile-sheet.open { transform: translateY(0); visibility: visible; transition: transform 0.32s var(--ease), visibility 0s linear 0s; }
.mobile-sheet a {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.6rem;
  color: var(--on-dark);
  padding: 14px 0;
  border-bottom: 1px solid var(--hair-dark);
}
.mobile-sheet .btn { margin-top: 24px; align-self: flex-start; }
.mobile-sheet .btn--primary { background: var(--on-dark); color: var(--deep); border-color: var(--on-dark); }

/* --------------------------------------------------------------- hero ----- */
.hero {
  background: var(--deep);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
}
.hero__rings {
  position: absolute;
  right: -160px;
  top: 50%;
  transform: translateY(-50%);
  width: 720px;
  height: 720px;
  pointer-events: none;
  opacity: 0.9;
}
.hero__inner { position: relative; z-index: 1; max-width: 920px; }
.hero .h-hero { margin: 0 0 26px; }
.hero .lead { color: var(--on-dark-body); max-width: 54ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero__kicker {
  margin-top: 40px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* --------------------------------------------------------------- ızgaralar - */
.grid { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.section--deep .grid, .section--panel .grid { background: var(--hair-dark); border-color: var(--hair-dark); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.cell {
  background: var(--canvas);
  padding: 28px 26px;
}
.section--recessed .cell { background: var(--recessed); }
.section--fume .cell { background: var(--fume); }
.section--deep .cell { background: var(--deep); }
.section--panel .cell { background: var(--panel); }
.cell__idx {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.section--deep .cell__idx, .section--panel .cell__idx { color: var(--on-dark-muted); }

/* öne çıkan modül hücresi */
.section .cell--feature, .cell--feature { background: var(--panel); color: var(--on-dark); }
.cell--feature .h3 { color: var(--on-dark); }
.cell--feature .small { color: var(--on-dark-body); }
.cell--feature .cell__idx { color: var(--on-dark-muted); }
.cell--feature .btn--ghost { color: var(--on-dark); border-color: var(--hair-dark); }
.cell--feature .btn--ghost:hover { border-color: var(--on-dark); }

/* iki sütunlu bölümler ve modül ızgarası — satır içi stil yerine sınıf, mobilde tek sütuna iner */
.split-2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.split-2--even { grid-template-columns: 1fr 1fr; gap: 56px; }
.split-2--top { align-items: start; }
.grid-modules { grid-template-columns: 1.45fr 1fr 1fr; }
.flow--compact .flow__row { grid-template-columns: 64px 1fr; }
.grid > *, .split-2 > *, .flow__row > * { min-width: 0; }
body, .cell { overflow-wrap: break-word; }

/* --------------------------------------------------------------- section head */
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  max-width: none;
}
.section__head--split .lead { justify-self: end; text-align: left; }

/* --------------------------------------------------------------- süreç ----- */
.flow { border-top: 1px solid var(--hair); }
.section--deep .flow { border-color: var(--hair-dark); }
.flow__row {
  display: grid;
  grid-template-columns: 140px 1fr 240px;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
}
.section--deep .flow__row { border-color: var(--hair-dark); }
.flow__n {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.section--deep .flow__n { color: var(--on-dark-muted); }

/* --------------------------------------------------------------- ürün görseli */
.mockup {
  border: 1px solid var(--hair-strong);
  background: var(--panel);
  color: var(--on-dark);
  padding: 0;
  overflow: hidden;
}
.mockup__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hair-dark);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.mockup__body { padding: 24px; display: grid; gap: 16px; }
.mockup__stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair-dark); border: 1px solid var(--hair-dark); }
.mockup__stat { background: var(--panel); padding: 14px 16px; }
.mockup__stat .v { font-family: var(--display); font-size: 1.5rem; color: var(--on-dark); letter-spacing: 0.02em; }
.mockup__stat .l { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 4px; }
.mockup__bars { display: grid; gap: 10px; }
.mockup__bar-item { display: grid; grid-template-columns: 90px 1fr 42px; gap: 12px; align-items: center; font-size: 12px; color: var(--on-dark-body); }
.mockup__track { height: 6px; background: var(--hair-dark); position: relative; }
.mockup__fill { position: absolute; inset: 0 auto 0 0; background: var(--on-dark); }

/* --------------------------------------------------------------- SSS ------- */
.faq__item { border-bottom: 1px solid var(--hair); }
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
}
.faq__q::after { content: "+"; font-family: var(--display); font-size: 1.4rem; color: var(--muted); transition: transform 0.2s var(--ease); }
.faq__item.open .faq__q::after { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.faq__a-inner { padding: 0 0 24px; color: var(--body); max-width: 68ch; }

/* --------------------------------------------------------------- iletişim -- */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.contact-card { background: var(--canvas); padding: 28px 26px; }
.contact-card .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact-card .v { font-family: var(--display); text-transform: uppercase; font-size: 1.25rem; color: var(--ink); letter-spacing: 0.02em; }

.form-field { display: grid; gap: 6px; margin-bottom: 18px; }
.form-field label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.form-field input, .form-field textarea, .form-field select {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--hair-strong);
  background: var(--canvas);
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* --------------------------------------------------------------- footer --- */
.footer { background: var(--deep); color: var(--on-dark-body); padding: 64px 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 26px; margin-bottom: 16px; }
.footer__brand p { color: var(--on-dark-muted); font-size: 0.9rem; max-width: 34ch; }
.footer__col h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 14px; }
.footer__col a { display: block; padding: 5px 0; font-size: 0.88rem; color: var(--on-dark-body); }
.footer__col a:hover { color: var(--on-dark); }
.footer__bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--hair-dark);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* --------------------------------------------------------------- motif ---- */
.hexbg { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; }
.section--deep .hexbg { opacity: 0.35; }

/* --------------------------------------------------------------- reveal --- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* ekranın üstündeki hero ve sayfa başlığı JS'ye bağlı kalmasın: yüklemede kademeli belirir (C02 §10) */
.hero .reveal, .pagehead .reveal { animation: rise 0.55s var(--ease) both; }
.hero .reveal:nth-child(1), .pagehead .reveal:nth-child(1) { animation-delay: 0.05s; }
.hero .reveal:nth-child(2), .pagehead .reveal:nth-child(2) { animation-delay: 0.13s; }
.hero .reveal:nth-child(3), .pagehead .reveal:nth-child(3) { animation-delay: 0.21s; }
.hero .reveal:nth-child(4), .pagehead .reveal:nth-child(4) { animation-delay: 0.29s; }
.hero .reveal:nth-child(5), .pagehead .reveal:nth-child(5) { animation-delay: 0.37s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero .reveal, .pagehead .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------- utility -- */
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 24px; }
.mt-l { margin-top: 40px; }
.stack > * + * { margin-top: 16px; }
.divider { height: 1px; background: var(--hair-strong); margin: 40px 0; }
.section--deep .divider { background: var(--hair-dark); }
.pagehead { background: var(--deep); color: var(--on-dark); padding: 100px 0 64px; position: relative; overflow: hidden; }
.pagehead .lead { color: var(--on-dark-body); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; margin-left: auto; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .section__head--split { grid-template-columns: 1fr; align-items: start; }
  .section__head--split .lead { justify-self: start; }
  .flow__row { grid-template-columns: 1fr; gap: 8px; }
  .flow__chip { justify-self: start; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .hero__rings { opacity: 0.4; right: -280px; }
  .split-2, .split-2--even { grid-template-columns: 1fr; gap: 36px; }
  .grid-modules { grid-template-columns: 1fr 1fr; }
  /* iki sütuna inen ızgarada tek kalan son hücre boş kutu bırakmasın */
  .grid-3 > :last-child:nth-child(odd), .grid-modules > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .mockup__stat-row { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 10px; }
  .grid-modules { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 60px; }
  .h-hero { font-size: 2.5rem; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .flow--compact .flow__row { grid-template-columns: 52px 1fr; gap: 16px; }
  .mockup__bar-item { grid-template-columns: 70px 1fr 26px; gap: 10px; }
  .mockup__body { padding: 16px; }
  .nav__logo img { height: 26px; }
  .nav__inner { padding: 0 16px; }
}
