:root{
    --bg: #090d15;
    --panel: #10151e;
    --panel-2: #1b212c;
    --line: #222835;
    --line-soft: #1a2028;

    --accent: #3dae9f;
    --accent-dim: #2a7a70;
    --accent-soft: #7fc9bd;
    --gold: #ddaa4b;

    --ink: #ecf0f4;
    --muted: #929caa;

    --buy: #3dae9f;
    --sell: #ddaa4b;

    --radius: 12px;
  }
  [data-theme="light"]{
    --bg: #f5f7f9;
    --panel: #ffffff;
    --panel-2: #eef1f4;
    --line: #dbdfe6;
    --line-soft: #e6e9ee;
    --ink: #151c29;
    --muted: #5b6577;
    --accent: #17635d;
    --accent-dim: #0f4a45;
    --accent-soft: #17635d;
    --gold: #ca942f;
  }

  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  html,body{ margin:0; padding:0; }
  body{
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    background-image:
      radial-gradient(ellipse 70% 45% at 15% -10%, rgba(61,174,159,0.14), transparent),
      radial-gradient(ellipse 60% 40% at 100% 10%, rgba(221,170,75,0.06), transparent);
    background-attachment: fixed;
    transition: background-color .25s ease, color .25s ease;
  }
  a{ color: var(--accent); text-decoration: none; }
  img{ max-width: 100%; display:block; }

  .wrap{ max-width: 1120px; margin: 0 auto; padding: 0 24px; }
  section{ padding: 72px 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 76px; }
  section:last-of-type{ border-bottom: none; }

  h1,h2,h3{ font-family: 'Fraunces', serif; margin: 0; letter-spacing: -0.01em; }
  .eyebrow{
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--accent-soft); margin: 0 0 10px;
  }
  .section-head{ margin-bottom: 40px; max-width: 620px; }
  .section-head h2{ font-size: clamp(30px, 4vw, 40px); font-weight: 600; margin-bottom: 10px; color: var(--ink); }
  .section-head p{ color: var(--muted); font-size: 15.5px; line-height: 1.55; margin:0; }
  header{
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
  }
  .header-inner{ display:flex; align-items:center; justify-content:space-between; padding: 16px 0; }
  .logo{ font-family: 'Fraunces', serif; font-weight: 600; font-size: 20px; color: var(--accent); }
  nav{ display:flex; gap: 28px; }
  nav a{ color: var(--muted); font-size: 14.5px; font-weight: 500; }
  nav a:hover{ color: var(--ink); }
  .header-right{ display:flex; align-items:center; gap: 18px; }
  .theme-toggle{
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--panel); color: var(--ink);
    display:flex; align-items:center; justify-content:center; cursor: pointer;
  }
  .theme-toggle:hover{ border-color: var(--accent); }
  .theme-toggle svg{ width:17px; height:17px; }
  .theme-toggle .sun{ display:none; }
  [data-theme="light"] .theme-toggle .moon{ display:none; }
  [data-theme="light"] .theme-toggle .sun{ display:block; }
  @media (max-width: 780px){ nav{ display:none; } }
  .btn{ display:inline-flex; align-items:center; gap:8px; padding: 12px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; border: 1px solid transparent; cursor: pointer; }
  .btn-primary{ background: var(--accent); color: #06120f; }
  .btn-primary:hover{ background: #4bc2b1; }
  .btn-outline{ background: transparent; border-color: var(--line); color: var(--ink); }
  .btn-outline:hover{ border-color: var(--accent); color: var(--accent); }
  .btn-wide{ width: 100%; justify-content:center; }

  .hero{ padding-top: 64px; }
  .hero-grid{ display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items:center; }
  .badge{ display:inline-flex; align-items:center; gap:8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--accent-soft); font-size: 13px; margin-bottom: 22px; }
  .badge .pulse{ width:7px; height:7px; border-radius:50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
  .hero h1{ font-size: clamp(32px, 4.6vw, 46px); font-weight: 600; line-height: 1.12; margin-bottom: 18px; }
  .hero p.lead{ color: var(--muted); font-size: 16.5px; line-height: 1.6; max-width: 480px; margin: 0 0 28px; }
  .hero-actions{ display:flex; flex-wrap:wrap; gap: 12px; margin-bottom: 22px; }
  .hero-trust{ margin-top: 28px; display:flex; align-items:center; gap: 10px; font-size: 13.5px; color: var(--muted); }

  .mini-board{ border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
  .mini-board-head{ display:flex; justify-content:space-between; align-items:center; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .live-dot{ display:inline-flex; align-items:center; gap:6px; color: var(--accent); }
  .live-dot i{ width:6px; height:6px; border-radius:50%; background: var(--accent); box-shadow:0 0 6px var(--accent); }
  .mini-row{ display:flex; align-items:center; justify-content:space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
  .mini-row:last-child{ border-bottom:none; }
  .mini-cur{ display:flex; align-items:center; gap:10px; }
  .mini-cur .flag{ font-size: 20px; }
  .mini-cur .code{ font-family:'IBM Plex Mono', monospace; font-weight:600; font-size:14px; }
  .mini-cur .name{ font-size: 12px; color: var(--muted); }
  .mini-nums{ text-align:right; font-family:'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }
  .mini-nums .buy{ color: var(--buy); font-weight:600; }
  .mini-nums .sell{ color: var(--muted); font-weight:500; font-size: 12.5px; }
  .mini-unavail{ font-size: 12px; color: var(--muted); }
  .mini-board-foot{ padding: 12px 20px; font-size: 12.5px; text-align:center; color: var(--accent-soft); border-top: 1px solid var(--line-soft); }
  @media (max-width: 860px){ .hero-grid{ grid-template-columns: 1fr; } }

  .stats{ padding: 44px 0; border-bottom: 1px solid var(--line-soft); }
  .stats-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align:center; }
  .stat-num{ font-family:'Fraunces', serif; font-weight:600; font-size: clamp(26px, 3.4vw, 34px); color: var(--accent); }
  .stat-label{ font-size: 13px; color: var(--muted); margin-top:4px; }
  @media (max-width: 640px){ .stats-grid{ grid-template-columns: repeat(2,1fr); row-gap: 28px; } }

  .calc-card{ max-width: 480px; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 28px; }
  .seg{ display:flex; background: var(--panel-2); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
  .seg button{ flex:1; padding: 10px; border-radius: 999px; border:none; background:transparent; color: var(--muted); font-weight:600; font-size: 14px; cursor:pointer; }
  .seg button.active{ background: var(--accent); color:#06120f; }
  .field{ margin-bottom: 16px; }
  .field-row{ display:flex; gap:10px; }
  .field input, .field select{ width:100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 12px 14px; font-size: 15px; font-family: inherit; }
  .field input:focus, .field select:focus{ outline: 2px solid var(--accent); outline-offset: 1px; }
  .result-box{ background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
  .result-box .label{ font-size:13px; color: var(--muted); margin-bottom:4px; }
  .result-box .amount{ font-family:'IBM Plex Mono', monospace; font-size: 26px; font-weight:600; color: var(--ink); }
  .result-box .rate-note{ font-size: 12.5px; color: var(--muted); margin-top: 6px; }
  .result-box.unavailable .amount{ color: var(--gold); font-size: 16px; font-family: 'Inter', sans-serif; font-weight:600; }
  .info-note{ display:flex; gap:10px; align-items:flex-start; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; color: var(--ink); margin-bottom: 18px; }

  .rates-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .rate-card{ border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
  .rate-card-head .code{ color: var(--ink); }
  .rate-card-head .name{ color: #fff; font-weight: 500; }
  .rate-line{ background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; margin-top: 9px; font-size: 15px; color: #fff; }
  .rate-line .val{ font-size: 20px; line-height: 1.1; }
  .rate-line .val.buy, .rate-line .val.sell{ color: #fff; }
  .rate-line .val.buy{ background: color-mix(in srgb, var(--buy) 22%, transparent); padding: 6px 9px; border-radius: 7px; }
  .rate-line .val.sell{ background: color-mix(in srgb, var(--gold) 22%, transparent); padding: 6px 9px; border-radius: 7px; }
  .rate-card-head{ display:flex; align-items:center; gap: 12px; margin-bottom: 14px; }
  .rate-card-head .flag{ font-size: 26px; }
  .rate-card-head .code{ font-family:'IBM Plex Mono', monospace; font-weight:600; font-size: 16px; }
  .rate-card-head .name{ font-size: 12.5px; color: var(--muted); }
  .rate-line{ display:flex; justify-content:space-between; align-items:center; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
  .rate-line .val{ font-family:'IBM Plex Mono', monospace; font-weight:600; font-size: 16px; }
  .rate-line .val.buy{ color: var(--buy); }
  .rate-line .val.sell{ color: var(--gold); }
  .rate-card.unavailable{ text-align:center; padding: 28px 20px; }
  .rate-card.unavailable .msg{ font-size:13.5px; color: var(--muted); margin: 10px 0 14px; }
  @media (max-width: 620px){ .rates-grid{ grid-template-columns: 1fr; } }

  .adv-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .adv-card{ border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 22px; }
  .adv-icon{ width: 38px; height:38px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); display:flex; align-items:center; justify-content:center; margin-bottom: 14px; }
  .adv-icon svg{ width:19px; height:19px; }
  .adv-card h3{ font-family:'Inter',sans-serif; font-size:15.5px; font-weight:600; margin-bottom:6px; }
  .adv-card p{ font-size: 13.5px; color: var(--muted); line-height:1.5; margin:0; }
  @media (max-width: 820px){ .adv-grid{ grid-template-columns: repeat(2,1fr); } }
  @media (max-width: 560px){ .adv-grid{ grid-template-columns: 1fr; } }

  .partner-grid{ display:grid; grid-template-columns: 1fr 320px; gap: 48px; align-items:center; }
  .partner-steps{ display:flex; flex-direction:column; gap: 14px; }
  .step-card{ display:flex; gap:14px; align-items:flex-start; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 18px 20px; }
  .step-icon{ width: 36px; height:36px; flex:none; border-radius:8px; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); display:flex; align-items:center; justify-content:center; }
  .step-icon svg{ width:18px; height:18px; }
  .step-card h3{ font-family:'Inter',sans-serif; font-size:15px; font-weight:600; display:flex; gap:8px; align-items:baseline; }
  .step-card h3 .num{ font-family:'IBM Plex Mono', monospace; font-size:11px; color: var(--muted); font-weight:500; }
  .step-card p{ font-size:13.5px; color: var(--muted); margin: 4px 0 0; line-height:1.5; }
  .partner-art img{ display:block; width:260px; max-width:100%; height:auto; }
  @media (max-width: 820px){ .partner-grid{ grid-template-columns: 1fr; } .partner-art{ order:-1; max-width:220px; margin:0 auto; } }

  .find-grid{ display:grid; grid-template-columns: 340px 1fr; gap: 24px; }
  .find-card{ border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 26px; }
  .find-item{ display:flex; gap:14px; margin-bottom: 20px; }
  .find-item:last-of-type{ margin-bottom: 0; }
  .find-item .ic{ width:36px; height:36px; flex:none; border-radius:8px; background: var(--panel-2); color: var(--accent); display:flex; align-items:center; justify-content:center; }
  .find-item .ic svg{ width:17px; height:17px; }
  .find-item h4{ font-size:14px; margin:0 0 3px; font-weight:600; }
  .find-item p{ font-size:13.5px; color: var(--muted); margin:0; line-height:1.5; }
  .find-links{ margin-top: 18px; padding-top:18px; border-top:1px solid var(--line-soft); display:flex; flex-direction:column; gap:10px; }
  .find-links a{ font-size: 13.5px; font-weight:600; display:flex; align-items:center; gap:8px; }
  .map-embed{ border:1px solid var(--line); border-radius: 10px; overflow:hidden; min-height: 320px; background: var(--panel); }
  .map-embed iframe{ width:100%; height:100%; min-height:320px; border:0; filter: saturate(0.85); }
  @media (max-width: 820px){ .find-grid{ grid-template-columns: 1fr; } }

  /* ---------- Reviews ---------- */
  .rating-summary{ display:flex; align-items:center; gap:16px; margin-bottom: 32px; }
  .rating-num{ font-family:'Fraunces', serif; font-weight:600; font-size: 40px; }
  .rating-summary .stars{ font-size: 18px; color: var(--gold); }
  .rating-summary .count{ font-size: 13px; color: var(--muted); }
  .reviews-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .review-card{ border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 20px; }
  .review-head{ display:flex; align-items:center; gap: 12px; margin-bottom: 10px; }
  .review-avatar{ width: 40px; height:40px; border-radius: 50%; background: var(--accent-dim); color:#fff; display:flex; align-items:center; justify-content:center; font-size: 14px; font-weight:600; overflow:hidden; flex:none; }
  .review-avatar img{ width:100%; height:100%; object-fit:cover; }
  .review-name{ font-size: 14px; font-weight:600; }
  .review-date{ font-size: 12px; color: var(--muted); }
  .review-stars{ color: var(--gold); font-size: 13px; margin-bottom: 8px; }
  .review-text{ font-size: 13.5px; color: var(--muted); line-height:1.55; margin:0; }
  @media (max-width: 640px){ .reviews-grid{ grid-template-columns: 1fr; } }
  .reviews-more{ text-align:center; margin-top: 26px; }

  /* ---------- Footer ---------- */
  footer{ padding: 48px 0 32px; }
  .footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
  .footer-brand{ font-family:'Fraunces', serif; font-size:19px; font-weight:600; color: var(--accent); margin-bottom: 10px; }
  .footer-grid p{ font-size: 13.5px; color: var(--muted); line-height:1.55; margin:0; }
  .footer-h{ font-family:'IBM Plex Mono', monospace; font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color: var(--muted); margin: 0 0 12px; }
  .footer-links{ display:flex; flex-direction:column; gap:9px; }
  .footer-links a{ color: var(--ink); font-size: 13.5px; }
  .footer-contact{ display:flex; align-items:flex-start; gap:8px; font-size:13.5px; color: var(--ink); margin-bottom: 10px; }
  .footer-contact svg{ width:15px; height:15px; margin-top:2px; color:var(--accent); flex:none; }
  .footer-bottom{ text-align:center; padding-top: 22px; font-size:12.5px; color: var(--muted); }
  @media (max-width: 720px){ .footer-grid{ grid-template-columns: 1fr; } }