:root {
  --bg: #050816;
  --bg-soft: #0f172a;
  --accent: #facc15;
  --accent-soft: rgba(250, 204, 21, 0.12);
  --accent-strong: #f97316;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --card: #020617;
  --border-soft: rgba(148, 163, 184, 0.3);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
  --radius-xl: 18px;
  --radius-2xl: 26px;
  --transition-fast: 180ms ease-out;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 45%, #020617 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* WRAPPER */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 18px 40px;
}

/* TOP NAVBAR */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.7);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #facc15, #f97316);
  color: #0f172a;
  font-size: 0.9rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 14px;
  font-size: 0.86rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

nav a:hover {
  background: rgba(30, 64, 175, 0.7);
  color: #f9fafb;
  transform: translateY(-1px);
}

nav a.active {
  background: radial-gradient(circle at top left, #facc15, #f97316);
  color: #111827;
  font-weight: 600;
}

/* HEADER / HERO */
header {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 32px;
  padding: 20px 20px 22px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.9)
    ),
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.3), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.24), transparent 55%);
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(250, 204, 21, 0.2), transparent 55%);
  opacity: 0.45;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(250, 204, 21, 0.6);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 18px rgba(248, 250, 252, 0.7);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.9fr);
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

h1 span,
.hero-title span {
  background: linear-gradient(120deg, #facc15, #f97316, #38bdf8);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 16px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: radial-gradient(circle at top left, #facc15, #f97316);
  color: #0f172a;
  box-shadow: 0 12px 30px rgba(250, 204, 21, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px) translateZ(0);
  box-shadow: 0 16px 40px rgba(250, 204, 21, 0.32);
  background: radial-gradient(circle at top left, #fde047, #fb923c);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.btn-ghost:hover {
  transform: translateY(-1px) translateZ(0);
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(248, 250, 252, 0.7);
}

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

/* Hero card showcase */
.hero-card-wrapper {
  display: flex;
  justify-content: center;
}

.card-stack {
  position: relative;
  width: 240px;
  height: 320px;
  transform-style: preserve-3d;
  perspective: 900px;
}

.card-layer {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top, #facc15 0, #f97316 20%, #0f172a 55%, #020617 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  transform-origin: center;
  overflow: hidden;
  transition: transform 220ms ease-out, box-shadow 220ms ease-out;
}

.card-layer.back {
  transform: rotateZ(-9deg) translate(12px, 18px) scale(0.96);
  opacity: 0.85;
  filter: blur(0.2px);
}

.card-layer.front {
  transform: rotateZ(-2deg) translate(-6px, -4px);
}

.card-stack:hover .card-layer.front {
  transform: rotateZ(0deg) translate(-2px, -8px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.96);
}

.card-stack:hover .card-layer.back {
  transform: rotateZ(-12deg) translate(16px, 24px) scale(0.96);
}

.pk-card-inner {
  position: absolute;
  inset: 9px;
  border-radius: 18px;
  padding: 12px 10px;
  background: radial-gradient(circle at top, #fef9c3 0, #fee2e2 17%, #e0f2fe 42%, #eff6ff 80%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pk-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 600;
}

.pk-card-name {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pk-card-hp {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pk-card-hp span {
  color: #b91c1c;
}

.pk-type-pill {
  font-size: 0.66rem;
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #022c22;
  font-weight: 600;
  box-shadow: 0 7px 15px rgba(21, 128, 61, 0.4);
}

.pk-card-art {
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 0, #bef264, #4ade80 35%, #22c55e 60%, #15803d 100%);
  position: relative;
}

.pk-card-art::before {
  content: "★";
  position: absolute;
  font-size: 2.5rem;
  color: rgba(248, 250, 252, 0.35);
  right: 12%;
  top: 14%;
}

.pk-card-art::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.85);
  transform: rotate(-18deg);
  opacity: 0.7;
}

.pk-card-footer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 3px;
  border-top: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.66rem;
}

.pk-move-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.pk-move-name {
  font-weight: 600;
}

.pk-move-desc {
  font-size: 0.63rem;
  color: #4b5563;
}

.pk-move-cost {
  display: flex;
  gap: 4px;
  align-items: center;
}

.pk-cost-circle {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at 30% 0, #e5e7eb, #9ca3af);
}

.pk-move-damage {
  font-weight: 700;
}

.pk-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: #6b7280;
  margin-top: 1px;
}

/* CONTENT SECTIONS */

main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

section {
  background: radial-gradient(circle at top left, rgba(55, 65, 81, 0.2), transparent 60%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.9), #020617 75%);
  border-radius: var(--radius-xl);
  padding: 18px 18px 20px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.75);
  margin-bottom: 4px;
}

section h2 {
  font-size: 1.08rem;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

p {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.info-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  font-size: 0.86rem;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(250, 204, 21, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.info-card:hover::before {
  opacity: 1;
}

.info-card h3 {
  font-size: 0.88rem;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
}

.info-card p {
  font-size: 0.85rem;
  color: #d1d5db;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.pill {
  font-size: 0.76rem;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  color: var(--text-muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.step {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 14px;
  padding: 10px 11px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  font-size: 0.84rem;
  position: relative;
}

.step-number {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  background: radial-gradient(circle at top, #facc15, #f97316);
  color: #111827;
  margin-bottom: 6px;
  box-shadow: 0 8px 18px rgba(251, 191, 36, 0.4);
}

.step strong {
  display: block;
  margin-bottom: 2px;
}

/* Deck section */
.deck-layout {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr;
  gap: 14px;
  margin-top: 10px;
}

.deck-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin-top: 6px;
}

.deck-table th,
.deck-table td {
  padding: 4px 6px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
  text-align: left;
}

.deck-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.deck-table tr:last-child td {
  border-bottom: none;
}

.deck-highlight {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 14px;
  padding: 9px 11px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  font-size: 0.84rem;
}

/* CTA section */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  align-items: center;
  justify-content: space-between;
}

.cta-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 380px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* BLOG LIST */
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.blog-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.blog-card a {
  color: var(--accent);
  font-size: 0.8rem;
  text-decoration: none;
}

.blog-card a:hover {
  text-decoration: underline;
}

/* CONTACT FORM */
.form-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr;
  gap: 18px;
  margin-top: 10px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 2px;
}

input,
textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  font-size: 0.88rem;
}

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

/* FOOTER */
footer {
  margin-top: 20px;
  padding: 12px 6px 4px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

/* Page title for other pages */
.hero-title {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  margin-bottom: 6px;
}

/* RESPONSIVE */
@media (max-width: 840px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card-wrapper {
    order: -1;
  }

  header {
    padding: 18px 16px 20px;
  }

  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .deck-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .page-wrapper {
    padding-inline: 14px;
  }

  header {
    border-radius: 16px;
  }

  section {
    border-radius: 14px;
    padding-inline: 14px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    justify-content: center;
  }

  .topbar {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
}
