/* ==========================================================================
   Mani İletişim · Betmani
   Tek ekran (kaydirmasiz). Renk sistemi: maniclub/DESIGN.md
   (Gece Kuyusu zemin + Kiralık Yeşil aksan)

   Yerlesim:
   - Genis / yatay ekran: kaplan tum ekranda; solda baslik, giris butonu ve
     altinda 2x2 kompakt iletisim butonlari (kaplan acik kalir)
   - Dar / dikey ekran : ustte kaplan bandi + baslik, iletisim butonlari altta
   Olculer ekran yuksekligine (dvh) gore olceklenir; yer azsa ikincil metinler gizlenir.
   ========================================================================== */

:root {
  --bg: #05121A;

  --mint: #45E3BD;
  --mint-strong: #00D4A4;
  --mint-deep: #00B48A;
  --mint-ink: #032A21;

  --line-strong: rgba(69, 227, 189, 0.45);

  --text: #E8F1F3;
  --text-soft: #C3D2D8;
  --muted: #94A8B2;
  --faint: #5E7581;
  --danger: #FDA4AF;

  --font-display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 16px;
  --container: 1200px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

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

.eyebrow {
  color: var(--mint);
  font: 700 12px/1 var(--font-display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  font: 700 14px/1 var(--font-display);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s, background-color 0.25s, filter 0.25s;
}

.btn--solid {
  background: linear-gradient(180deg, #5BEFC9 0%, #22CDA3 100%);
  color: var(--mint-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 90, 70, 0.25),
    0 12px 32px -10px rgba(0, 212, 164, 0.65);
}
.btn--solid:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 90, 70, 0.25),
    0 16px 40px -10px rgba(0, 212, 164, 0.8);
}
.btn--solid:active { transform: translateY(1px); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(69, 227, 189, 0.1); }

.btn--block { width: 100%; }

/* ── Ekran iskeleti ──────────────────────────────────────────────────────── */

.screen {
  --band: clamp(160px, 36dvh, 460px); /* dar ekranda kaplan bandinin yuksekligi */
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 520px;
}

.screen__bg {
  position: absolute;
  inset: 0 0 auto;
  height: var(--band);
  z-index: -1;
  overflow: hidden;
}
.screen__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 86% 22%;
}
.screen__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 18, 26, 0.72) 30%, rgba(5, 18, 26, 0) 62%),
    linear-gradient(90deg, rgba(4, 16, 22, 0.6) 0%, rgba(4, 16, 22, 0) 50%);
}

.shard {
  position: absolute;
  z-index: 1;
  border-radius: 26px;
  background: linear-gradient(135deg, #5CF0CB 0%, #1FBF98 100%);
  box-shadow: 0 0 60px -6px rgba(0, 212, 164, 0.55);
  transform: skewX(-28deg);
}
.shard--tl {
  width: clamp(130px, 24vw, 380px);
  height: clamp(44px, 8vw, 120px);
  top: clamp(-70px, -5vw, -26px);
  left: -60px;
}
.shard--tc,
.shard--bl,
.shard--br { display: none; }
.shard--tc {
  width: clamp(120px, 15vw, 240px);
  height: clamp(50px, 6vw, 90px);
  top: clamp(-56px, -4vw, -30px);
  left: 52%;
  opacity: 0.92;
}
.shard--bl {
  width: clamp(90px, 11vw, 170px);
  height: clamp(34px, 4vw, 60px);
  bottom: -22px;
  left: 4%;
  opacity: 0.85;
}
.shard--br {
  width: clamp(120px, 15vw, 260px);
  height: clamp(70px, 9vw, 140px);
  bottom: clamp(-80px, -5vw, -50px);
  right: -50px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--band) - clamp(36px, 6dvh, 64px));
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.hero__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.hero__title {
  color: var(--mint);
  font: 800 clamp(1.6rem, min(8.4vw, 4.6dvh), 2.8rem)/1.04 var(--font-display);
  letter-spacing: -0.01em;
  text-shadow: 0 0 40px rgba(0, 212, 164, 0.35);
}

.hero__kicker {
  margin-top: clamp(4px, 1dvh, 12px);
  color: #FFFFFF;
  font: 700 clamp(0.78rem, min(3.4vw, 1.9dvh), 1rem)/1.3 var(--font-display);
  letter-spacing: 0.05em;
}

.hero__lead {
  display: none;
  max-width: 44ch;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}
.hero__lead br { display: none; }

.hero__cta {
  width: 100%;
  min-height: clamp(42px, 6dvh, 52px);
  margin-top: clamp(10px, 1.8dvh, 22px);
}
.hero__cta .icon { width: 18px; height: 18px; }
@media (min-width: 600px) {
  .hero__cta { align-self: flex-start; width: auto; }
}

/* ── İletişim butonlari ─────────────────────────────────────────────────── */

/* Dar ekranda ekranin altina yaslanir (basparmak erisimi). */
.channels-wrap {
  margin-top: auto;
  padding-top: clamp(14px, 2.6dvh, 32px);
}

