/* ── Grapyweb — Silicon Minimal / grape accent ─────────────────────── */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #0a0a0a;
  --muted: #6e6e73;
  --line: #eaeaea;
  --accent: #c24a18;
  --accent-h: #a03d12;
  --on-accent: #ffffff;
  --invert-bg: #0a0a0c;
  --invert-text: #f5f5f7;
  --invert-muted: #86868b;
  --invert-line: #26262a;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --radius: 16px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #111113;
  --text: #f5f5f7;
  --muted: #86868b;
  --line: #26262a;
  --accent: #f0985e;
  --accent-h: #f5ad7d;
  --on-accent: #2b1408;
  --invert-bg: #111113;
  --invert-text: #f5f5f7;
  --invert-muted: #86868b;
  --invert-line: #2c2c31;
  --nav-bg: rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

::selection { background: var(--accent); color: var(--on-accent); }

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

img, svg { max-width: 100%; vertical-align: middle; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.6rem 1.2rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ── Typography ── */

h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }

h1 { font-size: clamp(2.75rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-block-end: 1rem; }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; }

p { max-width: 65ch; }

.label {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-block-end: 1rem;
}

a { color: inherit; }

/* ── Nav ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-block-end: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
@keyframes balloon-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
.balloon-logo {
  flex-shrink: 0;
  animation: balloon-float 4.5s ease-in-out infinite;
  will-change: translate;
}

.nav-links { display: flex; gap: 1.9rem; }
.nav-links a {
  font-size: 0.93rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-tools { display: flex; align-items: center; gap: 0.5rem; }

.theme-btn, .burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.theme-btn:hover, .burger:hover { border-color: var(--muted); }

.ic-sun { display: none; }
[data-theme="dark"] .ic-sun { display: block; }
[data-theme="dark"] .ic-moon { display: none; }

/* Dil menüsü */
.lang { position: relative; }
.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 38px;
  padding-inline: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color 0.2s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { border-color: var(--muted); }
.lang ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 150px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.lang li button {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  text-align: start;
  cursor: pointer;
}
.lang li button:hover { background: var(--bg-alt); }
.lang li button[aria-current="true"] { color: var(--accent); font-weight: 500; }

.burger { display: none; }
.burger span {
  position: absolute;
  width: 16px;
  height: 1.6px;
  background: currentColor;
  transition: transform 0.25s ease, translate 0.25s ease;
}
.burger span:first-child { translate: 0 -3.5px; }
.burger span:last-child { translate: 0 3.5px; }
.nav-open .burger span:first-child { translate: 0 0; transform: rotate(45deg); }
.nav-open .burger span:last-child { translate: 0 0; transform: rotate(-45deg); }

/* ── Hero ── */

.hero {
  padding-block: clamp(6rem, 14vh, 9.5rem) clamp(4rem, 8vh, 6rem);
  text-align: center;
  background: radial-gradient(640px 320px at 50% -60px, color-mix(in srgb, var(--accent) 8%, transparent), transparent);
}
.hero .label { margin-block-end: 1.4rem; }
.hero h1 { max-width: 21ch; margin-inline: auto; }
.hero-sub {
  max-width: 36rem;
  margin: 1.6rem auto 0;
  font-size: 1.2rem;
  color: var(--muted);
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-block-start: 2.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border: 0;
  border-radius: 999px;
  font: 500 0.95rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s ease-out;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.link-arrow .arrow { transition: translate 0.2s ease-out; }
.link-arrow:hover .arrow { translate: 3px 0; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover .arrow { translate: -3px 0; }

/* ── Teknoloji şeridi ── */

.tech {
  padding-block: 2.2rem;
  border-block: 1px solid var(--line);
  text-align: center;
}
.tech .label { margin-block-end: 0.9rem; font-size: 0.68rem; }
.tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
}
.tech-list li { display: flex; align-items: center; }
.tech-list li + li::before { content: "·"; margin-inline: 1.1rem; opacity: 0.5; }

/* ── Bölümler ── */

.section { padding-block: clamp(4.5rem, 10vw, 8rem); scroll-margin-top: 60px; }
.section-alt { background: var(--bg-alt); }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-block-end: 3rem; }

/* Hizmetler */
.svc-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: start;
}
.svc-head { position: sticky; top: 96px; }
.svc-list { display: flex; flex-direction: column; }
.svc-item {
  display: flex;
  gap: 1.6rem;
  padding-block: 1.8rem;
  border-block-start: 1px solid var(--line);
}
.svc-item:last-child { border-block-end: 1px solid var(--line); }
.svc-num {
  font-size: 0.85rem;
  color: var(--muted);
  padding-block-start: 0.3rem;
  transition: color 0.2s;
}
.svc-item:hover .svc-num { color: var(--accent); }
.svc-item h3 { margin-block-end: 0.4rem; }
.svc-item p { color: var(--muted); font-size: 0.98rem; }

/* Referanslar — wordmark kartları */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-block-start: 3rem;
}
.ref-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 0.25s ease-out, color 0.25s ease-out, box-shadow 0.25s ease-out;
}
.ref-mark span {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
a.ref-mark:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  color: var(--accent);
  box-shadow: 0 16px 32px -16px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* Hakkımızda (ters bölüm) */
.invert { background: var(--invert-bg); color: var(--invert-text); }
.invert .label { color: var(--invert-muted); }
.invert p { color: var(--invert-muted); }
.invert p + p { margin-block-start: 1rem; }
.about-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 4rem;
  align-items: center;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 2rem;
}
.stat b { display: block; font-size: 2.4rem; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.stat span { display: block; margin-block-start: 0.5rem; font-size: 0.88rem; color: var(--invert-muted); }

/* İletişim */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item svg { color: var(--accent); margin-block-start: 0.2rem; flex-shrink: 0; }
.info-item .label { display: block; margin-block-end: 0.15rem; font-size: 0.7rem; }
.info-item a { color: var(--text); text-decoration: none; }
.info-item a:hover { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.88rem; font-weight: 500; }
.field input, .field textarea {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { align-self: flex-start; }

.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note {
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  border-radius: 10px;
  font-size: 0.93rem;
}
.form-note.err { border-inline-start-color: #b91c1c; }

/* ── Footer ── */

.footer { border-block-start: 1px solid var(--line); padding-block: 3rem; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.brand-col .brand { margin-block-end: 0.6rem; }
.footer .muted { font-size: 0.88rem; }

/* ── Reveal animasyonu ── */

.reveal {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.6s ease-out var(--d, 0ms), translate 0.6s ease-out var(--d, 0ms);
}
.reveal.in { opacity: 1; translate: 0 0; }

/* ── Responsive ── */

@media (max-width: 900px) {
  .svc-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc-head { position: static; }
  .stats { gap: 2rem 1.5rem; }
}

@media (max-width: 820px) {
  .burger { display: inline-flex; position: relative; }
  .nav-links {
    position: fixed;
    top: 60px;
    inset-inline: 0;
    z-index: 9;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1.5rem 1.5rem;
    background: var(--bg);
    border-block-end: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    translate: 0 -8px;
    transition: opacity 0.25s ease, translate 0.25s ease, visibility 0.25s;
  }
  .nav-open .nav-links { visibility: visible; opacity: 1; translate: 0 0; }
  .nav-links a { padding-block: 0.9rem; font-size: 1.05rem; border-block-start: 1px solid var(--line); }
  .nav-links a:first-child { border-block-start: 0; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; gap: 1.2rem; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ── Hareket azaltma ── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
