:root {
  --bg: #050816;
  --bg-alt: #070b1f;
  --card: #0b1024;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --danger: #f97373;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --transition-fast: 0.18s ease-out;
  --max-width: 1100px;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%);
  color: var(--text);
}

/* LAYOUT */

.te-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.te-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.85));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.te-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* LOGO + NAV */

.te-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.te-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #38bdf8, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: white;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.55);
}

.te-logo-text {
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.te-nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.te-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.te-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #4f46e5);
  transition: width var(--transition-fast);
}

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

.te-nav a:hover::after {
  width: 100%;
}

/* BUTTONS */

.te-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: #0b1120;
  background: linear-gradient(135deg, #38bdf8, #4f46e5);
  box-shadow: 0 14px 35px rgba(56, 189, 248, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.te-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(56, 189, 248, 0.55);
}

.te-btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text);
  box-shadow: none;
}

.te-btn-outline:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.7);
}

.te-btn-ghost {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--text);
  box-shadow: none;
}

.te-btn-ghost:hover {
  border-color: var(--accent);
}

.te-btn-small {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.te-btn-large {
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
}

.te-btn-full {
  width: 100%;
}

/* HERO */

.te-hero {
  padding: 3rem 0 3.5rem;
}

.te-hero-inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 850px) {
  .te-hero-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
  }
}

.te-hero-text h1 {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  margin-bottom: 0.8rem;
}

.te-hero-subtitle {
  color: var(--muted);
  max-width: 34rem;
  line-height: 1.5;
}

.te-hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* IP BOX */

.te-ip-box {
  margin-top: 1.4rem;
  padding: 1rem 1rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
}

.te-ip-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.te-ip-row {
  margin-top: 0.45rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.te-ip-value {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.te-ip-status {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* HERO CARD */

.te-hero-card {
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top, rgba(15, 118, 110, 0.25), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: var(--shadow-soft);
}

.te-hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.te-hero-count {
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0.2rem 0 0.4rem;
}

.te-hero-hint {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* PLAYER LIST */

.te-player-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  max-height: 200px;
  overflow: auto;
}

.te-player-list li {
  padding: 0.3rem 0;
  font-size: 0.85rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
}

.te-player-list li:last-child {
  border-bottom: none;
}

/* SECTIONS */

.te-section {
  padding: 2.5rem 0;
}

.te-section-alt {
  background: rgba(15, 23, 42, 0.9);
}

.te-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.3rem;
}

/* GRID & CARDS */

.te-grid {
  display: grid;
  gap: 1.3rem;
}

@media (min-width: 800px) {
  .te-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .te-grid .te-card:nth-child(1) {
    grid-column: span 1;
  }
}

.te-card {
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.1rem 1rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.8);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.te-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.9);
}

.te-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.te-card p {
  margin: 0.1rem 0 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* COMMUNITY */

.te-community {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 700px) {
  .te-community {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* FOOTER */

.te-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1rem 0;
  background: rgba(2, 6, 23, 0.97);
}

.te-footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

/* RESPONSIVE TWEAKS */

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

  .te-header-inner {
    justify-content: space-between;
    gap: 0.8rem;
  }
}
