/* Ledger Hardware Wallet Comparison - Design System */
:root {
  --color1: #110b2f;
  --color2: #392b79;
  --color3: #0effc6;
  --color4: #3dff96;
  --color5: #eaff77;
  --bg-dark: #0a0618;
  --bg-card: rgba(57, 43, 121, 0.15);
  --text-light: #e8e6f0;
  --text-muted: #a09bb8;
  --border-subtle: rgba(14, 255, 198, 0.2);
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(17, 11, 47, 0.4);
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light);
  background: var(--bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); color: var(--color5); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); color: var(--color3); margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-subtle); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.35rem); color: var(--color4); margin: 1.5rem 0 0.75rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--color3);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color5);
}

/* Layout */
.site-header {
  background: linear-gradient(180deg, rgba(17, 11, 47, 0.98) 0%, rgba(17, 11, 47, 0.92) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color5);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.nav-main a {
  color: var(--text-light);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.nav-main a:hover {
  color: var(--color3);
  background: var(--bg-card);
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-switcher a {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--color3);
  border-color: var(--color3);
  background: rgba(14, 255, 198, 0.08);
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Blocks */
.hero-block {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(14, 255, 198, 0.06) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.content-block {
  margin-bottom: 2rem;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: rgba(57, 43, 121, 0.3);
  color: var(--color4);
  font-weight: 600;
}

tr:last-child td, tr:last-child th {
  border-bottom: none;
}

tr:hover td {
  background: rgba(14, 255, 198, 0.04);
}

/* Images */
.content-img {
  max-width: 100%;
  width: 420px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  margin: 1rem 0;
  display: block;
}

/* Lists */
ul, ol {
  margin: 0 0 1rem 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

/* FAQ */
.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  background: var(--bg-card);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color4);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  transition: background var(--transition);
}

.faq-q:hover {
  background: rgba(14, 255, 198, 0.06);
}

.faq-q::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color3);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.is-open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 1.25rem 1rem;
  display: none;
}

.faq-item.is-open .faq-a {
  display: block;
}

.faq-a p {
  margin: 0;
  padding-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--color1);
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-nav h4 {
  font-size: 0.9rem;
  color: var(--color3);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--color4);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-main {
    justify-content: flex-start;
  }

  .lang-switcher {
    justify-content: flex-start;
  }

  main {
    padding: 1.5rem 1rem 2rem;
  }

  .hero-block {
    padding: 1.5rem;
  }

  th, td {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .content-img {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
}
