/* ═══════════════════════════════════════════════════════════════════════
   GLOBAL.CSS — AutoMacroSoft Design System Foundation
   Reset • Variables • Typography • Global Nav • Sub-Nav • Footer • Utils
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--body-bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; }
ul, ol { list-style: none; }

/* ─── CSS Variables ─────────────────────────────────────────────────── */
:root {
  /* ▸ Navigation (dark) */
  --nav-bg: #0a0f1e;
  --nav-bg-scroll: rgba(10, 15, 30, 0.97);
  --subnav-bg: #111827;
  --nav-text: rgba(255, 255, 255, 0.55);
  --nav-text-hover: rgba(255, 255, 255, 0.95);
  --nav-text-active: #ffffff;
  --nav-border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.08);
  --nav-h: 60px;
  --subnav-h: 44px;

  /* ▸ Body & surfaces */
  --body-bg: #f4f6fa;
  --bg-primary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-section: #f1f5f9;

  /* ▸ Text */
  --text-heading: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-dim: #94a3b8;

  /* ▸ Borders */
  --border: #e2e8f0;
  --border-soft: #cbd5e1;

  /* ▸ AMS Pro accent (blue) */
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --blue-deep: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-glow: rgba(37, 99, 235, 0.15);
  --cyan: #0ea5e9;

  /* ▸ AMS Suite accent (green) */
  --green: #10b981;
  --green-bright: #34d399;
  --green-soft: #f0fdf4;
  --green-glow: rgba(16, 185, 129, 0.15);

  /* ▸ Status */
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --red: #ef4444;

  /* ▸ Footer */
  --footer-bg: #0a0f1e;
  --footer-text: rgba(255, 255, 255, 0.45);
  --footer-text-hover: rgba(255, 255, 255, 0.8);

  /* ▸ Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-blue: 0 8px 32px rgba(37, 99, 235, 0.12);
  --shadow-nav: 0 4px 24px rgba(0, 0, 0, 0.3);

  /* ▸ Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ▸ Layout */
  --max-w: 1200px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

/* ═══════════════════════════════════════════════════════════════════════
   GLOBAL NAV — Koyu üst navigasyon (tüm sayfalarda)
   ═══════════════════════════════════════════════════════════════════════ */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  transition: background 0.3s, box-shadow 0.3s;
}
.global-nav.scrolled {
  background: var(--nav-bg-scroll);
  box-shadow: var(--shadow-nav);
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ▸ Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
}
.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--nav-text-active);
  letter-spacing: -0.3px;
}

/* ▸ Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--nav-text);
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
  letter-spacing: 0.1px;
}
.nav-links a:hover {
  color: var(--nav-text-hover);
  background: rgba(255, 255, 255, 0.05);
}
.nav-links a.active {
  color: var(--nav-text-active);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.nav-links a.active-suite::after {
  background: var(--green);
}
.nav-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
  margin: 0 4px;
}

/* ▸ Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-contact {
  font-size: 12px;
  font-weight: 500;
  color: var(--nav-text);
  padding: 6px 14px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-contact:hover {
  color: var(--nav-text-hover);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

/* ▸ Language toggle */
.lang-toggle {
  display: flex;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
}
.lang-btn {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--nav-text);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}
.lang-btn.active {
  background: var(--blue);
  color: white;
}

/* ▸ Mobile-only extras (İletişim + Dil) — masaüstünde gizli */
.nav-mobile-extras {
  display: none;
}

/* ▸ Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--nav-text-active);
  cursor: pointer;
  padding: 8px;
  font-size: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════
   SUB-NAV — Ürün sayfası alt navigasyonu
   ═══════════════════════════════════════════════════════════════════════ */
.sub-nav {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 190;
  height: var(--subnav-h);
  background: var(--subnav-bg);
  border-bottom: 1px solid var(--nav-border);
  display: flex;
  align-items: center;
  padding: 0 32px;
}
.sub-nav.hidden {
  display: none;
}
.sub-nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sub-nav-left {
  display: flex;
  align-items: center;
  gap: 2px;
}
.sub-nav-left a,
.sub-nav-left button {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--nav-text);
  padding: 6px 14px;
  border-radius: 5px;
  transition: all 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.sub-nav-left a:hover,
.sub-nav-left button:hover {
  color: var(--nav-text-hover);
  background: rgba(255, 255, 255, 0.05);
}
.sub-nav-left a.active,
.sub-nav-left button.active {
  color: var(--nav-text-active);
  background: rgba(255, 255, 255, 0.07);
}
.sub-nav-cta {
  font-size: 12px;
  font-weight: 600;
  color: white;
  padding: 6px 18px;
  border-radius: 6px;
  background: var(--blue);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
  letter-spacing: 0.2px;
  text-decoration: none;
  display: inline-block;
}
.sub-nav-cta:hover {
  background: var(--blue-bright);
  box-shadow: 0 4px 16px var(--blue-glow);
}
.sub-nav-cta.green {
  background: var(--green);
}
.sub-nav-cta.green:hover {
  background: #059669;
  box-shadow: 0 4px 16px var(--green-glow);
}

/* ═══════════════════════════════════════════════════════════════════════
   BREADCRUMB BAR — Feature detay sayfaları
   ═══════════════════════════════════════════════════════════════════════ */
