:root {
  --bg-page: #060708;
  --bg-elevated: #0c0e11;
  --text-primary: #d4d4d4;
  --text-secondary: #8e909a;
  --text-muted: #44464d;
  --accent: #3d8bfd;
  --accent-deep: #1759f9;
  --border: rgba(255, 255, 255, 0.06);
  --status-online: #23a559;
  --status-idle: #f0b232;
  --status-dnd: #f23f43;
  --status-offline: #80848e;

  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.85rem);
  --fs-sm: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  --fs-base: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
  --fs-md: clamp(1.25rem, 1.15rem + 0.75vw, 1.65rem);
  --fs-lg: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
  --fs-xl: clamp(2.5rem, 2.25rem + 2.5vw, 4.5rem);
  --fs-xxl: clamp(3.25rem, 2.85rem + 4vw, 6.5rem);

  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-sm: clamp(1rem, 0.85rem + 1vw, 1.5rem);
  --space-md: clamp(2rem, 1.6rem + 2vw, 3rem);
  --space-lg: clamp(4rem, 3rem + 4vw, 5.5rem);
  --space-xl: clamp(6rem, 5vw + 5rem, 10rem);
  --space-xxl: clamp(9rem, 7vw + 7rem, 14rem);

  --max-width: 1000px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-page);
  overflow-x: hidden;
}

::selection {
  background-color: var(--text-primary);
  color: var(--bg-page);
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.12em 0.35em;
  border-radius: 4px;
}

/* Flaticon icon set */
.fi {
  width: 1.1em;
  height: 1.1em;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: -0.15em;
}

.fi-inline {
  margin-left: 0.15rem;
}

/* Atmosphere */
.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(61, 139, 253, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 30%, rgba(23, 89, 249, 0.05), transparent 50%),
    var(--bg-page);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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");
  mix-blend-mode: overlay;
}

.site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

.viewport-slide {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: var(--space-xl) 0;
}

/* Motion: load */
.main-content {
  opacity: 0;
  transform: scale(0.97) translateY(16px);
  transition:
    opacity 1.6s var(--ease-out),
    transform 1.6s var(--ease-out);
}

body.loaded .main-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.fade-up-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1.2s var(--ease-out),
    transform 1.2s var(--ease-out);
}

body.loaded .fade-up-item {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.35s; }
.delay-4 { transition-delay: 0.5s; }

.reveal-item,
.reveal-child {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter 1.1s var(--ease-out);
  will-change: opacity, transform, filter;
}

.reveal-item.revealed,
.reveal-child.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-child:nth-child(1) { transition-delay: 0.05s; }
.reveal-child:nth-child(2) { transition-delay: 0.12s; }
.reveal-child:nth-child(3) { transition-delay: 0.19s; }
.reveal-child:nth-child(4) { transition-delay: 0.26s; }
.reveal-child:nth-child(5) { transition-delay: 0.33s; }
.reveal-child:nth-child(6) { transition-delay: 0.4s; }
.reveal-child:nth-child(7) { transition-delay: 0.47s; }
.reveal-child:nth-child(8) { transition-delay: 0.54s; }
.reveal-child:nth-child(9) { transition-delay: 0.61s; }
.reveal-child:nth-child(10) { transition-delay: 0.68s; }
.reveal-child:nth-child(11) { transition-delay: 0.75s; }
.reveal-child:nth-child(12) { transition-delay: 0.82s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up-item,
  .reveal-item,
  .reveal-child,
  .name-face,
  .chat-name,
  .main-content,
  .hero-popout {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
}

.serif-accent {
  font-family: var(--font-serif) !important;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
}

.hero-main {
  position: relative;
  z-index: 2;
  max-width: 40rem;
}

.about-chat {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: var(--space-sm);
  max-width: 40rem;
}

.chat-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  background: #0a0c10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.about-chat-body {
  min-width: 0;
  flex: 1;
}

.chat-name-swap {
  position: relative;
  display: block;
  height: 1.25em;
  min-width: 7.5ch;
  margin-bottom: 0.4rem;
  overflow: hidden;
}

.chat-name {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(110%);
  filter: blur(4px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out),
    filter 0.55s var(--ease-out);
}

.chat-name.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.chat-name.is-exit {
  opacity: 0;
  transform: translateY(-110%);
  filter: blur(4px);
}

