:root {
  --bg: #070b14;
  --panel: rgba(15, 23, 42, .72);
  --panel-border: rgba(148, 163, 184, .14);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --faint: #64748b;
  --sky: #38bdf8;
  --emerald: #34d399;
  --violet: #a78bfa;
  --pink: #ff2d55; /* iDA marka rengi (logo küpü) */
  --radius: 18px;
  --chip-bg: rgba(15, 23, 42, .5);
  --frame-bg: #0d1420;
  --frame-bar: #141c2b;
  --frame-border: rgba(148, 163, 184, .16);
  --card-hover-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55);
}

/* ---------- LIGHT tema (html[data-theme=light]; varsayılan dark) ---------- */
html[data-theme="light"] {
  --bg: #f4f7fb;
  --panel: rgba(255, 255, 255, .82);
  --panel-border: rgba(15, 23, 42, .10);
  --text: #0f172a;
  --muted: #475569;
  --faint: #64748b;
  --sky: #0284c7;
  --emerald: #059669;
  --violet: #7c3aed;
  --chip-bg: rgba(255, 255, 255, .7);
  --frame-bg: #e8edf5;
  --frame-bar: #dde4ee;
  --frame-border: rgba(15, 23, 42, .12);
  --card-hover-shadow: 0 18px 40px -24px rgba(15, 23, 42, .25);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

#mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

/* ---------- header ---------- */
.site-header {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 26px;
  color: var(--text);
  text-decoration: none;
}

/* ---------- iDA wordmark (logo: harfler + pembe küp i-noktası) ---------- */
.ida-mark {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--mark, #fff);
  direction: ltr;            /* marka her dilde soldan sağa */
  unicode-bidi: isolate;
}

.ida-i {
  position: relative;
  display: inline-block;
  width: .3em;
  height: 1em;
  margin-right: .05em;
}

.ida-i::before { /* i gövdesi */
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: .17em;
  height: .55em;
  background: currentColor;
}

.ida-cube {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: .67em;
  width: .3em;
  height: .3em;
  fill: var(--pink);
}

.ida-suffix {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
}

.ida-tld {
  font-size: .55em;
  font-weight: 600;
  color: var(--faint);
  margin-left: .08em;
}

.lang-switch { color: var(--faint); font-size: 13px; font-weight: 600; }
.lang-switch span { margin: 0 6px; }
.lang-switch a { color: var(--faint); text-decoration: none; padding: 4px 2px; }
.lang-switch a.on { color: var(--text); border-bottom: 2px solid var(--pink); }
.lang-switch a:hover { color: var(--text); }

/* ---------- hero ---------- */
main { max-width: 1060px; margin: 0 auto; padding: 0 24px 40px; }

.hero { text-align: center; padding: 56px 0 44px; }

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 7px 16px;
  background: var(--chip-bg);
  margin-bottom: 26px;
}

.hero h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(38px, 6.5vw, 64px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--pink), var(--violet), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .sub {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- umbrella (idaserver) ---------- */
.umbrella-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 34px;
  position: relative;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 220px at 12% 0%, rgba(255, 45, 85, .12), transparent 60%),
    radial-gradient(600px 220px at 90% 100%, rgba(167, 139, 250, .09), transparent 60%),
    var(--panel);
  padding: 34px 38px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, transform .2s;
  backdrop-filter: blur(8px);
}

.umbrella-card:hover { border-color: rgba(255, 45, 85, .45); transform: translateY(-2px); }
.umbrella-text { min-width: 0; }

/* browser-frame onizleme (idaserver.net) */
.umbrella-preview { min-width: 0; }

.browser-frame {
  border: 1px solid var(--frame-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--frame-bg);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .8), 0 2px 0 rgba(255, 255, 255, .03) inset;
  transition: transform .25s, box-shadow .25s;
}

.umbrella-card:hover .browser-frame {
  transform: translateY(-3px) scale(1.012);
  box-shadow: 0 32px 60px -26px rgba(255, 45, 85, .28), 0 24px 50px -30px rgba(0, 0, 0, .8);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--frame-bar);
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.browser-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #39435a;
  flex: none;
}
.browser-bar .dot:nth-child(1) { background: #ff5f57; }
.browser-bar .dot:nth-child(2) { background: #febc2e; }
.browser-bar .dot:nth-child(3) { background: #28c840; }

.browser-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 4px 12px;
  flex: 1;
  background: var(--frame-bg);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
}
.browser-url svg { color: var(--emerald); flex: none; }

.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.umbrella-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pink);
  border: 1px solid rgba(255, 45, 85, .35);
  border-radius: 999px;
  padding: 5px 12px;
}

