/* ============================================================
   Partner Holding — geçici landing page
   Tek ekran, split-screen, koyu yeşil / siyah tema
   ============================================================ */

:root {
  /* Zemin */
  --ink-900: #050706;   /* sol panel tabanı */
  --ink-800: #080a09;   /* sağ panel tabanı */

  /* Yeşil vurgu */
  --green-700: #12402e;
  --green-500: #1f6f4f;
  --green-400: #2c9068;
  --green-300: #45b98a;

  /* Tipografi */
  --paper: #f4f6f4;               /* kırık beyaz */
  --paper-70: rgba(244, 246, 244, .70);
  --paper-45: rgba(244, 246, 244, .45);
  --paper-30: rgba(244, 246, 244, .30);

  --line: rgba(244, 246, 244, .09);
  --line-soft: rgba(244, 246, 244, .05);

  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

::selection { background: var(--green-500); color: #fff; }

/* ── Kabuk / split-screen ───────────────────────────────── */

.shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100%;
}

.panel {
  position: relative;
  display: flex;
  overflow: hidden;
}

.panel__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(2rem, 7vw, 3.25rem);
}

.panel--brand { background: var(--ink-900); }

.panel--form {
  background: var(--ink-800);
  border-top: 1px solid var(--line-soft);
}

.panel--form .panel__inner { justify-content: center; }

/* Sağ kolonun içerik yığını — telif satırı dışarıda kalır. */
.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.45rem, 2.8vw, 1.95rem);
  width: 100%;
  max-width: 30rem;
}

.stack > * { min-width: 0; }

/* ── Sol panel: yumuşak ışık alanları ───────────────────── */

.glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow__base {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #060908 0%, #050706 45%, #040706 100%);
}

/* Bulanık, geniş ve düşük kontrastlı yeşil alanlar.
   Hareket kasıtlı olarak fark edilir eşiğin altında tutulur. */
.glow__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.glow__blob--a {
  left: -16%; bottom: -26%;
  width: 78%; padding-bottom: 78%;
  background: radial-gradient(circle at 50% 50%, rgba(31, 111, 79, .52), rgba(31, 111, 79, 0) 68%);
  animation: drift-a 78s var(--ease) infinite alternate;
}

.glow__blob--b {
  right: -20%; top: -24%;
  width: 66%; padding-bottom: 66%;
  background: radial-gradient(circle at 50% 50%, rgba(18, 64, 46, .60), rgba(18, 64, 46, 0) 70%);
  animation: drift-b 96s var(--ease) infinite alternate;
}

.glow__blob--c {
  left: 34%; top: 38%;
  width: 46%; padding-bottom: 46%;
  background: radial-gradient(circle at 50% 50%, rgba(44, 144, 104, .20), rgba(44, 144, 104, 0) 72%);
  animation: drift-c 64s var(--ease) infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3.5%, -3%, 0) scale(1.06); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.04); }
  to   { transform: translate3d(-3%, 3.5%, 0) scale(1); }
}

@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(.96); }
  to   { transform: translate3d(-4%, -2.5%, 0) scale(1.08); }
}

/* ── Üst şerit: logo + Partner Ol ───────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--paper);
}

/* Siyah çizim kırık beyaza çevrilir. */
.logo__img {
  display: block;
  height: clamp(24px, 2.1vw, 31px);
  width: auto;
  filter: invert(1) saturate(0) brightness(.96);
  opacity: .92;
}

.toplink {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: .84rem;
  font-weight: 400;
  letter-spacing: .002em;
  color: var(--paper-70);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .4s var(--ease);
}

.toplink:hover { color: var(--paper); }

/* Supabase bağlanana kadar: görünür biçimde devre dışı. */
.toplink[disabled] {
  color: var(--paper-30);
  cursor: default;
}

.toplink[disabled]:hover .toplink__arrow { transform: none; }

.toplink:focus-visible { outline: 1px solid rgba(69,185,138,.6); outline-offset: 4px; border-radius: 3px; }

.toplink__arrow {
  font-size: .78em;
  transition: transform .4s var(--ease);
}

.toplink:hover .toplink__arrow { transform: translate(2px, -2px); }

/* ── Sol panel: marka bloğu ─────────────────────────────── */

.brand {
  margin: auto 0;
  padding: clamp(2.5rem, 6vh, 4.5rem) 0;
  max-width: min(44rem, 100%);
}

/* Kırılım <br> ile sabitlendi: "Fikrin hayata / geçtiği yer."
   Konteyner geniş olduğu için satırlar kendiliğinden bölünmez. */
