/* =========================================================================
   IXCI.com — Stylesheet
   Design tokens: dark navy / charcoal header & hero, soft-gray page bg,
   electric-blue accent, subtle-green secondary accent, white cards.
   Display type: Sora. Body type: Inter. Data/mono type: IBM Plex Mono.
   ========================================================================= */

:root {
  /* Color tokens */
  --navy: #0B1628;
  --navy-deep: #060D19;
  --charcoal: #1B2331;
  --charcoal-soft: #262F40;
  --white: #FFFFFF;
  --bg-soft: #F4F6FA;
  --bg-card: #FFFFFF;
  --border: #E3E8F0;
  --border-dark: #2C3648;
  --text-main: #172033;
  --text-muted: #5B6478;
  --text-invert: #EAF0FA;
  --text-invert-muted: #9AA7C2;
  --blue: #2F6FED;
  --blue-dark: #1F53C2;
  --blue-soft: #E8F0FE;
  --green: #17A874;
  --green-soft: #E4F7EF;
  --amber: #B7791F;
  --amber-soft: #FBF0DD;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(11,22,40,0.04), 0 8px 24px rgba(11,22,40,0.06);
  --shadow-card-hover: 0 4px 10px rgba(11,22,40,0.06), 0 16px 36px rgba(11,22,40,0.10);
  --max-width: 1180px;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-main);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--text-main); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--text-invert); }
.btn-outline:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.btn-outline-dark { background: transparent; border-color: var(--border); color: var(--text-main); }
.btn-outline-dark:hover { background: var(--bg-soft); text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--border-dark);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-invert);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text-invert-muted);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--text-invert); background: rgba(255,255,255,0.06); text-decoration: none; }
.main-nav a.is-active { color: var(--text-invert); }

.nav-dropdown { position: relative; }
.nav-dropdown > button {
  font: inherit;
  background: none;
  border: none;
  color: var(--text-invert-muted);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-dropdown > button:hover { color: var(--text-invert); background: rgba(255,255,255,0.06); }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 10px;
  display: none;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 2px;
  min-width: 320px;
}
.nav-dropdown.is-open .nav-dropdown-panel { display: grid; }
.nav-dropdown-panel a {
  color: var(--text-main);
  font-size: 0.9rem;
  padding: 9px 12px;
  border-radius: 8px;
}
.nav-dropdown-panel a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-dropdown-panel .coin-sym { font-family: var(--font-mono); color: var(--blue); font-weight: 600; margin-right: 6px; }

.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--text-invert);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border-dark);
    align-items: stretch;
    gap: 0;
  }
  .main-nav.is-open a, .main-nav.is-open .nav-dropdown > button { width: 100%; justify-content: space-between; }
  .nav-dropdown-panel { position: static; transform: none; box-shadow: none; border: none; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,0.04); }
  .nav-dropdown-panel a { color: var(--text-invert-muted); }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(47,111,237,0.25), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(23,168,116,0.18), transparent 40%),
    var(--navy);
  color: var(--text-invert);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 88px 24px 76px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero h1 { color: #fff; max-width: 760px; }
.hero .lede { color: var(--text-invert-muted); max-width: 620px; font-size: 1.15rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 44px;
  max-width: 720px;
}
.hero-stat { background: rgba(255,255,255,0.03); padding: 16px 18px; }
.hero-stat .num { font-family: var(--font-mono); font-size: 1.3rem; color: #fff; font-weight: 600; }
.hero-stat .lbl { font-size: 0.78rem; color: var(--text-invert-muted); margin-top: 2px; }

/* Small page header (non-homepage) */
.page-header {
  background: var(--navy);
  color: var(--text-invert);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border-dark);
}
.page-header h1 { color: #fff; margin-bottom: 8px; }
.page-header .lede { color: var(--text-invert-muted); margin: 0; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-invert-muted);
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--text-invert-muted); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { margin: 0 6px; opacity: 0.5; }

/* =========================================================================
   CARDS / GRIDS
   ========================================================================= */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.coin-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  gap: 10px;
}
.coin-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); text-decoration: none; }
.coin-card-top { display: flex; align-items: center; gap: 12px; }
.coin-badge {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.coin-card h3 { margin: 0; font-size: 1.05rem; }
.coin-card .sym { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.8rem; }
.coin-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.coin-card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--green);
  background: var(--green-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

/* Section feature list */
.feature-row {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 700;
}
.feature-row h4 { margin: 0 0 4px; font-size: 1rem; }
.feature-row p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }

