/* Twofun ana site */
:root {
  --bg: #08111f;
  --bg-soft: #0c1728;
  --panel: #101d30;
  --panel-light: #14243a;
  --text: #f7fbff;
  --muted: #9fb0c5;
  --green: #2dd4bf;
  --green-light: #5eead4;
  --gold: #22d3ee;
  --gold-light: #67e8f9;
  --border: rgba(103, 232, 249, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 18px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.08), transparent 32rem),
    var(--bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img,
svg {
  display: block;
}

code {
  font-family: "Outfit", system-ui, sans-serif;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.scrolled {
  border-color: var(--border);
  background: rgba(8, 17, 31, 0.88);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(236, 213, 148, 0.45);
  border-radius: 12px;
  color: #04121b;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: inset 0 0 0 3px rgba(4, 18, 27, 0.22);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.brand-text {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: -0.02em;
}

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

.main-nav a {
  color: #d7e3ef;
  font-size: 15px;
  font-weight: 600;
  transition: color 160ms ease;
}

.main-nav a:hover {
  color: var(--gold-light);
}

.main-nav .nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(214, 181, 107, 0.08);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 3px;
  background: var(--text);
}

.hero {
  position: relative;
  display: grid;
  min-height: 860px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 10, 20, 0.96) 0%, rgba(4, 10, 20, 0.72) 48%, rgba(4, 10, 20, 0.50) 100%),
    linear-gradient(180deg, rgba(4, 10, 20, 0.08), var(--bg) 100%),
    url("hero-placeholder.svg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 38%, rgba(34, 211, 238, 0.16), transparent 23rem),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("noise.svg");
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow::before {
  width: 30px;
  height: 1px;
  content: "";
  background: currentColor;
}

.hero h1,
.section-heading h2,
.join-copy h2,
.rules-box h2,
.final-cta h2 {
  margin: 20px 0 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(56px, 8vw, 104px);
}

.hero h1 span {
  color: var(--gold-light);
}

.hero-copy {
  max-width: 670px;
  margin: 26px 0 0;
  color: #d9e5f0;
  font-size: 19px;
}

.server-card {
  width: min(700px, 100%);
  margin-top: 40px;
  padding: 23px;
  border: 1px solid rgba(236, 213, 148, 0.23);
  border-radius: var(--radius);
  background: rgba(10, 22, 38, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.server-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 0 5px rgba(94, 234, 212, 0.14);
}

.server-address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 13px;
}

.server-address-row code {
  overflow: hidden;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
}

.copy-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid rgba(236, 213, 148, 0.2);
  border-radius: 13px;
  color: var(--text);
  background: var(--panel-light);
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.copy-button:hover {
  transform: translateY(-2px);
  border-color: rgba(236, 213, 148, 0.4);
  background: #182b43;
}

.copy-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.server-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 14px;
}

.separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(236, 213, 148, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-primary {
  color: #04131d;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.18);
}

.button-secondary {
  border-color: var(--border);
  color: var(--text);
  background: rgba(20, 32, 25, 0.8);
}

.scroll-hint {
  position: absolute;
  z-index: 3;
  bottom: 36px;
  left: 50%;
  display: flex;
  width: 28px;
  height: 46px;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  transform: translateX(-50%);
  border: 1px solid rgba(243, 239, 226, 0.35);
  border-radius: 999px;
}

.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 3px;
  background: var(--gold-light);
  animation: scrollDown 1.8s infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

.section {
  padding: 110px 0;
}

.intro-section {
  position: relative;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.join-copy h2,
.rules-box h2,
.final-cta h2 {
  font-size: clamp(38px, 5vw, 60px);
}

.section-heading p,
.join-copy > p,
.rules-box p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 60px;
}

.feature-card {
  min-height: 315px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent),
    var(--panel);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(236, 213, 148, 0.3);
  background: var(--panel-light);
}

.feature-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(236, 213, 148, 0.22);
  border-radius: 15px;
  color: var(--gold-light);
  background: rgba(214, 181, 107, 0.07);
}

.feature-icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.feature-card h3,
.steps h3 {
  margin: 26px 0 0;
  font-size: 22px;
}

.feature-card p,
.steps p {
  margin: 12px 0 0;
  color: var(--muted);
}

.feature-card > a {
  display: inline-block;
  margin-top: 22px;
  color: var(--gold-light);
  font-weight: 700;
}

.join-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 80% 50%, rgba(34, 211, 238, 0.08), transparent 28rem),
    var(--bg-soft);
}

