:root {
  --navy: #0c1832;
  --navy-2: #142443;
  --gold: #bd914a;
  --gold-dark: #8c642c;
  --white: #ffffff;
  --ivory: #f7f5f0;
  --mist: #e8edf3;
  --slate: #66748a;
  --ink: #1b2433;
  --success: #2e8b63;
  --danger: #b65656;
  --shadow: 0 22px 70px rgba(12, 24, 50, 0.16);
  --radius: 8px;
  --container: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Lato", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 14px;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

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

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
}

.brand-panel,
.footer-logo {
  display: block;
  padding: 6px 12px;
  background: transparent;
  border: 0;
}

.brand-panel img {
  width: 128px;
  height: 52px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 28px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
}

.primary-nav a > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--gold-dark);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions,
.hero-actions,
.cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.text-link {
  color: var(--slate);
  font-weight: 700;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(189, 145, 74, 0.26);
}

.button-secondary {
  background: transparent;
  color: var(--gold);
}

.button-secondary.light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.section-frame {
  position: relative;
  overflow: hidden;
}

.section-frame::before,
.section-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--gold);
}

.section-frame::before {
  top: 0;
}

.section-frame::after {
  bottom: 0;
}

.hero {
  min-height: 720px;
  padding: 98px 0 92px;
  color: var(--white);
  background:
    linear-gradient(105deg, rgba(7, 17, 37, 0.97) 0%, rgba(12, 24, 50, 0.91) 42%, rgba(12, 24, 50, 0.54) 100%),
    url("brand-assets/ivi-trade-hero-v2.png") center / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 70px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: inherit;
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 6vw, 5.7rem);
  font-weight: 900;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.25rem;
}

.market-console {
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(247, 245, 240, 0.94);
  color: var(--navy);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.console-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 4px 14px;
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 700;
}

.console-topline div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.console-topline strong {
  color: var(--navy);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(46, 139, 99, 0.12);
}

.market-widget-shell {
  padding: 10px;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  background: #eef1f5;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quote-card {
  height: 116px;
  overflow: hidden;
  border: 1px solid #dfe4eb;
  border-radius: 6px;
  background: var(--white);
}

.quote-card .tradingview-widget-container,
.quote-card .tradingview-widget-container__widget {
  width: 100%;
  height: 100%;
}

.tradingview-credit {
  padding: 8px 4px 0;
  color: var(--slate);
  font-size: 0.7rem;
  text-align: right;
}

.tradingview-credit a {
  color: #2962ff;
}

.market-note {
  margin: 10px 4px 0;
  color: var(--slate);
  font-size: 0.72rem;
  line-height: 1.4;
}

.intro-band,
.section {
  padding: 92px 0;
}

.intro-band {
  color: var(--white);
  background: var(--navy);
}

.intro-grid,
.platform-grid,
.insight-grid,
.cta-grid,
.footer-grid {
  display: grid;
  gap: 54px;
}

.intro-grid {
  grid-template-columns: 0.95fr 1fr;
  align-items: center;
}

.intro-grid h2,
.section-heading h2,
.platform-copy h2,
.insights h2,
.cta-band h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 900;
}

.intro-band .eyebrow {
  color: var(--gold);
}

.intro-band .intro-grid h2 {
  color: var(--white);
}

.intro-grid p:last-child,
.platform-copy p,
.insights p {
  color: var(--slate);
  font-size: 1.08rem;
}

.intro-content > p {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.intro-principles {
  display: grid;
  gap: 10px;
}

.intro-principle {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.principle-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(189, 145, 74, 0.65);
  border-radius: var(--radius);
  color: var(--gold);
  background: rgba(189, 145, 74, 0.1);
}

.principle-icon svg {
  width: 22px;
  height: 22px;
}

.intro-principle > span:last-child {
  display: grid;
  gap: 3px;
}

.intro-principle strong {
  color: var(--white);
  line-height: 1.3;
}

.intro-principle small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  line-height: 1.45;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading.compact {
  max-width: 680px;
}

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

.market-card,
.steps article,
.insight-list a {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--white);
}

.market-card {
  min-height: 260px;
  padding: 26px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.market-card:hover {
  transform: translateY(-3px);
  border-color: rgba(189, 145, 74, 0.55);
  box-shadow: 0 16px 38px rgba(12, 24, 50, 0.09);
}

.market-card .market-label,
.steps span {
  color: var(--gold);
  font-weight: 900;
}

.market-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(189, 145, 74, 0.35);
  border-radius: var(--radius);
  color: var(--gold-dark);
  background: rgba(189, 145, 74, 0.1);
}