.chat-bubble,
.about-chat-bubble {
  position: relative;
  padding: 0.95rem 1.05rem;
  border-radius: 4px 18px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(18, 20, 26, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.about-chat-bubble::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 12px;
  width: 10px;
  height: 10px;
  background: rgba(18, 20, 26, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
}

.about-chat-text {
  margin: 0;
  max-width: none;
}

.hero-popouts {
  position: absolute;
  inset: -0.5rem 0 auto auto;
  width: min(42%, 22rem);
  height: min(100%, 26rem);
  pointer-events: none;
  z-index: 1;
}

.hero-popout {
  position: absolute;
  width: min(100%, 15.5rem);
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(18, 20, 26, 0.88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  animation: popout-in 0.7s var(--ease-out) forwards;
}

.hero-popout:nth-child(1) {
  top: 0.5rem;
  right: 0;
  animation-delay: 0.35s;
}

.hero-popout:nth-child(2) {
  top: 8.5rem;
  right: 1.75rem;
  animation-delay: 0.55s;
}

.hero-popout:nth-child(3) {
  top: 16.5rem;
  right: 0.25rem;
  animation-delay: 0.75s;
}

.hero-popout:nth-child(1),
.hero-popout:nth-child(3) {
  animation-name: popout-in-float-a;
}

.hero-popout:nth-child(2) {
  animation-name: popout-in-float-b;
}

@keyframes popout-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popout-in-float-a {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  55% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }
}

@keyframes popout-in-float-b {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  55% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(5px) scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-popout.is-ready:nth-child(odd) {
    animation: float-soft-a 5.5s ease-in-out infinite;
  }
  .hero-popout.is-ready:nth-child(even) {
    animation: float-soft-b 6.2s ease-in-out infinite;
  }
}

@keyframes float-soft-a {
  0%, 100% { transform: translateY(-4px); }
  50% { transform: translateY(5px); }
}

@keyframes float-soft-b {
  0%, 100% { transform: translateY(5px); }
  50% { transform: translateY(-6px); }
}

.hero-popout-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.hero-popout-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1d24;
  flex-shrink: 0;
}

.hero-popout-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-popout-name {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-popout-stars {
  font-size: 0.68rem;
  color: #f0c15a;
  letter-spacing: 0.04em;
}

.hero-popout-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero-popouts {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-bottom: var(--space-md);
    scrollbar-width: none;
  }

  .hero-popouts::-webkit-scrollbar {
    display: none;
  }

  .hero-popout {
    position: relative;
    top: auto !important;
    right: auto !important;
    flex: 0 0 14.5rem;
    animation: popout-in 0.55s var(--ease-out) forwards;
  }

  .hero-popout.is-ready:nth-child(odd),
  .hero-popout.is-ready:nth-child(even) {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hero-greeting {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
  font-size: clamp(2.75rem, 2.2rem + 4vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  max-width: 12ch;
}

.greeting-lead {
  font-family: var(--font-sans);
  font-weight: 800;
  font-style: normal;
}

.name-swap {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  height: 1.15em;
  min-width: 9.5ch;
  overflow: hidden;
}

.name-face {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(110%);
  filter: blur(6px);
  pointer-events: none;
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    filter 0.7s var(--ease-out);
}

.name-face.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.name-face.is-exit {
  opacity: 0;
  transform: translateY(-110%);
  filter: blur(6px);
}

.hero-support {
  color: var(--text-secondary);
  font-size: var(--fs-base);
  line-height: 1.7;
  max-width: 34rem;
  margin-bottom: var(--space-md);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-bottom: var(--space-md);
}

.local-time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.local-time .fi {
  color: var(--accent);
}

.time-label {
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

.social-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.social-link .fi {
  color: var(--accent);
}

.social-link:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.btn .fi {
  width: 18px;
  height: 18px;
}

img.fi {
  display: inline-block;
  flex-shrink: 0;
}

/* Top nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  background: rgba(6, 7, 8, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.site-nav.is-scrolled {
  background: rgba(6, 7, 8, 0.88);
  border-bottom-color: var(--border);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-primary);
}

.site-main {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--space-md) + 3.2rem);
  padding-bottom: var(--space-lg);
  min-height: 100vh;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: clamp(1rem, 4vw, 2rem);
    left: clamp(1rem, 4vw, 2rem);
    flex-direction: column;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(12, 14, 17, 0.96);
  }

  .nav-links.is-open {
    display: flex;
  }
}

.site-form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
  margin: var(--space-md) 0;
}

.site-form label {
  display: grid;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.site-form input,
.site-form select,
.site-form textarea,
.custom-select-trigger {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font: inherit;
}

.site-form textarea {
  resize: vertical;
  min-height: 110px;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger {
  outline: none;
  border-color: rgba(61, 139, 253, 0.7);
  box-shadow: 0 0 0 3px rgba(61, 139, 253, 0.18);
}

.custom-select-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s var(--ease-out);
  flex-shrink: 0;
}

.custom-select.is-open .custom-select-chevron {
  transform: rotate(225deg) translateY(-2px);
}

.custom-select-menu {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 0.4rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #12141a;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  max-height: 16rem;
  overflow: auto;
}

.custom-select-menu[hidden] {
  display: none;
}

.custom-select-menu [role="option"] {
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.custom-select-menu [role="option"]:hover,
.custom-select-menu [role="option"].is-active {
  background: rgba(61, 139, 253, 0.18);
  color: var(--text-primary);
}

.custom-select-menu [role="option"][aria-selected="true"] {
  background: rgba(61, 139, 253, 0.28);
  color: #fff;
  font-weight: 600;
}

.auth-gate {
  margin-top: var(--space-sm);
}

.auth-hint {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.auth-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.auth-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1d24;
}

.auth-user-name {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-logout {
  margin-top: 0.15rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: var(--fs-xs);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-logout:hover {
  color: var(--text-secondary);
}

.review-identity {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1d24;
  flex-shrink: 0;
}

.reviews-section .review-list {
  margin-top: var(--space-md);
}


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

.btn-primary {
  background: var(--accent-deep);
  color: #f5f7ff;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}

/* Discord card */
.discord-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: 28rem;
  padding: 1.15rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.discord-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.discord-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1d24;
}

.status-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--bg-elevated);
  background: var(--status-online);
}

.status-dot[data-status="online"] { background: var(--status-online); }
.status-dot[data-status="idle"] { background: var(--status-idle); }
.status-dot[data-status="dnd"] { background: var(--status-dnd); }
.status-dot[data-status="offline"] { background: var(--status-offline); }

.status-dot[data-status="online"]::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--status-online);
  opacity: 0.45;
  animation: status-pulse 2.4s ease-out infinite;
}

