/* FirstIslamicCoin.com — shared stylesheet.
   Tokens mirror firstislamiccoin-brand/tokens/theme.css exactly (kept in sync
   by hand; that file is the source of truth for the palette). Static site,
   no build step — see docs/repo-map.md on why this mirrors CodexaCoin's own
   website (plain HTML/CSS, not Astro/Next) rather than the prompt's default. */

:root {
  --green: #0B6E4F;
  --green-deep: #08523B;
  --gold: #D4AF37;
  --gold-deep: #B8962E;
  --gold-light: #E9CC6A;
  --bg: #F7F5EE;
  --surface: #FFFFFF;
  --ink: #14201B;
  --muted: #5E6B65;
  --muted-2: #8B958F;
  --line: #D9D6CB;
  --success: #1E9E6A;
  --warning: #D89B2B;
  --error: #C2413B;
  --info: #2F6F9F;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --on-primary: #FFFFFF;
  --shadow: 0 12px 32px rgba(20, 32, 27, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1F17;
    --surface: #10291F;
    --ink: #EEF2EE;
    --muted: #9DB0A6;
    --muted-2: #6E8178;
    --line: #23483A;
    --green: #1B9A6E;
    --gold: #E9CC6A;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0A1F17;
  --surface: #10291F;
  --ink: #EEF2EE;
  --muted: #9DB0A6;
  --muted-2: #6E8178;
  --line: #23483A;
  --green: #1B9A6E;
  --gold: #E9CC6A;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

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

body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 50% -8%, rgba(11, 110, 79, 0.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

code {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.9em;
}

h1, h2, h3 { font-family: "Poppins", "Inter", sans-serif; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; transition: opacity 0.15s ease; }
.brand:hover { text-decoration: none; opacity: 0.85; }
.brand-mark { height: 32px; width: 32px; }
.brand-word { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; }
.brand-word b { font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); font-size: 14px; position: relative; padding: 4px 0; transition: color 0.15s ease; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold)); transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.current { color: var(--ink); font-weight: 600; }
.site-nav a.current::after { transform: scaleX(1); }

.badge {
  font-size: 12px; font-weight: 600; color: var(--info); border: 1px solid color-mix(in srgb, var(--info) 40%, transparent);
  border-radius: 999px; padding: 4px 12px 4px 9px; white-space: nowrap; background: color-mix(in srgb, var(--info) 8%, transparent);
  display: inline-flex; align-items: center; gap: 6px;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--info); }

