:root {
  --bg-primary: #07090e;
  --bg-secondary: #0f131d;
  --bg-card: #151a28;
  --bg-card-hover: #1c2336;
  --gold-light: #ffe082;
  --gold: #f5b942;
  --gold-dark: #c68a12;
  --red: #e52222;
  --blue: #1a73e8;
  --green: #34a853;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(245, 185, 66, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(245, 185, 66, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--gold);
  font-weight: 600;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 2px;
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #07090e;
  box-shadow: 0 8px 24px rgba(245, 185, 66, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 185, 66, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(245, 185, 66, 0.12);
  border-color: var(--gold);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.45);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(26, 115, 232, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 82% 25%, rgba(229, 34, 34, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(52, 168, 83, 0.12) 0%, transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.12);
  border: 1px solid var(--border-color);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.7rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #ff7b54 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.12rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-card {
  position: relative;
  background: linear-gradient(160deg, #161c2e 0%, #0b0e17 100%);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(245, 185, 66, 0.12);
  max-width: 420px;
  width: 100%;
}

.showcase-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 24px;
  margin-bottom: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

.rgb-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--green), var(--red));
  border-radius: 999px;
  margin: 18px 0;
}

/* Section Generic */
.section {
  padding: 84px 0;
}

.section-alt {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Grid Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-color);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: rgba(245, 185, 66, 0.12);
  color: var(--gold);
  border: 1px solid var(--border-color);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Legal / Policy Page Layout */
.page-hero {
  padding: 64px 0 44px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 185, 66, 0.14) 0%, transparent 60%),
    var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.meta-pill {
  font-size: 0.83rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.legal-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 60px 24px;
}

.policy-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px;
  margin-bottom: 26px;
}

.policy-block.highlight {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(245, 185, 66, 0.07) 0%, var(--bg-card) 100%);
}

.policy-block h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.policy-block h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 18px 0 8px;
}

.policy-block p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.policy-block p:last-child {
  margin-bottom: 0;
}

.policy-list {
  list-style: none;
  margin: 12px 0;
}

.policy-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.policy-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: bold;
}

.policy-list li strong {
  color: var(--text-primary);
}

.sdk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.sdk-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
  border-radius: var(--radius-md);
}

.sdk-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.sdk-item span {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.93rem;
}

.data-table th {
  background: rgba(245, 185, 66, 0.1);
  color: var(--gold-light);
  font-weight: 700;
}

.data-table td {
  color: var(--text-secondary);
}

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-safe {
  background: rgba(52, 168, 83, 0.18);
  color: #6ee7b7;
}

.status-ephemeral {
  background: rgba(26, 115, 232, 0.2);
  color: #93c5fd;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.15);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.step-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #07090e;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Footer */
.footer {
  background: #04060a;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer h4 {
  color: var(--gold-light);
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

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

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 16px 24px;
    gap: 14px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

