/* Baglofy — global styles */
:root {
  --primary: #0a1628;
  --accent: #00B8D9;
  --accent-hover: #00a0c0;
  --accent-soft: rgba(0, 184, 217, 0.1);
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-surface: #f0fdfa;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --danger: #991b1b;
  --danger-bg: #fef2f2;
  --success: #10b981;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
  --glow: 0 0 24px rgba(0, 184, 217, 0.12);

  --radius-card: 12px;
  --radius-btn: 8px;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
  --bg: #0a1628;
  --bg-alt: #0f1e35;
  --bg-surface: #12263f;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border: #1e293b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  transition: background 0.25s ease, color 0.25s ease;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--text-primary);
  line-height: 1.3;
  text-wrap: balance;
}
h1 { font-size: 56px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; }
h2 { font-size: 40px; font-weight: 700; letter-spacing: -0.75px; line-height: 1.2; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.25px; }
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 96px 0; }

/* Language visibility toggle (TR by default) */
.lang-en { display: none; }
html[lang="en"] .lang-tr { display: none; }
html[lang="en"] .lang-en { display: revert; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.logo .fy { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--text-secondary); transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

.nav-hamburger {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { color: var(--text); }
.nav-hamburger .close-icon { display: none; }
.nav-hamburger.open .hamburger-icon { display: none; }
.nav-hamburger.open .close-icon { display: block; }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 98%, transparent);
  animation: navMobileDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.nav-mobile.open { display: block; }
@keyframes navMobileDown {
  from { max-height: 0; opacity: 0; }
  to   { max-height: 560px; opacity: 1; }
}
.nav-mobile-links {
  display: flex;
  flex-direction: column;
  padding: 8px 0 4px;
}
.nav-mobile-links a {
  padding: 13px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile-links a:last-child { border-bottom: none; }
.nav-mobile-links a:hover,
.nav-mobile-links a.active { color: var(--text-primary); }
.nav-mobile-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.nav-mobile-cta {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  text-align: center;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  font-size: 12px;
  font-weight: 600;
}
.lang-switch button {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.lang-switch button.active {
  background: var(--text-primary);
  color: var(--bg);
}

.theme-toggle {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  font-size: 15px; font-weight: 600;
  border-radius: var(--radius-btn);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 184, 217, 0.25);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 184, 217, 0.35); }
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text-primary); }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

