:root {
  --ink: #0a2547;
  --ink-2: #16365c;
  --gold: #dba74c;
  --gold-dark: #b98223;
  --steel: #6f819c;
  --paper: #ffffff;
  --mist: #f5f7fb;
  --line: #e3e8f0;
  --text: #25364b;
  --muted: #637087;
  --success: #17855b;
  --danger: #b42318;
  --shadow: 0 20px 50px rgba(10, 37, 71, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(227, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1160px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-dark);
  background: #fff7e9;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: #101820;
  box-shadow: 0 12px 26px rgba(219, 167, 76, 0.28);
}

.btn-primary:hover {
  background: #e7b760;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-light {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.section.alt {
  background: var(--mist);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  color: var(--ink);
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 22px;
}

h2 {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
  margin-bottom: 18px;
}

h3 {
  color: var(--ink);
  font-size: 23px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 760px;
}

.hero {
  min-height: calc(100vh - 78px);
  padding: 72px 0 44px;
  background:
    linear-gradient(115deg, rgba(10, 37, 71, 0.96) 0%, rgba(10, 37, 71, 0.86) 45%, rgba(10, 37, 71, 0.55) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 54px;
  align-items: center;
}

.hero h1,
.hero .lead {
  color: #ffffff;
}

.hero .lead {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.trust-strip span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.market-console {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 35px 75px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.console-panel {
  background: #071a33;
  border-radius: 16px;
  padding: 18px;
  overflow: hidden;
}

.console-top,
.ticker-row,
.metric-row,
.chart-head,
.trade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dotline {
  display: flex;
  gap: 7px;
}

.dotline span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--steel);
}

.console-title,
.chart-head strong,
.trade-row strong {
  color: #ffffff;
  font-weight: 800;
}

.ticker-row {
  margin-top: 22px;
}

.ticker-row span,
.trade-row span,
.metric-row span,
.chart-head span {
  color: #9fb1c8;
  font-size: 13px;
}

.ticker-row strong {
  color: #ffffff;
  font-size: 28px;
}

.up {
  color: #4bd38d !important;
}

.down {
  color: #ff7a7a !important;
}

.metric-row {
  margin: 18px 0;
}

.metric {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.metric strong {
  display: block;
  color: #ffffff;
  font-size: 20px;
}

.chart {
  height: 170px;
  margin: 18px 0;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(219, 167, 76, 0.14), rgba(255, 255, 255, 0.03));
}

.bar {
  flex: 1;
  min-width: 10px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #e7b760, #80612e);
  animation: rise 0.8s ease both;
}

@keyframes rise {
  from {
    height: 12% !important;
  }
}

.trade-row {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 42px;
}

.section-head .lead {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 48px;
  align-items: center;
}

.photo-frame {
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
  background: var(--ink);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.feature-stack {
  display: grid;
  gap: 14px;
}

.feature-line,
.info-card,
.scenario,
.legal-section,
.contact-card,
.requirement,
.step-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(10, 37, 71, 0.07);
}

.feature-line {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 18px;
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: #fff3dd;
  color: var(--gold-dark);
  font-size: 20px;
  font-weight: 900;
}

.dashboard-wide {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 28px;
  align-items: stretch;
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(135deg, var(--ink), #102e52);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.dashboard-wide h3 {
  color: #ffffff;
}

.watchlist {
  display: grid;
  gap: 12px;
}

.watch-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.spark {
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(75, 211, 141, 0.12), rgba(75, 211, 141, 0.72));
}

.spark.alt {
  background: linear-gradient(90deg, rgba(255, 122, 122, 0.12), rgba(255, 122, 122, 0.74));
}

.risk-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.07);
}

.gauge {
  height: 16px;
  margin: 20px 0 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4bd38d, #e7b760 58%, #ff7a7a);
}