.market-icon svg {
  width: 25px;
  height: 25px;
}

.market-card h3,
.steps h3 {
  margin: 12px 0;
  color: var(--navy);
  font-size: 1.35rem;
}

.market-card p,
.steps p {
  margin-bottom: 0;
  color: var(--slate);
}

.platforms,
.insights {
  background: var(--navy);
  color: var(--white);
}

.platform-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
}

.platform-media {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: var(--white);
}

.platform-media video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.platform-copy h2,
.insights h2,
.cta-band h2 {
  color: var(--white);
}

.platform-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.platform-feature {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 104px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(189, 145, 74, 0.65);
  border-radius: var(--radius);
  color: var(--gold);
  background: rgba(189, 145, 74, 0.1);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-copy {
  display: grid;
  gap: 6px;
}

.feature-copy strong {
  color: var(--white);
  font-size: 1.12rem;
  line-height: 1.3;
}

.feature-copy > span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.platform-details {
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  border-color: rgba(189, 145, 74, 0.7);
  background: rgba(189, 145, 74, 0.1);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.platform-details:hover,
.platform-details:focus-visible {
  border-color: var(--gold);
  background: rgba(189, 145, 74, 0.16);
  transform: translateY(-2px);
}

.feature-arrow {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.accounts {
  background: var(--white);
}

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

.steps article {
  padding: 26px;
}

.insight-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.82fr);
  align-items: start;
}

.insight-list {
  display: grid;
  gap: 14px;
}

.insight-list a {
  display: block;
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transition: border-color 180ms ease, transform 180ms ease;
}

.insight-list a:hover,
.insight-list a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.insight-list strong,
.insight-list span {
  display: block;
}

.insight-list strong {
  color: var(--white);
  margin-bottom: 6px;
}

.insight-list span {
  color: rgba(255, 255, 255, 0.72);
}

.cta-band {
  padding: 76px 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(12, 24, 50, 0.98), rgba(12, 24, 50, 0.9)),
    var(--navy);
}

.cta-grid {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.site-footer {
  padding: 72px 0 26px;
  color: var(--white);
  background: #142443;
  border-top: 1px solid rgba(189, 145, 74, 0.55);
}

.footer-grid {
  grid-template-columns: 1.35fr repeat(3, minmax(150px, 1fr));
  gap: 64px;
  align-items: start;
}

.footer-logo {
  width: 164px;
  margin-bottom: 20px;
  border: 1px solid rgba(189, 145, 74, 0.65);
  border-radius: 4px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(4, 10, 22, 0.2);
}

.footer-logo img {
  width: 100%;
}

.site-footer h2 {
  margin-bottom: 22px;
  color: var(--white);
  font-size: 1.05rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links a {
  display: block;
  margin-bottom: 13px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-brand > p {
  max-width: 300px;
  margin-bottom: 18px;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.tradingview-badge {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.tradingview-badge svg {
  width: 30px;
  height: 30px;
  color: var(--gold);
}

.tradingview-badge span {
  display: grid;
  line-height: 1.15;
}

.tradingview-badge small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.67rem;
}

.tradingview-badge strong {
  font-size: 0.94rem;
}

.footer-legal {
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-legal p {
  max-width: none;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer-legal strong {
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom-links a:hover,
.footer-bottom-links a:focus-visible {
  color: var(--gold);
}

@media (max-width: 980px) {
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .primary-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--mist);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 14px;
  }

  .hero-grid,
  .intro-grid,
  .platform-grid,
  .insight-grid,
  .cta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px;
  }

  .hero {
    min-height: auto;
  }

  .market-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 1160px);
  }

  .header-inner {
    min-height: 76px;
  }

  .brand-panel img {
    width: 112px;
    height: 46px;
  }

  .hero {
    padding: 78px 0 70px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-lede {
    font-size: 1.06rem;
  }

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

  .button {
    width: 100%;
  }

  .market-console {
    padding: 16px;
  }

  .ticker-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .depth-panel {
    grid-template-columns: 1fr;
  }

  .depth-panel div + div {
    border-left: 0;
    border-top: 1px solid var(--mist);
  }

  .intro-band,
  .section {
    padding: 68px 0;
  }

  .market-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .market-card {
    min-height: auto;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .platform-feature {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: auto;
    padding: 16px;
  }

  .platform-details {
    grid-template-columns: 42px minmax(0, 1fr) 20px;
  }

  .feature-icon {
    width: 42px;
    height: 42px;
  }

  .feature-icon svg {
    width: 21px;
    height: 21px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    margin-top: 44px;
  }
}