@keyframes status-pulse {
  0% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1.45); opacity: 0; }
}

.discord-meta {
  min-width: 0;
}

.discord-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.discord-name {
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}


.discord-status-line {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.45rem;
}

.status-sep {
  margin: 0 0.35rem;
  color: var(--text-muted);
}

.discord-link {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--accent);
}

.discord-link:hover {
  color: #7eb0ff;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.section-desc {
  color: var(--text-secondary);
  font-size: var(--fs-base);
  line-height: 1.7;
  max-width: 40rem;
  margin-bottom: var(--space-md);
}

.about-section .section-desc {
  margin-bottom: 0;
}

/* Servers */
.server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: var(--space-md);
}

.server-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  min-height: 148px;
}

.server-banner {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 8, 0.25), rgba(6, 7, 8, 0.92) 70%),
    var(--server-banner, linear-gradient(135deg, rgba(61, 139, 253, 0.18), transparent 55%));
  background-size: cover;
  background-position: center;
  opacity: 0.95;
}

.server-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem;
  min-height: 148px;
}

.server-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: #1a1d24;
  border: 1px solid var(--border);
}

.server-icon-fallback {
  background: linear-gradient(145deg, rgba(61, 139, 253, 0.35), #1a1d24);
}

.server-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.server-name {
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.server-rank {
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.server-members {
  color: var(--text-secondary);
  font-size: var(--fs-xs);
}

.server-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}

.server-join {
  padding: 0.65rem 0.95rem;
  white-space: nowrap;
}

.server-card.is-discontinued {
  opacity: 0.88;
}

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

  .server-body {
    grid-template-columns: 56px 1fr;
  }

  .server-join {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* Reviews page */
.review-page {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.review-page .section-eyebrow a {
  color: var(--text-muted);
}

.review-page .section-eyebrow a:hover {
  color: var(--text-primary);
}

.review-form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
  margin-bottom: var(--space-lg);
}

.review-form label {
  display: grid;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font: inherit;
}

.review-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  min-height: 1.4em;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.review-list {
  display: grid;
  gap: 0.85rem;
}

.review-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.review-stars {
  color: #f0b232;
  letter-spacing: 0.05em;
}

.review-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Work (legacy project cards, kept if needed) */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.work-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.work-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.work-media {
  position: relative;
  min-height: 100px;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(61, 139, 253, 0.18), rgba(12, 14, 17, 0.9)),
    var(--bg-elevated);
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100px;
}

.work-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
}

.work-title {
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.work-desc {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.work-tag {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.work-link {
  display: inline-flex;
  margin-top: 0.35rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  width: fit-content;
}

.work-link:hover {
  color: #7eb0ff;
}

@media (max-width: 640px) {
  .work-item {
    grid-template-columns: 1fr;
  }

  .work-media {
    min-height: 160px;
  }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: var(--space-md);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  background:
    linear-gradient(160deg, rgba(61, 139, 253, 0.08), transparent 55%),
    var(--bg-elevated);
}

.gallery-empty .fi {
  width: 28px;
  height: 28px;
  opacity: 0.75;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0.85rem;
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  background: linear-gradient(transparent, rgba(6, 7, 8, 0.85));
}

@media (max-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Contact */
.contact-canvas {
  padding: var(--space-md) 0 var(--space-lg);
}

.contact-title {
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 14ch;
  margin-bottom: var(--space-sm);
}

.contact-desc {
  color: var(--text-secondary);
  font-size: var(--fs-base);
  line-height: 1.7;
  max-width: 36rem;
  margin-bottom: var(--space-md);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: var(--text-primary);
}

.footer-dot {
  opacity: 0.6;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: var(--space-md);
  background: rgba(6, 7, 8, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: min(78vh, 900px);
  max-width: min(92vw, 1100px);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.lightbox-caption {
  margin-top: 0.85rem;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1rem;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}
