:root {
  --bg: #f5f8fc;
  --bg-alt: #e9eff7;
  --card: #ffffff;
  --ink: #101c3d;
  --muted: #55627a;
  --line: #d7e0ec;
  --brand: #1565c0;
  --brand-ink: #ffffff;
  --accent: #2f7d14;
  --ridge-1: #d9e8f7;
  --ridge-2: #b5d3f0;
  --ridge-3: #8bbae6;
  --radius: 14px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f1829;
    --card: #131e33;
    --ink: #e8eef8;
    --muted: #9aa8bf;
    --line: #23314a;
    --brand: #4da3ff;
    --brand-ink: #06101f;
    --accent: #9be15d;
    --ridge-1: #101d33;
    --ridge-2: #15294a;
    --ridge-3: #1b3763;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h1 em { font-style: normal; color: var(--brand); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 600; max-width: 20ch; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0; }
a { color: inherit; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0;
  background: var(--brand); color: var(--brand-ink); padding: .5rem 1rem; z-index: 100;
}
.skip:focus { inset-inline-start: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}

.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 46ch; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: "Space Grotesk", sans-serif; font-size: 1.7rem; font-weight: 500;
  text-decoration: none; letter-spacing: -0.02em;
}
.logo img { width: 52px; height: 52px; }
.logo b { font-weight: 700; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.nav-toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; }

.lang {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: .45rem .7rem; font: 600 .85rem Inter, system-ui, sans-serif; cursor: pointer;
}

[dir="rtl"] :is(h1, h2, h3, .eyebrow) { letter-spacing: 0; }

/* Buttons */
.btn {
  display: inline-block; padding: .85rem 1.5rem;
  background: var(--brand); color: var(--brand-ink);
  border: 1px solid var(--brand); border-radius: 999px;
  font: 600 1rem/1 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-small { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(5.5rem, 11vw, 8.5rem); }
.hero-inner { position: relative; }
.hero .lead { margin-top: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.ridges { position: absolute; inset: auto 0 0 0; width: 100%; height: 60%; }
.ridges .r1 { fill: var(--ridge-1); }
.ridges .r2 { fill: var(--ridge-2); }
.ridges .r3 { fill: var(--ridge-3); }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

/* Apps */
.apps { display: grid; gap: 1rem; margin-top: 2rem; }

.app {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--app);
  border-radius: 20px; padding: clamp(1.1rem, 2.5vw, 1.75rem) clamp(1.1rem, 3vw, 2.25rem);
}
.app:nth-child(even) { grid-template-columns: auto minmax(0, 1fr); }
.app:nth-child(even) .app-shots { order: -1; }

.app-text > p { font-size: .98rem; }
.app-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .85rem; }
.app-head img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.app-head h3 { font-size: 1.35rem; }
.kind { color: var(--muted); font-size: .9rem; }

.app-list { list-style: none; padding: 0; margin: .85rem 0 1.1rem; color: var(--muted); font-size: .95rem; }
.app-list li { position: relative; padding-inline-start: 1.5rem; margin-bottom: .25rem; }
.app-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 700; }

.app-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; font-size: .9rem; }
.app-foot a { color: var(--brand); text-underline-offset: 3px; }
.badge {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem .8rem; font-size: .82rem; font-weight: 600;
}

.app-shots { display: flex; justify-content: center; gap: .75rem; }
.app-shots img {
  width: 172px; height: auto; aspect-ratio: 9 / 16; cursor: zoom-in;
  object-fit: cover; object-position: top;
  border: 4px solid #101c3d; border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

/* Ekran görüntüsü büyütme */
.zoom {
  border: 0; padding: 0; background: rgba(8, 14, 28, .86);
  width: 100vw; height: 100vh; max-width: none; max-height: none;
}
.zoom[open] { display: grid; place-items: center; }
.zoom::backdrop { background: rgba(8, 14, 28, .86); }
.zoom img { max-width: min(92vw, 420px); max-height: 92vh; border-radius: 22px; border: 5px solid #101c3d; cursor: zoom-out; }

/* About */
.section .lead { margin-top: 1rem; }
.principles {
  display: grid; gap: 2rem; margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.principles > div { border-top: 2px solid var(--brand); padding-top: 1.25rem; }
.principles p { color: var(--muted); margin-top: .5rem; font-size: .98rem; }

/* Contact */
.contact { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; align-items: start; }
.mail {
  display: inline-block; margin-top: 1rem;
  font: 600 1.25rem "Space Grotesk", sans-serif; color: var(--brand); overflow-wrap: anywhere;
}

#iletisim { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem;
}
.form label { display: grid; gap: .3rem; font-size: .88rem; font-weight: 500; }
.form label:has(textarea), .form .btn, .form-note { grid-column: 1 / -1; }
.form input, .form textarea {
  width: 100%; padding: .6rem .8rem; font: inherit; font-weight: 400; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-self: start; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-note:empty { display: none; }

/* Footer */
.site-footer { padding: 2rem 0; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav .lang { margin-top: 1rem; align-self: flex-start; }
  .contact { grid-template-columns: 1fr; gap: 2rem; }
  .app, .app:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .app-shots { justify-content: flex-start; }
  .app-shots img { width: min(136px, calc(50% - .375rem)); border-width: 3px; border-radius: 14px; }
  .logo { font-size: 1.45rem; }
  .logo img { width: 44px; height: 44px; }
  .app:nth-child(even) .app-shots { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