.tags { color: var(--faint); font-size: 13px; font-weight: 600; letter-spacing: .04em; }

.umbrella-logo {
  font-size: clamp(30px, 4.5vw, 44px);
}

.umbrella-desc { color: var(--muted); max-width: 660px; margin-top: 10px; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--pink);
}

/* ---------- brands ---------- */
.brands { padding-top: 54px; }

.brands h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 26px;
  letter-spacing: -.01em;
  text-align: center;
}

.brands-sub { text-align: center; color: var(--muted); margin: 8px auto 30px; max-width: 560px; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  backdrop-filter: blur(8px);
}

.brand-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--accent) 45%, transparent);
}

.brand-main {
  flex: 1;
  display: block;
  padding: 28px 26px 20px;
  text-decoration: none;
  color: var(--text);
  background: radial-gradient(320px 140px at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}

.brand-sector {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-name {
  font-size: 30px;
  margin: 10px 0 8px;
}

.brand-name .ida-suffix {
  font-weight: 700;
  color: var(--accent);
}

.brand-desc { color: var(--muted); font-size: 14.5px; }

.brand-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.brand-features li {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 4px 11px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--accent) 85%, #fff);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.brand-actions {
  display: flex;
  border-top: 1px solid var(--panel-border);
}

.brand-actions a {
  flex: 1;
  text-align: center;
  padding: 13px 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s, background .15s;
}

.brand-actions a:hover { color: var(--text); background: rgba(148, 163, 184, .07); }
.brand-actions a + a { border-left: 1px solid var(--panel-border); }

.brand-actions .demo { color: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

.brand-actions .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ---------- geniş marka bölümleri ---------- */
.brand-sections { padding-top: 66px; }

.sections-head { text-align: center; margin-bottom: 8px; }
.sections-head h2 {
  font-size: 26px;
  letter-spacing: -.01em;
}
.sections-sub { text-align: center; color: var(--muted); margin: 8px auto 8px; max-width: 560px; }

.brand-section {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
}
.brand-section + .brand-section { border-top: 1px solid var(--panel-border); }

.section-body { order: 1; min-width: 0; }
.section-media { order: 2; min-width: 0; }
.brand-section.reverse .section-body { order: 2; }
.brand-section.reverse .section-media { order: 1; }

.section-sector {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-size: 40px;
  margin: 10px 0 6px;
}

.section-tagline {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 12px;
}

.section-intro { color: var(--muted); font-size: 15.5px; max-width: 46ch; }

.section-points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
  margin: 24px 0 28px;
}
.section-points li { position: relative; padding-left: 20px; }
.section-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--accent);
  clip-path: polygon(33% 0,100% 0,100% 67%,67% 100%,0 100%,0 33%);
}
.section-points strong { display: block; color: var(--text); font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.section-points span { color: var(--muted); font-size: 13px; line-height: 1.5; }

.section-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Demo erişimi = idaserver.net kaydı (giriş bilgisi asla yayınlanmaz). */
.demo-access { margin-top: 14px; color: var(--faint); font-size: 12.5px; }

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, filter .15s, border-color .15s, background .15s;
}
.btn-primary {
  background: var(--accent);
  color: #06111f;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  color: var(--muted);
  border: 1px solid var(--panel-border);
}
.btn-ghost:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-ghost .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

.section-media .browser-frame { transition: transform .25s, box-shadow .25s; }
.brand-section:hover .section-media .browser-frame {
  transform: translateY(-3px);
  box-shadow: 0 32px 60px -26px color-mix(in srgb, var(--accent) 30%, transparent), 0 24px 50px -30px rgba(0,0,0,.8);
}

.browser-frame { position: relative; }

/* çift görsel: primary + üstüne binen secondary */
.section-media.dual { position: relative; padding-bottom: 30px; }
.section-media.dual .frame-1 {
  position: absolute; left: 0; bottom: -14px; width: 52%; z-index: 2;
  border-color: rgba(148, 163, 184, .3);
  box-shadow: 0 26px 50px -20px rgba(0, 0, 0, .92);
}
.brand-section:hover .section-media.dual .frame-1 { transform: translateY(-3px); }

