/* Netsis İstanbul. Aydınlık ızgara düzeni; ayrıntı DESIGN.md'de. */

@font-face {
  font-family: "Familjen Grotesk";
  src: url("/assets/fonts/familjen-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("/assets/fonts/familjen-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f2f3f1;
  --cell: #fafbf9;
  --ink: #16140f;
  --muted: #545049;
  --line: rgba(22, 20, 15, 0.14);
  --line-strong: rgba(22, 20, 15, 0.32);
  --accent: #fa4c14;
  --accent-text: #b2310a;
  --dark: #16140f;
  --on-dark: #f2f3f1;
  --on-dark-muted: #bdb8ae;
  --head: "Familjen Grotesk", "Arial Narrow", Arial, sans-serif;
  --body: "Familjen Grotesk", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --wrap: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.02;
  margin: 0 0 0.5em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: clamp(38px, 6.4vw, 86px); }
h2 { font-size: clamp(30px, 4.2vw, 56px); }
h3 { font-size: clamp(20px, 1.9vw, 25px); line-height: 1.15; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: 12px; z-index: 50;
  padding: 10px 16px; background: var(--ink); color: var(--on-dark);
  transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }

/* Izgara: sayfa boyu dikey çizgiler kabın kenarlarında, bölümler yatay çizgiyle ayrılır. */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.band::before { content: ""; display: block; border-top: 1px solid var(--line); }
.band-inner:not(:last-child) { border-bottom: 1px solid var(--line); padding-bottom: 44px; }
.band-inner > :last-child { margin-bottom: 0; }
.band-inner { padding: 88px 40px; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 14px; color: var(--muted);
  margin: 0 0 18px;
}
.label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none;
}
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 60ch; }
.measure { max-width: 68ch; }

/* Üst menü */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding: 12px 40px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand svg { flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 21px; line-height: 1.3; }
.brand-sub { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center;
  font-size: 15.5px; color: var(--ink);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-text); }
.nav-toggle {
  display: none; margin-left: auto; min-width: 44px; min-height: 44px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink); font: inherit; font-size: 15px; padding: 0 14px; cursor: pointer;
}

/* Düğmeler: tek birincil stil (koyu), bir ikincil (çerçeve) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid var(--ink); cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--on-dark); }
.btn-primary::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.btn-line { background: transparent; color: var(--ink); }
.nav .btn { margin-left: 10px; color: var(--on-dark); }
.nav .btn:hover { color: var(--on-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Açılış */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; }
.hero-text { padding: 80px 40px; display: flex; flex-direction: column; justify-content: center; }
.hero-media { border-left: 1px solid var(--line); position: relative; min-height: 420px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.page-hero { padding: 88px 40px 64px; }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 76px); max-width: 16ch; }
.crumbs { font-family: var(--mono); font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }

