:root {
  --bg: #071827;
  --bg-soft: #0d2135;
  --text: #eaf4ff;
  --muted: #a7c1d9;
  --primary: #12d6a0;
  --primary-dark: #0caa7f;
  --line: rgba(158, 205, 255, 0.2);
  --card: rgba(8, 28, 46, 0.8);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #113455 0%, transparent 45%),
    radial-gradient(circle at 80% 0%, #0f564d 0%, transparent 35%),
    linear-gradient(160deg, var(--bg) 0%, #06111d 100%);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 20;
}

.logo {
  font-family: "Sora", sans-serif;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.topbar nav {
  display: flex;
  gap: 1rem;
}

.topbar a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.topbar a:hover {
  color: var(--text);
}

.hero {
  padding: 5rem 0 2.5rem;
}

.chip {
  display: inline-block;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: #c9e6ff;
  font-size: 0.9rem;
}

h1 {
  margin: 1rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.05;
  max-width: 14ch;
}

.subtitle {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-row {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.78rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(145deg, var(--primary), #41f7c5);
  color: #022017;
  box-shadow: 0 10px 24px rgba(18, 214, 160, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(145deg, var(--primary-dark), #2ce9b5);
}

.btn-soon {
  border-color: rgba(167, 193, 217, 0.35);
  color: rgba(234, 244, 255, 0.75);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  cursor: not-allowed;
  gap: 0.5rem;
}

.btn-soon em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(234, 244, 255, 0.7);
  border: 1px solid rgba(167, 193, 217, 0.4);
  background: rgba(10, 24, 38, 0.45);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.btn-soon:hover {
  transform: none;
}

.stats {
  margin-top: 2rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats article {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 1rem;
}

.stats strong {
  display: block;
  font-size: 1.3rem;
  font-family: "Sora", sans-serif;
}

.stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 2.5rem 0;
}

.section-title {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.panel {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 1.1rem;
}

.card h3,
.panel h2 {
  margin: 0 0 0.5rem;
  font-family: "Sora", sans-serif;
}

.card p,
.panel p,
.panel li,
small {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

#nasil .panel:first-child h2 {
  margin-left: 15px;
}

#nasil .panel:first-child ol {
  position: relative;
  left: -5px;
}

.download-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
}

.panel-accent {
  background:
    linear-gradient(170deg, rgba(18, 214, 160, 0.14), rgba(255, 255, 255, 0.02));
}

.visuals-stack {
  display: grid;
  gap: 1rem;
}

.visual-card {
  overflow: hidden;
}

.visual-card h2 {
  margin-bottom: 0.3rem;
}

.visual-card p {
  margin-top: 0;
}

.world-stats {
  display: flex;
  justify-content: center;
  gap: 2.4rem;
  flex-wrap: wrap;
  margin: 0.8rem 0 1rem;
  text-align: center;
}

.world-stats > div {
  min-width: 180px;
}

.world-stats strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: #ff8f44;
}

.world-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.world-visual {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 10px;
}

.world-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 1;
  transform: scaleX(1.06);
  transform-origin: center;
}

.world-map .map-country {
  fill: #b5b7ba;
  stroke: #cbced2;
  stroke-width: 0.65;
}

.world-map .map-country-highlight {
  fill: #ff8f2a !important;
  stroke: #ffc487 !important;
  stroke-width: 0.9 !important;
}

.flow-visual {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.flow-node {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

.flow-main {
  border-color: rgba(18, 214, 160, 0.6);
  box-shadow: inset 0 0 0 1px rgba(18, 214, 160, 0.25);
}

.flow-link {
  position: relative;
  height: 24px;
}

.flow-link::before,
.flow-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(134, 177, 221, 0.3), rgba(134, 177, 221, 0.85));
}

.flow-link::before {
  top: 5px;
}

.flow-link::after {
  top: 15px;
}

.flow-packet {
  position: absolute;
  top: 2px;
  left: -8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff9f44;
  box-shadow: 0 0 12px rgba(255, 159, 68, 0.6);
}

.flow-packet-forward {
  top: 1px;
  animation: packetRunForward 1.7s linear infinite;
}

.flow-packet-backward {
  top: 11px;
  animation: packetRunBackward 1.7s linear infinite;
}

.flow-packet.d2 {
  animation-delay: 0.55s;
}

.flow-packet.d3 {
  animation-delay: 1.1s;
}

@keyframes packetRunForward {
  0% { left: -8px; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 4px); opacity: 0; }
}

@keyframes packetRunBackward {
  0% { left: calc(100% - 4px); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: -8px; opacity: 0; }
}

.footer {
  margin: 2rem auto 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer p {
  grid-column: 2;
  margin: 0;
}

.footer a {
  grid-column: 3;
  justify-self: end;
}

.footer a {
  color: #89ffd9;
  text-decoration: none;
}

.bg-glow {
  position: fixed;
  width: 44vw;
  height: 44vw;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  z-index: -1;
}

.glow-1 {
  background: #16ffc5;
  top: -16vw;
  right: -8vw;
}

.glow-2 {
  background: #1ca2ff;
  bottom: -20vw;
  left: -10vw;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .stats,
  .grid-3,
  .split,
  .world-stats {
    grid-template-columns: 1fr;
  }

  .flow-visual {
    grid-template-columns: 1fr;
  }

  .flow-link {
    height: 26px;
    width: 2px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(134, 177, 221, 0.3), rgba(134, 177, 221, 0.85));
  }

  .flow-packet {
    left: -3px;
    top: -8px;
    animation-name: packetRunVertical;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .footer a {
    justify-self: center;
  }

  h1 {
    max-width: 18ch;
  }
}

@keyframes packetRunVertical {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(calc(100% + 8px)); opacity: 0; }
}
