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

:root {
  --bg: #1a1c2e;
  --bg2: #13152a;
  --surface: #1e2140;
  --surface2: #252848;
  --accent: #7c6ff7;
  --accent2: #4a90e2;
  --accent-hover: #6a5de0;
  --text: #dde1f5;
  --muted: #8890b5;
  --border: #2e3260;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body {
  background: var(--bg2);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

nav, main, footer {
  position: relative;
  z-index: 1;
}

/* NAV */
nav {
  background: var(--bg2);
  border-bottom: 2px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

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

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.4rem 1.1rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.15s !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* HERO */
.hero {
  text-align: center;
  padding: 6rem 2rem 5rem;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  line-height: 1.12;
  color: var(--text);
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2.2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn-group {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 111, 247, 0.4);
}

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

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 2rem auto 5rem;
  padding: 0 2rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.feature-card:nth-child(even) {
  border-top-color: var(--accent2);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.feature-card-inner {
  position: relative;
}

.feature-glow,
.feature-glow.glow-blue {
  display: none;
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  display: block;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* COMMANDS PAGE */
.page-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.page-header p {
  color: var(--muted);
}

.commands-container {
  max-width: 860px;
  margin: 2rem auto 4rem;
  padding: 0 2rem;
}

.command-group {
  margin-bottom: 2.5rem;
}

.command-group h2 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.command-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.command-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

.command-item:hover {
  background: var(--surface2);
}

.command-item:last-child {
  border-bottom: none;
}

.command-name {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(124, 111, 247, 0.12);
  border: 1px solid rgba(124, 111, 247, 0.25);
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.command-desc {
  font-size: 0.875rem;
  color: var(--muted);
  padding-top: 0.15rem;
}

/* LEGAL PAGES */
.legal-container {
  max-width: 720px;
  margin: 3rem auto 5rem;
  padding: 0 2rem;
}

.legal-container h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.legal-date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.legal-container h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  color: var(--accent);
}

.legal-container p,
.legal-container li {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.legal-container ul {
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
}

.legal-container a {
  color: var(--accent);
}

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 2px solid var(--border);
  padding: 2.5rem 2rem;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.1rem;
}

.footer-logo span {
  color: var(--accent);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.75rem;
  color: #4a5080;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 2px solid var(--border);
    padding: 0.5rem 0;
  }

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

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 2rem;
  }

  .nav-cta {
    border-radius: 0;
    padding: 0.85rem 2rem;
    background: transparent !important;
    color: var(--accent) !important;
    box-shadow: none;
  }
}