.breadcrumb-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 190;
  height: var(--subnav-h);
  background: var(--subnav-bg);
  border-bottom: 1px solid var(--nav-border);
  display: flex;
  align-items: center;
  padding: 0 32px;
}
.breadcrumb-bar.hidden {
  display: none;
}
.breadcrumb-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.breadcrumb-inner a {
  color: var(--nav-text);
  transition: color 0.2s;
}
.breadcrumb-inner a:hover {
  color: var(--nav-text-hover);
}
.breadcrumb-inner .sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
}
.breadcrumb-inner .current {
  color: var(--nav-text-active);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER — Koyu footer (tüm sayfalarda)
   ═══════════════════════════════════════════════════════════════════════ */
footer {
  background: var(--footer-bg);
  padding: 24px 32px;
  border-top: 1px solid var(--nav-border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ▸ Footer left — logo + copyright */
.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.footer-logo-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  overflow: hidden;
}
.footer-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
}

/* ▸ Footer links — horizontal */
.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-links a {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.badge-soon {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  margin-left: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════════════
   BUTTONS — Global buton stilleri
   ═══════════════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}
.btn-primary svg {
  width: 18px;
  height: 18px;
}
.btn-primary.green {
  background: var(--green);
}
.btn-primary.green:hover {
  background: var(--green-bright);
  box-shadow: 0 8px 32px var(--green-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--blue);
  background: var(--blue-soft);
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION LABELS — Bölüm etiketleri
   ═══════════════════════════════════════════════════════════════════════ */
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 14px;
  font-family: var(--font-mono);
}
.section-title {
  font-family: var(--font-body);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--text-heading);
}
.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 32px;
}

/* ▸ Accent gradient text */
.accent {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.accent-green {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════════════
   BACKGROUND EFFECTS — Atmosfer
   ═══════════════════════════════════════════════════════════════════════ */
.bg-dot-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.bg-gradient-top {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.06) 0%, rgba(14, 165, 233, 0.03) 40%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
/* ▸ Green variant for AMS Suite pages */
.bg-dot-grid.green {
  background-image: radial-gradient(circle, rgba(16, 185, 129, 0.04) 1px, transparent 1px);
}
.bg-gradient-top.green {
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.06) 0%, rgba(14, 165, 233, 0.03) 40%, transparent 70%);
}

/* ═══════════════════════════════════════════════════════════════════════
   LAYOUT UTILITIES — Sayfa düzeni yardımcıları
   ═══════════════════════════════════════════════════════════════════════ */

/* ▸ Page content offset (nav altından başlar) */
.page-content {
  padding-top: var(--nav-h);
  position: relative;
  z-index: 2;
}
.page-content.with-subnav {
  padding-top: calc(var(--nav-h) + var(--subnav-h));
}

/* ▸ Constrained container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ═══════════════════════════════════════════════════════════════════════
   ANIMATIONS — Reveal & transitions
   ═══════════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobil uyum
   ═══════════════════════════════════════════════════════════════════════ */

/* ▸ Mobile menu overlay (arka plan karartma) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 195;
  opacity: 0;
  transition: opacity 0.25s;
}
.nav-overlay.open {
  display: block;
  opacity: 1;
}

/* ▸ Tablet — 1024px altı: nav biraz sıkışır */
@media (max-width: 1024px) {
  .nav-links a { padding: 8px 10px; font-size: 12.5px; }
}

/* ▸ Mobil — 768px altı */
@media (max-width: 768px) {

  /* ── Global Nav ── */
  .global-nav { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-right .nav-contact { display: none; }
  .nav-right .lang-toggle { display: none; }
  .nav-mobile-toggle { display: flex; }

  /* ── Mobile menu panel ── */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-bg);
    padding: 12px 16px 24px;
    gap: 2px;
    border-top: 1px solid var(--nav-border);
    overflow-y: auto;
    z-index: 199;
    animation: slideDown 0.2s ease;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-links.open a {
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-links.open a:hover,
  .nav-links.open a:active {
    background: rgba(255, 255, 255, 0.06);
  }

  /* ── Mobil menüde İletişim ve Dil ── */
  .nav-mobile-extras {
    display: none;
  }
  .nav-links.open .nav-mobile-extras {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--nav-border);
  }
  .nav-mobile-extras a {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--nav-text);
    border-radius: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
  }
  .nav-mobile-extras a:hover {
    color: var(--nav-text-hover);
    background: rgba(255, 255, 255, 0.06);
  }
  .nav-mobile-extras .mobile-lang {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
  }
  .nav-mobile-extras .mobile-lang .lang-btn {
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ── Sub-nav → Mobil Tab Bar ── */
  .sub-nav {
    padding: 0;
    height: auto;
    min-height: var(--subnav-h);
  }
  .sub-nav-inner {
    padding: 0;
  }
  .sub-nav-left {
    width: 100%;
    gap: 0;
    display: flex;
  }
  .sub-nav-left a,
  .sub-nav-left button {
    flex: 1;
    text-align: center;
    justify-content: center;
    font-size: 12px;
    padding: 12px 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
  }
  .sub-nav-left a.active,
  .sub-nav-left button.active {
    border-bottom-color: var(--blue);
    background: rgba(255, 255, 255, 0.04);
  }
  /* Suite yeşil varyant */
  .suite-accent .sub-nav-left a.active,
  .suite-accent .sub-nav-left button.active {
    border-bottom-color: var(--green);
  }
  .sub-nav-cta { display: none; }

  /* ── Breadcrumb ── */
  .breadcrumb-bar { padding: 0 16px; }

  /* ── Footer ── */
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-left {
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* ── Container ── */
  .container { padding: 0 20px; }
}

/* ▸ Küçük mobil — 480px altı (SE, mini cihazlar) */
@media (max-width: 480px) {
  .sub-nav-left a,
  .sub-nav-left button {
    font-size: 11px;
    padding: 12px 2px;
  }
}