.gauge-labels,
.mini-stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.mini-stats strong {
  display: block;
  color: #ffffff;
  font-size: 21px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step-card {
  position: relative;
  padding: 24px;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.scenario {
  padding: 24px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quote {
  padding: 26px;
  border-left: 4px solid var(--gold);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(10, 37, 71, 0.07);
}

.quote p {
  color: var(--ink-2);
}

.quote strong {
  color: var(--ink);
}

.download-band {
  background: linear-gradient(135deg, var(--ink), #123b68);
  color: #ffffff;
}

.download-band h2,
.download-band .lead {
  color: #ffffff;
}

.app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.store-btn {
  min-width: 176px;
  min-height: 58px;
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 16px;
  background: #060d17;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 800;
  line-height: 1.15;
}

.store-btn span {
  font-size: 12px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.72);
}

.phone-preview {
  width: min(310px, 100%);
  min-height: 560px;
  margin: 0 auto;
  border: 12px solid #071a33;
  border-radius: 36px;
  padding: 20px;
  background: #f8fafc;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.25);
}

.phone-notch {
  width: 86px;
  height: 8px;
  border-radius: 999px;
  margin: 0 auto 22px;
  background: #0f243f;
}

.phone-card {
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(10, 37, 71, 0.08);
}

.phone-card.dark {
  background: var(--ink);
  color: #ffffff;
}

.phone-card.dark p {
  color: rgba(255, 255, 255, 0.7);
}

.phone-list {
  display: grid;
  gap: 9px;
}

.phone-list span {
  height: 11px;
  border-radius: 999px;
  background: #dbe3ee;
}

.page-hero {
  padding: 86px 0 68px;
  background: linear-gradient(135deg, #f7f9fc 0%, #fff5e4 100%);
}

.page-hero.dark {
  background: linear-gradient(135deg, var(--ink), #12365f);
  color: #ffffff;
}

.page-hero.dark h1,
.page-hero.dark .lead {
  color: #ffffff;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.stat {
  padding: 20px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.values-grid,
.legal-grid,
.contact-grid,
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card,
.contact-card,
.requirement {
  padding: 24px;
}

.legal-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.legal-summary {
  position: sticky;
  top: 100px;
  padding: 22px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
}

.legal-summary strong {
  color: var(--gold);
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-section {
  padding: 26px;
}

.legal-section h2 {
  font-size: 27px;
}

.highlight {
  padding: 18px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff7e9;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 38px;
  align-items: start;
}

.form-card {
  border-radius: 16px;
  padding: 30px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #ffffff;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(219, 167, 76, 0.24);
  border-color: var(--gold);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}

.checkbox-row input {
  width: auto;
  margin-top: 6px;
}

.form-message {
  display: none;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 10px;
  font-weight: 750;
}

.form-message.success {
  display: block;
  background: #e9f8f1;
  color: var(--success);
}

.form-message.error {
  display: block;
  background: #fff0ee;
  color: var(--danger);
}

.contact-photo {
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.contact-photo img {
  height: 320px;
  width: 100%;
  object-fit: cover;
}

.download-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: center;
}

.download-photo {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.download-photo img {
  height: 520px;
  width: 100%;
  object-fit: cover;
}

.site-footer {
  padding: 46px 0 28px;
  background: #06182e;
  color: rgba(255, 255, 255, 0.78);
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  padding-bottom: 24px;
}

.footer-top img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
}

.footer-top strong {
  color: #ffffff;
  font-size: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
  color: var(--gold);
}

.copyright {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.h5-body .section {
  padding: 42px 0;
}

.h5-body .page-hero {
  padding: 42px 0;
}

.h5-logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-grid,
  .split,
  .dashboard-wide,
  .legal-shell,
  .contact-layout,
  .download-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .section-head {
    display: block;
  }

  .steps,
  .scenario-grid,
  .quote-grid,
  .stat-row,
  .values-grid,
  .legal-grid,
  .contact-grid,
  .requirements-grid {
    grid-template-columns: 1fr 1fr;
  }

  .legal-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-wrap {
    width: min(100% - 24px, 1160px);
  }

  .section {
    padding: 56px 0;
  }

  .brand span {
    font-size: 15px;
  }

  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions,
  .app-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .market-console {
    padding: 10px;
  }

  .metric-row,
  .console-top,
  .ticker-row,
  .trade-row {
    align-items: flex-start;
  }

  .metric-row {
    flex-direction: column;
  }

  .steps,
  .scenario-grid,
  .quote-grid,
  .stat-row,
  .values-grid,
  .legal-grid,
  .contact-grid,
  .requirements-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .photo-frame,
  .photo-frame img,
  .download-photo img {
    min-height: 300px;
    height: 340px;
  }

  .watch-row {
    grid-template-columns: 62px 1fr;
  }

  .watch-row span:last-child {
    grid-column: 1 / -1;
  }
}
