/* ==========================================================================
   MihraSoft — site tasarım sistemi
   Tek kaynak: tüm sayfalar bu dosyayı kullanır.
   ========================================================================== */

:root {
  --bg: #070b14;
  --bg-raised: #0c1322;
  --surface: rgba(20, 30, 50, 0.55);
  --surface-solid: #101828;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e8eef7;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-2: #f97316;
  --accent-2-soft: rgba(249, 115, 22, 0.12);
  --radius: 16px;
  --radius-lg: 22px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --maxw: 1120px;
  --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 500px at 85% -10%, rgba(34, 211, 238, 0.07), transparent 60%),
    radial-gradient(800px 400px at 0% 30%, rgba(249, 115, 22, 0.05), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
}
h1 { font-size: clamp(38px, 5.4vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 20px; }

p { margin: 0 0 16px; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(34, 211, 238, 0.28); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.muted { color: var(--text-muted); }

/* --- Duyuru şeridi ------------------------------------------------------ */
.announce {
  display: block;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  color: #06121a;
  background: linear-gradient(90deg, #22d3ee, #67e8f9);
}
.announce:hover { filter: brightness(1.06); }
.announce .announce-tag {
  display: inline-block;
  background: rgba(7, 11, 20, 0.85);
  color: #67e8f9;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 9px;
  margin-right: 8px;
  vertical-align: 1px;
}

/* --- Navigasyon --------------------------------------------------------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}
.brand img { width: 30px; height: 30px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
}

/* --- Butonlar ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #05121a;
}
.btn-primary:hover { box-shadow: 0 8px 28px -8px rgba(34, 211, 238, 0.55); }
.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  color: var(--text-muted);
  padding: 12px 14px;
}
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 84px;
}
.hero .lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-faint);
}
.hero-note a { color: var(--text-muted); border-bottom: 1px solid var(--border-strong); }
.hero-note a:hover { color: var(--accent); border-color: var(--accent); }

.gradient-text {
  background: linear-gradient(92deg, #22d3ee 10%, #7dd3fc 45%, #f97316 105%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- MihraOps mini mockup ------------------------------------------------ */
.mock {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #0d1526, #0a101d);
  box-shadow: var(--shadow-card), 0 0 60px -30px rgba(34, 211, 238, 0.35);
  overflow: hidden;
  font-size: 12.5px;
}
.mock:hover { border-color: rgba(34, 211, 238, 0.4); }
.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-faint);
  font-weight: 600;
}
.mock-dots { display: flex; gap: 5px; }
.mock-dots span { width: 9px; height: 9px; border-radius: 50%; background: #1f2b42; }
.mock-badge {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  padding: 2px 8px;
  border-radius: 99px;
}
.mock-body { padding: 16px; display: grid; gap: 14px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stat {
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
}
.mock-stat .k { color: var(--text-faint); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.mock-stat .v { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); margin-top: 2px; }
.mock-meter { height: 4px; border-radius: 99px; background: rgba(148, 163, 184, 0.14); margin-top: 7px; overflow: hidden; }
.mock-meter i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text-muted);
}
.mock-row .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; flex: none; }
.mock-row .dot.pull { background: var(--accent-2); }
.mock-row .name { font-weight: 600; color: var(--text); }
.mock-row .st { margin-left: auto; font-size: 11px; color: var(--text-faint); }
.mock-log {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-caption {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 12px;
}

/* --- Bölümler ------------------------------------------------------------ */
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head p { color: var(--text-muted); }

/* --- Ürün kartları ------------------------------------------------------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.product:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.product.featured { border-color: rgba(34, 211, 238, 0.45); }
.product.featured:hover { box-shadow: 0 18px 50px -18px rgba(34, 211, 238, 0.35); }
.product-seg {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.product-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
}
.badge-new { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(34, 211, 238, 0.35); }
.badge-live { background: rgba(52, 211, 153, 0.1); color: #34d399; }
.product-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  display: grid;
  place-items: center;
}
.product-icon img { width: 100%; height: 100%; object-fit: cover; }
.product h3 { margin-bottom: 6px; }
.product .pitch { color: var(--text-muted); font-size: 14.5px; margin-bottom: 16px; }
.product-feats { display: grid; gap: 8px; margin-bottom: 18px; }
.product-feats li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.product-feats li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
.product-meta {
  font-size: 12.5px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: auto;
  margin-bottom: 14px;
}
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- İlkeler ------------------------------------------------------------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.principle {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(148, 163, 184, 0.03);
}
.principle h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.principle h3 .pi {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.principle p { color: var(--text-muted); font-size: 14px; margin: 10px 0 0; }

/* --- Yazı kartları ------------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.post-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.post-card time { font-size: 12.5px; color: var(--text-faint); }
.post-card h3 { margin: 8px 0 8px; font-size: 19px; }
.post-card p { color: var(--text-muted); font-size: 14px; margin: 0; }
.post-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 99px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

/* --- İçerik (yasal + blog) sayfaları ------------------------------------- */
.page-head { padding: 56px 0 12px; max-width: 760px; }
.page-head .lead { color: var(--text-muted); font-size: 17px; }
.prose { max-width: 760px; padding-bottom: 72px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose h3 { font-size: 18px; margin-top: 28px; }
.prose p, .prose li { color: var(--text-muted); font-size: 15.5px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-bottom: 16px; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); }
.prose blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  color: var(--text);
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.prose .meta { font-size: 13.5px; color: var(--text-faint); margin-bottom: 28px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 16px 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.prose th { color: var(--text); font-weight: 600; }

/* --- CTA bandı ----------------------------------------------------------- */
.cta-band {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(34, 211, 238, 0.12), transparent 70%),
    var(--surface-solid);
  padding: 46px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--text-muted); margin: 0; }

/* --- Footer --------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 52px 0 34px;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 13.5px; color: var(--text-faint); max-width: 260px; }
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: var(--text-muted); font-size: 13.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-faint);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* --- 404 ------------------------------------------------------------------ */
.error-hero { text-align: center; padding: 110px 0 90px; }
.error-hero .code {
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 150px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(92deg, #22d3ee, #f97316);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Duyarlılık ----------------------------------------------------------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 52px 0 64px; }
  .products { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1000px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    padding: 10px 22px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; width: 100%; font-size: 15px; }
  .menu-btn { display: inline-flex; }
}

@media (max-width: 560px) {
  .nav-cta .btn { display: none; }
}

@media (max-width: 760px) {
  .cta-band { padding: 34px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
