/* ============================================================
   OnNet Fiber Telekomünikasyon — stil dosyası
   Renkler logodan geliyor: siyah yazı, sarı kablo,
   yeşil ve mavi konnektör uçları.
   ============================================================ */

:root {
  --ink:        #0A0A0A;   /* ana metin / logo siyahı */
  --ink-soft:   #5B6470;   /* açıklama metni */
  --line:       #E3E6EA;   /* ince çizgiler */
  --paper:      #F5F6F8;   /* açık gri bölüm zemini */
  --white:      #FFFFFF;

  --sari:       #FFD200;   /* kablo sarısı */
  --mavi:       #2B63C9;   /* mavi konnektör */
  --mavi-koyu:  #1F4A9B;
  --yesil:      #35A853;   /* yeşil konnektör */
  --yesil-koyu: #268040;

  --kenar:      1200px;    /* içerik genişliği */
}

/* ---------- Temel ---------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

h1 { font-size: clamp(1.9rem, 4.1vw, 2.95rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }

a { color: var(--mavi-koyu); }

/* Klavye ile gezinirken odak her yerde görünsün */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--mavi);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 99;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--kenar);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Üst menü ---------- */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.bar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 14px rgba(10,10,10,.05);
}

.bar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}

.brand img { width: 168px; height: auto; }

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

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--sari); }

.nav .nav-cta {
  background: var(--ink); color: #fff;
  padding: 11px 20px; border-radius: 4px;
  border-bottom: 0;
}
.nav .nav-cta:hover { background: var(--mavi-koyu); border-bottom: 0; }

/* Hamburger düğmesi (sadece mobilde görünür) */
.burger {
  display: none;
  width: 44px; height: 40px;
  background: none; border: 0; cursor: pointer;
  padding: 9px 8px;
}
.burger span {
  display: block; height: 2px; background: var(--ink);
  margin: 4px 0; transition: transform .22s, opacity .22s;
}
.burger.x span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.x span:nth-child(2) { opacity: 0; }
.burger.x span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Giriş bölümü ---------- */
.hero { padding: 64px 0 80px; overflow: hidden; }

.hero-in {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 48px;
}

