/* ==========================================================================
   SayraSoft — Yakında Buradayız
   Tüm renk / ölçü değerleri token olarak :root altında.
   Palet: lacivert + mavi, düz renkler (mor ve renk gradyanı yok).
   ========================================================================== */

:root {
  /* Marka (Kurumsal Kimlik Rehberi — lacivert/mavi versiyon) */
  --ss-navy: #0B1F43;
  --ss-blue: #007AFF;
  --ss-white: #FFFFFF;

  /* Türetilmiş */
  --ss-bg: #071631;            /* sayfa zemini: lacivertin bir ton koyusu */
  --ss-surface: #0E2550;       /* kart / panel zemini */
  --ss-blue-hover: #1A88FF;
  --ss-blue-text: #5AA9FF;     /* koyu zeminde küçük mavi metin (kontrast için) */
  --ss-danger: #FF6B7D;

  --ss-text: #E8EEF8;
  --ss-muted: rgba(232, 238, 248, .68);
  --ss-faint: rgba(232, 238, 248, .42);
  --ss-ghost: rgba(232, 238, 248, .14);
  --ss-line: rgba(232, 238, 248, .10);
  --ss-glass: rgba(11, 31, 67, .62);

  /* Tipografi */
  --ff: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ff-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, Menlo, monospace;

  /* Ölçüler */
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --pill: 999px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ss-bg);
  color: var(--ss-text);
  font-family: var(--ff);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
::selection { background: var(--ss-blue); color: var(--ss-white); }
svg { display: block; }
a { color: inherit; }
code { font-family: var(--ff-mono); font-size: .9em; color: var(--ss-blue-text); }

.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: -64px; z-index: 100;
  padding: 10px 18px; border-radius: var(--pill);
  background: var(--ss-white); color: var(--ss-navy); font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--ss-blue-text); outline-offset: 3px; border-radius: 6px; }

/* ---------- Parçacık alanı ---------- */
.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.page { position: relative; z-index: 1; }

/* ---------- Ortak ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 24px;
  font-family: var(--ff-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ss-blue-text);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.accent,
.section__title em,
.hero__cycle,
.brand__word b { font-style: normal; color: var(--ss-blue); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer;
  padding: 14px 26px; border-radius: var(--pill);
  font: inherit; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ss-white);
  background: var(--ss-blue);
  box-shadow: 0 10px 30px -12px rgba(0, 122, 255, .7);
  transition: background-color .3s, transform .2s var(--ease), box-shadow .3s;
}
.btn:hover { background: var(--ss-blue-hover); transform: translateY(-1px); box-shadow: 0 14px 36px -12px rgba(0, 122, 255, .85); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.section { position: relative; padding: clamp(96px, 14vw, 180px) var(--gutter); }
.section__head {
  max-width: var(--maxw); margin: 0 auto 56px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
}
.section__title {
  margin: 0; max-width: 16ch;
  font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800;
  color: var(--ss-white);
}
.section__lead { margin: 0; max-width: 44ch; color: var(--ss-muted); font-size: 1.05rem; }

/* Scroll ile beliren öğeler (yalnız JS varken gizlenir) */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Üst bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .35s, padding .35s, border-color .35s;
}
.topbar.is-scrolled {
  padding-block: 12px;
  background: rgba(7, 22, 49, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--ss-line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -.025em; color: var(--ss-white);
}
.brand__mark { width: 30px; height: auto; }
.brand__word b { font-weight: 700; }

.status {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 8px 16px; border-radius: var(--pill);
  border: 1px solid var(--ss-line); background: var(--ss-glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ss-muted);
}
.status__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ss-blue);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, .6); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(0, 122, 255, 0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--gutter);
}
.hero__inner { width: 100%; max-width: min(720px, 52vw); }

