:root {
  color-scheme: dark;
  --ink: #f5fbfc;
  --muted: #9bb0b9;
  --bg: #06141c;
  --bg-soft: #091b25;
  --surface: rgba(14, 39, 50, .76);
  --surface-strong: #102d39;
  --line: rgba(141, 205, 213, .15);
  --accent: #28c3ca;
  --accent-soft: rgba(40, 195, 202, .13);
  --pink: #f177aa;
  --pink-soft: rgba(241, 119, 170, .12);
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 6%, rgba(40, 195, 202, .14), transparent 27rem),
    radial-gradient(circle at 85% 20%, rgba(93, 83, 229, .12), transparent 24rem),
    var(--bg);
  color: var(--ink);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.9;
  min-width: 280px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 10px 14px 10px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(6, 20, 28, .82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; direction: ltr; }
.brand img { border-radius: 14px; }
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); color: #c4d3d8; font-size: .92rem; }
nav a, .footer-links a { transition: color .2s ease; }
nav a:hover, nav a:focus-visible, .footer-links a:hover, .footer-links a:focus-visible { color: var(--accent); }

main, footer { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 70px;
  padding: 74px 0 56px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 10px;
}

h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; font-size: clamp(2.45rem, 5.6vw, 5rem); line-height: 1.28; letter-spacing: -.05em; margin-bottom: 24px; }
h2 { font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1.4; letter-spacing: -.03em; margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
.hero-copy > p, .section-heading > p, .support-section p { max-width: 690px; color: var(--muted); font-size: 1.05rem; }

.store-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store-button {
  min-width: 190px;
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  text-align: center;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.store-button:hover, .store-button:focus-visible { transform: translateY(-2px); border-color: rgba(40,195,202,.55); }
.store-button.primary { color: #031318; background: var(--accent); }
.store-button.secondary { background: rgba(255,255,255,.035); }

.hero-mark { position: relative; min-height: 455px; display: grid; place-items: center; }
.hero-mark > img { position: relative; z-index: 2; width: min(72vw, 310px); border-radius: 28%; box-shadow: var(--shadow); }
.mark-glow { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: rgba(40,195,202,.18); filter: blur(65px); }
.signal-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9, 27, 37, .91);
  box-shadow: 0 14px 35px rgba(0,0,0,.24);
}
.signal-card span { color: var(--muted); font-size: .78rem; }
.signal-one { top: 56px; right: -20px; }
.signal-two { left: -25px; bottom: 44px; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  margin-bottom: 40px;
}
.trust-strip > div { display: grid; gap: 2px; padding: 22px clamp(18px, 4vw, 44px); border-left: 1px solid var(--line); }
.trust-strip > div:last-child { border-left: 0; }
.trust-strip span { color: var(--muted); font-size: .86rem; }

.section { padding: 92px 0; scroll-margin-top: 100px; }
.section-heading { margin-bottom: 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .legal-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}
.feature-card p, .legal-card p { color: var(--muted); margin-bottom: 0; }
.feature-card.rubika { background: linear-gradient(145deg, var(--accent-soft), rgba(255,255,255,.012)); }
.feature-card.rubino { background: linear-gradient(145deg, var(--pink-soft), rgba(255,255,255,.012)); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 32px; border-radius: 15px; color: var(--accent); background: rgba(40,195,202,.1); border: 1px solid rgba(40,195,202,.2); font-weight: 900; }
.rubino .feature-icon { color: var(--pink); background: rgba(241,119,170,.1); border-color: rgba(241,119,170,.2); }

.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.step-card {
  min-height: 150px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.025);
}
.step-card span { display: block; margin-bottom: 24px; color: var(--accent); font-size: 1.25rem; font-weight: 900; }
.step-card p { margin: 0; color: #d7e3e7; font-weight: 700; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.security-list { display: grid; border-top: 1px solid var(--line); }
.security-list > div { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.security-list > div > span { color: var(--accent); font-weight: 800; direction: ltr; }
.security-list p { color: var(--muted); margin: 0; }
.security-list b { color: var(--ink); display: block; }

.support-section {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding-inline: 40px;
  border: 1px solid rgba(40,195,202,.22);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(40,195,202,.13), rgba(255,255,255,.02));
}
.text-link { flex: none; color: var(--accent); font-weight: 800; padding: 14px 0; }
.support-note { flex: none; color: var(--accent); font-weight: 800; padding: 14px 0; }

.wallet-disclaimer {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  margin: 4px 0 30px;
  padding: 22px 26px;
  border: 1px solid rgba(40,195,202,.25);
  border-radius: 22px;
  background: var(--accent-soft);
}
.wallet-disclaimer strong { color: var(--accent); white-space: nowrap; }
.wallet-disclaimer p { margin: 0; color: #d4e2e6; }

.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 24px 0; font-size: 1.05rem; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; float: left; color: var(--accent); font-size: 1.4rem; font-weight: 400; }
details[open] summary::before { content: "−"; }
details p { color: var(--muted); padding: 0 0 24px; margin: 0; }

.legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 0 92px; scroll-margin-top: 110px; }
.legal-card { min-height: 220px; }
.legal-card h2 { font-size: 1.35rem; }
.legal-card { transition: transform .2s ease, border-color .2s ease; }
a.legal-card:hover, a.legal-card:focus-visible { transform: translateY(-3px); border-color: rgba(40,195,202,.45); }