.brand__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.9rem, 5.4vw, 5rem);
  line-height: 1.08;
  letter-spacing: -.018em;
  color: var(--paper);
}

.brand__lede {
  margin: clamp(1.6rem, 2.6vw, 2.6rem) 0 0;
  max-width: 21.5rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.72;
  color: rgba(244, 246, 244, .58);
}

/* ── Sağ panel: içerik ──────────────────────────────────── */

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  font-size: .69rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper-45);
}

.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-300);
  box-shadow: 0 0 0 4px rgba(69,185,138,.09);
}

.form-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.95rem, 2.9vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -.015em;
}

.form-lede {
  margin: -.55rem 0 0;
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.72;
  color: var(--paper-45);
}

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

.form { margin: 0; }

.form__row {
  display: flex;
  gap: .55rem;
  align-items: stretch;
}

.form__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 3.25rem;
  padding: 0 1.05rem;
  color: var(--paper);
  font-family: inherit;
  font-size: .94rem;
  background: rgba(244,246,244,.028);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}

.form__input::placeholder { color: var(--paper-30); }

/* Supabase bağlanana kadar: tasarım korunur, etkileşim kapanır. */
.form[data-disabled="true"] .form__input,
.form[data-disabled="true"] .btn {
  opacity: .5;
  cursor: default;
  box-shadow: none;
}

.form[data-disabled="true"] .form__input:hover { border-color: var(--line); }

.form__input:hover { border-color: rgba(244,246,244,.16); }

.form__input:focus-visible {
  border-color: rgba(69,185,138,.55);
  background: rgba(69,185,138,.05);
  box-shadow: 0 0 0 3px rgba(31,111,79,.18);
}

.form__input[aria-invalid="true"] {
  border-color: rgba(214, 106, 92, .55);
  box-shadow: 0 0 0 3px rgba(214, 106, 92, .12);
}

.btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  height: 3.25rem;
  padding: 0 1.4rem;
  color: #f6fbf8;
  font-family: inherit;
  font-size: .89rem;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid rgba(69,185,138,.32);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--green-500), #164e37);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 8px 24px -14px rgba(31,111,79,.9);
  transition: transform .35s var(--ease), background .35s var(--ease),
              border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.btn:hover {
  background: linear-gradient(180deg, var(--green-400), #1a5c41);
  border-color: rgba(69,185,138,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 12px 30px -14px rgba(44,144,104,.95);
}

.btn:active { transform: translateY(1px); }

.btn:focus-visible { outline: 2px solid rgba(69,185,138,.7); outline-offset: 3px; }

.btn[disabled] { opacity: .6; cursor: default; transform: none; }

.btn__arrow { display: inline-flex; transition: transform .4s var(--ease); }

.btn:hover .btn__arrow { transform: translateX(3px); }

.form__status {
  display: none;
  margin: .85rem 0 0;
  font-size: .76rem;
  line-height: 1.55;
  color: #e0a79c;
}

.form__status[data-visible="true"] { display: block; }

/* Bilgilendirme tonu — hata değil. */
.form__status[data-tone="info"] { color: var(--paper-45); }

/* Başarı durumu */
.done[hidden] { display: none; }

.done {
  display: flex;
  gap: .85rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(69,185,138,.22);
  border-radius: 12px;
  background: rgba(31,111,79,.09);
  animation: fade .7s var(--ease) both;
}

.done__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  margin-top: .1rem;
  border-radius: 50%;
  color: var(--green-300);
  border: 1px solid rgba(69,185,138,.35);
}

.done__title { margin: 0; font-size: .95rem; font-weight: 500; }
.done__text  { margin: .3rem 0 0; font-size: .84rem; font-weight: 300; color: var(--paper-45); }

.copyright {
  margin: 0;
  padding-top: .5rem;
  font-size: .72rem;
  color: var(--paper-30);
}

/* ── Partnerlik başvurusu modalı ────────────────────────── */

.modal {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  max-width: none;
  max-height: none;
  overflow: visible;
}

.modal::backdrop {
  background: rgba(3, 5, 4, .74);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal__panel {
  width: min(36rem, calc(100vw - 2rem));
  max-height: min(46rem, calc(100vh - 3rem));
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: #0a0c0b;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}

.modal[open] .modal__panel { animation: fade-up .45s var(--ease) both; }

.modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.35rem, 3vw, 1.75rem);
}

.modal__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.015em;
}

.modal__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin: -.25rem -.35rem 0 0;
  color: var(--paper-45);
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}

