/* UDA Pulse - Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-dark: #0d0d14;
  --bg-card: rgba(255, 255, 255, 0.05);
  --border-card: rgba(255, 255, 255, 0.1);
  --indigo: #6366F1;
  --indigo-dark: #4F46E5;
  --indigo-light: #A5B4FC;
  --teal: #14B8A6;
  --teal-light: #5EEAD4;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.4);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #99f6e4;
}

/* Layout */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d0d14 0%, #1a1a3e 40%, #6366F1 100%);
  opacity: 0.6;
}

.hero-content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  text-align: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, #A5B4FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  color: var(--teal-light);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.hero-highlight {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-highlight strong {
  color: #fff;
}

.badge-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal-light);
  border: 1px solid rgba(20, 184, 166, 0.3);
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: #fff;
  color: #000;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* Sections */
section {
  padding: 64px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 40px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 32px;
}

.card:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.feature-card .icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* Steps */
.steps-list {
  list-style: none;
  padding: 0;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--indigo);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* Comparison Table */
.comparison-wrapper {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th {
  text-align: left;
  padding: 16px 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--border-card);
}

.comparison-table th.highlight {
  color: var(--indigo-light);
}

.comparison-table td {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.comparison-table td:first-child {
  font-weight: 500;
  color: #fff;
}

.comparison-table td:nth-child(2) {
  color: var(--indigo-light);
}

.comparison-table td:nth-child(n+3) {
  color: rgba(255, 255, 255, 0.6);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
}

details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  transition: background 0.2s;
}

details summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

details summary::after {
  content: '+';
  font-size: 20px;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.2s;
  margin-left: 16px;
  flex-shrink: 0;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details summary::-webkit-details-marker {
  display: none;
}

details .faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 15px;
}

/* Built by section */
.built-by {
  text-align: center;
  padding: 64px 24px;
}

.built-by-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14B8A6, #0f766e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.built-by h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.built-by p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-card);
  padding: 32px 24px;
}

.site-footer .inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.site-footer nav a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Legal pages */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-page h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  color: #d4af37;
}

.legal-page .subtitle {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.legal-page .last-updated {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  margin-bottom: 48px;
}

.legal-page section {
  padding: 0;
  margin-bottom: 40px;
}

.legal-page section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.legal-page p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-page ul, .legal-page ol {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  padding-left: 24px;
  margin: 12px 0;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page strong {
  color: #fff;
}

.legal-page a {
  color: #d4af37;
  text-decoration: underline;
}

.legal-page a:hover {
  color: #e5c348;
}

/* Glossary */
.glossary-list {
  margin: 0;
}

.glossary-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glossary-item dt {
  font-weight: 700;
  color: var(--indigo-light);
}

.glossary-item dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-size: 15px;
}

/* Guide page styles */
.guide-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 48px;
  background: linear-gradient(160deg, #0F0F1A 0%, #1a1a3e 35%, #2d2b6b 60%, #6366F1 100%);
}

.guide-toc {
  margin-top: 48px;
}

.guide-toc h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.guide-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 2;
  column-gap: 24px;
  font-size: 14px;
}

.guide-toc li {
  margin-bottom: 6px;
}

.guide-toc a {
  color: var(--indigo-light);
}

/* Band table for guide */
.band-table-wrapper {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin: 20px 0;
}

.band-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.band-table thead tr {
  background: rgba(99, 102, 241, 0.12);
}

.band-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
}

.band-table td {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.band-table td:nth-child(2) {
  color: var(--indigo-light);
}

.band-table td:nth-child(3) {
  color: rgba(255, 255, 255, 0.68);
}

/* Download CTA box */
.cta-box {
  padding: 32px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  text-align: center;
  margin-top: 56px;
}

.cta-box h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-box p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 12px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
  }

  .glossary-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .guide-toc ul {
    column-count: 1;
  }

  .site-footer .inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 14px 24px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
}