.join-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 90px;
  align-items: start;
}

.join-copy {
  position: sticky;
  top: 130px;
}

.mini-address {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 34px;
  padding: 15px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(214, 181, 107, 0.06);
}

.mini-address span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-address strong {
  font-size: 20px;
}

.steps {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 142px;
  padding: 24px 30px;
  background: var(--panel);
}

.step-number {
  color: var(--gold);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 34px;
}

.steps h3 {
  margin: 0;
}

.steps p {
  margin-top: 4px;
}

.steps code {
  color: var(--gold-light);
  font-weight: 700;
}

.rules-section {
  padding-bottom: 60px;
}

.rules-box {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 70px;
  padding: 52px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent 50%),
    var(--panel);
}

.rules-box h2 {
  max-width: 720px;
}

.disabled-link {
  flex: 0 0 auto;
  cursor: default;
  opacity: 0.58;
  pointer-events: none;
}

.final-cta {
  padding-top: 60px;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.final-cta h2 {
  max-width: 750px;
}

.final-cta .button {
  min-width: 250px;
}

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--border);
  background: #050b14;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: #d9e5f0;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.copyright {
  grid-column: 1 / -1;
  margin: 22px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: #718398;
  font-size: 13px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  padding: 13px 18px;
  transform: translateY(20px);
  border: 1px solid rgba(236, 213, 148, 0.25);
  border-radius: 12px;
  color: var(--text);
  background: #10243a;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
    cursor: pointer;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 12px 20px 24px;
    transform: translateY(-130%);
    border-bottom: 1px solid var(--border);
    background: rgba(8, 17, 31, 0.98);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav .nav-cta {
    margin-top: 14px;
    text-align: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .join-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .join-copy {
    position: static;
  }

  .rules-box,
  .final-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .rules-box {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    font-size: 19px;
  }

  .hero {
    min-height: 780px;
  }

  .hero-content {
    padding-top: 130px;
  }

  .hero h1 {
    font-size: clamp(50px, 16vw, 72px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .server-address-row {
    align-items: stretch;
    flex-direction: column;
  }

  .server-address-row code {
    white-space: normal;
    word-break: break-word;
  }

  .copy-button {
    justify-content: center;
  }

  .server-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .separator {
    display: none;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading h2,
  .join-copy h2,
  .rules-box h2,
  .final-cta h2 {
    font-size: 40px;
  }

  .feature-grid {
    margin-top: 42px;
  }

  .feature-card {
    padding: 25px;
  }

  .steps li {
    grid-template-columns: 58px 1fr;
    gap: 14px;
    min-height: 125px;
    padding: 22px 20px;
  }

  .step-number {
    font-size: 27px;
  }

  .rules-box {
    padding: 30px 24px;
  }

  .final-cta .button {
    width: 100%;
    min-width: 0;
  }

  .footer-links {
    display: grid;
    gap: 12px;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Modern görünüm ekleri */
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 82%);
}

.brand-mark {
  font-weight: 800;
  letter-spacing: -0.05em;
}

.main-nav .nav-cta,
.button,
.copy-button {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.feature-card,
.server-card,
.rules-box,
.steps {
  backdrop-filter: blur(12px);
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.feature-card:hover::before {
  opacity: .85;
}

/* Orta çağ teması kaldırıldı */
.brand-mark {
  border: 0;
  border-radius: 10px;
  color: #03131c;
  background: linear-gradient(135deg, #67e8f9, #2dd4bf);
  box-shadow: none;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.brand-text {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero h1,
.section-heading h2,
.join-copy h2,
.rules-box h2,
.final-cta h2 {
  font-family: "Inter", system-ui, sans-serif;
}

.hero h1 span {
  background: linear-gradient(90deg, #67e8f9, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  letter-spacing: .12em;
}

.eyebrow::before {
  display: none;
}

.hero {
  background:
    linear-gradient(90deg, rgba(4, 10, 20, 0.96) 0%, rgba(4, 10, 20, 0.74) 48%, rgba(4, 10, 20, 0.48) 100%),
    linear-gradient(180deg, rgba(4, 10, 20, 0.08), var(--bg) 100%),
    url("hero-modern.svg") center/cover no-repeat;
}

.scroll-hint {
  display: none;
}

.mini-address small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.version-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.version-note strong {
  color: var(--text);
  font-weight: 700;
}

.version-note span {
  color: var(--gold);
}
