/* Intertrading marketing site
   Theme tokens live here as space separated RGB channels so Tailwind's
   opacity modifiers (bg-primary/10) keep working, and so a light section can
   redefine a token once and have every utility inside it follow. */

:root {
  --background: 10 22 40;
  --foreground: 241 245 249;
  --card: 16 31 54;
  --surface: 16 31 54;
  --surface-raised: 20 38 63;
  --primary: 45 212 191;
  --primary-foreground: 4 20 26;
  --secondary: 20 35 60;
  --muted: 20 35 60;
  --muted-foreground: 143 163 184;
  --accent: 56 189 248;
  --status-good: 34 197 94;
  --status-warning: 245 158 11;
  --status-critical: 239 68 68;
  --hairline: rgba(148, 197, 255, 0.1);
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: rgb(var(--background));
  color: rgb(var(--foreground));
  -webkit-font-smoothing: antialiased;
}

/* Light toned counterpart used to break up long dark marketing pages: white
   sections, with cards also white and separated by shadow rather than a gray
   fill. --background is deliberately left alone so the dark cards nested
   inside these sections keep their navy panel. */
.section-light {
  background-color: #ffffff;
  color: #0b1512;
  /* The dark theme's primary is tuned to read against navy; at the same
     lightness it washes out on white, so light sections get a darker, more
     saturated teal and every text-primary / bg-primary/10 inside follows. */
  --primary: 13 148 136;
  --primary-foreground: 255 255 255;
  --muted-foreground: 75 90 86;
  --hairline: rgba(11, 21, 18, 0.08);
}

.section-light-muted {
  color: rgb(var(--muted-foreground));
}

.section-light .section-light-card {
  background-color: #ffffff;
  border-color: var(--hairline);
  box-shadow:
    0 1px 2px rgba(11, 21, 18, 0.04),
    0 12px 28px rgba(11, 21, 18, 0.07);
}

.section-light-hairline {
  border-color: var(--hairline);
}

/* ---------- Navigation ----------
   Text only links: the label carries the meaning and a gradient rule under it
   carries the state, so the bar stays quiet until you point at it. */

.nav-link {
  position: relative;
  padding-block: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgb(var(--muted-foreground));
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.125rem;
  height: 2px;
  border-radius: 999px;
  background-image: linear-gradient(90deg, #2db4c0, #52c9a5);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 20px -10px rgba(45, 212, 191, 0.7);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 28px -10px rgba(45, 212, 191, 0.85);
}

/* The same idea rotated for the mobile sheet: the rule becomes a short bar
   down the leading edge of the row. */
.nav-link-mobile {
  position: relative;
  border-radius: 0.625rem;
  padding: 0.75rem 0.875rem 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgb(var(--muted-foreground));
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.nav-link-mobile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 999px;
  background-image: linear-gradient(180deg, #2db4c0, #52c9a5);
  transform: translateY(-50%);
  transition: height 0.2s ease;
}

.nav-link-mobile:hover,
.nav-link-mobile[aria-current="page"] {
  color: #ffffff;
  background-color: rgb(var(--secondary));
}

.nav-link-mobile:hover::before,
.nav-link-mobile[aria-current="page"]::before {
  height: 1.25rem;
}

.brand-gradient {
  background-image: linear-gradient(90deg, #2db4c0, #52c9a5);
}

.brand-gradient-text {
  background-image: linear-gradient(90deg, #2db4c0, #52c9a5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-tabular {
  font-variant-numeric: tabular-nums;
}

.grid-backdrop {
  background-image:
    radial-gradient(50% 40% at 30% 22%, rgba(45, 212, 191, 0.22), transparent 60%),
    radial-gradient(45% 35% at 92% 15%, rgba(56, 189, 248, 0.16), transparent 60%);
}

.step-glow {
  background-image: linear-gradient(to bottom, var(--hairline), rgb(var(--primary)), var(--hairline));
  box-shadow: 0 0 14px 2px rgba(20, 184, 166, 0.55);
}

.step-rail {
  background-image: linear-gradient(to right, var(--hairline), rgb(var(--primary)), var(--hairline));
  box-shadow: 0 0 14px 2px rgba(20, 184, 166, 0.55);
}

.step-rail-soft {
  background-image: linear-gradient(to right, var(--hairline), rgb(var(--primary)), var(--hairline));
  box-shadow: 0 0 14px 2px rgba(20, 184, 166, 0.35);
}

/* Legal document body: the marketing pages hand plain headings, lists and
   paragraphs to this wrapper rather than repeating type classes on each one. */
.prose-legal h2 {
  margin-top: 2.5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: rgb(var(--foreground));
}

.prose-legal ol,
.prose-legal ul {
  padding-left: 1.25rem;
}

.prose-legal ol {
  list-style-type: decimal;
}

.prose-legal ul {
  list-style-type: disc;
}

.prose-legal li + li {
  margin-top: 0.5rem;
}

/* ---------- Hero mockup animation ---------- */

.phone-screen {
  display: none;
}

.phone-screen.is-active {
  display: flex;
  animation: screen-in 0.25s ease-out both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.bob {
  animation-name: bob;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.pulse-ring {
  animation: pulse-ring 1.6s ease-out infinite;
}

@keyframes pulse-ring {
  from {
    transform: scale(1);
    opacity: 0.6;
  }
  to {
    transform: scale(1.15);
    opacity: 0;
  }
}

.spin-slow {
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.blink {
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.tape-tick {
  animation: tape-tick 0.45s ease-out;
}

@keyframes tape-tick {
  0% {
    opacity: 0.25;
  }
  100% {
    opacity: 1;
  }
}

.fill-bar {
  animation: fill-bar 2.1s ease-in-out both;
}

@keyframes fill-bar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link::after,
  .nav-link-mobile::before,
  .nav-cta {
    transition: none;
  }
  .nav-cta:hover {
    transform: none;
  }
  .bob,
  .tape-tick,
  .pulse-ring,
  .spin-slow,
  .blink,
  .fill-bar,
  .phone-screen.is-active {
    animation: none;
  }
  .fill-bar {
    width: 100%;
  }
}
