:root {
  --ink: #f8f4ff;
  --muted: #c8b8e8;
  --panel: rgba(43, 22, 78, 0.68);
  --line: rgba(211, 186, 255, 0.18);
  --teal: #26e2dd;
  --lime: #c7ff6a;
  --coral: #ff7aa8;
  --gold: #f5c86b;
  --violet: #8d54ff;
  --deep: #080312;
  --purple: #4b159c;
  --white: #ffffff;
  --shadow: 0 34px 110px rgba(72, 28, 160, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  background: #0b0318;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    linear-gradient(120deg, rgba(141, 84, 255, 0.24) 0 16%, transparent 16% 28%, rgba(255, 122, 168, 0.12) 28% 38%, transparent 38%),
    linear-gradient(180deg, #190733 0%, #0b0318 58%, #160927 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 82%);
}

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

.site-shell {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  color: var(--white);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: var(--white);
  background: linear-gradient(135deg, #7f42ff, #d84dff);
  box-shadow: 0 12px 34px rgba(146, 84, 255, 0.5);
}

.kraken-logo {
  width: 31px;
  height: 31px;
  fill: currentColor;
  display: block;
}

.nav-links {
  gap: 24px;
  color: #d8cdf0;
  font-weight: 700;
  font-size: 0.94rem;
  white-space: nowrap;
}

.nav-links a {
  padding: 8px 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.86fr);
  align-items: center;
  gap: 54px;
  min-height: calc(100vh - 90px);
  padding: 50px 0 82px;
}

.hero > * {
  min-width: 0;
}

.hero::before {
  content: "KRAKEN";
  position: absolute;
  top: 0;
  left: -4px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.035);
  font-size: 9rem;
  font-weight: 800;
  line-height: 0.8;
}

.hero-copy {
  max-width: 660px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: #d9b8ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1 {
  max-width: 700px;
  font-size: 5.85rem;
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 20px 70px rgba(150, 92, 255, 0.4);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-lede {
  max-width: 650px;
  margin-top: 24px;
  color: #d7c7ef;
  font-size: 1.18rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.hero-note {
  max-width: 600px;
  margin-top: 16px;
  color: #f4edff;
  font-size: 1.02rem;
  font-weight: 700;
  text-wrap: pretty;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, #7f42ff, #c53dff 55%, #ff7aa8);
  box-shadow: 0 22px 52px rgba(141, 84, 255, 0.42);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.store-button:nth-child(2) {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.store-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(11, 16, 32, 0.23);
}

.store-button small,
.store-button strong {
  display: block;
}

.store-button small {
  opacity: 0.76;
  font-size: 0.72rem;
  font-weight: 700;
}

.store-button strong {
  margin-top: 1px;
  font-size: 1rem;
}

.store-icon {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.apple-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.play-icon::before {
  content: "";
  position: absolute;
  inset: 3px 2px 3px 6px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: linear-gradient(180deg, #ffffff, #d9b8ff 50%, #ff7aa8);
}

.download-notice {
  position: fixed;
  inset: auto 16px 24px;
  z-index: 20;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.download-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.download-notice-panel {
  display: grid;
  gap: 6px;
  width: min(420px, 100%);
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  background: rgba(13, 5, 28, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.download-notice-panel strong {
  font-size: 1rem;
}

.download-notice-panel span {
  color: #d7c7ef;
  font-size: 0.86rem;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
  min-width: 0;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: min(360px, 88vw);
  min-height: 610px;
  padding: 22px;
  border: 12px solid #12051f;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(47, 17, 90, 0.96), rgba(15, 5, 34, 0.96)),
    linear-gradient(145deg, rgba(141, 84, 255, 0.42), rgba(255, 122, 168, 0.2));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  color: #f9f3ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.signal {
  width: 36px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f9f3ff 62%, rgba(249, 243, 255, 0.28) 62%);
}

.app-card,
.chart-panel,
.asset-list {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.balance-card {
  display: grid;
  gap: 8px;
  margin-top: 34px;
  padding: 22px;
}

.balance-card span {
  color: #ccb8ff;
  font-size: 0.82rem;
  font-weight: 800;
}

.balance-card strong {
  font-size: 2.45rem;
  color: var(--white);
}

.balance-card em {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #170421;
  background: linear-gradient(135deg, #d9b8ff, #ff7aa8);
  font-style: normal;
  font-weight: 800;
}

.chart-panel {
  position: relative;
  height: 156px;
  margin-top: 16px;
  padding: 16px;
  overflow: hidden;
}

.chart-line {
  position: absolute;
  inset: 26px 18px 42px;
  border-bottom: 5px solid transparent;
  background:
    linear-gradient(135deg, transparent 0 14%, var(--teal) 14% 18%, transparent 18% 32%, var(--coral) 32% 36%, transparent 36% 50%, var(--violet) 50% 55%, transparent 55%),
    linear-gradient(180deg, transparent, rgba(141, 84, 255, 0.35));
  clip-path: polygon(0 70%, 18% 48%, 36% 58%, 54% 28%, 75% 40%, 100% 12%, 100% 100%, 0 100%);
}

.chart-bars {
  position: absolute;
  inset: auto 16px 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 8px;
  height: 55px;
}

.chart-bars span {
  border-radius: 999px;
  background: rgba(217, 184, 255, 0.28);
}

.chart-bars span:nth-child(1) { height: 42%; }
.chart-bars span:nth-child(2) { height: 62%; }
.chart-bars span:nth-child(3) { height: 48%; }
.chart-bars span:nth-child(4) { height: 82%; }
.chart-bars span:nth-child(5) { height: 68%; }

.asset-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
}

.asset-list div {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
}

.coin {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
}

.coin-a { background: var(--gold); }
.coin-b { background: linear-gradient(135deg, #7f42ff, #d84dff); }
.coin-c { background: linear-gradient(135deg, #26e2dd, #7f42ff); }

.asset-list p {
  font-weight: 800;
}

.asset-list small {
  display: block;
  margin-top: 3px;
  color: #baa5df;
  font-weight: 700;
}

.asset-list strong {
  color: #d9b8ff;
}

.section-strip {
  padding: 84px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  margin-bottom: 28px;
}

h2 {
  max-width: 720px;
  font-size: 3.15rem;
  line-height: 1.06;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.feature-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(72, 28, 160, 0.22);
}

.feature-icon {
  display: block;
  position: relative;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: rgba(217, 184, 255, 0.13);
}

.market-icon::before,
.wallet-icon::before,
.alert-icon::before {
  content: "";
  position: absolute;
}

.market-icon::before {
  inset: 12px 10px;
  border-left: 4px solid #d9b8ff;
  border-bottom: 4px solid #d9b8ff;
  transform: skew(-18deg);
}

.wallet-icon::before {
  inset: 11px 8px;
  border: 4px solid #ff7aa8;
  border-radius: 8px;
}

.alert-icon::before {
  width: 18px;
  height: 22px;
  top: 10px;
  left: 13px;
  border-radius: 12px 12px 8px 8px;
  background: #8d54ff;
}

.feature-card h3 {
  font-size: 1.18rem;
}

.feature-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.72;
}

.security-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 36px;
  margin: 28px 0 80px;
  padding: 38px;
  border-radius: 10px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(120, 53, 255, 0.96), rgba(33, 9, 68, 0.96)),
    #211044;
  box-shadow: var(--shadow);
}

.security-band .eyebrow {
  color: #f1dcff;
}

.security-list {
  display: grid;
  gap: 14px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-list li {
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 38px;
  color: #aa96cf;
  font-size: 0.92rem;
}

.footer span {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 920px) {
  body {
    background-attachment: scroll;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 58px;
    overflow: hidden;
  }

  .hero::before {
    left: 50%;
    transform: translateX(-50%);
    font-size: 6.2rem;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
  }

  h1 {
    font-size: 3.65rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .hero-lede,
  .hero-note {
    margin-left: auto;
    margin-right: auto;
  }

  .download-row {
    justify-content: center;
  }

  .hero-visual {
    min-height: auto;
  }

  .feature-grid,
  .security-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html,
  body {
    min-width: 100%;
    background-color: #0b0318;
  }

  .site-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .topbar,
  .hero,
  .footer {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-strip,
  .security-band {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-strip {
    background:
      linear-gradient(180deg, rgba(11, 3, 24, 0), rgba(11, 3, 24, 0.82) 18%, rgba(11, 3, 24, 0.82) 100%);
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding: 14px 0 18px;
    overflow: visible;
  }

  .brand {
    font-size: 1rem;
    justify-self: center;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .kraken-logo {
    width: 28px;
    height: 28px;
  }

  .nav-links {
    grid-column: 1 / -1;
    gap: 16px;
    justify-content: center;
    font-size: 0.84rem;
  }

  .hero {
    gap: 28px;
    padding: 20px 0 40px;
  }

  .hero-copy {
    width: 100%;
    max-width: min(335px, calc(100vw - 32px));
    margin: 0 auto;
    overflow: hidden;
  }

  .hero::before {
    top: 6px;
    font-size: 4.45rem;
  }

  h1 {
    max-width: min(252px, calc(100vw - 56px));
    margin-left: auto;
    margin-right: auto;
    font-size: 1.66rem;
    line-height: 1.14;
    word-break: break-all;
  }

  h2 {
    font-size: 1.62rem;
    line-height: 1.16;
  }

  .hero-lede {
    max-width: min(315px, calc(100vw - 40px));
    margin-left: auto;
    margin-right: auto;
    margin-top: 18px;
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .hero-note {
    max-width: min(310px, calc(100vw - 40px));
    margin-left: auto;
    margin-right: auto;
    font-size: 0.92rem;
  }

  .download-row {
    width: 100%;
    max-width: min(330px, calc(100vw - 32px));
    margin-left: auto;
    margin-right: auto;
  }

  .store-button {
    width: 100%;
    justify-content: center;
    min-width: 0;
    min-height: 58px;
  }

  .hero-visual {
    min-height: auto;
  }

  .phone-frame {
    width: min(100%, 286px);
    min-height: 464px;
    padding: 16px;
    border-width: 8px;
    border-radius: 30px;
  }

  .balance-card {
    margin-top: 24px;
    padding: 18px;
  }

  .balance-card strong {
    font-size: 1.72rem;
  }

  .chart-panel {
    height: 116px;
  }

  .asset-list {
    gap: 10px;
    padding: 12px;
  }

  .asset-list div {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .coin {
    width: 38px;
    height: 38px;
  }

  .asset-list p,
  .asset-list strong {
    font-size: 0.92rem;
  }

  .section-heading {
    display: block;
  }

  .section-strip {
    padding: 46px 0;
  }

  .feature-card,
  .security-band {
    padding: 22px;
  }

  .feature-grid {
    gap: 12px;
  }

  .security-band {
    gap: 22px;
    margin: 0 0 46px;
    border-radius: 0;
    box-shadow: none;
  }

  .footer {
    display: block;
  }

  .footer p {
    margin-top: 8px;
  }
}

@media (max-width: 380px) {
  .site-shell {
    max-width: 100%;
    padding: 0;
  }

  .topbar,
  .hero,
  .footer {
    padding-left: 10px;
    padding-right: 10px;
  }

  .section-strip,
  .security-band {
    padding-left: 10px;
    padding-right: 10px;
  }

  .nav-links {
    gap: 13px;
    font-size: 0.8rem;
  }

  h1 {
    max-width: min(238px, calc(100vw - 52px));
    font-size: 1.52rem;
  }

  .hero-copy,
  .download-row {
    max-width: 304px;
  }

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

  .phone-frame {
    width: min(100%, 272px);
    min-height: 448px;
  }
}