.channels-title {
  margin-bottom: clamp(8px, 1.4dvh, 14px);
  font-size: clamp(10px, 1.4dvh, 12px);
}

.channels {
  --ch-h: clamp(50px, 8.2dvh, 66px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(8px, 1.2dvh, 12px);
}
@media (min-width: 560px) {
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.channel {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: var(--ch-h);
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(69, 227, 189, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 42, 50, 0.74) 0%, rgba(6, 22, 29, 0.8) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 30px -14px rgba(0, 0, 0, 0.7);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.channel:hover {
  transform: translateY(-2px);
  border-color: rgba(69, 227, 189, 0.6);
  background: linear-gradient(180deg, rgba(18, 54, 62, 0.82) 0%, rgba(8, 30, 38, 0.86) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 34px -14px rgba(0, 0, 0, 0.75),
    0 0 26px -8px rgba(0, 212, 164, 0.55);
}
.channel:active { transform: translateY(0) scale(0.99); }

/* Ana aksiyon: Sizi Arayalim */
.channel--primary {
  border-color: rgba(69, 227, 189, 0.55);
  background: linear-gradient(180deg, rgba(0, 212, 164, 0.24) 0%, rgba(0, 110, 90, 0.26) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 30px -14px rgba(0, 0, 0, 0.7),
    0 0 28px -10px rgba(0, 212, 164, 0.7);
}
.channel--primary:hover {
  background: linear-gradient(180deg, rgba(0, 212, 164, 0.34) 0%, rgba(0, 130, 106, 0.32) 100%);
}

.channel__icon {
  flex: none;
  width: calc(var(--ch-h) - 12px);
  height: calc(var(--ch-h) - 12px);
  border-radius: 12px;
  background: radial-gradient(circle at 50% 58%, rgba(0, 212, 164, 0.32) 0%, rgba(0, 212, 164, 0) 70%);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s var(--ease-out);
}
.channel:hover .channel__icon { transform: rotate(-6deg) scale(1.06); }

.channel__body {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.channel__title {
  color: var(--mint);
  font: 700 clamp(12.5px, 1.9dvh, 15px)/1.2 var(--font-display);
  letter-spacing: 0.03em;
}
.channel--primary .channel__title { color: #FFFFFF; }
.channel__text {
  overflow: hidden;
  color: var(--text-soft);
  font-size: clamp(11.5px, 1.7dvh, 13.5px);
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.channel__chev {
  width: 16px;
  height: 16px;
  color: var(--mint);
  transition: transform 0.25s var(--ease-out);
}
.channel:hover .channel__chev { transform: translateX(3px); }

/* ── Giris animasyonlari ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .hero__title,
  .hero__kicker,
  .hero__lead,
  .hero__cta,
  .channels-title,
  .channels li { animation: rise 0.8s var(--ease-out) both; }
  .hero__kicker { animation-delay: 0.06s; }
  .hero__lead { animation-delay: 0.12s; }
  .hero__cta { animation-delay: 0.18s; }
  .channels-title { animation-delay: 0.24s; }
  .channels li:nth-child(1) { animation-delay: 0.3s; }
  .channels li:nth-child(2) { animation-delay: 0.36s; }
  .channels li:nth-child(3) { animation-delay: 0.42s; }
  .channels li:nth-child(4) { animation-delay: 0.48s; }
  .screen__bg img { animation: settle 1.4s var(--ease-out) both; }
}

/* translate (transform degil): hover'daki transform ile cakismasin */
@keyframes rise {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes settle {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: none; }
}

@media (min-height: 780px) {
  .hero__lead { display: block; }
}

/* ── Genis / yatay ekran ─────────────────────────────────────────────────── */

@media (min-width: 720px) and (min-aspect-ratio: 1/1) {
  .screen { min-height: 360px; }

  .screen__bg {
    inset: 0;
    height: auto;
  }
  .screen__bg img { object-position: 72% center; }
  .screen__bg::after {
    background:
      linear-gradient(90deg, rgba(4, 16, 22, 0.92) 0%, rgba(4, 16, 22, 0.7) 34%, rgba(4, 16, 22, 0) 60%),
      linear-gradient(0deg, rgba(5, 18, 26, 0.6) 0%, rgba(5, 18, 26, 0) 30%);
  }
  .shard--tc,
  .shard--bl,
  .shard--br { display: block; }

  .hero {
    width: min(1320px, 100% - var(--gutter) * 2);
    padding-block: clamp(16px, 5dvh, 64px);
  }
  /* Genislik, sagdaki kaplanin telefonuna degmeyecek sekilde sinirli */
  .hero__content {
    flex: none;
    width: min(720px, 52vw);
    margin-block: auto;
  }

  .hero__title { font-size: clamp(1.8rem, min(4.6vw, 9dvh), 4.4rem); }
  .hero__kicker {
    margin-top: clamp(6px, 2dvh, 24px);
    font-size: clamp(0.85rem, min(1.5vw, 2.6dvh), 1.3rem);
  }
  .hero__lead {
    margin-top: clamp(8px, 1.8dvh, 20px);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  }
  .hero__lead br { display: inline; }
  .hero__cta {
    min-height: clamp(42px, 6.4dvh, 56px);
    margin-top: clamp(12px, 3.4dvh, 36px);
  }

  .channels-wrap {
    margin-top: 0;
    padding-top: clamp(16px, 4dvh, 44px);
  }
  .channels {
    --ch-h: clamp(50px, 12dvh, 92px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 2.6dvh, 22px) clamp(14px, 1.6vw, 24px);
  }
  .channel {
    gap: 14px;
    padding: 8px 18px 8px 8px;
    border-radius: 18px;
  }
  .channel__icon {
    width: calc(var(--ch-h) - 16px);
    height: calc(var(--ch-h) - 16px);
  }
  .channel__title { font-size: clamp(12.5px, min(1.2vw, 2.5dvh), 17px); }
  .channel__text {
    /* Buyuk butonda aciklama kesilmesin: gerekirse 2 satira iner */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: clamp(11.5px, min(1.05vw, 2.1dvh), 15px);
    white-space: normal;
  }
}

@media (min-width: 720px) and (min-aspect-ratio: 1/1) and (min-height: 560px) {
  .hero__lead { display: block; }
}

/* Yatay tablet / dar dizustu: butonlar dar, yaziya yer ac */
@media (min-width: 720px) and (max-width: 1199px) and (min-aspect-ratio: 1/1) {
  .channel { padding-right: 12px; }
  .channel__chev { display: none; }
  .channel__icon {
    width: calc(var(--ch-h) - 22px);
    height: calc(var(--ch-h) - 22px);
  }
}

/* Cok kisa ekran (yatay telefon): buton aciklamalarini gizle */
@media (max-height: 459px) {
  .channel__text { display: none; }
}

/* ── Modal ───────────────────────────────────────────────────────────────── */

.modal {
  width: min(520px, 100% - 24px);
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.modal::backdrop {
  background: rgba(2, 9, 13, 0.74);
  backdrop-filter: blur(6px);
}

.modal__card {
  position: relative;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid rgba(69, 227, 189, 0.28);
  border-radius: 22px;
  background: linear-gradient(160deg, #0F2B33 0%, #081A21 100%);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px -20px rgba(0, 212, 164, 0.4);
}
.modal__card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--mint) 30%, var(--mint-deep) 70%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .modal[open] .modal__card { animation: pop 0.4s var(--ease-out); }
  .modal[open]::backdrop { animation: fade 0.3s ease-out; }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.modal__close:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.modal__close .icon { width: 18px; height: 18px; }

.modal__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 40px;
}
.modal__head img {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 6px 14px rgba(0, 212, 164, 0.35));
}
.modal__title {
  margin-top: 6px;
  font: 700 clamp(1.3rem, 3.6vw, 1.6rem)/1.2 var(--font-display);
}
.modal__lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ── Form ────────────────────────────────────────────────────────────────── */

.form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.field { display: grid; gap: 6px; min-width: 0; }
.field label {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}
.optional { color: var(--faint); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  color: #F4FAFB;
  font-size: 16px; /* iOS odakta zoom yapmasin */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 72px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #4A606B; }

.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2345E3BD' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.field select option { background: #0B1F27; color: #F4FAFB; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(69, 227, 189, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 212, 164, 0.16);
}
.field [aria-invalid='true'] { border-color: rgba(253, 164, 175, 0.6); }

.field-row {
  display: grid;
  gap: 14px;
}
@media (min-width: 460px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field__error,
.form__error {
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.4;
}
.field__error:empty,
.form__error:empty { display: none; }
.form__error {
  padding: 10px 12px;
  border: 1px solid rgba(253, 164, 175, 0.3);
  border-radius: 10px;
  background: rgba(253, 164, 175, 0.08);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--mint-strong);
  cursor: pointer;
}

.form .btn { margin-top: 4px; }

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(3, 42, 33, 0.25);
  border-top-color: var(--mint-ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading { cursor: wait; filter: saturate(0.8); }
.btn.is-loading .btn__label { opacity: 0.6; }
.btn.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Basari ekrani ───────────────────────────────────────────────────────── */

.success {
  padding-top: 8px;
  text-align: center;
}
.success__badge {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #5CF0CB, #12B48D);
  color: var(--mint-ink);
  box-shadow: 0 0 0 8px rgba(0, 212, 164, 0.12), 0 14px 40px -8px rgba(0, 212, 164, 0.7);
}
.success__badge .icon { width: 36px; height: 36px; }
.success__code {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
.success__code strong {
  color: var(--mint);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
.success .modal__lead { margin-bottom: 24px; }
.success .nowrap {
  color: var(--text);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .success:not([hidden]) .success__badge { animation: pop 0.5s var(--ease-out) both; }
}

/* ── Toast ───────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 50;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0E2830;
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
}
@media (prefers-reduced-motion: no-preference) {
  .toast:not([hidden]) { animation: toast-in 0.3s var(--ease-out); }
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
}
