/* ============================================================
   Nexsas — AI Gadgets One Page klonu
   Marka token'ları + özel bileşen stilleri + animasyonlar
   ============================================================ */

:root {
  --brand-primary:     #1e4e8c;
  --brand-primary-700: #163c6e;
  --brand-secondary:   #1a1a1c;
  --brand-accent:      #fcfcfc;
  --brand-body-bg:     #f4f5f8;
  --brand-card:        #eaeceb;
  --brand-stroke:      #d7dde5;
  --brand-line:        #e5e7e9;
  --brand-card-border: #eef0f3;
  --brand-header:      #181d26;
  --brand-footer:      #161618;
  --brand-yellow:      #e9d98a;
  --brand-green:       #7fa8d9;
  --brand-cyan:        #9cc3e8;
  --badge-cyan:        #dce9f7;
  --badge-lime:        #e3ecdf;
  --star-off:          #d9dde3;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px; line-height: 24px;
  background: var(--brand-body-bg);
  color: var(--brand-secondary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
:where(h1,h2,h3,h4,h5,h6) { font-weight: 400; }

/* ── Konteyner ─────────────────────────────────────────── */
.container-nx { max-width: 1290px; margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 1140px; margin-inline: auto; padding-inline: 20px; }

/* ── Başlıklar ─────────────────────────────────────────── */
.h-display { font-size: 68px; line-height: 75px; font-weight: 500; letter-spacing: -0.5px; }
.h-section { font-size: 52px; line-height: 62px; font-weight: 400; letter-spacing: -0.5px; }
.h-card    { font-size: 24px; line-height: 34px; font-weight: 400; }
@media (max-width: 1023px) {
  .h-display { font-size: 48px; line-height: 56px; }
  .h-section { font-size: 38px; line-height: 46px; }
}
@media (max-width: 639px) {
  .h-display { font-size: 38px; line-height: 44px; }
  .h-section { font-size: 30px; line-height: 38px; }
}
.on-dark, .on-dark :where(h1,h2,h3,h4) { color: var(--brand-accent); }
.text-muted { color: rgba(26,26,28,0.6); }
.text-muted-light { color: rgba(252,252,252,0.6); }

/* ── Badge (pill etiket) ───────────────────────────────── */
.badge-nx {
  display: inline-block; padding: 6px 20px; border-radius: 9999px;
  font-size: 14px; line-height: 20px; background: var(--brand-card); color: var(--brand-secondary);
}
.badge-nx.badge-white { background: #fff; }
.badge-nx.badge-cyan  { background: var(--badge-cyan); }
.badge-nx.badge-lime  { background: var(--badge-lime); }
.badge-nx.badge-dark  { background: var(--brand-secondary); color: var(--brand-accent); }
.badge-nx.badge-body  { background: var(--brand-body-bg); }

/* ── Butonlar ──────────────────────────────────────────── */
.btn-nx {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 32px; height: 54px; border-radius: 9999px;
  font-size: 16px; line-height: 24px; font-family: inherit; cursor: pointer;
  transition: transform .25s ease, opacity .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-nx:hover { transform: translateY(-2px); }
.btn-dark  { background: var(--brand-secondary); color: var(--brand-accent); border: 1px solid var(--brand-secondary); }
.btn-dark:hover { background: #000; }
.btn-light { background: var(--brand-accent); color: var(--brand-secondary); border: 1px solid var(--brand-stroke); }
.btn-ghost-dark { background: rgba(255,255,255,0.06); color: var(--brand-accent); border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.12); }
.btn-primary-nx { background: var(--brand-primary); color: var(--brand-accent); border: 0; padding: 10px 20px; height: auto; }
.btn-primary-nx:hover { background: var(--brand-primary-700); }
.btn-nx .spark { flex-shrink: 0; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: fixed; inset-inline: 0; top: 24px; z-index: 90;
  display: flex; justify-content: center; pointer-events: none;
  transition: top .3s ease;
}
.site-header .header-pill {
  pointer-events: auto;
  width: min(1140px, calc(100% - 40px)); height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px; border-radius: 9999px;
  background: rgba(249,250,251,0.1);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { top: 16px; }
.site-header.scrolled .header-pill {
  background: rgba(24,29,38,0.97);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.nav-desktop { display: flex; align-items: center; gap: 2px; }
.nav-link-nx {
  color: #fff; font-size: 16px; padding: 8px 16px; border-radius: 9999px;
  transition: background .25s ease;
}
.nav-link-nx:hover { background: rgba(255,255,255,0.12); }
.nav-link-nx.is-active { background: rgba(255,255,255,0.2); }
.header-burger {
  display: none; width: 44px; height: 44px; border-radius: 9999px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); color: #fff; border: 0; cursor: pointer;
}
@media (max-width: 1023px) {
  .nav-desktop, .site-header .cta-desktop { display: none; }
  .header-burger { display: inline-flex; }
}

/* ── Mobil drawer ──────────────────────────────────────── */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 98; background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.drawer-nx {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 99;
  width: min(320px, 85vw); background: var(--brand-header); color: #fff;
  padding: 24px; transform: translateX(100%); transition: transform .35s ease;
  display: flex; flex-direction: column; gap: 8px; overflow-y: auto;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer-nx { transform: translateX(0); }
.drawer-nx a.drawer-link {
  display: block; padding: 14px 12px; border-radius: 12px; font-size: 18px; color: #fff;
}
.drawer-nx a.drawer-link:hover { background: rgba(255,255,255,0.08); }

/* ── Reveal (GSAP fade-in klonu) ───────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(60px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal="down"] { transform: translateY(-60px); }
[data-reveal].is-in-view { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Yatay logo marquee ────────────────────────────────── */
.marquee-h {
  display: flex; overflow: hidden; gap: 72px;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-h-inner {
  display: flex; align-items: center; gap: 72px; flex-shrink: 0;
  animation: marqueeX 25s linear infinite;
}
.marquee-h:hover .marquee-h-inner { animation-play-state: paused; }
@keyframes marqueeX { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 72px)); } }
.marquee-h img { height: 39px; width: auto; opacity: .55; }

/* ── Dikey testimonial marquee ─────────────────────────── */
.marquee-v-wrap {
  height: 100vh; max-height: 960px; overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.marquee-v-inner { display: flex; flex-direction: column; gap: 24px; animation: marqueeY 38s linear infinite; }
.marquee-v-inner.reverse { animation-direction: reverse; }
.marquee-v-wrap:hover .marquee-v-inner { animation-play-state: paused; }
@keyframes marqueeY { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 12px)); } }

/* ── Testimonial kartı ─────────────────────────────────── */
.t-card {
  background: #fff; border: 1px solid var(--brand-card-border); border-radius: 20px;
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.t-card .stars { display: flex; gap: 4px; }
.t-card .stars svg { width: 16px; height: 16px; }
.t-card p { color: rgba(26,26,28,0.8); font-size: 16px; line-height: 26px; }
.t-card .who { display: flex; align-items: center; gap: 12px; }
.t-card .who img { width: 44px; height: 44px; border-radius: 9999px; object-fit: cover; }
.t-card .who strong { font-weight: 500; font-size: 16px; }

/* ── Intro split-text ──────────────────────────────────── */
.split-text { font-size: 48px; line-height: 1.35; font-weight: 400; text-align: center; }
@media (max-width: 1023px) { .split-text { font-size: 34px; } }
@media (max-width: 639px)  { .split-text { font-size: 26px; } }
.split-text .w { color: rgba(26,26,28,0.15); transition: color .25s linear; }
.split-text .w.is-filled { color: var(--brand-secondary); }

/* ── Bento kartlar ─────────────────────────────────────── */
.bento-card { background: #fff; border-radius: 20px; padding: 28px; }
.bento-grad {
  background: linear-gradient(160deg, #35618f 0%, #6f92c0 40%, #f6b39a 100%);
  color: #fff;
}
.ring-chart { transform: rotate(-90deg); }
.ring-chart .track { stroke: #eef0f3; }
.ring-chart .bar { stroke: var(--brand-primary); stroke-linecap: round; transition: stroke-dashoffset 1.2s ease-out; }
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 110px; }
.bar-chart .bc { width: 10px; border-radius: 6px; background: linear-gradient(to top, rgba(127,168,217,.35), var(--brand-green)); }

/* ── Team kartı hover ──────────────────────────────────── */
.team-card { position: relative; background: #fff; border-radius: 20px; overflow: hidden; padding: 12px; }
.team-card figure { border-radius: 16px; overflow: hidden; background: var(--brand-body-bg); }
.team-card figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 408/392; }
.team-hover {
  position: absolute; z-index: 20; left: 50%; bottom: 20px;
  width: calc(100% - 44px); transform: translateX(-50%);
  background: #fff; border-radius: 12px; padding: 24px; text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.team-hover h3 { font-size: 20px; line-height: 28px; }
.team-hover p { font-size: 14px; color: rgba(26,26,28,0.4); }
@media (min-width: 1024px) {
  .team-hover {
    opacity: 0; transform: translateX(-50%) translateY(30%) scale(.9);
    transition: all .4s cubic-bezier(.25,.75,.5,1);
  }
  .team-card:hover .team-hover { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ── Pricing ───────────────────────────────────────────── */
.price-toggle-wrap { position: relative; display: inline-flex; }
.price-toggle {
  display: inline-flex; align-items: center; gap: 14px; background: #fff;
  border-radius: 9999px; padding: 22px 32px; cursor: pointer; user-select: none;
  font-size: 16px;
}
.price-switch {
  width: 56px; height: 30px; border-radius: 9999px; background: var(--brand-secondary);
  position: relative; flex-shrink: 0; transition: background .3s ease;
}
.price-switch::after {
  content: ''; position: absolute; top: 4px; left: 5px; width: 22px; height: 22px;
  border-radius: 9999px; background: #fff; transition: left .3s ease;
}
body.yearly .price-switch::after { left: 29px; }
.save-badge {
  position: absolute; top: -18px; right: -46px; transform: rotate(-15deg);
  background: var(--brand-secondary); color: #fff; font-size: 14px;
  padding: 8px 18px; border-radius: 9999px; box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.price-card { border-radius: 20px; padding: 34px; background: #f8f9fb; }
.price-card.featured {
  background: #fff; position: relative; z-index: 1;
  box-shadow: 0 24px 60px rgba(26,26,28,0.08); border: 8px solid #fff; outline: 1px solid var(--brand-card-border);
}
.price-card.featured::before {
  content: ''; position: absolute; right: -14px; top: 32%; width: 26px; height: 45%;
  background: linear-gradient(to bottom, #f6b39a, #ef8b60); filter: blur(10px);
  border-radius: 20px; z-index: -1;
}
.price-amount { font-size: 36px; line-height: 44px; font-weight: 500; }
.price-period { font-size: 14px; color: rgba(26,26,28,0.6); }
.price-m, .price-y { display: none; }
body:not(.yearly) .price-m { display: block; }
body.yearly .price-y { display: block; }
.feat { display: flex; align-items: center; gap: 12px; font-size: 16px; padding-block: 8px; }
.feat .tick { width: 24px; height: 24px; border-radius: 9999px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.feat.on .tick { background: var(--brand-secondary); color: #fff; }
.feat.off { color: rgba(26,26,28,0.45); }
.feat.off .tick { background: transparent; color: rgba(26,26,28,0.35); border: 0; }

/* ── FAQ akordeon ──────────────────────────────────────── */
.faq-item { background: #fff; border: 1px solid var(--brand-card-border); border-radius: 20px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: transparent; border: 0; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 20px; color: var(--brand-secondary); padding: 32px 28px;
}
.faq-q .chev { transition: transform .3s ease; flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 28px 26px; }
.faq-a-inner .divider { border-top: 1px solid var(--brand-line); margin-bottom: 18px; }
.faq-a-inner p { color: rgba(26,26,28,0.6); font-size: 16px; line-height: 26px; }

/* ── Blog kartları ─────────────────────────────────────── */
.blog-card {
  background: var(--brand-card); border-radius: 20px; overflow: hidden;
  transition: transform .5s ease; display: block; position: relative;
}
.blog-card:hover { transform: scale(1.01); }
.read-more-pill {
  display: inline-block; background: #fff; border-radius: 9999px;
  padding: 10px 22px; font-size: 14px;
}
.meta-row { display: flex; align-items: center; gap: 20px; font-size: 14px; color: rgba(26,26,28,0.6); }
.meta-row .mi { display: flex; align-items: center; gap: 8px; }

/* ── Form ──────────────────────────────────────────────── */
.form-card { background: #fff; border-radius: 20px; padding: 40px; }
.form-card label { display: block; font-size: 16px; margin-bottom: 10px; }
.input-nx {
  width: 100%; height: 48px; border: 1px solid var(--brand-line); border-radius: 9999px;
  padding: 0 20px; font-family: inherit; font-size: 15px; color: var(--brand-secondary);
  background: #fff; outline: none; transition: border-color .25s ease;
}
.input-nx::placeholder, .textarea-nx::placeholder { color: rgba(26,26,28,0.35); }
.input-nx:focus, .textarea-nx:focus { border-color: var(--brand-primary); }
.textarea-nx {
  width: 100%; min-height: 115px; border: 1px solid var(--brand-line); border-radius: 24px;
  padding: 14px 20px; font-family: inherit; font-size: 15px; resize: vertical; outline: none;
}
.check-round { width: 18px; height: 18px; border-radius: 9999px; accent-color: var(--brand-secondary); }
.btn-submit {
  width: 100%; height: 48px; border-radius: 9999px; border: 0; cursor: pointer;
  background: var(--brand-secondary); color: var(--brand-accent); font-family: inherit; font-size: 16px;
  transition: background .25s ease;
}
.btn-submit:hover { background: #000; }
.form-ok { display: none; margin-top: 14px; font-size: 14px; color: #16a34a; }

/* ── Steps ─────────────────────────────────────────────── */
.step-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 90px; height: 56px; border-radius: 9999px; background: #fff;
  box-shadow: 0 0 0 6px rgba(26,26,28,0.04); font-size: 16px; position: relative; z-index: 1;
}
.steps-row { position: relative; }
.steps-row::before {
  content: ''; position: absolute; top: 28px; left: 16%; right: 16%;
  border-top: 1px dashed var(--brand-stroke); z-index: 0;
}

/* ── Footer ────────────────────────────────────────────── */
.footer-nx { background: var(--brand-footer); color: var(--brand-accent); }
.footer-nx .f-link { color: rgba(252,252,252,0.6); font-size: 16px; transition: color .25s ease; display: block; padding-block: 8px; }
.footer-nx .f-link:hover { color: #fff; }
.footer-nx .f-head { font-size: 20px; font-weight: 500; margin-bottom: 18px; }
.social-row { display: flex; align-items: center; }
.social-row a { display: inline-flex; padding: 4px 10px; color: rgba(252,252,252,0.85); }
.social-row a:hover { color: #fff; }
.social-row .sep { width: 1px; height: 16px; background: rgba(255,255,255,0.2); }

/* ── Hero canlı arka plan (tam genişlik, hareketli ışımalar) ── */
.hero-blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 9999px; filter: blur(80px); will-change: transform, opacity; }
.hb-1 {
  width: 72vw; height: 72vw;
  left: -20%; top: -32%;
  background: radial-gradient(circle, rgba(64,124,205,.95) 0%, rgba(40,92,165,.45) 42%, transparent 68%);
  animation: hbDrift1 7s ease-in-out infinite alternate;
}
.hb-2 {
  width: 62vw; height: 62vw;
  right: -18%; top: -26%;
  background: radial-gradient(circle, rgba(126,168,230,.75) 0%, rgba(70,115,180,.35) 46%, transparent 70%);
  animation: hbDrift2 9s ease-in-out infinite alternate;
}
.hb-3 {
  width: 50vw; height: 50vw;
  left: 28%; top: 20%;
  background: radial-gradient(circle, rgba(246,179,154,.5) 0%, rgba(246,179,154,.16) 48%, transparent 70%);
  animation: hbDrift3 8s ease-in-out infinite alternate;
}
.hb-4 {
  width: 56vw; height: 56vw;
  right: 2%; top: 34%;
  background: radial-gradient(circle, rgba(58,116,196,.6) 0%, rgba(40,92,165,.22) 50%, transparent 70%);
  animation: hbDrift4 11s ease-in-out infinite alternate;
}
@keyframes hbDrift1 {
  from { transform: translate(0, 0) scale(1);          opacity: .55; }
  50%  { opacity: 1; }
  to   { transform: translate(24vw, 12vh) scale(1.28); opacity: .7; }
}
@keyframes hbDrift2 {
  from { transform: translate(0, 0) scale(1.15);       opacity: 1; }
  50%  { opacity: .45; }
  to   { transform: translate(-20vw, 10vh) scale(.85); opacity: .9; }
}
@keyframes hbDrift3 {
  from { transform: translate(-8vw, 4vh) scale(.9);    opacity: .5; }
  to   { transform: translate(14vw, -9vh) scale(1.35); opacity: 1; }
}
@keyframes hbDrift4 {
  from { transform: translate(0, 0) scale(1);           opacity: 1; }
  50%  { opacity: .4; }
  to   { transform: translate(-16vw, -10vh) scale(1.25); opacity: .95; }
}

/* ── Yardımcılar ───────────────────────────────────────── */
.rounded-32 { border-radius: 32px; }
.section-pad { padding-block: 100px; }
@media (max-width: 767px) { .section-pad { padding-block: 60px; } }
