/* ============================================================
   PETAL DESIGN SYSTEM — styles.css v1.0
   Source: Petal Brand Book [Shared]

   Single import for landing page:
     <link rel="stylesheet" href="css/styles.css">
   ============================================================ */

/* Inter from Google Fonts CDN — must be first @import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');


/* ——————————————————————————————————————————————————————————
   FONTS

   PP Mori: Brand display font (Regular 400, Semi-Bold 600)
   Inter: UI / body font

   Place your PP Mori .otf or .woff2 files in /fonts/pp-mori/
   ————————————————————————————————————————————————————————— */

@font-face {
  font-family: 'PP Mori';
  src: url('../fonts/pp-mori/otf/PPMori-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Mori';
  src: url('../fonts/pp-mori/otf/PPMori-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ——————————————————————————————————————————————————————————
   DESIGN TOKENS
   ————————————————————————————————————————————————————————— */

:root {

  /* ---- Color Palette ---- */
  --color-blue:            #3E4BF3;
  --color-blue-tint-1:     #E6ECFD;
  --color-blue-tint-2:     #F6F8FF;

  --color-fuscia:          #E91FFF;
  --color-fuscia-tint-1:   #F7AAFF;
  --color-fuscia-tint-2:   #FDE7FF;

  --color-orange:          #FE9400;
  --color-orange-tint-1:   #FFDECD;
  --color-orange-tint-2:   #FFF0E8;

  --color-yellow:          #FFDB01;

  --color-off-black: rgba(24, 47, 47, 1);
  --color-white:           #FFFFFF;

  /* ---- Semantic Text ---- */
  --text-primary:          var(--color-off-black);
  --text-inverse:          var(--color-white);
  --text-muted:            rgba(24, 47, 47, 0.6);
  --text-muted:            color-mix(in srgb, var(--color-off-black) 60%, transparent);

  /* ---- Surfaces ---- */
  --surface-page:          var(--color-white);
  --surface-card:          var(--color-white);
  --surface-subtle:        var(--color-blue-tint-2);
  --surface-dark:          var(--color-off-black);

  /* ---- Accents ---- */
  --accent-primary:        var(--color-blue);
  --accent-secondary:      var(--color-fuscia);
  --accent-tertiary:       var(--color-orange);
  --accent-highlight:      var(--color-yellow);

  /* ---- Borders ---- */
  --border-default:        rgba(24, 47, 47, 0.1);
  --border-default:        color-mix(in srgb, var(--color-off-black) 10%, transparent);
  --border-focus:          var(--color-blue);

  /* ---- Typography ---- */
  --font-display:          'PP Mori', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:             'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- Brand Gradients ---- */
  --gradient-hero: linear-gradient(
    135deg,
    var(--color-off-black) 0%,
    var(--color-blue) 25%,
    var(--color-fuscia) 50%,
    var(--color-orange) 75%,
    var(--color-yellow) 100%
  );

  --gradient-blue-fuscia: linear-gradient(
    135deg,
    var(--color-off-black) 0%,
    var(--color-blue) 30%,
    var(--color-fuscia) 100%
  );

  --gradient-fuscia-orange: linear-gradient(
    135deg,
    var(--color-off-black) 0%,
    var(--color-fuscia) 30%,
    var(--color-orange) 100%
  );

  --gradient-orange-yellow: linear-gradient(
    135deg,
    var(--color-off-black) 0%,
    var(--color-orange) 40%,
    var(--color-yellow) 100%
  );

  --gradient-soft-blue: linear-gradient(
    135deg,
    var(--color-blue-tint-2) 0%,
    var(--color-blue-tint-1) 50%,
    var(--color-fuscia-tint-2) 100%
  );

  --gradient-soft-warm: linear-gradient(
    135deg,
    var(--color-fuscia-tint-2) 0%,
    var(--color-orange-tint-1) 50%,
    var(--color-orange-tint-2) 100%
  );

  --gradient-ambient: radial-gradient(
    ellipse at 30% 20%,
    rgba(62, 75, 243, 0.2) 0%,
    rgba(233, 31, 255, 0.15) 40%,
    rgba(254, 148, 0, 0.1) 70%,
    transparent 100%
  );
}


/* ——————————————————————————————————————————————————————————
   DARK MODE
   ————————————————————————————————————————————————————————— */

[data-theme="dark"],
.theme-dark {
  --text-primary:    var(--color-white);
  --text-inverse:    var(--color-off-black);
  --text-muted:      rgba(255, 255, 255, 0.6);
  --text-muted:      color-mix(in srgb, var(--color-white) 60%, transparent);
  --surface-page:    var(--color-off-black);
  --surface-card:    #1f3838;
  --surface-card:    color-mix(in srgb, var(--color-white) 6%, var(--color-off-black));
  --surface-subtle:  #1c3434;
  --surface-subtle:  color-mix(in srgb, var(--color-white) 4%, var(--color-off-black));
  --surface-dark:    var(--color-white);
  --border-default:  rgba(255, 255, 255, 0.12);
  --border-default:  color-mix(in srgb, var(--color-white) 12%, transparent);
}


/* ——————————————————————————————————————————————————————————
   RESET & BASE
   ————————————————————————————————————————————————————————— */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body), sans-serif;
  color: var(--text-primary);
  background-color: var(--surface-page);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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


/* ——————————————————————————————————————————————————————————
   TYPOGRAPHY
   ————————————————————————————————————————————————————————— */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), sans-serif;
  font-weight: 600;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.label {
  font-family: var(--font-body), sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ——————————————————————————————————————————————————————————
   LAYOUT
   ————————————————————————————————————————————————————————— */

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: clamp(2.5rem, 6vw, 9rem);
}

.section {
  position: relative;
}


/* ——————————————————————————————————————————————————————————
   SURFACE UTILITIES (60/30/10 rule)
   ————————————————————————————————————————————————————————— */

.surface-light       { background-color: var(--surface-page); color: var(--text-primary); }
.surface-accent-blue { background-color: var(--color-blue-tint-2); color: var(--text-primary); }
.surface-accent-fuscia { background-color: var(--color-fuscia-tint-2); color: var(--text-primary); }
.surface-accent-orange { background-color: var(--color-orange-tint-2); color: var(--text-primary); }
.surface-dark        { background-color: var(--surface-dark); color: var(--text-inverse); }


/* ——————————————————————————————————————————————————————————
   GRADIENT UTILITIES
   ————————————————————————————————————————————————————————— */

.bg-gradient-hero          { background: var(--gradient-hero); }
.bg-gradient-blue-fuscia   { background: var(--gradient-blue-fuscia); }
.bg-gradient-fuscia-orange { background: var(--gradient-fuscia-orange); }
.bg-gradient-orange-yellow { background: var(--gradient-orange-yellow); }
.bg-gradient-soft-blue     { background: var(--gradient-soft-blue); }
.bg-gradient-soft-warm     { background: var(--gradient-soft-warm); }


/* ——————————————————————————————————————————————————————————
   AMBIENT BACKGROUND WASH
   ————————————————————————————————————————————————————————— */

.bg-ambient {
  position: relative;
  overflow: hidden;
}
.bg-ambient::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: var(--gradient-ambient);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.bg-ambient > * {
  position: relative;
  z-index: 1;
}


/* ——————————————————————————————————————————————————————————
   TEXT UTILITIES
   ————————————————————————————————————————————————————————— */

.text-primary  { color: var(--text-primary); }
.text-inverse  { color: var(--text-inverse); }
.text-muted    { color: var(--text-muted); }
.text-blue     { color: var(--color-blue); }
.text-fuscia   { color: var(--color-fuscia); }
.text-orange   { color: var(--color-orange); }
.text-yellow   { color: var(--color-yellow); }

.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ——————————————————————————————————————————————————————————
   ACCENT ELEMENTS
   ————————————————————————————————————————————————————————— */

.accent-blue         { background-color: var(--color-blue); color: var(--color-white); }
.accent-fuscia       { background-color: var(--color-fuscia); color: var(--color-white); }
.accent-orange       { background-color: var(--color-orange); color: var(--color-white); }
.accent-highlight    { background-color: var(--color-yellow); color: var(--color-off-black); }

.accent-blue-soft    { background-color: var(--color-blue-tint-1); color: var(--color-blue); }
.accent-fuscia-soft  { background-color: var(--color-fuscia-tint-1); color: var(--color-fuscia); }
.accent-orange-soft  { background-color: var(--color-orange-tint-1); color: var(--color-orange); }


/* ——————————————————————————————————————————————————————————
   GLASSMORPHISM
   ————————————————————————————————————————————————————————— */

.glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}


