/* ===== Tasarım tokenları ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6477;
  --border: #e5e7ef;
  --accent: #6366f1;
  --accent-2: #06b6d4;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.06);
  --radius: 18px;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b0d12;
    --bg-alt: #10131a;
    --surface: #141821;
    --text: #e8ebf2;
    --muted: #9aa3b5;
    --border: #232837;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0b0d12;
  --bg-alt: #10131a;
  --surface: #141821;
  --text: #e8ebf2;
  --muted: #9aa3b5;
  --border: #232837;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  color-scheme: dark;
}

/* ===== Temel ===== */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Butonlar ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 650; font-size: 0.98rem; border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: #fff; color: #0f172a; }
.btn--light:hover { background: #eef0ff; }
.btn--outline-light { border-color: rgb(255 255 255 / 0.5); color: #fff; }
.btn--outline-light:hover { background: rgb(255 255 255 / 0.12); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Navigasyon ===== */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 0.95rem;
}
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 550; }
.nav__links a:hover { color: var(--text); background: var(--bg-alt); }
.nav__actions { display: flex; gap: 8px; }
.nav__toggle { display: none; }
.icon-close, .icon-moon { display: none; }
:root[data-theme='dark'] .icon-sun { display: none; }
:root[data-theme='dark'] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .icon-sun { display: none; }
  :root:not([data-theme='light']) .icon-moon { display: block; }
}

@media (max-width: 767px) {
  .nav__toggle { display: inline-grid; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 4px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav__links a { padding: 14px 12px; font-size: 1.05rem; color: var(--text); }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav.is-open .icon-open { display: none; }
  .nav.is-open .icon-close { display: block; }
  .brand__name { font-size: 0.98rem; }
}

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(56px, 12vw, 120px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -30% -10% auto; height: 620px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(40% 50% at 25% 40%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
    radial-gradient(35% 45% at 75% 30%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%);
  filter: blur(20px);
}
.hero__inner { max-width: 860px; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 680px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 44px 0 0; max-width: 640px;
}
.stats div { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.stats dt { font-size: 0.82rem; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-size: clamp(1.1rem, 3.5vw, 1.5rem); font-weight: 800; order: -1; }
.stats div { display: flex; flex-direction: column; }

@media (max-width: 480px) {
  .hero__cta .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:last-child { grid-column: 1 / -1; }
}

/* ===== Bölümler ===== */
.section { padding: clamp(56px, 10vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin-bottom: 36px; }

.grid { display: grid; gap: 16px; }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--tech { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.grid--features { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 640px) { .grid { gap: 20px; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}

.product-card { display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform 0.2s, border-color 0.2s; }
.product-card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent));
}
.product-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.product-card__icon, .feature__icon, .product-hero__badge {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.product-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.product-card__tagline { font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.product-card__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; }

/* ===== Hakkımda ===== */
.about { display: grid; gap: 32px; align-items: center; }
@media (min-width: 768px) { .about { grid-template-columns: 280px 1fr; gap: 56px; } }
.about__avatar {
  width: min(220px, 60vw); aspect-ratio: 1; border-radius: 32px; margin: 0 auto;
  display: grid; place-items: center; position: relative;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  font-size: 4rem; font-weight: 800; box-shadow: 0 20px 60px color-mix(in srgb, var(--accent) 35%, transparent);
  transform: rotate(-3deg);
}

/* ===== Teknolojiler ===== */
.tech h3 { margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li {
  font-size: 0.88rem; font-weight: 550; padding: 6px 12px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--border);
}

/* ===== CTA ===== */
.cta {
  border-radius: 28px; padding: clamp(32px, 7vw, 64px); color: #fff; text-align: center;
  background:
    radial-gradient(60% 80% at 100% 0%, rgb(255 255 255 / 0.18), transparent 60%),
    linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2)));
}
.cta p { opacity: 0.9; max-width: 560px; margin-inline: auto; }
.cta .hero__cta { justify-content: center; }

/* ===== Ürün sayfası ===== */
.hero--product { padding-top: clamp(32px, 7vw, 72px); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; margin-bottom: 24px; }
.back:hover { color: var(--accent); }
.product-hero { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .product-hero { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.product-hero__badge { width: 60px; height: 60px; border-radius: 16px; }
.demo-host { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.demo-host a { text-decoration: underline; text-underline-offset: 3px; }

.mockup {
  border-radius: 18px; border: 1px solid var(--border); background: var(--surface); overflow: hidden;
  box-shadow: 0 30px 80px color-mix(in srgb, var(--accent) 22%, transparent), var(--shadow);
}
.mockup__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.mockup__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mockup__bar span { margin-left: 10px; font-size: 0.78rem; color: var(--muted); padding: 3px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mockup__body { display: grid; grid-template-columns: 52px 1fr; min-height: 260px; }
.mockup__side { display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 16px 0; border-right: 1px solid var(--border); color: var(--muted); }
.mockup__side span:first-child { color: var(--accent); }
.mockup__main { padding: 16px; display: grid; gap: 14px; }
.mockup__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mockup__row b { height: 52px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, var(--bg-alt)); }
.mockup__row b:first-child { background: var(--accent); }
.mockup__chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 10px; border-radius: 10px; background: var(--bg-alt); }
.mockup__chart i { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(to top, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent)); }
.mockup__list { display: grid; gap: 8px; }
.mockup__list i { height: 12px; border-radius: 6px; background: var(--bg-alt); }
.mockup__list i:nth-child(2) { width: 80%; }
.mockup__list i:nth-child(3) { width: 60%; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.footer__links { display: flex; gap: 8px; }

/* ===== Animasyon ===== */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .product-card { transition: none; }
}
