/* =========================================================
   Nabız — Uptime izleme
   Estetik: kontrol odası / osiloskop.
   Koyu mürekkep zemin, fosfor yeşili tek vurgu, monospace veri.
   ========================================================= */

/* ---------- Token ---------- */
:root {
  --ink:        #0A0C0B;
  --ink-2:      #0F1311;
  --surface:    #141917;
  --surface-2:  #1A211E;
  --line:       #232B28;
  --line-soft:  #1B2320;

  --paper:      #E9E7DF;
  --muted:      #8B928C;
  --muted-2:    #626963;

  --signal:     #C6F24E;
  --signal-dim: #96B93B;
  --signal-glow: rgba(198, 242, 78, .16);
  --alert:      #FF6B3D;

  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body:    "Instrument Sans", "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", "Consolas", monospace;

  --wrap: 1180px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

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

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

.mono { font-family: var(--font-mono); font-size: .78em; letter-spacing: .02em; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--signal); color: var(--ink);
  padding: 10px 18px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Grain / doku ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Yerleşim ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap--narrow { max-width: 800px; }

.section { padding: 120px 0; position: relative; z-index: 2; }
.section--alt { background: var(--ink-2); border-block: 1px solid var(--line-soft); }

.section__head { margin-bottom: 64px; max-width: 720px; }

.kicker {
  display: inline-block;
  color: var(--signal-dim);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 20px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.nav.is-stuck {
  background: rgba(10, 12, 11, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 30px; height: 19px; color: var(--signal); flex: none; }
.logo__word {
  font-family: var(--font-display);
  font-weight: 800; font-size: 21px; letter-spacing: -.03em;
}

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links > a:not(.btn) {
  font-size: 15px; color: var(--muted);
  transition: color .2s var(--ease);
  position: relative;
}
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--signal);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--paper); }
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
  display: none; width: 42px; height: 42px;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav__toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--paper);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Buton ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600;
  border: 1px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--solid { background: var(--signal); color: var(--ink); }
.btn--solid:hover { background: #D4FF63; }

.btn--ghost { border-color: var(--line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); }

.btn--quiet { color: var(--muted); padding-inline: 6px; }
.btn--quiet:hover { color: var(--signal); }
.btn__arrow { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.btn--quiet:hover .btn__arrow { transform: translateX(4px); }

.btn--full { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 16px; }

/* ---------- Nokta (canlı göstergesi) ---------- */
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal); flex: none;
  box-shadow: 0 0 0 0 var(--signal-glow);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(198, 242, 78, .5); }
  70%  { box-shadow: 0 0 0 9px rgba(198, 242, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 242, 78, 0); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 100px; overflow: hidden; z-index: 2; }

.hero__grid {
  position: absolute; inset: -1px 0 auto; height: 780px; z-index: -1;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 60px; align-items: center;
}

/* Uzun kelimelerin grid'i taşırmasını önler */
.hero__copy { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  color: var(--muted); margin-bottom: 28px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: 26px;
}
.hero__title em {
  font-style: normal;
  color: var(--signal);
  position: relative;
  display: inline-block;
}
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em;
  height: 3px; background: var(--signal); opacity: .28;
}

.hero__lede { color: var(--muted); max-width: 50ch; margin-bottom: 34px; }
.hero__lede strong { color: var(--paper); font-weight: 600; }

.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.hero__note { color: var(--muted-2); }

/* ---------- Osiloskop paneli ---------- */
.scope {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(198, 242, 78, .04);
}

.scope__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.scope__label { color: var(--muted-2); }
.scope__status { display: inline-flex; align-items: center; gap: 8px; color: var(--signal-dim); }

.scope__canvas {
  width: 100%; height: 230px; display: block;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 38px,
    var(--ink);
}