/* Vector layer styles moved to vectors.css */


/* ——————————————————————————————————————————————————————————
   SECTION HEIGHTS (from Figma frames @ 1440px wide)
   ————————————————————————————————————————————————————————— */

.section--hero       { min-height: 2260px; }  /* 2 x 1080px frames + 100px transition */


/* ——————————————————————————————————————————————————————————
   BORDER UTILITIES
   ————————————————————————————————————————————————————————— */

.border-default { border: 1px solid var(--border-default); }
.border-blue    { border: 1px solid var(--color-blue); }
.border-fuscia  { border: 1px solid var(--color-fuscia); }
.border-orange  { border: 1px solid var(--color-orange); }


/* ——————————————————————————————————————————————————————————
   BUTTON BASE
   ————————————————————————————————————————————————————————— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-family: var(--font-body), sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}


/* ——————————————————————————————————————————————————————————
   REDUCED MOTION
   ————————————————————————————————————————————————————————— */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ——————————————————————————————————————————————————————————
   NAVIGATION
   ————————————————————————————————————————————————————————— */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background-color: var(--surface-page);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav--floating {
  background: transparent;
  padding: 1rem clamp(1.5rem, 4vw, 5rem);
}

.nav--floating .nav__bar {
  border-radius: 16px;
  padding: 0.75rem 1.25rem;
  margin: 0 auto;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav--floating.nav--dark .nav__bar {
  background: rgba(25, 47, 47, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__icon {
  color: var(--color-white);
  transition: color 0.3s ease;
}

.nav__wordmark {
  font-family: var(--font-display), sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-white);
  transition: color 0.3s ease;
}

.nav--dark .nav__icon,
.nav--dark .nav__wordmark {
  color: var(--color-off-black);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger button */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.nav__hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav__hamburger:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 4px;
  border-radius: 4px;
}



/* ——————————————————————————————————————————————————————————
   HERO SECTION (Legacy)
   ————————————————————————————————————————————————————————— */

.section--hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
}

.hero__frame {
  height: 1080px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.section--hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1080px;
  background: #182F2F;
  z-index: -1;
}

.hero__content {
  text-align: center;
  margin: 0 auto;
}


.hero__title {
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}



/* ——————————————————————————————————————————————————————————
   HERO LIGHT TEXT VARIANTS
   ————————————————————————————————————————————————————————— */

/* ---- Apple Technique: Gradient Inside Text ---- */

.hero__content {
  text-align: center;
  margin: 0 auto;
}

.hero__title {
  font-family: var(--font-display), sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem 0;
  transition: color 0.3s ease;
}

/* Adaptive light/dark text */
.hero__title--light {
  color: #FFFFFF;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero__subtitle--light {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}


/* Petal Dark Button (from ClaimWalletButton) */
.btn--petal-dark {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  isolation: isolate;
  position: relative;
  background: #000000;
  color: #ffffff;
  font-weight: 400;
  font-family: var(--font-display), system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  border: none;
  padding: 20px 32px;
  height: 64px;
  border-radius: 12px;
  font-size: 16px;
  transition: box-shadow 200ms ease, transform 120ms ease, background-color 200ms ease;
}

.btn--petal-dark .btn__text {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn--petal-dark .btn__art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  border-radius: 12px;
  pointer-events: none;
}

/* Gradient border */
.btn--petal-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 12px;
  background: linear-gradient(180deg, #CDD7F5 0%, rgba(135, 145, 205, 0.2) 100%);
  -webkit-mask-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
  -webkit-mask-clip: padding-box, border-box;
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff, #fff) padding-box, linear-gradient(#fff, #fff) border-box;
  mask-composite: exclude;
  pointer-events: none;
}

/* Blur chip right */
.btn--petal-dark .btn__vector--right {
  position: absolute;
  width: 77px;
  height: 135px;
  left: calc(100% - 40px);
  top: -81px;
  background: radial-gradient(115.84% 94.37% at 50% 100%, #182f2f 12.02%, #3e4bf3 49.03%, #e6ecfd 74.15%, #f7aaff 100%);
  filter: blur(50px);
  transform: rotate(103.17deg);
}

/* Blur chip left */
.btn--petal-dark .btn__vector--left {
  position: absolute;
  width: 74px;
  height: 130px;
  right: calc(100% - 30px);
  top: 9px;
  background: radial-gradient(84.07% 94.37% at 50% 100%, #182f2f 12.02%, #3e4bf3 40.87%, #e6ecfd 67.78%, #f7aaff 100%);
  filter: blur(50px);
  transform: rotate(-120deg);
}

/* Corner spark */
.btn--petal-dark .btn__spark {
  position: absolute;
  width: 120px;
  height: 120px;
  right: -70px;
  top: -70px;
  background: radial-gradient(closest-side, rgba(88,130,255,0.9), rgba(88,130,255,0.45) 40%, rgba(88,130,255,0.0) 70%);
  filter: blur(18px);
  opacity: 0.9;
  pointer-events: none;
}

.btn--petal-dark:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn--petal-dark:active {
  transform: translateY(1px);
}

.btn--petal-dark:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* Small variant */
.btn--petal-dark-sm {
  padding: 12px 20px;
  height: 44px;
  border-radius: 10px;
  font-size: 14px;
}

.btn--petal-dark-sm::before {
  border-radius: 10px;
}

.btn--petal-dark-sm .btn__art {
  border-radius: 10px;
}


/* ——————————————————————————————————————————————————————————
   BROKERAGE SECTION
   ————————————————————————————————————————————————————————— */

.brokerage__pin-wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.75rem, 1.5vh, 2rem);
  padding-block: 6rem clamp(1rem, 2vh, 3rem);
  position: relative;
  z-index: 4;
}

.brokerage__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(2rem, 10vw, 16rem);
  margin: 2rem auto;
  flex-shrink: 0;
}

.brokerage__header-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.brokerage__label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2.1px;
  color: rgba(0, 0, 0, 0.5);
  line-height: 0.75;
}