/* =========================================================================
   COIN PAGE
   ========================================================================= */
.coin-page-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.coin-page-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.coin-page-title .cat { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-invert-muted); letter-spacing: 0.04em; text-transform: uppercase; }

.quick-facts {
  margin-top: -28px;
  position: relative;
  z-index: 2;
}
.quick-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.quick-fact {
  background: #fff;
  padding: 18px 20px;
}
.quick-fact .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-family: var(--font-mono); }
.quick-fact .v { font-family: var(--font-mono); font-size: 0.98rem; font-weight: 600; color: var(--text-main); margin-top: 4px; }

.coin-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .coin-layout { grid-template-columns: 1fr; }
}

.coin-body h2 { margin-top: 2.2em; }
.coin-body h2:first-child { margin-top: 0; }

.list-check, .list-risk {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list-check li, .list-risk li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--text-main);
}
.list-check li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 7px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--blue);
}
.list-risk li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 7px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--amber);
}

.related-coins { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.related-coins a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-main);
  background: #fff;
}
.related-coins a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

.sidebar-card { padding: 20px; margin-bottom: 20px; }
.sidebar-card h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 12px; }
.sidebar-card a.link-row { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.sidebar-card a.link-row:last-child { border-bottom: none; }

/* =========================================================================
   FAQ ACCORDION
   ========================================================================= */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: transform 0.15s ease;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--text-muted); }

/* =========================================================================
   DISCLAIMER / NOTICE BLOCKS
   ========================================================================= */
.notice {
  border-radius: var(--radius-md);
  padding: 20px 22px;
  font-size: 0.92rem;
  border: 1px solid var(--border);
}
.notice-info { background: var(--blue-soft); border-color: #cfe0fb; color: #1c3f8c; }
.notice-muted { background: #fff; color: var(--text-muted); }
.notice strong { color: inherit; }

/* =========================================================================
   ADVERTISEMENT PLACEHOLDERS
   ========================================================================= */
.ad-slot {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(135deg, #FAFBFD, #FAFBFD 10px, #F3F5F9 10px, #F3F5F9 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin: 36px 0;
  padding: 18px;
}
.ad-slot .ad-label { display: block; margin-bottom: 4px; color: #8189A0; }
.ad-slot-top, .ad-slot-bottom { min-height: 90px; }
.ad-slot-in-article { min-height: 100px; }
.ad-slot-sidebar { min-height: 250px; }

/* =========================================================================
   FORMS
   ========================================================================= */
.form-grid { display: grid; gap: 18px; max-width: 620px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-main);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.form-row textarea { resize: vertical; min-height: 140px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.alert { padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.93rem; }
.alert-success { background: var(--green-soft); color: #0d6b4c; border: 1px solid #b7ecd7; }
.alert-error { background: #FCEBEA; color: #9A2B24; border: 1px solid #F6C9C5; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--navy-deep);
  color: var(--text-invert-muted);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-dark);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--text-invert-muted); font-size: 0.9rem; max-width: 320px; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7C87A3;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--text-invert-muted);
  font-size: 0.9rem;
  padding: 5px 0;
}
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-top: 26px;
  flex-wrap: wrap;
}
.footer-legal { font-size: 0.8rem; color: #6C7692; max-width: 780px; line-height: 1.6; }
.footer-copy { font-size: 0.82rem; color: #6C7692; white-space: nowrap; }

/* =========================================================================
   MISC PAGE ELEMENTS
   ========================================================================= */
.step-list { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 4px 42px;
  margin-bottom: 18px;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data-table th, table.data-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
table.data-table th { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }

.error-page { text-align: center; padding: 110px 24px; }
.error-page .code { font-family: var(--font-mono); font-size: 4.5rem; color: var(--blue); font-weight: 700; }