/* hero */
.hero { position: relative; text-align: center; padding: 92px 24px 52px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -180px; left: 50%; width: 1000px; height: 560px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(11, 110, 79, 0.12), rgba(212, 175, 55, 0.07) 45%, transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero-logo { width: 112px; height: 112px; margin-bottom: 20px; }
.hero-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); margin: 0 0 16px; }
.hero h1 {
  font-size: 50px; margin: 0 0 18px; letter-spacing: -0.02em; font-weight: 700; line-height: 1.1;
  background: linear-gradient(135deg, var(--ink) 15%, var(--green) 60%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tag { font-size: 18px; color: var(--muted); margin: 0 auto 32px; max-width: 620px; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.br-mobile { display: none; }

/* trust strip */
.trust-strip { padding: 40px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-icon { flex: 0 0 22px; width: 22px; height: 22px; color: var(--green); margin-top: 2px; }
.trust-item strong { display: block; font-size: 14px; margin-bottom: 3px; }
.trust-item span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* sections */
.section { padding: 60px 24px; border-top: 1px solid var(--line); }
.section h2 { font-size: 28px; margin: 0 0 22px; letter-spacing: -0.01em; font-weight: 700; }
.section-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 10px; }
.prose { max-width: 720px; color: var(--muted); }
.prose p { margin: 0 0 16px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* specs / stat cards */
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; transition: border-color 0.2s ease, transform 0.2s ease; }
.spec:hover { border-color: var(--green); transform: translateY(-2px); }
.spec-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.spec-value { font-size: 15px; font-weight: 600; }
.specs-note { font-size: 13px; color: var(--muted); max-width: 720px; }

/* cards grid (wallets / ecosystem / roadmap / faq-like) */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 8px; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon { font-size: 26px; margin-bottom: 2px; }
.card h3 { margin: 0; font-size: 17px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }
.card-note { font-size: 12px; color: var(--muted-2); }
.card-status { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-bottom: 4px; width: fit-content; }
.status-live { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.status-building { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning-deep, var(--warning)); }
.status-planned { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }

/* buttons */
.btn {
  display: inline-block; background: linear-gradient(135deg, var(--green), var(--green-deep)); color: var(--on-primary);
  font-weight: 700; font-size: 14px; text-align: center; border-radius: 8px; padding: 11px 18px; margin: 4px 0;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; box-shadow: 0 4px 14px rgba(11, 110, 79, 0.22);
  border: none; cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11, 110, 79, 0.3); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.btn-disabled { background: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 10px; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-outline:hover { background: var(--surface); filter: none; box-shadow: var(--shadow); border-color: var(--green); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #0A1F17; box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25); }

/* honesty / callout */
.honesty-grid, .callout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 24px; }
.honesty-item { border-left: 2px solid var(--gold); padding: 4px 0 4px 18px; }
.honesty-item h3 { margin: 0 0 8px; font-size: 15px; }
.honesty-item p { margin: 0; font-size: 13.5px; color: var(--muted); }
.honesty-item a { color: var(--gold-deep); }

.notice {
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--muted);
  margin: 20px 0 32px;
}
.notice strong { color: var(--gold-deep); }
.notice.info { background: color-mix(in srgb, var(--info) 8%, var(--surface)); border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.notice.info strong { color: var(--info); }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 0 24px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
table.data th, table.data td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); }
table.data th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; background: color-mix(in srgb, var(--green) 5%, var(--surface)); }
table.data tr:last-child td { border-bottom: none; }
table.data td.num { font-variant-numeric: tabular-nums; }

/* roadmap */
.roadmap-list { display: flex; flex-direction: column; gap: 0; margin-top: 24px; border-left: 2px solid var(--line); }
.roadmap-item { position: relative; padding: 4px 0 26px 28px; }
.roadmap-item::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line);
}
.roadmap-item.done::before { background: var(--success); border-color: var(--success); }
.roadmap-item.active::before { background: var(--gold); border-color: var(--gold-deep); }
.roadmap-item h3 { margin: 0 0 4px; font-size: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.roadmap-item p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 640px; }
.roadmap-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.tag-done { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.tag-active { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-deep); }
.tag-planned { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
details.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 4px 20px; }
details.faq-item summary { padding: 16px 0; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 20px; color: var(--muted); flex-shrink: 0; transition: transform 0.15s ease; }
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item p { margin: 0 0 18px; font-size: 14px; color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 24px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.site-footer p { margin: 0; font-size: 12.5px; color: var(--muted-2); text-align: center; max-width: 640px; }

@media (max-width: 900px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .hero { padding: 60px 24px 44px; }
  .hero h1 { font-size: 32px; }
  .hero-logo { width: 92px; height: 92px; }
  .br-mobile { display: inline; }
  .section { padding: 40px 24px; }
  .trust-strip { grid-template-columns: 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* legal pages */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 52px 24px 80px; }
.legal-wrap h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -0.01em; }
.legal-meta { font-size: 13px; color: var(--muted-2); margin: 0 0 8px; }
.legal-wrap h2 { font-size: 18px; margin: 36px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); letter-spacing: -0.005em; }
.legal-wrap h2:first-of-type { border-top: none; padding-top: 0; }
.legal-wrap h3 { font-size: 15px; margin: 18px 0 8px; }
.legal-wrap p, .legal-wrap li { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.legal-wrap strong { color: var(--ink); }
.legal-wrap ul, .legal-wrap ol { padding-left: 22px; margin: 0 0 16px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.legal-nav a { font-size: 13px; }
.legal-back { font-size: 13px; color: var(--muted-2); display: inline-block; margin-bottom: 18px; }