.brokerage__title {
  font-family: var(--font-display), sans-serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #000000;
  line-height: 1.2;
}

.brokerage__subtitle {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.6;
  flex: 1;
  padding-top: 0.25rem;
}

/* ---- Laptop-Tilt 3D Mosaic ---- */
.brokerage__mosaic-wrap {
  perspective: 100vw;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex: 1 1 0;
  min-height: 0;
  container-type: size;
}

.brokerage__mosaic {
  position: relative;
  width: 90%; /* fallback for browsers without container query units */
  width: min(90%, calc(100cqh * 1.6));
  transform-style: preserve-3d;
  transform-origin: center bottom;
  /* JS controls rotateX on this element via GSAP */
}

.brokerage__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 30, 30, 0.45);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.brokerage__backdrop-logo {
  width: 120px;
  height: 120px;
  color: rgba(255, 255, 255, 0.06);
}

.brokerage__panels {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4500 / 2484;
  transform-style: preserve-3d;
}

.brokerage__frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 9.2593%;
  z-index: 20;
  border-radius: 4px 4px 0 0;
  display: block;
  object-fit: fill;
}

.brokerage__panel {
  position: absolute;
  display: block;
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  will-change: transform, opacity;
  object-fit: fill;
}

/* Panel 1: Left Sidebar Top (watchlist + order book) */
.brokerage__panel[data-panel="1"] {
  left: 0%;
  top: 9.2593%;
  width: 17.4667%;
  height: 45.9340%;
}