.modal__close:hover { color: var(--paper); border-color: rgba(244,246,244,.2); }

.modal__close:focus-visible { outline: 2px solid rgba(69,185,138,.6); outline-offset: 2px; }

.modal__form[hidden] { display: none; }

.modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin: 0 0 1rem;
}

.modal__grid .field { margin: 0; }

.field__label {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--paper-70);
}

.field__opt { color: var(--paper-30); font-weight: 400; }

.field__input {
  width: 100%;
  height: 3rem;
  padding: 0 .95rem;
  color: var(--paper);
  font-family: inherit;
  font-size: .92rem;
  background: rgba(244,246,244,.028);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}

.field__textarea {
  height: auto;
  min-height: 6.5rem;
  padding: .8rem .95rem;
  line-height: 1.6;
  resize: vertical;
}

.field__input:hover { border-color: rgba(244,246,244,.16); }

.field__input:focus-visible {
  border-color: rgba(69,185,138,.55);
  background: rgba(69,185,138,.05);
  box-shadow: 0 0 0 3px rgba(31,111,79,.18);
}

.field__input[aria-invalid="true"] {
  border-color: rgba(214, 106, 92, .55);
  box-shadow: 0 0 0 3px rgba(214, 106, 92, .12);
}

.modal__status {
  display: none;
  margin: 0 0 .9rem;
  font-size: .78rem;
  line-height: 1.55;
  color: #e0a79c;
}

.modal__status[data-visible="true"] { display: block; }

.modal__status[data-tone="info"] { color: var(--paper-45); }

.modal__actions { margin-top: .35rem; }

.btn--block { width: 100%; justify-content: center; }

@media (max-width: 34rem) {
  .modal__grid { grid-template-columns: 1fr; }
}

/* ── Açılış animasyonu ──────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up .9s var(--ease) both;
  animation-delay: var(--d, 0s);
}

@keyframes fade-up {
  to { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Masaüstü: iki kolon, tek ekran ─────────────────────── */

@media (min-width: 62rem) {
  .shell { grid-template-columns: 1.08fr 1fr; }

  .panel__inner {
    padding: clamp(2.75rem, 4vw, 4.5rem);
    justify-content: space-between;
  }

  .panel--form {
    border-top: 0;
    border-left: 1px solid var(--line-soft);
  }

  .panel--form .panel__inner {
    justify-content: space-between;
    padding-right: clamp(2.75rem, 6vw, 6.5rem);
  }

  /* Yığın dikeyde ortalanır, telif satırı en alta yerleşir. */
  .stack { margin: auto 0; }
}

/* Ekran gerçekten tek ekrana sığacak kadar yüksekse scroll'u kilitle.
   Kısa masaüstü pencerelerinde içerik kırpılmasın diye ayrı sorgu. */
@media (min-width: 62rem) and (min-height: 40rem) {
  html, body { overflow: hidden; }

  .shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }
}

/* Kısa/basık masaüstü pencereleri — dikey nefesi biraz azalt. */
@media (min-width: 62rem) and (max-height: 48rem) {
  .brand { padding: clamp(1.5rem, 4vh, 2.5rem) 0; }
  .brand__title { font-size: clamp(2.6rem, 4.4vw, 3.9rem); }
  .brand__lede { margin-top: 1.35rem; }
  .panel__inner { padding-top: clamp(2rem, 4vh, 3rem); padding-bottom: clamp(2rem, 4vh, 3rem); }
}

@media (min-width: 90rem) {
  .panel--brand .panel__inner { padding-left: clamp(4.5rem, 8vw, 8rem); }
}

/* ── Mobil ──────────────────────────────────────────────── */

@media (max-width: 62rem) {
  .panel--brand { min-height: 62vh; }
  .brand { max-width: none; }
  .brand__title { font-size: clamp(2.7rem, 11vw, 3.8rem); }
  .brand__lede { max-width: 38ch; }
  .panel--form .panel__inner { padding-top: clamp(2.5rem, 8vw, 3.5rem); padding-bottom: 2.5rem; }
  .copyright { margin-top: clamp(1.75rem, 6vw, 2.5rem); }
  .glow__blob { filter: blur(70px); }
}

@media (max-width: 34rem) {
  .form__row { flex-direction: column; }
  .btn { justify-content: center; height: 3.15rem; }
  .stack { max-width: none; }
}

/* ── Hareket azaltma tercihi ────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .glow__blob { animation: none; }
  .done { animation: none; }
  * { transition-duration: .01ms !important; }
}