.scope__readout {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.readout {
  padding: 15px 18px;
  display: flex; flex-direction: column; gap: 3px;
}
.readout + .readout { border-left: 1px solid var(--line); }
.readout__k { color: var(--muted-2); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.readout__v { font-size: 19px; color: var(--paper); font-weight: 500; }
.readout__v .unit { color: var(--muted-2); font-size: .68em; }

/* ---------- İstatistik şeridi ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 90px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats li {
  padding: 26px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.stats li + li { border-left: 1px solid var(--line); }
.stats__n {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700; letter-spacing: -.03em;
  color: var(--signal); line-height: 1;
}
.stats .mono { color: var(--muted-2); }

/* ---------- Kartlar ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  padding: 32px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.card:hover { border-color: #33403A; transform: translateY(-3px); background: var(--surface-2); }
.card--wide { grid-column: span 2; }
.card--accent { border-color: rgba(198, 242, 78, .22); }
.card--accent:hover { border-color: rgba(198, 242, 78, .45); }

.card__num {
  display: block; color: var(--signal-dim);
  margin-bottom: 18px; letter-spacing: .12em;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700; letter-spacing: -.02em;
  line-height: 1.22; margin-bottom: 12px;
}
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.62; }

.inline-code {
  background: var(--ink); border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 4px; color: var(--signal-dim);
}

/* Kart görseli: bölge ızgarası */
.card__viz {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 5px; margin-top: 26px;
}
.card__viz span {
  height: 26px; border-radius: 3px;
  background: var(--line);
  animation: sweep 3.2s var(--ease) infinite;
}
.card__viz span:nth-child(3n)   { animation-delay: .3s; }
.card__viz span:nth-child(3n+1) { animation-delay: .6s; }
.card__viz span:nth-child(4n)   { animation-delay: .9s; }
@keyframes sweep {
  0%, 100% { background: var(--line); }
  45%      { background: var(--signal-dim); }
}

/* ---------- Adımlar ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
.step {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink);
}
.step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--signal); color: var(--signal);
  font-size: 13px; margin-bottom: 18px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px;
}
.step p { color: var(--muted); font-size: 15.5px; }

.term {
  margin-top: 22px; padding: 16px 18px;
  background: #060807;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px; line-height: 1.85;
  color: var(--muted);
}
.term__c  { color: var(--muted-2); }
.term__ok { color: var(--signal); }
.term__hl { color: var(--paper); }

/* ---------- Fiyat ---------- */
.toggle {
  display: inline-flex; gap: 4px; margin-top: 30px;
  padding: 4px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface);
}
.toggle__btn {
  padding: 9px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.toggle__btn.is-active { background: var(--signal); color: var(--ink); }
.toggle__save {
  color: var(--signal-dim); font-size: 11px;
  border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px;
}
.toggle__btn.is-active .toggle__save { color: var(--ink); border-color: rgba(10,12,11,.35); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }

.plan {
  position: relative;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 8px;
}
.plan--featured {
  border-color: var(--signal);
  background: linear-gradient(180deg, rgba(198,242,78,.05), transparent 40%), var(--surface);
  box-shadow: 0 0 50px -22px var(--signal-glow);
}
.plan__badge {
  position: absolute; top: -10px; left: 30px;
  background: var(--signal); color: var(--ink);
  padding: 3px 11px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 500;
}
.plan__name { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.plan__for { color: var(--muted-2); }

.plan__price {
  display: flex; align-items: baseline; gap: 3px;
  margin: 18px 0 6px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em;
}
.plan__cur { font-size: 22px; color: var(--muted); }
.plan__amt { font-size: 46px; line-height: 1; transition: opacity .18s var(--ease); }
.plan__amt.is-swapping { opacity: 0; }
.plan__per { color: var(--muted-2); margin-left: 4px; letter-spacing: 0; }

.plan__list { display: grid; gap: 11px; margin: 22px 0 28px; font-size: 15px; color: var(--muted); }
.plan__list li { display: flex; align-items: flex-start; gap: 11px; }
.plan__list li::before {
  content: ""; flex: none; width: 15px; height: 15px; margin-top: 5px;
  background: var(--signal-dim);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.plan__list strong { color: var(--paper); font-weight: 600; }
.plan .btn { margin-top: auto; }

.plans__note { text-align: center; color: var(--muted-2); margin-top: 28px; }

/* ---------- SSS ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 24px 40px 24px 0;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500; letter-spacing: -.015em;
  position: relative;
  transition: color .2s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--signal); }

.faq__sign {
  position: absolute; right: 4px; top: 50%; width: 13px; height: 13px;
  transform: translateY(-50%);
}
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--signal);
  transition: transform .3s var(--ease), opacity .2s;
}
.faq__sign::before { width: 13px; height: 1.5px; }
.faq__sign::after  { width: 1.5px; height: 13px; }
.faq__item[open] .faq__sign::after { transform: rotate(90deg); opacity: 0; }

.faq__body { padding: 0 60px 26px 0; color: var(--muted); font-size: 15.5px; }
.faq__item[open] .faq__body { animation: unfold .35s var(--ease); }
@keyframes unfold {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Son çağrı ---------- */
.cta {
  padding: 120px 0;
  text-align: center;
  position: relative; z-index: 2;
  background:
    radial-gradient(ellipse 60% 100% at 50% 100%, rgba(198,242,78,.07), transparent 70%),
    var(--ink);
  border-top: 1px solid var(--line-soft);
}
.cta__inner { max-width: 660px; margin-inline: auto; }

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; line-height: 1.05; letter-spacing: -.035em;
  margin-bottom: 20px;
}
.cta__lede { color: var(--muted); margin-bottom: 34px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-top: 64px;
  position: relative; z-index: 2;
}
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 50px;
  padding-bottom: 54px;
}
.footer__brand { max-width: 320px; }

.footer__tag { color: var(--muted-2); font-size: 14.5px; margin-top: 16px; line-height: 1.7; }

.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__cols h4 {
  color: var(--muted-2); text-transform: uppercase; letter-spacing: .12em;
  font-weight: 400; margin-bottom: 16px;
}
.footer__cols a {
  display: block; color: var(--muted); font-size: 15px; padding: 5px 0;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer__cols a:hover { color: var(--signal); transform: translateX(3px); }

.footer__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 22px; border-top: 1px solid var(--line);
  color: var(--muted-2); flex-wrap: wrap; gap: 12px;
}
.footer__live { display: inline-flex; align-items: center; gap: 9px; color: var(--signal-dim); }

/* ---------- Görünürlük animasyonu ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }
.reveal[data-delay="5"] { transition-delay: .35s; }

/* =========================================================
   Duyarlı
   ========================================================= */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--featured { order: -1; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 84px 0; }
  .section__head { margin-bottom: 44px; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 74px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 26px;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 18px; }

  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 64px; }
  .stats li:nth-child(3), .stats li:nth-child(4) { border-top: 1px solid var(--line); }
  .stats li:nth-child(odd) { border-left: 0; }

  .cards { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }

  .scope__canvas { height: 190px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .faq__body { padding-right: 20px; }
}

@media (max-width: 420px) {
  .footer__cols { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