/* Panel 2: Left Sidebar Bottom */
.brokerage__panel[data-panel="2"] {
  left: 0%;
  top: 55.1932%;
  width: 17.4667%;
  height: 44.8068%;
}

/* Panel 3: Chart */
.brokerage__panel[data-panel="3"] {
  left: 17.4667%;
  top: 9.2593%;
  width: 45.6444%;
  height: 30.9179%;
}

/* Panel 4: Positions + Blotter (combined) */
.brokerage__panel[data-panel="4"] {
  left: 17.4667%;
  top: 40.1771%;
  width: 45.6444%;
  height: 29.7504%;
}

/* Panel 5: Blotter Bottom */
.brokerage__panel[data-panel="5"] {
  left: 17.4667%;
  top: 69.9275%;
  width: 45.6444%;
  height: 30.0725%;
}

/* Panel 6: Risk & Exposure */
.brokerage__panel[data-panel="6"] {
  left: 63.1111%;
  top: 9.2593%;
  width: 36.8889%;
  height: 30.9179%;
}

/* Panel 7: Analytics Left */
.brokerage__panel[data-panel="7"] {
  left: 63.1111%;
  top: 40.1771%;
  width: 18.3556%;
  height: 29.7504%;
}

/* Panel 8: Analytics Right */
.brokerage__panel[data-panel="8"] {
  left: 81.4667%;
  top: 40.1771%;
  width: 18.5333%;
  height: 29.7504%;
}

/* Panel 9: Analytics Bottom Left */
.brokerage__panel[data-panel="9"] {
  left: 63.1111%;
  top: 69.9275%;
  width: 18.3556%;
  height: 30.0725%;
}

/* Panel 10: Analytics Bottom Right */
.brokerage__panel[data-panel="10"] {
  left: 81.4667%;
  top: 69.9275%;
  width: 18.5333%;
  height: 30.0725%;
}

