/* FatRab Yazılım — kurumsal sayfa
   Renk paleti mobil uygulamanın "purple" temasından türetildi
   (mobil/src/constants/theme.js). */

:root {
  --bg: #F6F4FD;
  --bg-soft: #EFEAFB;
  --surface: #FFFFFF;
  --text: #1A1330;
  --text-2: #6B6480;
  --primary: #7C3AED;
  --primary-700: #6428D6;
  --primary-soft: #EDE7FE;
  --border: #E6E0F4;
  --success: #047857;
  --shadow: 0 10px 30px rgba(26, 19, 48, .08);
  --shadow-lg: 0 24px 60px rgba(60, 30, 140, .16);
  --radius: 18px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141026;
    --bg-soft: #1B1633;
    --surface: #211B38;
    --text: #F5F2FF;
    --text-2: #A79FC4;
    --primary: #A78BFA;
    --primary-700: #8B6BF0;
    --primary-soft: #2E2650;
    --border: #322B4C;
    --success: #2DD4A7;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  }
}

:root[data-theme="dark"] {
  --bg: #141026;
  --bg-soft: #1B1633;
  --surface: #211B38;
  --text: #F5F2FF;
  --text-2: #A79FC4;
  --primary: #A78BFA;
  --primary-700: #8B6BF0;
  --primary-soft: #2E2650;
  --border: #322B4C;
  --success: #2DD4A7;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -.02em; }
img { max-width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.brand img { border-radius: 9px; }
.brand strong { font-weight: 800; color: var(--primary); }
.nav-links { display: flex; gap: 22px; font-size: 15px; color: var(--text-2); font-weight: 500; }
.nav-links a:hover { color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 13px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.fill { fill: currentColor; stroke: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 38%, transparent); }
.btn-primary:hover { background: var(--primary-700); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-link { background: none; color: var(--primary); padding-left: 8px; padding-right: 8px; }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 11px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 16px 40px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 5.2vw, 52px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--primary); }
.lead { color: var(--text-2); font-size: 17px; max-width: 46ch; margin: 18px 0 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }
.hero-meta { margin-top: 16px; font-size: 13.5px; color: var(--text-2); }

.hero-art { position: relative; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.glow {
  position: absolute;
  inset: -10% -6%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 34%, transparent), transparent 72%);
  filter: blur(18px);
}
.card-stack { position: relative; width: 100%; max-width: 380px; display: grid; gap: 16px; }
.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-lg);
}
.mini-card.alt { transform: translateX(22px); }
.mini-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-2); margin-bottom: 14px; }
.mini-head b { color: var(--text); font-size: 16px; }
.mini-head b.up { color: var(--success); }
.bar { height: 10px; border-radius: 999px; background: var(--bg-soft); margin-bottom: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #22D3EE)); }
.spark { width: 100%; height: 64px; }
.spark polyline { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Strip ---------- */
.strip {
  max-width: var(--maxw);
  margin: 8px auto 0;
  padding: 22px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.strip b { display: block; font-size: 24px; font-weight: 800; color: var(--primary); }
.strip span { font-size: 13.5px; color: var(--text-2); }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 64px 16px; }
.section h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
.section-sub { color: var(--text-2); margin: 10px 0 30px; max-width: 60ch; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.product-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
}
.product-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product h3 { font-size: 19px; font-weight: 700; }
.product-kicker { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); }
.product-desc { color: var(--text-2); font-size: 15px; margin: 0 0 14px; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14.5px; }
.ticks li::before {
  content: "";
  position: absolute; left: 4px; top: 8px;
  width: 6px; height: 11px;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.release-box {
  margin-top: auto;
  background: var(--bg-soft);
  border-radius: 15px;
  padding: 15px;
}
.release-line { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
.dot.green { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent); }
.release-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.f-icon { font-size: 24px; margin-bottom: 10px; }
.feature h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* ---------- Download ---------- */
.download-inner {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, var(--surface)), var(--surface));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 48px 26px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.download-inner .section-sub { margin-left: auto; margin-right: auto; }
.fineprint { margin-top: 18px; font-size: 13px; color: var(--text-2); }

/* ---------- Contact ---------- */
.contact-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 4px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.contact-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.contact-card.highlight {
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}
.contact-card.highlight b { color: var(--primary); }
.contact-card b { font-size: 15px; }
.contact-card span { font-size: 14px; color: var(--text-2); word-break: break-word; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 16px 44px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.footer-brand img { border-radius: 7px; }
.copy { margin: 0; font-size: 13.5px; color: var(--text-2); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; gap: 34px; }
  .hero-art { order: 2; min-height: 0; }
  .products, .features { grid-template-columns: 1fr; }
  .contact-links { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .nav-links { display: none; }
  .section { padding: 48px 16px; }
}

@media (max-width: 560px) {
  .contact-links { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .btn { width: 100%; }
  .btn-link { width: auto; }
  .release-actions .btn-sm { width: auto; flex: 1 1 auto; }
}

/* ---------- Dil secici ---------- */
.lang-switch { display: flex; gap: 2px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 11px; padding: 3px; }
.lang-switch button {
  border: 0; background: none; color: var(--text-2);
  font: 600 13px/1 Inter, sans-serif; letter-spacing: .02em;
  padding: 7px 11px; border-radius: 8px; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { background: var(--primary); color: #fff; }

/* ---------- Acik beta ---------- */
.beta {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, var(--surface)), var(--surface));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 40px 30px;
  box-shadow: var(--shadow-lg);
}
.beta-text { max-width: 62ch; }
.beta-pill { background: color-mix(in srgb, var(--primary) 20%, transparent); }
.beta h2 { margin-bottom: 4px; }
.beta-ticks { margin-bottom: 24px; }
.beta .fineprint { margin-top: 16px; }

@media (max-width: 900px) {
  .beta { padding: 30px 20px; border-radius: 20px; }
  .nav { gap: 10px; }
}