/* Hero */
.hero {
  position: relative;
  background: var(--primary);
  color: #fff;
  padding: 120px 0 140px;
  overflow: hidden;
}
[data-theme="dark"] .hero { background: #060e1d; }
.hero h1 { color: #fff; text-wrap: balance; }
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
}
.hero-kicker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.hero-sub {
  margin: 24px 0 40px;
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  line-height: 1.6;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-canvas {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-canvas canvas { width: 100% !important; height: 100% !important; display: block; }

/* Dashboard mockup */
.mockup {
  position: relative;
  background: #0f1e35;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,184,217,0.08);
}
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #0b1829;
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }
.mockup-url {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.mockup-body { padding: 20px; }
.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px;
}
.stat-card .label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.stat-card .value {
  font-size: 20px; font-weight: 700; color: #fff;
  letter-spacing: -0.5px;
}
.stat-card .trend {
  font-size: 11px;
  color: var(--success);
  margin-top: 2px;
}
.stat-card.accent .value { color: var(--accent); }
.mockup-chart {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px 14px;
}
.mockup-chart-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.mockup-chart-title { font-size: 13px; font-weight: 600; color: #fff; }
.mockup-chart-period { font-size: 11px; color: rgba(255,255,255,0.4); }

.toast {
  position: absolute;
  left: -16px;
  bottom: 36px;
  background: #0f1e35;
  border: 1px solid rgba(0,184,217,0.3);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; gap: 10px; align-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  animation: toast-float 4s ease-in-out infinite;
}
.toast-icon {
  width: 32px; height: 32px;
  background: rgba(16,185,129,0.15);
  color: var(--success);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.toast-text { font-size: 12px; color: #fff; }
.toast-text small { display: block; color: rgba(255,255,255,0.5); font-size: 11px; font-weight: 400; }
@keyframes toast-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (max-width: 760px) {
  .toast {
    left: 12px;
    right: auto;
    bottom: 12px;
    padding: 10px 12px;
    max-width: calc(100% - 24px);
  }
  .toast-icon { width: 28px; height: 28px; }
  .toast-text { font-size: 11px; }
  .toast-text small { font-size: 10px; }
}

/* Section shared */
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head h2 { margin: 12px 0 16px; }
.section-head p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.divider-accent {
  width: 48px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 16px;
}

/* Services grid */
.bg-alt { background: var(--bg-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: transform 0.35s ease-out, box-shadow 0.35s ease-out, border-color 0.35s ease-out;
  position: relative;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--glow);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
}
.service-card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.service-card.featured {
  background: var(--bg-surface);
  border-color: color-mix(in oklab, var(--accent) 35%, var(--border));
}
[data-theme="dark"] .service-card.featured { background: color-mix(in oklab, var(--accent) 8%, var(--bg)); }
.badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}
.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease-out, box-shadow 0.35s ease-out;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}
.step-card:nth-child(1)::before { opacity: 0.25; }
.step-card:nth-child(2)::before { opacity: 0.5; }
.step-card:nth-child(3)::before { opacity: 0.75; }
.step-card:nth-child(4)::before { opacity: 1; }
.step-num {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 52px;
  font-weight: 800;
  color: var(--text-primary);
  opacity: 0.08;
  letter-spacing: -2px;
}
.step-card h3 { margin: 28px 0 10px; }
.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Integrations */
.integrations-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.integrations-head {
  margin-bottom: 32px;
  text-align: center;
}
.integrations-head .kicker { margin-bottom: 8px; }
.integrations-head h3 { font-size: 22px; }
.integrations-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.integrations-group h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* Brand logo tiles for integrations */
.logo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.logo-tile {
  position: relative;
  aspect-ratio: 17 / 10;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  transition: all 0.22s ease;
  overflow: hidden;
}
.logo-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.logo-tile svg { max-width: 100%; max-height: 60%; display: block; color: var(--text); }
.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.22s ease;
}
.logo-tile:hover img { transform: scale(1.04); }

/* Brand-color overlay: a <span class="logo-mask"> replaces <img> for logos
   we want to recolor. The PNG file acts as an alpha mask; brand-fill paints through it. */
.logo-mask {
  width: 100%;
  height: 100%;
  display: block;
  background-color: var(--brand-fill, currentColor);
  -webkit-mask: var(--brand-mask) center / contain no-repeat;
          mask: var(--brand-mask) center / contain no-repeat;
  transition: transform 0.22s ease;
}
.logo-tile:hover .logo-mask { transform: scale(1.04); }
.logo-tile[data-brand="mikro"]    .logo-mask { --brand-fill: #E30613; --brand-mask: url('logos/mikro.png'); }
.logo-tile[data-brand="trendyol"] .logo-mask { --brand-fill: #F27A1A; --brand-mask: url('logos/trendyol.png'); }

/* Dark mode: keep tile background transparent/themed */
[data-theme="dark"] .logo-tile {
  background: rgba(255, 255, 255, 0.03);
}
.logo-tile .logo-fallback {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
@media (max-width: 860px) {
  .logo-row { grid-template-columns: repeat(2, 1fr); }
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.see-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }
.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease-out, box-shadow 0.35s ease-out;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--glow); }
.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.project-thumb svg { width: 100%; height: 100%; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-type-badge {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.project-body { padding: 14px 22px 18px; display: flex; flex-direction: column; flex: 1; }
a.project-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.project-body h3 { margin-bottom: 10px; font-size: 18px; }
.project-body p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 14px; flex: 1; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-chip {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* CTA section */
.cta-section {
  background: var(--primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .cta-section { background: #060e1d; }
.cta-section h2 { color: #fff; }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.cta-section p { color: rgba(255,255,255,0.72); font-size: 17px; line-height: 1.6; }
.price-ref {
  margin-top: 32px;
  padding: 22px 26px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}
.price-ref .label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.price-ref .amount {
  font-size: 28px; font-weight: 800; color: #fff;
  letter-spacing: -0.5px;
}
.price-ref .amount span { color: var(--accent); }
.price-ref a {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-size: 14px; font-weight: 600;
  color: var(--accent);
}

/* Form */
.form-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px;
}
.form-card h3 { color: #fff; margin-bottom: 4px; font-size: 20px; }
.form-card .hint { color: rgba(255,255,255,0.5); font-size: 13px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
}
.input, .textarea, .select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
/* Native <option> elements are rendered by the OS and ignore most theme vars;
   force explicit dark text on white in both themes so they're always readable. */
.select option {
  color: #0a1628;
  background: #ffffff;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.07);
}
.input::placeholder, .textarea::placeholder { color: rgba(255,255,255,0.35); }
.textarea { resize: vertical; min-height: 88px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-align: center;
}
.success-state {
  text-align: center;
  padding: 32px 16px;
}
.success-state .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  color: var(--success);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 18px;
}

/* Light-theme form variant */
.form-card-light {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.form-card-light .input, .form-card-light .textarea, .form-card-light .select {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text-primary);
}
.form-card-light .input::placeholder, .form-card-light .textarea::placeholder { color: var(--text-muted); }
.form-card-light label { color: var(--text-primary); }
.form-card-light .hint { color: var(--text-secondary); }

/* Footer */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.65);
  padding: 72px 0 0;
}
[data-theme="dark"] footer { background: #060e1d; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-contact { font-size: 13px; line-height: 1.9; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--accent); }
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
  z-index: 50;
}
.wa-float:hover { transform: scale(1.08); }

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-animate].in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .toast { animation: none; }
}

/* Mobile */
@media (max-width: 900px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0; }
  .hero-grid, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .integrations-groups { grid-template-columns: 1fr; gap: 24px; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .nav-links { display: none !important; }
  .nav-actions { display: none !important; }
  .nav-hamburger { display: inline-flex !important; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  right: 24px; top: 96px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  display: none;
  width: 220px;
  font-size: 13px;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 12px; }
.tweak-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.switch {
  width: 36px; height: 20px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(16px); }