.legal-page { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 76px 0 96px; }
.legal-document {
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  box-shadow: var(--shadow);
}
.legal-document h1 { margin-bottom: 10px; font-size: clamp(2rem, 5vw, 3.5rem); }
.legal-document h2 { margin-top: 38px; font-size: 1.35rem; }
.legal-document p { color: #c4d3d8; }
.legal-update { color: var(--accent) !important; font-size: .9rem; font-weight: 800; }
.legal-back { display: inline-flex; margin-bottom: 20px; color: var(--accent); font-weight: 800; }

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 12px; }
.footer-brand div { display: grid; }
.footer-brand strong { color: var(--ink); direction: ltr; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-support { color: var(--muted); }
.copyright { margin: 0; white-space: nowrap; }

:focus-visible { outline: 3px solid rgba(40,195,202,.42); outline-offset: 3px; }

@media (max-width: 900px) {
  .site-header { border-radius: 20px; }
  nav { overflow-x: auto; white-space: nowrap; max-width: 70%; }
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 62px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .store-actions { justify-content: center; }
  .hero-mark { min-height: 400px; }
  .signal-one { right: 2%; }
  .signal-two { left: 2%; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { min-height: auto; }
  .split-section { grid-template-columns: 1fr; gap: 32px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .footer-links { justify-content: center; }
  .footer-support { text-align: center; }
}

@media (max-width: 620px) {
  body { line-height: 1.8; }
  .site-header { width: calc(100% - 24px); margin-top: 10px; padding: 8px 10px; }
  .brand span { display: none; }
  .brand img { width: 40px; height: 40px; }
  nav { max-width: calc(100% - 52px); gap: 18px; font-size: .84rem; }
  main, footer { width: min(100% - 28px, 1120px); }
  .hero { min-height: auto; padding: 54px 0 34px; }
  h1 { font-size: clamp(2.2rem, 12vw, 3.35rem); }
  .hero-mark { min-height: 360px; }
  .hero-mark > img { width: 230px; }
  .signal-card { min-width: 164px; padding: 10px 12px; }
  .signal-one { top: 44px; }
  .signal-two { bottom: 32px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div { border-left: 0; border-bottom: 1px solid var(--line); text-align: center; }
  .trust-strip > div:last-child { border-bottom: 0; }
  .section { padding: 68px 0; }
  .support-section { align-items: start; flex-direction: column; padding: 30px 22px; }
  .wallet-disclaimer { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .steps-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; padding-bottom: 68px; }
  .store-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