/* 3 tema kolajı: kademeli yığın (sağ-sol dönüşümlü, hafif bindirme) — dikey boşluğu doldurur */
.section-media.collage { display: flex; flex-direction: column; }
.section-media.collage .browser-frame { width: 76%; }
.section-media.collage .frame-0 { align-self: flex-start; z-index: 1; }
.section-media.collage .frame-1 { align-self: flex-end; margin-top: -7%; z-index: 2; }
.section-media.collage .frame-2 { align-self: flex-start; margin-top: -7%; z-index: 3; }
.section-media.collage .frame-1,
.section-media.collage .frame-2 {
  border-color: rgba(148, 163, 184, .28);
  box-shadow: 0 24px 46px -22px rgba(0, 0, 0, .9);
}
.brand-section:hover .section-media.collage .browser-frame { transform: translateY(-3px); }

/* dual: küçük secondary frame'de kompakt bar */
.section-media.dual .frame-1 .browser-bar { padding: 7px 10px; }
.section-media.dual .frame-1 .browser-url { font-size: 10.5px; padding: 3px 9px; }

/* tema etiketi (browser-bar'ın sağ boşluğunda, her frame'de görünür) */
.theme-tag {
  position: absolute; top: 8px; right: 11px; z-index: 6;
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
  padding: 3px 10px; border-radius: 999px; color: #fff;
  background: color-mix(in srgb, var(--accent) 82%, #000);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .4);
}
/* kolaj notu ("7 tema...") — yığının üstünde */
.collage-note {
  order: -1; align-self: flex-start; max-width: 74%;
  margin-bottom: 12px;
  font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--text);
  background: var(--panel); border: 1px solid var(--panel-border);
  padding: 7px 13px; border-radius: 12px;
}

/* ---------- footer ---------- */
.site-footer {
  max-width: 1060px;
  margin: 0 auto;
  padding: 36px 24px 44px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  border-top: 1px solid rgba(148, 163, 184, .08);
}

.site-footer p + p { margin-top: 6px; }

.footer-brand { font-size: 18px; margin-bottom: 10px; color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .brand-grid { grid-template-columns: 1fr; }
  .umbrella-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 22px;
  }
  .hero { padding: 36px 0 32px; }

  .brand-section {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 36px 0;
  }
  /* mobilde her zaman: görsel üstte, metin altta */
  .brand-section .section-body,
  .brand-section.reverse .section-body { order: 2; }
  .brand-section .section-media,
  .brand-section.reverse .section-media { order: 1; }
  .section-points { grid-template-columns: 1fr; gap: 12px; }
  .section-title { font-size: 34px; }

  /* mobilde çoklu görsel üst üste binmez: alt alta, tam genişlik */
  .section-media.dual { padding: 0; }
  .section-media.dual .frame-1 {
    position: static; width: 100%; margin: 12px 0 0; bottom: auto; left: auto;
  }
  .section-media.collage .browser-frame { width: 100%; margin-top: 12px; align-self: stretch; }
  .section-media.collage .frame-0 { margin-top: 0; }
  .collage-note { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-card, .umbrella-card { transition: none; }
  .brand-actions .dot { animation: none; }
}

/* ================= tema/dil kontrolleri + light & RTL ================= */
:root { --mark: #fff; }
html[data-theme="light"] { --mark: #0b1220; }

.header-nav { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--panel-border);
  background: var(--chip-bg);
  color: var(--muted);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--faint); }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 6px 26px 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--panel-border);
  background: var(--chip-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center / 12px;
  color: var(--muted);
  font: 600 13px "Inter", sans-serif;
  cursor: pointer;
}
.lang-select:hover { color: var(--text); border-color: var(--faint); }
.lang-select option { background: var(--bg); color: var(--text); }

/* light: koyu-siyah gölgeleri yumuşat */
html[data-theme="light"] .browser-frame {
  box-shadow: 0 24px 50px -28px rgba(15, 23, 42, .30);
}
html[data-theme="light"] .umbrella-card:hover .browser-frame {
  box-shadow: 0 32px 60px -26px rgba(255, 45, 85, .22), 0 24px 50px -30px rgba(15, 23, 42, .30);
}
html[data-theme="light"] .brand-card:hover,
html[data-theme="light"] .umbrella-card:hover { box-shadow: var(--card-hover-shadow); }

/* Arapça tipografi */
html[lang="ar"] body { font-family: "Noto Sans Arabic", "Inter", system-ui, sans-serif; }
html[lang="ar"] .hero h1 { letter-spacing: 0; }
html[lang="ar"] .kicker, html[lang="ar"] .badge { letter-spacing: .04em; }

/* RTL düzeltmeleri (marka blokları LTR-izole kalır) */
.wordmark, .footer-brand, .umbrella-logo, .brand-name { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .browser-url { margin-left: 0; margin-right: 10px; }
[dir="rtl"] .ida-tld { margin-left: 0; margin-right: .08em; }
