:root {
  --bg: #000000;
  --bg-elevated: #0c0c0c;
  --border: #1e1e1e;
  --border-hover: #2a4a5a;
  --text: #e8e8e8;
  --text-muted: #9a9a9a;
  --aqua: #4ec9d4;
  --aqua-bright: #7fe0ea;
  --aqua-deep: #2a9aaa;
  --aqua-glow: rgba(78, 201, 212, 0.22);
  --hl: #163840;
  --font: "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 70% 45% at 50% 12%, rgba(30, 120, 140, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(15, 70, 90, 0.1), transparent 50%),
    var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.25rem 5.5rem;
  -webkit-font-smoothing: antialiased;
}

.lang-btn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  font-family: var(--font);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.lang-btn:hover {
  color: var(--aqua);
  border-color: var(--border-hover);
}

.page {
  width: min(860px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  animation: rise 0.7s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  margin: 0 auto;
  padding: 0.35rem 0 0.15rem;
  font-size: clamp(6px, 1.15vw, 10px);
  line-height: 1.08;
  letter-spacing: 0;
  text-align: left;
  width: max-content;
  max-width: 100%;
  color: var(--aqua);
  text-shadow:
    0 0 20px var(--aqua-glow),
    0 0 40px rgba(78, 201, 212, 0.15);
  overflow-x: auto;
  overflow-y: hidden;
  user-select: none;
  animation: logoIn 1s ease-out both;
  white-space: pre;
}

.logo-compact {
  display: none;
}

@keyframes logoIn {
  from {
    opacity: 0;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  animation: rise 0.7s ease-out both;
  animation-delay: 0.12s;
}

.section:nth-of-type(2) {
  animation-delay: 0.22s;
}

.section h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font);
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.contact-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.contact-btn:hover {
  color: var(--aqua-bright);
  border-color: var(--border-hover);
  background: #0e1418;
}

.about-box {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 2px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.about-box p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.hl {
  background: var(--hl);
  color: var(--aqua-bright);
  padding: 0.05em 0.15em;
  border-radius: 2px;
}

.player {
  position: fixed;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.7rem 0.4rem 0.75rem;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  max-width: calc(100vw - 2rem);
  animation: rise 0.7s ease-out 0.35s both;
}

.player .note {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--aqua);
  flex-shrink: 0;
}

.player-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.15rem;
}

.player-controls button {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}

.player-controls button svg {
  width: 0.85rem;
  height: 0.85rem;
}

.player-controls button:hover {
  color: var(--aqua);
  background: rgba(110, 198, 224, 0.08);
}

.copy {
  position: fixed;
  bottom: 0.85rem;
  right: 1rem;
  font-size: 0.65rem;
  color: #444;
  z-index: 5;
}

.toast {
  position: fixed;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #122028;
  border: 1px solid var(--border-hover);
  color: var(--aqua);
  font-family: var(--font);
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  z-index: 20;
}

.toast[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .logo {
    display: none;
  }

  .logo-compact {
    display: block;
    font-size: clamp(4.5px, 1.7vw, 7.5px);
    margin-left: auto;
    margin-right: auto;
  }

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

  .player-text {
    max-width: 38vw;
  }

  .copy {
    display: none;
  }
}

@media (max-width: 420px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  body {
    padding-top: 3rem;
  }
}
