/* =========================================
   Design System & Global Variables
   Black Gold Theme + Fine Line Borders
   ========================================= */
:root {
  --bg-body: #070707;
  --bg-card: #111111;
  --bg-card-hover: #181818;
  --gold-primary: #d4af37;
  --gold-light: #f9e39e;
  --gold-dark: #a38320;
  --text-main: #e8e8e8;
  --text-muted: #888888;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.3);
  
  --font-serif: "Playfair Display", "Noto Serif SC", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  
  --container-max: 1200px;
  --header-height: 70px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, border-color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #fff;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: #cccccc;
}

.text-gold {
  color: var(--gold-primary);
}

/* =========================================
   Layout Utilities
   ========================================= */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.grid-auto {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* =========================================
   Header & Navigation
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(7, 7, 7, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #fff;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-svg-container {
  width: 100%;
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #000;
  border: 1px solid var(--gold-primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: #fff;
}

.btn-outline:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* =========================================
   Value & Feature Cards
   ========================================= */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card-value {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-value:hover {
  border-color: var(--border-gold);
  transform: translateY(-5px);
}

.icon-box {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--gold-primary);
}

.card-feature {
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--gold-primary);
  padding: 1.5rem;
  transition: background 0.3s ease;
}

.card-feature:hover {
  background: rgba(255, 255, 255, 0.04);
}

.feature-icon {
  width: 32px;
  height: 32px;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

/* =========================================
   Interface Simulation
   ========================================= */
.interface-mockup {
  background: #161616;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  margin: 0 auto;
}

.mockup-header {
  background: #202c33;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2a3942;
}

.mockup-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #e9edef;
}

.mockup-body {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10h1v1h-1zM20 20h1v1h-1zM30 30h1v1h-1zM40 40h1v1h-1z' fill='%23222c31' fill-opacity='0.4'/%3E%3C/svg%3E");
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.chat-bubble {
  max-width: 70%;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.bubble-right {
  background: #005c4b;
  color: #e9edef;
  align-self: flex-end;
}

.bubble-left {
  background: #202c33;
  color: #e9edef;
  align-self: flex-start;
}

.encryption-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #8696a0;
  margin-top: 1rem;
}

/* =========================================
   Scenes & Steps
   ========================================= */
.scene-list {
  counter-reset: scene-counter;
  list-style: none;
}

.scene-item {
  counter-increment: scene-counter;
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.scene-item::before {
  content: counter(scene-counter);
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: rgba(212, 175, 55, 0.1);
  font-weight: bold;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-num {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* =========================================
   Tables
   ========================================= */
.platform-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}

.platform-table th,
.platform-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.platform-table th {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.02);
}

.platform-table tr:last-child td {
  border-bottom: none;
}

.platform-table td:first-child {
  font-weight: 600;
  color: #fff;
}

/* =========================================
   News & Links
   ========================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: border-color 0.3s ease;
}

.news-card:hover {
  border-color: var(--border-gold);
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.related-links {
  list-style: none;
  columns: 2;
  column-gap: 3rem;
}

.related-links li {
  margin-bottom: 1rem;
  break-inside: avoid;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.related-links a:hover {
  color: var(--gold-primary);
}

/* =========================================
   FAQ Details
   ========================================= */
.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

.faq-list details[open] {
  border-color: var(--border-gold);
}

.faq-list summary {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--gold-primary);
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: #030303;
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: #fff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: #555;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

/* =========================================
   SVG Animations
   ========================================= */
.svg-anim {
  transform-box: fill-box;
  transform-origin: center;
}

.spin-slow {
  animation: spin 24s linear infinite;
}

.spin-reverse-slow {
  animation: spin 30s linear infinite reverse;
}

.interlock-float {
  animation: interlock 8s ease-in-out infinite alternate;
}

.draw-line {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: drawDash 6s ease-in-out infinite alternate;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes interlock {
  0% { transform: translateX(-15px) scale(0.98); opacity: 0.8; }
  100% { transform: translateX(15px) scale(1.02); opacity: 1; }
}

@keyframes drawDash {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .spin-slow,
  .spin-reverse-slow,
  .interlock-float,
  .draw-line {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .related-links {
    columns: 1;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-light);
    padding: 2rem;
  }
  
  .nav.active {
    display: block;
  }
  
  .nav ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 400px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 0.25rem;
  }
  .platform-table th,
  .platform-table td {
    padding: 1rem;
    word-break: break-word;
  }
  .grid-auto, .value-grid, .news-grid, .footer-grid {
    gap: 1.5rem;
  }
  .mockup-body {
    padding: 1.5rem;
  }
}
