:root {
  --bg: #08111b;
  --bg-2: #0d1724;
  --card: rgba(18, 29, 45, 0.96);
  --card-2: rgba(14, 24, 37, 0.98);
  --surface: #152132;
  --line: #2a3950;
  --line-soft: rgba(255, 255, 255, 0.08);

  --text: #f3f7ff;
  --text-soft: #dfe8f7;
  --muted: #b3c3dd;

  --accent: #ff7a00;
  --accent-2: #ffae57;
  --green: #2ce06f;
  --blue: #7ea6ff;

  --accent-a12: rgba(255, 122, 0, 0.14);
  --green-a12: rgba(44, 224, 111, 0.14);
  --blue-a12: rgba(126, 166, 255, 0.14);

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;

  --shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 28px 54px rgba(0, 0, 0, 0.34);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(45, 103, 190, 0.08), transparent 18%),
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.12), transparent 20%),
    linear-gradient(180deg, #07111b 0%, #0b1421 48%, #08111b 100%);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(52px, 5.5vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  color: var(--text);
  text-shadow: 0 0 22px rgba(255, 122, 0, 0.08);
}

h2 {
  margin: 0 0 6px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.14rem;
  line-height: 1.15;
  color: #ffffff;
}

.hero,
.wrap {
  width: min(1440px, calc(100% - 72px));
  margin: 0 auto;
}

/* HERO */

.hero {
  padding: 34px 0 28px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -100px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.16), transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
  max-width: 980px;
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero-text {
  max-width: 1040px;
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  line-height: 1.5;
  font-weight: 400;
}

.hero-sub {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.96;
}

.hero-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.11);
  border: 1px solid rgba(255, 122, 0, 0.22);
  color: #ffe1c3;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  align-items: center;
  max-width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

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

.button.primary {
  color: #1f1203;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 14px 28px rgba(255, 122, 0, 0.24);
}

.button.primary:hover {
  box-shadow: 0 18px 34px rgba(255, 122, 0, 0.34);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.button.secondary:hover {
  border-color: rgba(255, 122, 0, 0.36);
  box-shadow: 0 0 18px rgba(255, 122, 0, 0.10);
}

.button.full {
  width: 100%;
}

.button.small {
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.92rem;
}

/* LAYOUT */

.wrap {
  padding-bottom: 52px;
}

.section-card,
.card {
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.section-card {
  padding: 30px;
  margin-bottom: 30px;
}

.card {
  padding: 20px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-subtext {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 800;
}

.badge.orange {
  background: var(--accent-a12);
  color: var(--accent);
}

.badge.green {
  background: var(--green-a12);
  color: var(--green);
}

.badge.blue {
  background: var(--blue-a12);
  color: var(--blue);
}

/* SYSTEM */

.system-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.log-line {
  min-height: 220px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.07), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  line-height: 1.58;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.log-line:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 0, 0.22);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.20);
}

.log-line strong {
  display: block;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1.08rem;
}

/* JOIN */

.join-section {
  margin-top: 2px;
}

.join-text {
  max-width: 820px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.join-card.small {
  min-height: 215px;
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.join-card.small:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 0, 0.24);
  box-shadow: var(--shadow-lg);
}

.join-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: rgba(255, 122, 0, 0.14);
  font-size: 1.3rem;
}

.join-card.small p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.join-card.small .button {
  margin-top: auto;
}

.join-card.highlight {
  border: 1px solid rgba(255, 122, 0, 0.42);
  box-shadow: 0 0 22px rgba(255, 122, 0, 0.14);
}

.join-card.highlight .join-icon {
  background: rgba(255, 122, 0, 0.2);
}

.join-card.highlight .button {
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.28);
}

/* RESPONSIVE */

@media (max-width: 1240px) {
  .hero,
  .wrap {
    width: min(100%, calc(100% - 40px));
  }

  .system-box,
  .join-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(44px, 8vw, 72px);
  }

  .hero-text {
    font-size: clamp(1.15rem, 4.6vw, 1.6rem);
  }
}

@media (max-width: 640px) {
  .hero,
  .wrap {
    width: min(100%, calc(100% - 24px));
  }

  .hero {
    padding: 24px 0 20px;
  }

  .section-card,
  .card {
    padding: 18px;
  }

  .button,
  .button.small {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-tags {
    gap: 10px;
  }

  .hero-tags span,
  .badge {
    font-size: 0.82rem;
  }

  .system-box,
  .join-grid {
    grid-template-columns: 1fr;
  }

  .log-line,
  .join-card.small {
    min-height: auto;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
