/* ═══════════════════════════════════════════════════════════════════════
   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: 30px;
  height: 30px;
  border-radius: 8px;
  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: 16px;
  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 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 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: 56px 32px 32px;
  border-top: 1px solid var(--nav-border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* ▸ Footer brand */
.footer-brand-col .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand-col .footer-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  overflow: hidden;
}
.footer-brand-col .footer-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.footer-brand-col .footer-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}
.footer-brand-col .footer-tagline {
  font-size: 13px;
  color: var(--footer-text);
  line-height: 1.6;
  max-width: 260px;
}

/* ▸ Footer columns */
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 13px;
  color: var(--footer-text);
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--footer-text-hover);
}
.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;
}

/* ▸ Footer bottom */
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

/* ═══════════════════════════════════════════════════════════════════════
   BUTTONS — Global buton stilleri
   ═══════════════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  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: 15px 28px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  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-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--text-heading);
}
.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 56px;
}

/* ▸ 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(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobil uyum
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav */
  .global-nav { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--nav-bg);
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--nav-border);
  }
  .nav-links.open a { padding: 12px 16px; }

  /* Sub-nav */
  .sub-nav { padding: 0 16px; }
  .sub-nav-left { gap: 0; }
  .sub-nav-left a,
  .sub-nav-left button { font-size: 11.5px; padding: 6px 10px; }

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

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

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

@media (max-width: 480px) {
  .lang-toggle { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-contact { display: none; }
}
