/* ============================================
   S256 - Digital Platinum Stylesheet
   Modern, Minimalist Design
   ============================================ */

/* CSS Variables */
:root {
  --primary: #a300ff;
  --secondary: #ffd700;
  --accent: #00d4ff;
  --dark: #0b0f14;
  --light: #f5f7fb;
  --text: #1f2430;
  --text-light: #6b7280;
  --white: #ffffff;
  --bg-main: #f5f7fb;
  --bg-card: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --gradient: linear-gradient(135deg, #a300ff 0%, #00d4ff 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --dark: #f5f7fb;
  --light: #1a1f2e;
  --text: #e9eef9;
  --text-light: #9ca3af;
  --white: #0b0f14;
  --bg-main: #0b0f14;
  --bg-card: #1a1f2e;
  --nav-bg: rgba(10, 12, 16, 0.95);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Roboto", -apple-system, BlinkMacSystemFont,
    sans-serif;
  background: var(--bg-main);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 1rem 0;
  transition: background-color 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 0.9rem;
  color: var(--text-light);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-explorer {
  background: var(--gradient);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-explorer:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.3rem;
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.theme-toggle:active {
  transform: rotate(20deg) scale(0.95);
}

.theme-icon {
  transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(163, 0, 255, 0.1) 0%,
    rgba(0, 212, 255, 0.1) 100%
  );
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-light);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.hero-stats {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s ease 0.8s backwards;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.hero-stats:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 0 30px rgba(192, 192, 192, 0.5),
    0 0 60px rgba(192, 192, 192, 0.2);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.stat {
  text-align: center;
  padding: 0;
  transition: transform 0.2s;
  position: relative;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--text-light),
    transparent
  );
  opacity: 0.2;
}

.stat:hover {
  transform: scale(1.05);
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  display: inline-block;
  white-space: nowrap;
  min-width: fit-content;
  overflow: visible;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  display: block;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stat:nth-child(2n)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat::after {
    display: none;
  }
}

/* Sections */
section {
  padding: 80px 20px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
}

/* Philosophy Section */
.philosophy {
  background: var(--bg-main);
  transition: background-color 0.3s ease;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.philosophy-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.philosophy-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 25px rgba(192, 192, 192, 0.4),
    0 0 50px rgba(192, 192, 192, 0.15);
}

.philosophy-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.philosophy-card h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.philosophy-card p {
  color: var(--text-light);
}

/* Features Section */
.features {
  background: var(--bg-main);
  transition: background-color 0.3s ease;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 25px rgba(192, 192, 192, 0.4),
    0 0 50px rgba(192, 192, 192, 0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.feature-comparison {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  margin-top: auto;
}

.feature-comparison span {
  font-weight: 600;
}

.feature-comparison .btc {
  color: var(--text-light);
}

.feature-comparison .s256 {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Specifications Section */
.specifications {
  background: var(--bg-main);
  transition: background-color 0.3s ease;
}

.specs-table {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: background-color 0.3s ease;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--gradient);
  color: var(--white);
}

th {
  padding: 1.5rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--light);
}

tbody tr:hover {
  background: var(--light);
}

.highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Downloads Section */
.downloads {
  background: var(--bg-main);
  transition: background-color 0.3s ease;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.download-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 25px rgba(192, 192, 192, 0.4),
    0 0 50px rgba(192, 192, 192, 0.15);
}

.download-card.featured {
  border: 3px solid var(--primary);
}

.download-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.download-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.file-size {
  color: var(--text-light);
  margin: 1rem 0;
}

.btn-download {
  background: var(--gradient);
  color: var(--white);
  margin: 1.5rem 0;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.download-includes {
  text-align: left;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light);
}

.download-includes p {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.download-includes ul {
  list-style: none;
  color: var(--text-light);
}

.download-includes li:before {
  content: "✓ ";
  color: var(--primary);
  font-weight: bold;
}

/* Getting Started Section */
.getting-started {
  background: var(--bg-main);
  transition: background-color 0.3s ease;
}

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

.step {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-card);
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: var(--gradient);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.step h3 {
  margin-bottom: 1rem;
}

.step p {
  color: var(--text-light);
}

/* Footer */
.footer {
  background: #0d0325;
  color: #ffffff;
  padding: 60px 20px 30px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .footer {
  background: #0d0325;
  color: #e9eef9;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--secondary);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .features-grid,
  .philosophy-grid,
  .download-cards,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 0.9rem;
  }

  th,
  td {
    padding: 0.8rem;
  }
}
