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

:root {
  --orange: #f6821f;
  --dark: #1a1a2e;
  --mid: #16213e;
  --light: #e0e0e0;
  --white: #ffffff;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--light);
  line-height: 1.6;
}

/* ── Nav ─────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(246, 130, 31, 0.2);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--orange);
}

/* ── Hero ────────────────────────────── */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  padding: 4rem 2rem;
  background: radial-gradient(ellipse at 60% 40%, rgba(246, 130, 31, 0.12) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 80%, rgba(246, 130, 31, 0.06) 0%, transparent 50%);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--white) 40%, var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.15rem;
  color: #aaa;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(246, 130, 31, 0.35);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(246, 130, 31, 0.5);
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(246, 130, 31, 0.1);
  border: 1px solid rgba(246, 130, 31, 0.3);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  color: var(--orange);
  font-weight: 500;
}

.badge-icon {
  font-size: 1.1rem;
}

/* ── Features ────────────────────────── */
.features {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--white);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--mid);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 130, 31, 0.4);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.6;
}

/* ── Contact ─────────────────────────── */
.contact {
  padding: 5rem 2rem;
  text-align: center;
  background: var(--mid);
}

.contact h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.contact > p {
  color: #888;
  margin-bottom: 1.5rem;
}

.code-block {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #0d0d1a;
  border: 1px solid rgba(246, 130, 31, 0.25);
  border-radius: var(--radius);
  padding: 0.9rem 1.4rem;
  max-width: 100%;
  overflow-x: auto;
}

.code-block code {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.88rem;
  color: #e2a060;
  white-space: nowrap;
}

.copy-btn {
  background: rgba(246, 130, 31, 0.15);
  border: 1px solid rgba(246, 130, 31, 0.4);
  color: var(--orange);
  border-radius: 6px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(246, 130, 31, 0.3);
}

.copy-msg {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--orange);
  min-height: 1.2em;
}

/* ── Footer ──────────────────────────── */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: #555;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a {
  color: var(--orange);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ── Responsive ──────────────────────── */
@media (max-width: 600px) {
  nav ul {
    gap: 1rem;
  }

  .code-block {
    flex-direction: column;
    align-items: flex-start;
  }
}