.hero-ust {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.hero-text h1 { margin-bottom: 20px; }

/* Akan değerler satırı */
.akan-satir {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  padding: 12px 0 12px 16px;
  border-left: 4px solid var(--sari);
  min-height: 56px;
}
.akan-etiket {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.akan { overflow: hidden; }
.akan-metin {
  display: inline-block;
  font-family: Archivo, sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  transition: transform .4s ease, opacity .4s ease;
}
.akan-metin.cikis { transform: translateY(-14px); opacity: 0; }

.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 28px;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Servis ağı haritası ---------- */
.hero-art svg { width: 100%; height: auto; }

.harita .il {
  fill: #E2E6EB;
  stroke: var(--white);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.harita .dis-hat {
  fill: none;
  stroke: #7C8593;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

/* Şube işaretleri */
.sube-nokta  { fill: var(--sari); stroke: var(--ink); stroke-width: 2; }
.sube-halka  { fill: var(--sari); opacity: .3; }
.sube-ad {
  font-family: Archivo, sans-serif;
  font-size: 21px;
  font-weight: 600;
  fill: var(--ink);
  paint-order: stroke;      /* yazı haritanın üstünde net dursun */
  stroke: var(--white);
  stroke-width: 5px;
  stroke-linejoin: round;
}
.sube:nth-child(1) .sube-halka { animation: sube-nabiz 3s ease-out infinite; }
.sube:nth-child(2) .sube-halka { animation: sube-nabiz 3s ease-out .6s infinite; }
.sube:nth-child(3) .sube-halka { animation: sube-nabiz 3s ease-out 1.2s infinite; }
.sube:nth-child(4) .sube-halka { animation: sube-nabiz 3s ease-out 1.8s infinite; }
.sube:nth-child(5) .sube-halka { animation: sube-nabiz 3s ease-out 2.4s infinite; }

@keyframes sube-nabiz {
  0%        { transform: scale(.6); opacity: .45; }
  70%, 100% { transform: scale(2.1); opacity: 0; }
}

/* Harita altındaki açıklama */
.harita-aciklama {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.harita-aciklama span { display: inline-flex; align-items: center; gap: 8px; }
.hr-nokta {
  width: 11px; height: 11px; border-radius: 50%;
  display: inline-block;
}
.hr-sube { background: var(--sari); border: 1.5px solid var(--ink); }
/* iş ortağı göstergesi haritadaki alanı temsil ettiği için kare */
.hr-il   { background: #E2E6EB; border: 1.5px solid #7C8593; border-radius: 2px; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-block;
  font-family: Archivo, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: background .18s, color .18s;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--mavi-koyu); border-color: var(--mavi-koyu); }
.btn-line  { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--sari); border-color: var(--sari); }

/* ---------- Kaydırma kablosu ---------- */
.rail {
  position: absolute;
  top: 0; left: 0;
  width: 70px;
  z-index: 30;          /* bölüm zeminlerinin üstünde kalsın */
  pointer-events: none; /* tıklamaları engellemesin */
  display: none;        /* geniş ekranda script açıyor */
}
.rail svg { display: block; overflow: visible; }

.rail-track {           /* kablonun henüz uzamamış kısmı: soluk iz */
  fill: none;
  stroke: #ECEEF1;
  stroke-width: 6;
  stroke-linecap: round;
}
.rail-cable {
  fill: none;
  stroke: var(--sari);
  stroke-width: 6;
  stroke-linecap: round;
}
.tip-glow { fill: var(--sari); opacity: .55; }
.tip-core { fill: #FFE45C; }
.tip-dot  { fill: #FFFFFF; }

/* Kablonun gireceği yuva */
.jack-govde { fill: var(--ink); }
.jack-agiz  { fill: #3A414B; }
.jack-led   { fill: #4A525C; transition: fill .3s; }

/* --- Bağlantı kurulduğu an --- */
body.bagli .jack-led {
  fill: var(--yesil);
  animation: led-yanip-sonme 1.6s ease-in-out infinite;
}
body.bagli .tip-glow {
  opacity: .9;
  animation: uc-nabiz 1.6s ease-in-out infinite;
}
body.bagli .rail-cable { stroke: #FFDE33; }

@keyframes led-yanip-sonme {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}
@keyframes uc-nabiz {
  0%, 100% { opacity: .9;  transform: scale(1); }
  50%      { opacity: .45; transform: scale(1.45); }
}

/* ---------- Ortak bölüm düzeni ---------- */
.sec {
  padding: 84px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.sec-paper { background: var(--paper); border-top-color: transparent; }

/* Teknik çizim arka planı olan bölümler.
   Belirginliği tek yerden ayarlamak için opacity kullanılıyor;
   çok soluk gelirse .08, fazla gelirse .04 deneyin. */
.sec-cizim::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: right -80px center;
  background-size: auto 125%;
  opacity: .05;
  pointer-events: none;
}
.sec-cizim > .wrap { position: relative; z-index: 1; }

.cizim-1::before { background-image: url("images/datasheet-1.jpg"); }
.cizim-2::before { background-image: url("images/datasheet-2.jpg"); }

.sec-lead {
  color: var(--ink-soft);
  margin: 12px 0 44px;
  max-width: 58ch;
}

.alt-baslik { margin: 52px 0 20px; }

/* ---------- Misyon / vizyon ---------- */
.mv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 34px;
}
.mv-kart {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sari);
  padding: 30px 28px;
}
.mv-kart h3 { margin-bottom: 12px; }
.mv-kart p  { color: var(--ink-soft); margin: 0; }

/* Değerler listesi */
.degerler {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.degerler li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---------- İstatistikler ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat { background: var(--white); padding: 28px 26px; }
.stat-n {
  display: block;
  font-family: Archivo, sans-serif;
  font-size: 2.4rem; font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-l { display: block; color: var(--ink-soft); font-size: 0.94rem; margin-top: 8px; }

/* ---------- Hizmet kartları ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--white);
  padding: 28px 24px 30px;
  border-top: 3px solid transparent;
  transition: border-top-color .18s;
}
.card:hover { border-top-color: var(--sari); }
.card h3 { margin-bottom: 10px; font-size: 1.04rem; }
.card p  { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Neden OnNet ---------- */
.neden-in {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: start;
}

.ticks { list-style: none; margin: 26px 0 0; padding: 0; }
.ticks li {
  position: relative;
  padding: 0 0 20px 34px;
  color: var(--ink-soft);
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 16px; height: 9px;
  border-left: 3px solid var(--yesil);
  border-bottom: 3px solid var(--yesil);
  transform: rotate(-45deg);
}
.ticks strong { color: var(--ink); font-weight: 600; display: block; }

/* Başarı hedefleri kutusu */
.hedef {
  background: var(--ink);
  color: #fff;
  padding: 32px 30px;
  border-radius: 6px;
}
.hedef h3 { color: #fff; margin-bottom: 18px; }
.hedef ul { list-style: none; margin: 0; padding: 0; }
.hedef li {
  position: relative;
  padding: 0 0 14px 22px;
  color: #D3D8DE;
  font-size: 0.97rem;
}
.hedef li:last-child { padding-bottom: 0; }
.hedef li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px;
  background: var(--sari);
  border-radius: 50%;
}

/* ---------- İletişim ---------- */
.iletisim-in {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.iletisim-text .sec-lead { margin-bottom: 0; }

.iletisim-kutu {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 28px;
  border-radius: 6px;
}

.info { margin: 0; }
.info dt {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 18px;
}
.info dt:first-child { margin-top: 0; }
.info dd { margin: 3px 0 0; font-weight: 500; }
.info dd a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--sari); }

/* ---------- Alt bilgi ---------- */
.foot { border-top: 1px solid var(--line); padding: 44px 0 52px; }
.foot-in {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 22px;
}

/* Alt bilgideki logo: kablo yuvaya oturunca aydınlanıyor.
   Kablonun çalışmadığı dar ekranlarda logo normal görünür. */
.foot-brand { position: relative; display: inline-block; }
.foot-logo  {
  width: 150px; height: auto;
  position: relative; z-index: 1;
  transition: filter .55s ease;
}
body.ray-acik .foot-logo { filter: grayscale(1) opacity(.45); }

.foot-halo {
  position: absolute;
  left: 50%; top: 50%;
  width: 260px; height: 160px;
  margin: -80px 0 0 -130px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,210,0,.55), rgba(255,210,0,0));
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
}

body.bagli .foot-logo { filter: none; }
body.bagli .foot-halo { opacity: 1; animation: halo-nefes 2.6s ease-in-out infinite; }

@keyframes halo-nefes {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: .62; transform: scale(1.07); }
}

.foot-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.foot-nav a:hover { color: var(--ink); }
.foot-legal { width: 100%; margin: 0; color: var(--ink-soft); font-size: 0.87rem; }

/* ============================================================
   Küçük ekranlar
   ============================================================ */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .hero-in,
  .neden-in,
  .iletisim-in { grid-template-columns: 1fr; gap: 42px; }

  .hero-art { max-width: 520px; }
  .mv { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .burger { display: block; }

  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    box-shadow: 0 10px 24px rgba(10,10,10,.07);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:hover { border-bottom-color: var(--line); }
  .nav .nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }

  .bar-in { position: relative; min-height: 66px; }
  .brand img { width: 142px; }

  .hero { padding: 44px 0 56px; }
  .sec  { padding: 58px 0; }

  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }

  .akan-satir { flex-direction: column; align-items: flex-start; gap: 4px; }

  .hero-buttons .btn { flex: 1 1 100%; text-align: center; }

  .sec-cizim::before { background-size: auto 70%; opacity: .05; }
}

/* Hareket azaltma tercihi olan kullanıcılar için */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation: none !important; }
}