.hero__title {
  margin: 0;
  font-size: clamp(2.3rem, 4.9vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 800;
  color: var(--ss-white);
}
.hero__cycle {
  display: block; white-space: nowrap; min-height: 1.06em;
  padding-bottom: .06em; /* g/ç kuyrukları kesilmesin */
}
.hero__lead {
  margin: 28px 0 36px; max-width: 52ch;
  font-size: clamp(1.02rem, 1.25vw, 1.18rem); color: var(--ss-muted);
}

.notify { max-width: 520px; }
.notify__row {
  display: flex; gap: 6px; padding: 6px;
  border-radius: var(--pill);
  background: var(--ss-glass);
  border: 1px solid rgba(232, 238, 248, .14);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .7);
  transition: border-color .3s, box-shadow .3s;
}
.notify__row:focus-within {
  border-color: rgba(0, 122, 255, .7);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, .16), 0 24px 60px -28px rgba(0, 0, 0, .7);
}
.notify__input {
  flex: 1; min-width: 0; padding: 0 18px;
  background: transparent; border: 0; outline: 0;
  color: var(--ss-white); font: inherit; font-size: 1rem;
}
.notify__input::placeholder { color: var(--ss-faint); }
.notify__msg { min-height: 1.6em; margin: 12px 0 0 20px; font-size: .9rem; color: var(--ss-muted); }
.notify__msg.is-ok { color: var(--ss-blue-text); }
.notify__msg.is-err { color: var(--ss-danger); }

.build { margin-top: 28px; max-width: 520px; font-family: var(--ff-mono); font-size: .76rem; color: var(--ss-faint); }
.build__cmd span { color: var(--ss-blue-text); }
.build__bar { position: relative; height: 2px; margin: 12px 0 10px; background: var(--ss-line); border-radius: 2px; overflow: hidden; }
.build__bar::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: var(--ss-blue);
  animation: load 2.4s var(--ease) infinite;
}
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.build__status { display: flex; justify-content: space-between; }
.build__status span:last-child { color: var(--ss-blue-text); }

.hero__hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ss-faint);
  white-space: nowrap; pointer-events: none;
}
.hero__hint i { width: 1px; height: 40px; background: var(--ss-blue); transform-origin: top; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Kayan şerit ---------- */
.marquee {
  position: relative; z-index: 1; overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--ss-line);
  background: rgba(11, 31, 67, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.marquee span {
  font-size: clamp(1.8rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(232, 238, 248, .38);
}
.marquee span.is-fill { -webkit-text-stroke: 0; color: var(--ss-blue); }
.marquee b { font-size: 1.1rem; color: var(--ss-blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { position: relative; height: 240vh; }
.manifesto__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.manifesto__sticky::before {
  content: ""; position: absolute; inset: 15% 0; z-index: -1;
  background: radial-gradient(closest-side, rgba(7, 22, 49, .8), transparent);
}
.manifesto__text {
  margin: 0;
  font-size: clamp(1.8rem, 4.4vw, 4rem); line-height: 1.14; letter-spacing: -.035em; font-weight: 700;
  color: var(--ss-white);
}
.js .manifesto__text .w { color: var(--ss-ghost); transition: color .45s var(--ease); }
.js .manifesto__text .w.on { color: var(--ss-white); }
.manifesto__text em,
.js .manifesto__text .w.hl.on { font-style: normal; color: var(--ss-blue); }

/* ---------- Odak alanları ---------- */
.pillars__grid {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.pillar {
  position: relative; height: 100%;
  padding: 30px 28px 34px;
  border-radius: var(--radius-lg);
  background: rgba(14, 37, 80, .72);
  border: 1px solid var(--ss-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .45s var(--ease), border-color .45s, background-color .45s;
}
.pillar:hover { transform: translateY(-6px); border-color: rgba(0, 122, 255, .6); background: rgba(14, 37, 80, .9); }
.pillar__no { display: block; font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .16em; color: var(--ss-faint); }
.pillar__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin: 26px 0 44px;
  border-radius: var(--radius);
  background: var(--ss-blue);
  box-shadow: 0 12px 28px -12px rgba(0, 122, 255, .8);
  color: var(--ss-white);
}
.pillar__icon svg { width: 24px; height: 24px; }
.pillar h3 { margin: 0 0 10px; font-size: 1.22rem; line-height: 1.25; letter-spacing: -.02em; color: var(--ss-white); }
.pillar p { margin: 0; font-size: .95rem; color: var(--ss-muted); }

/* ---------- Terminal ---------- */
.console__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center;
}
.console__copy .section__lead { margin-top: 24px; }

.term {
  border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(5, 16, 38, .9);
  border: 1px solid rgba(232, 238, 248, .12);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8);
  font-family: var(--ff-mono); font-size: .875rem;
}
.term__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--ss-line); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--ss-ghost); }
.term__bar i:nth-child(3) { background: var(--ss-blue); }
.term__title { margin: 0 auto; padding-right: 50px; font-size: .74rem; color: var(--ss-faint); }
.term__body { height: 340px; overflow-y: auto; padding: 18px 20px; cursor: text; scrollbar-width: thin; scrollbar-color: var(--ss-ghost) transparent; }
.term__line { margin: 0 0 4px; white-space: pre-wrap; word-break: break-word; color: var(--ss-muted); }
.term__line--cmd { color: var(--ss-white); margin-top: 10px; }
.term__line--cmd::before { content: "~$ "; color: var(--ss-blue-text); }
.term__line--accent { color: var(--ss-blue-text); }
.term__line--hl { color: var(--ss-white); font-weight: 700; }
.term__line--err { color: var(--ss-danger); }
.term__input-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.term__prompt { color: var(--ss-blue-text); }
.term__input {
  flex: 1; min-width: 0; padding: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--ss-white); font: inherit; caret-color: var(--ss-blue);
}
.term__input::placeholder { color: var(--ss-faint); }
.term__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--ss-line); }
.chip {
  padding: 7px 14px; border-radius: var(--pill); cursor: pointer;
  font: inherit; font-size: .74rem;
  color: var(--ss-muted); background: rgba(232, 238, 248, .05); border: 1px solid var(--ss-line);
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--ss-white); border-color: var(--ss-blue); background: rgba(0, 122, 255, .14); }

