/* ============================================================
   Sapio web — uygulama kimliğiyle hizalı tasarım sistemi
   (koyu zemin #16222A + marka mavisi #01abef + glassmorphic kartlar)
   ============================================================ */

:root {
  --brand: #01abef;
  --brand-deep: #0a2ea3;
  --bg-top: #16222A;
  --bg-bottom: #0b1220;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.72);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-top) 0%, #10233f 45%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Zeminde yumuşak marka ışıması */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 400px at 80% -10%, rgba(1, 171, 239, 0.22), transparent 70%),
    radial-gradient(500px 380px at 10% 110%, rgba(10, 46, 163, 0.35), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

header, main, footer { position: relative; z-index: 1; }

/* ---------- Üst bar: yapışkan cam ---------- */
header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(22, 34, 42, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 10;
}

.logo img { height: 44px; display: block; }

nav { display: flex; gap: 28px; }

nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover, nav a.active { color: var(--brand); }

/* Hamburger (mobil) */
.hamburger-menu { display: none; cursor: pointer; }
.hamburger-menu .bar {
  display: block;
  width: 24px; height: 2.5px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger-menu.active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
main { flex: 1; }

.hero {
  text-align: center;
  padding: 96px 24px 64px;
  max-width: 860px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0 0 18px;
  background: linear-gradient(90deg, #ffffff 30%, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-dim);
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 34px;
}

.cta-button {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 38px;
  border-radius: 32px;
  box-shadow: 0 8px 28px rgba(1, 171, 239, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(1, 171, 239, 0.55);
}

/* ---------- Store rozetleri ---------- */
.download-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.download-badges img {
  height: 52px;
  display: block;
  transition: transform 0.2s ease;
}

.download-badges a:hover img { transform: translateY(-2px); }

/* ---------- Cam kartlar / bölümler ---------- */
.page-container,
.section-block {
  max-width: 980px;
  margin: 48px auto;
  padding: 0 24px;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 28px;
}

.page-container h1,
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  text-align: center;
  margin: 0 0 14px;
}

.section-lead {
  color: var(--text-dim);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.page-container > p { color: var(--text-dim); line-height: 1.7; }

/* Kart grid'leri (özellikler / ürünler / oyunlar) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 0 0 36px;
}

.card-grid .glass-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.card-grid .glass-card p { color: var(--text-dim); line-height: 1.6; margin: 0; }

.card-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(1, 171, 239, 0.14);
  border: 1px solid rgba(1, 171, 239, 0.4);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* Ürün kartları */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.product-card { text-align: left; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.feature-list li {
  padding: 7px 0 7px 26px;
  position: relative;
  color: var(--text-dim);
  line-height: 1.45;
}

.feature-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--brand);
}

.note { font-size: 0.88rem; color: rgba(255, 255, 255, 0.5); }

.center { text-align: center; }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 34px 24px;
  border-top: 1px solid var(--glass-border);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  margin: 0 8px;
}

footer a:hover { color: var(--brand); }

/* ---------- Mobil ---------- */
@media (max-width: 768px) {
  .hamburger-menu { display: block; }

  nav {
    position: fixed;
    top: 72px;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(22, 34, 42, 0.96);
    backdrop-filter: blur(20px);
    width: 220px;
    border-radius: 0 0 0 var(--radius);
    border: 1px solid var(--glass-border);
    transform: translateX(110%);
    transition: transform 0.28s ease;
  }

  nav.active { transform: translateX(0); }

  nav a { padding: 16px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

  .hero { padding: 64px 20px 48px; }
}
