*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

:root {
  --page-bg: #060606;
  --text: #f2f2f2;
  --text-muted: rgba(242, 242, 242, 0.52);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.82);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --space-xs: clamp(0.45rem, 1.2vw, 0.6rem);
  --space-sm: clamp(0.65rem, 1.8vw, 0.9rem);
  --space-md: clamp(1rem, 2.5vw, 1.35rem);
  --space-lg: clamp(1.35rem, 3.5vw, 2rem);
  --space-xl: clamp(2rem, 5vw, 3rem);

  --text-xs: clamp(0.62rem, 1.6vw, 0.7rem);
  --text-sm: clamp(0.78rem, 1.9vw, 0.88rem);
  --text-md: clamp(0.92rem, 2.1vw, 1rem);
  --text-lg: clamp(1.2rem, 3.2vw, 1.55rem);
  --text-xl: clamp(1.65rem, 4.5vw, 2.1rem);
  --text-display: clamp(1.75rem, 5.5vw, 2.35rem);

  --page-max: min(520px, 100%);
  --header-h: clamp(4rem, 11vh, 5.5rem);
  --footer-h: clamp(2.25rem, 5vh, 3rem);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

html {
  background: var(--page-bg);
}

body {
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  min-height: 100dvh;
  padding:
    var(--header-h)
    clamp(1rem, 4vw, 2rem)
    var(--footer-h);
  position: relative;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

/* —— Tipografi ölçekleri —— */

.text-eyebrow {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.text-display {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: var(--text-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.text-lead {
  margin: var(--space-sm) 0 0;
  max-width: 42ch;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-muted);
}

/* —— Arka plan —— */

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-glow {
  opacity: 0.9;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(255, 255, 255, 0.07), transparent 58%),
    radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.03), transparent 42%),
    radial-gradient(circle at 88% 72%, rgba(255, 255, 255, 0.025), transparent 38%);
  animation: glow-breathe 14s ease-in-out infinite alternate;
}

.bg-grid {
  opacity: 0.35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 75%);
}

.bg-grain {
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes glow-breathe {
  from { opacity: 0.75; transform: scale(1); }
  to { opacity: 1; transform: scale(1.03); }
}

/* —— Üst marka —— */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1rem, 3.5vh, 1.45rem) 1.5rem 0;
}

.site-brand {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--text);
}

.site-brand-line {
  display: block;
  width: 2.5rem;
  height: 1px;
  margin-top: 0.75rem;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* —— Sayfa iskeleti —— */

.page {
  position: relative;
  z-index: 1;
  width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  animation: rise-in 1s var(--ease-out) both;
}

.intro {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro .text-eyebrow {
  margin-bottom: var(--space-sm);
  animation: rise-in 1s var(--ease-out) 0.06s both;
}

.intro .text-display {
  animation: rise-in 1s var(--ease-out) 0.12s both;
}

.intro .text-lead {
  animation: rise-in 1s var(--ease-out) 0.18s both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Bölümler alanı (çoklu buton) —— */

.hub {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  animation: rise-in 1s var(--ease-out) 0.2s both;
}

.hub-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
}

.hub-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.hub-line {
  display: block;
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hub-panel {
  padding: var(--space-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.018);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.22);
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: 1fr;
  width: 100%;
}

.feature-grid__item {
  margin: 0;
  min-width: 0;
}

@media (min-width: 480px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
}

/* —— Özellik kartları (ortak) —— */

.feature-btn {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0.8rem 0.85rem 0.8rem 1rem;
  min-height: 3.75rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
  transition:
    color 0.4s var(--ease-out),
    border-color 0.4s ease,
    transform 0.4s var(--ease-out),
    box-shadow 0.4s ease;
}

.feature-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}

.feature-btn {
  position: relative;
}

.feature-btn:hover::before,
.feature-btn:focus-visible::before {
  transform: scaleX(1);
}

.feature-btn:hover,
.feature-btn:focus-visible {
  color: #060606;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.feature-btn:active {
  transform: translateY(-1px);
}

.feature-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 4px;
}

.feature-btn__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  min-width: 0;
}

.feature-btn__title {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.feature-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(0.58rem, 2.5vw, 0.65rem);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.4s ease;
}

.feature-status__dot {
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.feature-status--open .feature-status__dot {
  background: #7dcea0;
  box-shadow: 0 0 6px rgba(125, 206, 160, 0.45);
}

.feature-status--maintenance .feature-status__dot {
  background: #c9a227;
  opacity: 0.85;
}

.feature-btn:hover .feature-status,
.feature-btn:focus-visible .feature-status {
  color: rgba(6, 6, 6, 0.5);
}

.feature-btn__arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition:
    border-color 0.4s ease,
    transform 0.4s var(--ease-out),
    background 0.4s ease;
}

.feature-btn:hover .feature-btn__arrow,
.feature-btn:focus-visible .feature-btn__arrow {
  border-color: rgba(6, 6, 6, 0.2);
  background: rgba(6, 6, 6, 0.06);
  transform: translateX(3px);
}

.feature-grid__item:nth-child(1) .feature-btn { animation: rise-in 0.9s var(--ease-out) 0.28s both; }
.feature-grid__item:nth-child(2) .feature-btn { animation: rise-in 0.9s var(--ease-out) 0.34s both; }

.feature-btn--disabled,
.feature-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.22);
}

.feature-btn--disabled::before,
.feature-btn:disabled::before {
  display: none;
}

/* —— Alt bilgi —— */

.site-footer {
  position: fixed;
  bottom: clamp(0.85rem, 3vh, 1.25rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.28);
  z-index: 5;
}

.pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* —— Şifre penceresi —— */

.gate[hidden] {
  display: none !important;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  animation: fade-in 0.35s ease both;
}

.gate-card {
  position: relative;
  width: min(360px, 100%);
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: card-in 0.45s var(--ease-out) both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gate-eyebrow {
  margin: 0 0 0.35rem;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gate-title {
  margin: 0 0 var(--space-md);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.gate-card form {
  margin: 0;
}

#gate-password {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#gate-password::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

#gate-password:focus {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.gate-error {
  margin: 0.75rem 0 0;
  color: #ff8a8a;
  font-size: var(--text-sm);
}

.gate-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  margin-top: var(--space-md);
}

.btn {
  appearance: none;
  border-radius: var(--radius-pill);
  padding: 0.72rem 1.15rem;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(242, 242, 242, 0.7);
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn.primary {
  background: #f2f2f2;
  color: #111;
}

.btn.primary:hover {
  background: #fff;
}

.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;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 479px) {
  body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hub-title {
    font-size: var(--text-lg);
  }

  .feature-btn {
    padding: 0.85rem 0.9rem 0.85rem 1rem;
    min-height: 4rem;
  }

  .feature-btn__title {
    font-size: clamp(0.82rem, 3.8vw, 0.88rem);
    line-height: 1.35;
  }
}

@media (max-width: 360px) {
  .feature-btn__arrow {
    display: none;
  }

  .feature-btn {
    padding-right: 1rem;
  }
}