/* ---------- Footer ---------- */
.footer { padding: 0 var(--gutter); border-top: 1px solid var(--ss-line); overflow: hidden; background: rgba(7, 22, 49, .8); }
.footer__row {
  max-width: var(--maxw); margin: 0 auto; padding: 32px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .88rem; color: var(--ss-faint);
}
.footer__mail { color: var(--ss-muted); text-decoration: none; border-bottom: 1px solid var(--ss-line); transition: color .2s, border-color .2s; }
.footer__mail:hover { color: var(--ss-blue-text); border-color: var(--ss-blue-text); }
.footer__giant {
  margin: 0 0 -.14em; text-align: center; white-space: nowrap;
  font-size: 18.5vw; font-weight: 800; line-height: 1; letter-spacing: -.06em;
  color: rgba(0, 122, 255, .12);
  user-select: none;
}

/* ---------- Duyarlı ---------- */
@media (max-width: 1100px) {
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px) {
  /* Mobilde parçacık logosu başlığın üstündeki alanda toplanır */
  .hero { align-items: flex-start; padding-top: 330px; }
  .hero__inner { max-width: 100%; }
  .hero__hint { display: none; }
  .console__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pillars__grid { grid-template-columns: 1fr; }
  .status { padding: 7px 12px; font-size: .64rem; letter-spacing: .1em; }
  .brand { font-size: 1.15rem; }
  .brand__mark { width: 26px; }
  .term__body { height: 300px; }
}
@media (max-width: 480px) {
  .notify__row { flex-direction: column; border-radius: var(--radius-lg); }
  .notify__input { padding: 14px 16px; }
  .notify__msg { margin-left: 4px; }
}
@media (max-height: 760px) and (min-width: 900px) {
  .hero__hint { display: none; }
}
@media (max-height: 700px) {
  .hero__hint { display: none; }
}
@media (pointer: coarse) {
  .term__input { font-size: 16px; } /* iOS odak yakınlaştırmasını engeller */
}

/* ---------- Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .build__bar::after, .status__dot, .hero__hint i { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .manifesto { height: auto; }
  .manifesto__sticky { position: relative; height: auto; padding-block: 140px; }
}