/* Hücre ızgarası: çizgiler boşluktan görünür */
.cells { display: grid; gap: 1px; background: var(--line); }
.cells-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cells-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cells-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cell { background: var(--bg); padding: 36px 40px; display: flex; flex-direction: column; min-width: 0; }
.cell h3 { margin-bottom: 12px; }
.cell p { color: var(--muted); }
.cell .num { font-family: var(--mono); font-size: 14px; color: var(--accent-text); margin-bottom: 26px; }
.cell-link { text-decoration: none; transition: background-color 0.25s var(--ease); }
.cell-link:hover { background: var(--cell); }
.cell-link .more { margin-top: auto; padding-top: 22px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.cell-link .more svg { transition: transform 0.25s var(--ease); }
.cell-link:hover .more svg { transform: translateX(4px); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.split > * { min-width: 0; }
.split-head { padding: 88px 40px; border-right: 1px solid var(--line); }
.split-body { padding: 88px 40px; }
.split-media { position: relative; min-height: 360px; border-right: 1px solid var(--line); }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { padding: 16px 0 16px 26px; border-bottom: 1px solid var(--line); position: relative; }
.list li::before {
  content: ""; position: absolute; left: 2px; top: calc(16px + 0.8em); width: 10px; height: 2px; background: var(--accent);
}
.list strong { font-weight: 600; }

.steps { counter-reset: step; }
.prose h2 { font-size: clamp(26px, 3vw, 40px); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* Koyu bant: sayfada en fazla bir tane */
.dark { background: var(--dark); color: var(--on-dark); }
.dark .wrap { border-color: rgba(242, 243, 241, 0.14); }
.dark .label { color: var(--on-dark-muted); }
.dark p { color: var(--on-dark-muted); }
.dark h2 { color: var(--on-dark); }
.dark .btn-primary { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.dark .btn-line { color: var(--on-dark); border-color: var(--on-dark-muted); }
.cta { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.cta .phone { font-family: var(--head); font-size: clamp(26px, 3vw, 38px); color: var(--on-dark); text-decoration: none; display: inline-block; min-height: 44px; }
.cta .hours { font-size: 15px; }

/* SSS */
.faq details:first-child { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--head); font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 18px; font-family: var(--mono); font-size: 24px; color: var(--accent-text);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 24px; color: var(--muted); max-width: 72ch; }

/* Blog son yazılar */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post + .post { border-left: 1px solid var(--line); }
.post { background: var(--bg); padding: 32px 40px; min-width: 0; }
.post h3 { text-transform: none; font-size: 21px; line-height: 1.3; margin-bottom: 10px; }
.post h3 a { text-decoration: none; overflow-wrap: anywhere; }
.post h3 a:hover { color: var(--accent-text); }
.post p { color: var(--muted); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.section-foot { padding: 22px 40px; border-top: 1px solid var(--line); }
.text-link { font-weight: 600; color: var(--accent-text); min-height: 44px; display: inline-flex; align-items: center; }

/* İletişim */
.contact-big { font-family: var(--head); font-size: clamp(28px, 3.6vw, 48px); font-weight: 600; text-decoration: none; display: inline-block; min-height: 44px; }
.contact-big:hover { color: var(--accent-text); }
address { font-style: normal; }

/* Alt bilgi */
.site-footer { border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1px; background: var(--line); }
.foot-grid > div { background: var(--bg); padding: 40px 40px; min-width: 0; }
.foot-title { font-family: var(--mono); font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.foot-links a:hover { color: var(--accent-text); }
.foot-note { border-top: 1px solid var(--line); padding: 24px 40px; font-size: 13.5px; color: var(--muted); }
.foot-note p { margin-bottom: 6px; }
.site-footer address, .site-footer p { font-size: 15.5px; }
.site-footer .muted { color: var(--muted); }

/* Logo İş Ortağı rozeti */
.partner { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.partner img { width: 60px; height: 60px; flex: none; }
.partner p { font-size: 15px; font-weight: 600; line-height: 1.4; }
.partner span { font-weight: 400; color: var(--muted); }
.badge-img { width: 96px; height: 96px; margin-top: 28px; }
.foot-badge { width: 64px; height: 64px; margin-top: 18px; }

/* Ürün logoları: oran korunur, renk ve filtre yok */
.logo-img { width: auto; height: auto; max-width: 100%; }
.edition-logo { min-height: 64px; display: flex; align-items: center; margin-bottom: 22px; }
.edition-logo .logo-img { max-height: 30px; }
.logo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.logo-cell { background: var(--bg); padding: 36px 40px; min-height: 150px; display: flex; align-items: center; justify-content: center; }
.logo-cell .logo-img { max-height: 44px; }
.logo-cell img[src$="logo-netsis.webp"], .logo-cell img[src$="logo-isbasi.webp"] { max-height: 72px; }
.logo-cell img[src$="logo-e-arsiv.webp"] { max-height: 52px; }

/* Proje yol haritası: numaralı, çizgiyle bağlı adımlar */
.roadmap-wrap { padding: 48px 40px 64px; }
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
.step { position: relative; min-width: 0; }
.step::before { content: ""; position: absolute; top: 22px; left: 52px; right: -20px; height: 1px; background: var(--line-strong); }
.step:last-child::before { display: none; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ink); font-family: var(--mono); font-size: 14px; margin-bottom: 20px; background: var(--bg);
}
.step:first-child .step-no { background: var(--ink); color: var(--on-dark); }
.step h3 { font-size: 19px; line-height: 1.2; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* Süreç akışı: okla bağlı kutular */
.flow-block { padding: 40px 40px 48px; }
.flow-block + .flow-block { border-top: 1px solid var(--line); }
.flow-title { font-family: var(--mono); font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px; }
.flow-step { position: relative; border: 1px solid var(--line-strong); padding: 18px 18px 20px; background: var(--cell); min-width: 0; }
.flow-step + .flow-step::before {
  content: "\2192"; position: absolute; left: -29px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 20px; color: var(--accent-text);
}
.flow-name { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; margin-bottom: 6px; }
.flow-desc { display: block; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Entegrasyon şeması: Netsis ortada */
.hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.hub-node { background: var(--bg); padding: 30px 40px; min-width: 0; }
.hub-node h3 { font-size: 19px; line-height: 1.2; margin-bottom: 8px; }
.hub-node p { color: var(--muted); font-size: 15.5px; }
.hub-center { background: var(--cell); padding: 30px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; box-shadow: inset 0 0 0 2px var(--accent); }
.hub-logo { width: auto; height: auto; max-height: 72px; max-width: 100%; }
.hub-via { font-family: var(--mono); font-size: 14px; color: var(--ink); }

@media (max-width: 1080px) {
  .roadmap { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .step:nth-child(3n)::before { display: none; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .flow-step:nth-child(4)::before { display: none; }
  .roadmap-wrap, .flow-block { padding-left: 32px; padding-right: 32px; }
  .logo-cell, .hub-node, .hub-center { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 900px) {
  .roadmap { grid-template-columns: 1fr; row-gap: 28px; }
  .step { padding-left: 64px; }
  .step-no { position: absolute; left: 0; top: 0; margin: 0; }
  .step::before, .step:nth-child(3n)::before { display: block; top: 52px; bottom: -20px; left: 22px; right: auto; width: 1px; height: auto; }
  .step:last-child::before { display: none; }
  .flow { grid-template-columns: 1fr; row-gap: 34px; }
  .flow-step + .flow-step::before, .flow-step:nth-child(4)::before { display: block; content: "\2193"; left: 18px; top: -31px; transform: none; }
  .hub { grid-template-columns: 1fr; }
  .hub-center { order: -1; }
}
@media (max-width: 560px) {
  .logo-grid { grid-template-columns: 1fr; }
  .logo-cell { min-height: 110px; padding: 28px 20px; }
  .roadmap-wrap, .flow-block { padding: 36px 20px 44px; }
  .hub-node, .hub-center { padding: 26px 20px; }
}

/* Hareket: yalnız transform/opacity, isteyene kapalı */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 1080px) {
  .band-inner, .split-head, .split-body { padding: 64px 32px; }
  .hero-text { padding: 64px 32px; }
  .page-hero { padding: 64px 32px 48px; }
  .cell, .post, .foot-grid > div { padding-left: 32px; padding-right: 32px; }
  .section-foot, .foot-note, .site-header .wrap { padding-left: 32px; padding-right: 32px; }
  .cells-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a { padding: 10px 8px; font-size: 15px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  }
  .nav.open { display: flex; }
  .nav a { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .nav .btn { margin: 14px 0 0; border-bottom: 1px solid var(--ink); }
  .site-header .wrap { position: relative; }
  .hero, .split, .cta { grid-template-columns: 1fr; }
  .hero-media { border-left: 0; border-top: 1px solid var(--line); min-height: 300px; }
  .split-head, .split-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .split-media { min-height: 260px; }
  .cells-3, .posts, .foot-grid { grid-template-columns: 1fr; }
  .post + .post { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .band-inner, .split-head, .split-body { padding: 48px 20px; }
  .hero-text { padding: 44px 20px; }
  .page-hero { padding: 48px 20px 40px; }
  .cell, .post, .foot-grid > div { padding: 28px 20px; }
  .section-foot, .foot-note, .site-header .wrap { padding-left: 20px; padding-right: 20px; }
  body { font-size: 16px; }
  .cells-2, .cells-4 { grid-template-columns: 1fr; }
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 12px; }
  .actions .btn { width: 100%; }
}
