:root {
  --bg-0: #080808;
  --bg-1: #101010;
  --bg-2: #181818;
  --panel: rgba(20, 20, 20, 0.84);
  --text: #f4e7c4;
  --muted: #c6b38a;
  --gold: #e0b34a;
  --gold-2: #b8841a;
  --border: rgba(224, 179, 74, 0.45);
  --glow: 0 0 12px rgba(224, 179, 74, 0.36), 0 0 24px rgba(224, 179, 74, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.5;
  background:
    radial-gradient(circle at 14% 14%, rgba(224, 179, 74, 0.12), transparent 40%),
    radial-gradient(circle at 84% 10%, rgba(184, 132, 26, 0.14), transparent 36%),
    radial-gradient(circle at 48% 94%, rgba(224, 179, 74, 0.08), transparent 38%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 48%, var(--bg-2) 100%);
}

.page-wrap {
  min-height: 100vh;
  width: min(1080px, 93vw);
  margin: 0 auto;
  padding: 2.2rem 0 2.8rem;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 1.35rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  animation: rise-in 620ms ease-out both;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 11px;
  border: 1px solid var(--border);
  box-shadow: var(--glow);
  object-fit: cover;
}

.brand h1 {
  margin: 0;
  letter-spacing: 0.02em;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 700;
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.42rem;
  border: 1px solid rgba(224, 179, 74, 0.24);
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.72);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  animation: rise-in 700ms ease-out both;
}

.tab {
  text-decoration: none;
  color: var(--text);
  padding: 0.56rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.tab:hover,
.tab:focus-visible {
  border-color: var(--border);
  box-shadow: var(--glow);
  transform: translateY(-1px);
  outline: none;
}

.tab.active {
  background: linear-gradient(180deg, rgba(224, 179, 74, 0.2), rgba(224, 179, 74, 0.08));
  border-color: var(--border);
  box-shadow: var(--glow);
}

.card {
  background: var(--panel);
  border: 1px solid rgba(224, 179, 74, 0.2);
  border-radius: 22px;
  padding: clamp(1.2rem, 2.2vw, 2rem);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
  animation: rise-in 840ms ease-out both;
}

.hero-title {
  margin: 0 0 0.52rem;
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}

.feature-bullets {
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
  color: var(--text);
}

.feature-bullets li { margin: 0.3rem 0; }
.feature-bullets strong { color: #ffe4a5; }

.hero-sub a {
  color: #ffe4a5;
  text-decoration-color: rgba(255, 228, 165, 0.6);
}

.hero-sub a:hover,
.hero-sub a:focus-visible {
  text-decoration-color: #ffe4a5;
}

form {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
  max-width: 680px;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(224, 179, 74, 0.3);
  border-radius: 12px;
  background: rgba(12, 12, 12, 0.75);
  color: var(--text);
  font: inherit;
  padding: 0.68rem 0.8rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: var(--glow);
  outline: none;
}

button {
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(224, 179, 74, 0.2), rgba(224, 179, 74, 0.08));
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 0.56rem 1rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

button:hover,
button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--glow);
  outline: none;
}

.demo-scroll {
  margin-top: 1rem;
  max-height: 72vh;
  overflow-y: auto;
  padding-right: 0.3rem;
  display: grid;
  gap: 0.85rem;
}

.demo-scroll::-webkit-scrollbar { width: 10px; }
.demo-scroll::-webkit-scrollbar-thumb {
  background: rgba(224, 179, 74, 0.4);
  border-radius: 999px;
}

.demo-card {
  margin: 0;
  border: 1px solid rgba(224, 179, 74, 0.24);
  border-radius: 14px;
  background: rgba(15, 15, 15, 0.72);
  overflow: hidden;
}

.demo-card img,
.demo-card video {
  width: 100%;
  display: block;
  max-height: 440px;
  object-fit: cover;
  background: #050505;
}

.demo-card figcaption {
  padding: 0.5rem 0.66rem 0.66rem;
  color: var(--muted);
  font-size: 0.88rem;
}

footer {
  color: var(--muted);
  font-size: 0.87rem;
  text-align: center;
  padding-top: 0.5rem;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .tabs { border-radius: 16px; }
  .tab { flex: 1 1 auto; text-align: center; }
  .demo-card img,
  .demo-card video { max-height: 300px; }
}