@media (max-width: 768px) {
  .brokerage__header {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .brokerage__title,
  .brokerage__subtitle {
    flex: none;
  }
}


/* ——————————————————————————————————————————————————————————
   BROKERAGE CODE CARD
   ————————————————————————————————————————————————————————— */

.brokerage__code-card {
  position: relative;
  bottom: 48px;
  align-self: flex-end;
  margin-left: -260px; /* fallback for browsers without container query units */
  margin-left: clamp(-300px, -20cqw, -220px);
  margin-bottom: 0;
  z-index: 10;
  width: 300px; /* fallback */
  width: clamp(275px, 22cqw, 340px);
  background: #0C1919;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.code-card__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
}

.code-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.code-card__dot--red { background: #FF5F57; }
.code-card__dot--yellow { background: #FEBC2E; }
.code-card__dot--green { background: #28C840; }

.code-card__filename {
  margin-left: 8px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

.code-card__accent {
  height: 2px;
  background: linear-gradient(90deg, #3E4BF3, #E91FFF, #F7AAFF);
}

.code-card__body {
  padding: 14px 16px 16px;
  margin: 0;
  overflow-x: hidden;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 11px;
  line-height: 1.65;
  color: #E6ECFD;
  tab-size: 4;
}

.code-card__body code {
  font-family: inherit;
  font-size: inherit;
}

/* Syntax highlighting */
.syn-keyword  { color: #E91FFF; }
.syn-preproc  { color: #E91FFF; opacity: 0.7; }
.syn-string   { color: #4ADE80; }
.syn-type     { color: #60A5FA; }
.syn-enum     { color: #E6ECFD; }
.syn-num      { color: #F7AAFF; }
.syn-prop     { color: #93C5FD; }
.syn-fn       { color: #FBBF24; }
.syn-comment  { color: rgba(255, 255, 255, 0.3); font-style: italic; }

@media (max-width: 768px) {
  .brokerage__code-card {
    display: none;
  }
}

/* ---- Brokerage Feature Cards ---- */
.brokerage__feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0;
  flex-shrink: 0;
  opacity: 0;
}

.brokerage__feature-card {
  background: linear-gradient(179.11deg, rgba(255, 255, 255, 0.8) 0.77%, rgba(255, 255, 255, 0.95) 104.27%), rgba(245, 245, 247, 0.9);
  background-blend-mode: overlay, normal;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.06);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brokerage__feature-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 32px;
  opacity: 0.85;
}

.brokerage__feature-title {
  font-family: var(--font-display), sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #000;
  line-height: 1.3;
  margin: 0 0 10px;
}

.brokerage__feature-desc {
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.65;
  margin: 0;
}

@media (max-height: 1200px) {
  .brokerage__feature-card {
    padding: 16px;
  }
  .brokerage__feature-icon {
    margin-bottom: 16px;
  }
  .brokerage__feature-title {
    margin: 0 0 6px;
  }
}

@media (max-width: 768px) {
  .brokerage__feature-cards {
    grid-template-columns: 1fr;
  }
}


/* ——————————————————————————————————————————————————————————
   FEATURES SECTION
   ————————————————————————————————————————————————————————— */

.section--features {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 3rem 0;
  overflow: visible;
}


/* ——————————————————————————————————————————————————————————
   FEATURES HEADER
   ————————————————————————————————————————————————————————— */

.features-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 80px;
  position: relative;
  z-index: 3;
  color: var(--text-primary);
}

.features-header__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 446px;
  flex: 1 1 auto;
}

.features-header__label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2.1px;
  opacity: 0.5;
  line-height: 0.75;
}

.features-header__title {
  font-size: 40px;
  line-height: normal;
}

.features-header__description {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.2px;
  opacity: 0.7;
  max-width: 414px;
  flex: 1 1 auto;
}

/* ——————————————————————————————————————————————————————————
   BENTO GRID
   ————————————————————————————————————————————————————————— */

.bento {
  display: none;
  grid-template-columns: 4fr 6fr;
  grid-template-rows: auto auto auto;
  gap: 17px;
  position: relative;
  z-index: 2;
}

.bento {
  perspective: 1000px;
}

.bento__item {
  background: linear-gradient(179.11deg, rgba(255, 255, 255, 0.8) 0.77%, rgba(255, 255, 255, 0.95) 104.27%), rgba(245, 245, 247, 0.9);
  background-blend-mode: overlay, normal;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.bento__item:hover {
  box-shadow: 0px 8px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.bento__item--hero {
  grid-column: 1 / -1;
  height: 675px;
}

.bento__item--left {
  height: 675px;
}

.bento__item--right {
  height: 675px;
}

.bento__item--full {
  grid-column: 1 / -1;
  height: 550px;
}

/* Bento card content */
.bento__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 40px;
  position: relative;
  z-index: 2;
}

.bento__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 34px;
  color: #000000;
  margin: 0;
}

.bento__description {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: rgba(0, 0, 0, 0.7);
  opacity: 0.6;
  margin: 0;
  max-width: 449px;
}

/* Bento visual placeholder */
.bento__visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.bento__visual img {
  max-width: 100%;
  height: auto;
}

/* Content positioning variations */
.bento__content--center {
  align-items: center;
  text-align: center;
  padding-top: 60px;
}

.bento__content--center .bento__description {
  text-align: center;
}

/* Visual positioning variations */
.bento__visual--bottom {
  align-items: flex-end;
  justify-content: center;
}

.bento__visual--right {
  justify-content: flex-end;
  align-items: end;
}

.bento__visual--full {
  padding: 0;
}

.bento__visual--full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mockup images */
.bento__mockup {
  border-radius: 0;
  box-shadow: 0px 4px 60px rgba(12, 25, 25, 0.3);
}

/* ---- Trade Animation (Bento Hero 3-Frame Sequence) ---- */

.trade-anim {
  position: absolute;
  top: 180px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trade-anim__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    ellipse at 60% 50%,
    rgba(62, 75, 243, 0.25) 0%,
    rgba(62, 75, 243, 0.08) 40%,
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* Each frame is absolutely positioned so they stack */
.trade-anim__frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.trade-anim__frame--processing,
.trade-anim__frame--completed {
  opacity: 0;
}

/* ---- Frame 1: Trade Order Card ---- */

.trade-order {
  max-width: 460px;
  background: #0a1919;
  border-radius: 16px;
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #fff;
}

.trade-order__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trade-order__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.14px;
  text-transform: uppercase;
  color: #fff;
}

.trade-order__badge--top {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
}

.trade-order__expand {
  opacity: 0.5;
}

.trade-order__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trade-order__label {
  font-family: var(--font-body);
  font-size: 14px;
  opacity: 0.5;
  margin: 0;
}

.trade-order__amount {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  margin: 0;
}

.trade-order__estimate {
  font-family: var(--font-body);
  font-size: 14px;
  margin: 0;
}

.trade-order__estimate strong {
  font-weight: 500;
  text-transform: uppercase;
}

.trade-order__details {
  background: #1c2b2b;
  border: 1px solid #2a3939;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.trade-order__row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.1;
}

.trade-order__row span:first-child {
  opacity: 0.5;
}

.trade-order__row strong {
  font-weight: 500;
  text-transform: uppercase;
}

.trade-order__disclaimer {
  font-family: var(--font-body);
  font-size: 12px;
  opacity: 0.5;
  margin: 0;
  line-height: 1.3;
}

.trade-order__actions {
  display: flex;
  gap: 16px;
}

.trade-order__btn {
  flex: 1;
  height: 56px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 16px;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.trade-order__btn--cancel {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.trade-order__btn--confirm {
  background: #fff;
  color: #182f2f;
  font-weight: 600;
  border: 2px solid #182f2f;
  box-shadow: 0 0 9px rgba(254, 170, 57, 0.16);
}

/* ---- Frame 2 & 3: Petal Spinner ---- */

.petal-spinner {
  position: relative;
  width: 220px;
  height: 220px;
}

.petal-spinner__ring {
  position: absolute;
  inset: 0;
}

/* Each petal is generated via JS using the petal SVG path */
.petal-spinner__petal {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.petal-spinner__petal svg {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 44px;
}

.petal-spinner--complete {
  width: 280px;
  height: 280px;
}

/* ---- Frame 2: Processing text ---- */

.trade-processing,
.trade-completed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  max-width: 460px;
  background: #0c1919;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 460 / 500;
}

/* Inner glow behind the petal spinner */
.trade-processing::before,
.trade-completed::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    ellipse at 55% 50%,
    rgba(62, 75, 243, 0.3) 0%,
    rgba(62, 75, 243, 0.08) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.trade-processing__text,
.trade-completed__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.trade-processing__title,
.trade-completed__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  color: #fff;
  margin: 0;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.trade-processing__subtitle,
.trade-completed__subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ---- Badge Morph (SIPC bento card) ---- */

.badge-morph {
  width: 100%;
  margin: 0 auto;
}

.badge-morph__svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Seamless transfer - image top, 65% from left */
.bento__item--right .bento__visual {
  position: absolute;
  top: 0;
  left: 60%;
  transform: translateX(-60%);
  bottom: auto;
  right: auto;
}

.bento__item--right .bento__mockup {
  width: auto;
  height: auto;
  transform: scale(1.4);
  transform-origin: top center;
  box-shadow: none;
  border-radius: 0 0 16px 16px;
}

.transfer-swap {
  transform: scale(1.4);
  transform-origin: top center;
}

.transfer-swap svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Seamless transfer - text bottom left */
.bento__item--right .bento__content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 40px;
  z-index: 2;
}

/* Full-width card mockup - no border radius */
.bento__item--full .bento__mockup {
  border-radius: 0;
}

/* ——————————————————————————————————————————————————————————
   HOW IT WORKS SECTION
   ————————————————————————————————————————————————————————— */

.how-it-works {
  padding-top: 120px;
  position: relative;
  z-index: 3;
}

.how-it-works__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 80px;
}

.how-it-works__header--two-col {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

.how-it-works__subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.55);
  max-width: 280px;
}

.how-it-works__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: rgba(0, 0, 0, 0.6);
  line-height: 0.75;
}

.how-it-works__title {
  font-size: 34px;
  font-weight: 400;
  line-height: normal;
  color: #000000;
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step__card {
  position: relative;
  border-radius: 16px;
  height: 265px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #F5F5F7;
}

.step__card-screen-gradient {
  position: absolute;
  top: 29.6%;
  left: 20.6%;
  width: 58.8%;
  height: 40.75%;
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
}

.step__card-phone-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.step__card-anim {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__card-anim svg {
  width: 100%;
  height: 100%;
  display: block;
}

.step__card-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step__card-img {
  display: block;
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.step__graphic {
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__graphic--3 img {
  width: 220px;
  height: 110px;
}

.step__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step__number {
  border-radius: 16px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: -0.16px;
  width: fit-content;
  background: linear-gradient(135deg, rgba(62, 75, 243, 0.2) 0%, rgba(233, 31, 255, 0.2) 100%);
  color: var(--color-off-black);
  border: 1px solid rgba(62, 75, 243, 0.3);
}

.step__title {
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  color: #000000;
}

.step__description {
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: -0.16px;
  color: rgba(0, 0, 0, 0.7);
  opacity: 1;
}

@media (max-width: 768px) {
  .features-header {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
  }

  .features-header__left,
  .features-header__title,
  .features-header__description {
    width: 100%;
  }

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

  .bento__item--hero {
    grid-column: 1;
  }

  .bento__item--hero,
  .bento__item--left,
  .bento__item--right {
    height: auto;
    min-height: 400px;
  }

  .bento__item--full {
    height: auto;
    min-height: 350px;
  }

  .how-it-works__title {
    max-width: 100%;
  }

  .how-it-works__header--two-col {
    grid-template-columns: 1fr;
  }

  .how-it-works__steps {
    grid-template-columns: 1fr;
  }
}


/* ——————————————————————————————————————————————————————————
   DEPLOY CAPITAL SECTION
   ————————————————————————————————————————————————————————— */

/* ——————————————————————————————————————————————————————————
   BUILT FOR SECTION
   ————————————————————————————————————————————————————————— */

.section--built-for {
  padding: 120px 0;
  position: relative;
  z-index: 3;
}

.built-for {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.built-for__title {
  font-size: 34px;
  font-weight: 400;
  color: #000;
  line-height: 1.1;
}

.built-for__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.built-for__card {
  background: #F5F5F7;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.built-for__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 48px;
  opacity: 0.85;
}

.built-for__card-title {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin-bottom: 12px;
  line-height: 1.2;
}

.built-for__card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
  .built-for__grid {
    grid-template-columns: 1fr;
  }
}

/* ——————————————————————————————————————————————————————————
   FOOTER SECTION
   ————————————————————————————————————————————————————————— */

.section--footer {
  position: relative;
  z-index: 3;
  background: var(--color-off-black);
  min-height: 926px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 5rem clamp(1.5rem, 4vw, 5rem) 0;
}

.footer__vectors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.footer__vector {
  position: absolute;
}

.footer__vector--1 {
  width: 1374px;
  min-width: 1380px;
  height: auto;
  left: 0;
  top: 0;
}

.footer__vector--2 {
  width: 717px;
  min-width: 720px;
  height: auto;
  right: 0;
  top: 0;
}

.footer__content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer__logo svg {
  width: 40px;
  height: 40px;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.footer__column-title {
  font-family: var(--font-display), sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-white);
  margin: 0 0 12px 0;
  letter-spacing: -0.15px;
  line-height: 1.35;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__links li {
  line-height: 1.5;
}

.footer__links a {
  font-family: var(--font-body), sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--color-white);
  opacity: 0.7;
  text-decoration: none;
  letter-spacing: -0.16px;
  transition: opacity 0.2s ease;
}

.footer__links a:hover {
  opacity: 1;
}

.footer__links a:focus-visible {
  outline: 1px solid var(--color-white);
  outline-offset: 2px;
}

.footer__wordmark {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

.footer__wordmark-svg {
  display: block;
  width: 100%;
  opacity: 0.15;
}

.footer__bottom {
  position: relative;
  z-index: 10;
  margin-top: auto;
  padding: 2rem 0;
  text-align: center;
}

.footer__copyright {
  font-family: var(--font-body), sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}


/* ——————————————————————————————————————————————————————————
   RESPONSIVE BREAKPOINTS
   ————————————————————————————————————————————————————————— */

@media (max-width: 1024px) {
  .footer__content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer__columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }

  body {
    overflow-x: hidden;
  }

  .section--hero,
  .section--features,
  .section--footer,
  .bento-bg,
  .footer__vectors {
    overflow-x: clip;
  }

  .container {
    padding-inline: 1.25rem;
  }

  .nav--floating {
    padding: 0.5rem;
  }

  .nav--floating .nav__bar {
    width: calc(100vw - 1rem);
    padding: 0.5rem 0.625rem;
    position: relative;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 47, 47, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }

  .nav__inner {
    gap: 0.625rem;
  }

  .nav__logo {
    min-width: 0;
  }

  .nav__icon,
  .nav__wordmark,
  .nav--dark .nav__icon,
  .nav--dark .nav__wordmark {
    color: var(--color-off-black);
  }

  .nav__actions {
    gap: 0;
  }

  .nav__hamburger {
    display: none;
  }

  .btn--petal-dark-sm {
    height: 36px;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 9px;
    white-space: nowrap;
  }

  .section--hero {
    min-height: auto;
    background: #182F2F;
    overflow: hidden;
  }

  .section--hero::before {
    height: 100%;
  }

  .hero__frame {
    height: auto;
    min-height: 76svh;
    padding: 5.5rem 0 2.25rem;
  }

  .hero__content {
    width: 100%;
    max-width: 18.25rem;
    overflow: visible;
  }

  .hero__title {
    font-size: clamp(1.9rem, 8.2vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: 0;
    margin-bottom: 1.25rem;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero__subtitle--light {
    max-width: 17.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero__cta .btn--petal-dark {
    width: min(100%, 13rem);
    height: 54px;
    padding: 16px 24px;
    font-size: 15px;
  }

  .section--features {
    padding: 2.5rem 0 5rem;
    overflow: hidden;
    background: var(--surface-page);
  }

  .brokerage__pin-wrapper {
    height: auto;
    min-height: 0;
    display: flex;
    justify-content: flex-start;
    gap: 1.25rem;
    padding-block: 0;
  }

  .brokerage__header {
    flex-direction: column;
    gap: 0.875rem;
    margin: 0 auto;
    text-align: left;
  }

  .brokerage__header-left {
    gap: 0.75rem;
  }

  .brokerage__label {
    font-size: 12px;
    line-height: 1.2;
  }

  .brokerage__title {
    font-size: clamp(2rem, 8.5vw, 2.5rem);
    line-height: 1.08;
  }

  .brokerage__subtitle {
    padding-top: 0;
    font-size: 1rem;
    line-height: 1.55;
  }

  .brokerage__mosaic-wrap {
    width: 100%;
    flex: none;
    flex-direction: column;
    gap: 0.75rem;
    perspective: 900px;
    align-items: center;
    /* Panels inside are position:absolute. Give the wrapper a real height
       so the dashboard composite stops overlapping the subtitle above. */
    aspect-ratio: auto;
    min-height: 0;
    margin-top: 0.75rem;
    container-type: inline-size;
  }

  .brokerage__mosaic {
    width: 100%;
    aspect-ratio: 4500 / 2484;
    height: auto;
  }

  .brokerage__backdrop {
    border-radius: 10px;
  }

  .brokerage__panel {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  }

  .brokerage__code-card {
    display: block;
    position: relative;
    bottom: auto;
    align-self: center;
    width: 100%;
    max-width: min(350px, calc(100vw - 2.5rem));
    margin: 0 auto;
    border-radius: 12px;
  }

  .code-card__body {
    max-height: 260px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.55;
  }

  .brokerage__feature-cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.25rem;
    opacity: 1 !important;
  }

  .brokerage__feature-card {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .brokerage__feature-icon {
    margin-bottom: 1.5rem;
  }

  .bento-bg img {
    filter: blur(28px);
  }

  .bento-bg__petal-1 {
    right: -12vw;
  }

  .bento-bg__petal-4 {
    left: auto;
    right: -65vw;
  }

  .how-it-works {
    padding-top: 5rem;
  }

  .how-it-works__header {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .how-it-works__header--two-col {
    flex-direction: column;
  }

  .how-it-works__title {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 1.08;
  }

  .how-it-works__subtitle {
    max-width: 100%;
    font-size: 1rem;
  }

  .how-it-works__steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .step {
    gap: 1.25rem;
  }

  .step__card {
    height: 220px;
    border-radius: 14px;
  }

  .step__content {
    gap: 0.75rem;
  }

  .step__title {
    font-size: 1.25rem;
  }

  .step__description {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .section--built-for {
    padding: 5rem 0;
  }

  .built-for {
    gap: 2rem;
  }

  .built-for__title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .built-for__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .built-for__card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .built-for__icon {
    margin-bottom: 2rem;
  }

  .section--footer {
    min-height: auto;
    padding: 4rem 1.25rem 1.5rem;
  }

  .footer__content {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .footer__columns {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer__vector--1 {
    width: 190vw;
    min-width: 0;
    left: -45vw;
  }

  .footer__vector--2 {
    width: 150vw;
    min-width: 0;
    right: -50vw;
  }

  .footer__wordmark {
    position: relative;
    margin: 2rem -1.25rem 0;
    overflow: hidden;
  }

  .footer__wordmark-svg {
    width: 130%;
    max-width: none;
    margin-left: -15%;
    display: block;
  }

  .footer__bottom {
    padding: 1.5rem 0 0;
  }
}

@media (max-width: 480px) {
  .footer__columns {
    grid-template-columns: 1fr;
  }
}
