/* AliG developer site. Light, warm grey ground; near-black panels; one teal accent.
   Display: Bricolage Grotesque. Text: Inter. Layout: 1180px column, cards on a grid. */
:root {
  --bg: #F4F5F2;
  --surface: #FFFFFF;
  --ink: #111414;
  --ink-2: #2B3131;
  --muted: #545B5B;
  --line: #E3E6E2;
  --line-2: #C9CECB;
  --chip: #EEF0ED;
  --teal: #0E7577;
  --teal-deep: #0A5658;
  --teal-soft: #E3EFEE;
  --night: #111414;
  --night-2: #1E2424;
  --night-text: #B8C2C1;
  --mint: #4FC1C3;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--text); }
img { max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }
[hidden] { display: none !important; }

/* Language: every bilingual piece carries lang="tr" or lang="en"; the root's data-lang picks one. */
html:not([data-lang="en"]) body [lang="en"],
html[data-lang="en"] body [lang="tr"] { display: none !important; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.display { font-family: var(--display); font-weight: 800; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(244, 245, 242, 0.92); }
.site-header .wrap { padding-block: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 20px;
}
.brand-name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.4px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.site-nav a { padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--chip); color: var(--ink); }
.lang { display: flex; padding: 3px; border: 1px solid #D5D9D4; border-radius: 999px; }
.lang button {
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  color: #3F4646; font: 600 13px var(--text); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 14px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent;
}
.btn svg { flex: none; }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: #262B2B; color: #FFFFFF; }
.btn-line { border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { background: var(--chip); color: var(--ink); }
.btn-light { background: #FFFFFF; color: var(--ink); min-height: 48px; border-radius: 12px; }
.btn-light:hover { background: #E9EEEE; color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #FFFFFF; min-height: 56px; padding: 0 20px; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; }
.btn-play { min-height: 56px; }
.btn-play .stack { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-play small { font-size: 11px; font-weight: 400; color: #C9D0CF; }
.btn-play b { font-size: 17px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pills */
.badge {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  margin: 0; padding: 6px 12px; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-deep); font-size: 13px; font-weight: 600;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--teal); }
.tag { padding: 5px 10px; border-radius: 999px; background: var(--chip); color: #3F4646; font-size: 12px; font-weight: 600; }
.tag.teal { background: var(--teal-soft); color: var(--teal-deep); }

/* Home: hero */
.hero { padding-block: 72px 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -1.5px; }
.lead { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.hero-side { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }

.spot {
  width: 100%; max-width: 420px; padding: 28px; border-radius: 28px; background: var(--night); color: #FFFFFF;
  display: flex; flex-direction: column; gap: 22px; box-shadow: 0 24px 60px rgba(17, 20, 20, 0.18);
}
.spot-head { display: flex; align-items: center; gap: 16px; }
.spot-head img { width: 72px; height: 72px; border-radius: 18px; background: #FFFFFF; }
.spot-name { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.5px; }
.spot-sub { font-size: 14px; color: var(--night-text); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts div { padding: 14px 10px; border-radius: 14px; background: var(--night-2); }
.facts b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(17px, 1.7vw, 22px); white-space: nowrap; }
.facts div > span { font-size: 12px; color: var(--night-text); }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: #E6ECEC; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks svg { flex: none; }

/* Home: apps */
.apps { padding-block: 24px 72px; display: flex; flex-direction: column; gap: 24px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-head h2, .h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -0.8px; }
.section-head p { margin: 0; font-size: 15px; color: var(--muted); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.app-card {
  display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
}
.app-card-head { display: flex; align-items: center; gap: 14px; }
.app-card-head img { width: 60px; height: 60px; border-radius: 16px; border: 1px solid var(--line); }
.app-card h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.3px; }
.app-card .meta { margin: 0; font-size: 13px; color: var(--muted); }
.app-card .desc { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.app-card .row { margin-top: auto; gap: 10px; }
.app-card .btn { flex: 1 1 auto; min-height: 46px; padding: 0 16px; border-radius: 12px; font-size: 14px; }

/* Dark band of principles */
.band { background: var(--night); color: #FFFFFF; }
.principles { padding-block: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.principles div { display: flex; flex-direction: column; gap: 10px; }
.principles h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; }
.principles p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--night-text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.site-footer .who { display: flex; flex-direction: column; gap: 4px; }
.site-footer .who b { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* App page */
.app-hero { background: var(--teal); color: #FFFFFF; }
.app-hero .wrap { padding-block: 28px 64px; display: flex; flex-direction: column; gap: 28px; }
.crumbs { font-size: 14px; color: #CFE6E5; }
.crumbs a { color: #FFFFFF; }
.app-hero-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.app-hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.app-title { display: flex; align-items: center; gap: 18px; }
.app-title img { width: 88px; height: 88px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.app-title h1 { margin: 0; font-size: clamp(40px, 5vw, 60px); line-height: 1; letter-spacing: -1.2px; }
.app-title p { margin: 6px 0 0; font-size: 16px; color: #D7ECEB; }
.app-hero .pitch { margin: 0; max-width: 580px; font-size: 20px; line-height: 1.55; color: #F1F8F8; }
.stats { margin: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.stats dt { font-size: 12px; color: #CFE6E5; }
.stats dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; }
.app-hero-side { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.device {
  width: 270px; max-width: 100%; aspect-ratio: 270 / 500; border-radius: 40px; background: var(--night); padding: 10px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}
.device img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; background: #F4F6F6; }

.features { padding-block: 72px 24px; display: flex; flex-direction: column; gap: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.feature {
  padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.feature h3 { margin: 0; font-size: 18px; font-weight: 700; }
.feature p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

.watch { padding-block: 48px 24px; display: flex; flex-direction: column; gap: 24px; }
.watch video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; background: var(--night); }

.note-wrap { padding-block: 48px 72px; }
.note {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding: 32px; border-radius: 24px; background: var(--night); color: #FFFFFF;
}
.note div { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.note h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; }
.note p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--night-text); }

/* Privacy */
.doc-head { padding-block: 48px 24px; display: flex; flex-direction: column; gap: 14px; }
.doc-app { display: flex; align-items: center; gap: 12px; font-weight: 600; color: #3F4646; }
.doc-app img { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #FFFFFF; }
.doc-head h1 { margin: 0; font-size: clamp(36px, 5vw, 56px); letter-spacing: -1.2px; line-height: 1.05; }
.doc-head .date { margin: 0; font-size: 15px; color: var(--muted); }
.doc { padding-block: 16px 72px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.toc { flex: 1 1 220px; min-width: 0; position: sticky; top: 16px; }
.toc div { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.toc div > span { font-size: 12px; font-weight: 700; letter-spacing: 0.6px; color: var(--muted); padding: 0 10px 8px; text-transform: uppercase; }
.toc a { padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; }
.toc a:hover { background: var(--teal-soft); color: var(--teal-deep); }
.doc-body { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.doc-body section { padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.doc-body h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; }
.doc-body p, .doc-body ul { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.doc-body ul { padding-left: 22px; }
.doc-body .summary { background: var(--night); border-color: var(--night); color: #FFFFFF; }
.doc-body .summary h2 { font-size: 26px; }
.sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.sum-grid div { padding: 16px; border-radius: 14px; background: var(--night-2); display: flex; flex-direction: column; gap: 6px; }
.sum-grid strong { font-size: 15px; }
.sum-grid div > span { font-size: 14px; color: var(--night-text); }
.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.data-grid div { padding: 14px; border-radius: 12px; background: var(--bg); font-size: 15px; }
.doc-body .ask { background: var(--teal-soft); border-color: var(--teal-soft); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; }
.ask h2 { font-size: 22px; color: var(--teal-deep); }
.ask p { font-size: 15px; color: #23403F; margin-top: 4px; }
.ask .btn { background: var(--teal); color: #FFFFFF; min-height: 48px; padding: 0 20px; border-radius: 12px; }
.ask .btn:hover { background: var(--teal-deep); color: #FFFFFF; }

@media (max-width: 720px) {
  .hero { padding-block: 40px 40px; }
  .facts b { font-size: 18px; }
  .toc { position: static; }
  .site-nav { order: 3; width: 100%; margin-left: -14px; }
  .lang { margin-left: auto; }
  .section-head h2, .h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
