.logo-mark,
.mini-logo {
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
  color: #050505;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  font-style: normal;
}

body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/kraken-mark-transparent.png");
  background-repeat: repeat-y;
  background-position: center 110px;
  background-size: min(76vw, 1050px) auto;
  opacity: .022;
}

.header,
main,
.footer {
  position: relative;
  z-index: 1;
}

.logo-mark img,
.mini-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
  display: block;
}

.app-card .mini-logo img {
  filter: invert(1);
}

.mini-logo {
  width: 32px;
  height: 32px;
}

.header .logo-mark {
  width: 43px;
  height: 30px;
}

.footer .logo-mark {
  width: 43px;
  height: 30px;
}

.hero h1 em,
.section-heading h2 em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}

.hero-actions {
  gap: 12px;
}

.button-login {
  padding: 17px 25px;
  border: 1px solid #050505;
  color: #050505;
  background: transparent;
}

.button-login:hover {
  background: #fff;
}

.hero-platforms {
  margin-top: 16px;
}

.visual-grid {
  position: absolute;
  inset: 42px 0;
  background-image: linear-gradient(#0000000b 1px, transparent 1px), linear-gradient(90deg, #0000000b 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle, #000 10%, transparent 68%);
}

.visual-index {
  position: absolute;
  z-index: 1;
  color: #999;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.5px;
  writing-mode: vertical-rl;
}

.visual-coordinate {
  position: absolute;
  z-index: 1;
  color: #aaa;
  font: 700 7px/1 Manrope, sans-serif;
  letter-spacing: 1.2px;
}

.coordinate-a { top: 8%; left: 19%; }
.coordinate-b { right: 15%; bottom: 6%; }

.connection-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #bdbdbd;
  stroke-width: 1;
  stroke-dasharray: 3 4;
  pointer-events: none;
}

.connection-lines circle {
  fill: #111;
  stroke: none;
}

.index-top { right: 5%; top: 13%; }
.index-bottom { left: 7%; bottom: 10%; transform: rotate(180deg); }

.app-brand {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-left: 9px;
}

.app-brand b { font-size: 8px; letter-spacing: 1.4px; }
.app-brand small { color: #666; font-size: 5px; letter-spacing: 1px; margin-top: 2px; }

.system-bar {
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 6px;
  font-weight: 700;
  margin: -8px 5px 13px;
}

.system-icons { letter-spacing: 2px; }

.app-card {
  height: 535px;
}

.app-card .connection-status {
  margin-top: 24px;
}

.app-card .power-button {
  width: 96px;
  height: 96px;
  margin: 14px auto 20px;
}

.current-ip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 7px;
}

.current-ip small { color: #575757; font-size: 5px; letter-spacing: .8px; }
.current-ip span { color: #999; font-size: 7px; font-family: monospace; }

.session-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.session-row > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px;
  border: 1px solid #292929;
  border-radius: 9px;
}

.session-row small { color: #666; font-size: 5px; letter-spacing: .8px; }
.session-row b { color: #ddd; font-size: 8px; }

.signal-bars {
  height: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  margin-top: 11px;
}

.signal-bars i { width: 2px; background: #777; border-radius: 2px; }
.signal-bars i:nth-child(1), .signal-bars i:nth-child(5) { height: 3px; }
.signal-bars i:nth-child(2), .signal-bars i:nth-child(4) { height: 7px; }
.signal-bars i:nth-child(3) { height: 11px; background: #fff; }

.app-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 8px -5px -12px;
  padding-top: 9px;
  border-top: 1px solid #252525;
}

.app-nav span { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #555; }
.app-nav svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.app-nav small { font-size: 5px; }
.app-nav .active { color: #fff; }

.floating-card {
  position: absolute;
  z-index: 3;
  width: auto;
  min-width: 148px;
  padding: 11px 16px;
  background: #0d0d0d;
  color: #fff;
  border: 1px solid #2d2d2d;
  border-radius: 100px;
  box-shadow: 0 12px 25px #0002;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 9px;
}

.floating-card small { grid-column: 1 / -1; color: #777; font-size: 5px; letter-spacing: 1px; }
.floating-card b { color: #fff; font-size: 14px; margin: 2px 0 0; letter-spacing: -.5px; }
.floating-card span { color: #999; font-size: 6px; margin-top: 2px; }
.server-card { top: 13%; right: -1%; }
.data-card { bottom: 10%; left: 1%; }

.security-node {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: 7px auto;
  gap: 2px 7px;
  padding: 9px 11px;
  background: #f4f4f2dd;
  backdrop-filter: blur(8px);
  border: 1px solid #d4d4d4;
  box-shadow: 0 8px 20px #00000012;
}

.security-node i { grid-row: span 2; align-self: center; width: 6px; height: 6px; border-radius: 50%; background: #111; box-shadow: 0 0 0 3px #ddd; }
.security-node span { color: #999; font-size: 5px; letter-spacing: .8px; }
.security-node b { font-size: 7px; letter-spacing: .7px; }
.node-a { left: 3%; top: 17%; }
.node-b { right: 2%; bottom: 11%; }

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 7px;
  height: 7px;
  border: 1px solid #aaa;
}

.hero-visual::before { left: 15%; top: 11%; border-right: 0; border-bottom: 0; }
.hero-visual::after { right: 10%; bottom: 8%; border-left: 0; border-top: 0; }

.device-showcase {
  position: relative;
  min-height: 190px;
  margin: 6px -8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-visual {
  position: relative;
  min-height: 245px;
  margin: 8px 0 25px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.privacy-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#0000000b 1px, transparent 1px), linear-gradient(90deg, #0000000b 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle, #000 20%, transparent 72%);
}

.privacy-ring { position: absolute; border: 1px solid #d5d5d5; border-radius: 50%; }
.ring-outer { width: 220px; height: 220px; }
.ring-inner { width: 164px; height: 164px; border-style: dashed; animation: privacy-spin 22s linear infinite; }
.privacy-shield { position: relative; z-index: 2; width: 96px; fill: #111; stroke: #fff; stroke-width: 3; }
.privacy-shield rect, .privacy-shield path:nth-child(n+2) { fill: none; stroke-linecap: round; }
.privacy-label { position: absolute; z-index: 2; padding: 6px 9px; background: #fff; border: 1px solid #ddd; border-radius: 100px; font-size: 6px; font-weight: 800; letter-spacing: 1px; }
.label-one { left: 8%; top: 25%; }
.label-two { right: 7%; bottom: 27%; }
.privacy-status { position: absolute; bottom: 4px; font-size: 7px; color: #777; letter-spacing: .7px; }
.privacy-status i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #111; }

.speed-visual {
  position: relative;
  min-height: 245px;
  margin: 8px 0 25px;
  padding: 20px 0 0;
  border-bottom: 1px solid #ddd;
}

.speed-visual::before { content: ""; position: absolute; inset: 20px 0 0; background: repeating-linear-gradient(to bottom, #ddd 0 1px, transparent 1px 36px); opacity: .55; }
.speed-value { position: relative; z-index: 2; display: flex; align-items: baseline; gap: 6px; }
.speed-value b { font-size: 45px; letter-spacing: -3px; line-height: 1; }
.speed-value span { color: #888; font-size: 8px; }
.speed-chart { position: absolute; left: 0; right: 0; bottom: 22px; width: 100%; height: 105px; overflow: visible; }
.chart-fill { fill: url(#speedFill); }
.chart-line { fill: none; stroke: #111; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.speed-meta { position: absolute; z-index: 2; left: 0; right: 0; bottom: 5px; display: flex; justify-content: space-between; align-items: center; font-size: 6px; letter-spacing: .8px; }
.speed-meta span { color: #777; }
.speed-meta i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: #111; }
.speed-meta b { font-size: 7px; }

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

.device-showcase {
  min-height: 245px;
  margin-bottom: 25px;
}

.feature-card h3 {
  min-height: 58px;
  display: flex;
  align-items: flex-end;
}

.device-orbit {
  position: absolute;
  width: 220px;
  height: 110px;
  border: 1px solid #303030;
  border-radius: 50%;
  transform: rotate(-12deg);
}

.device {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #737373;
  font-size: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.device svg { fill: none; stroke: #eee; stroke-width: 2; }
.device-laptop { left: 8px; bottom: 30px; }
.device-laptop svg { width: 112px; }
.device-laptop .screen-mark { fill: #fff; stroke: none; }
.device-tablet { right: 46px; top: 23px; }
.device-tablet svg { width: 52px; }
.device-phone { right: 6px; bottom: 24px; }
.device-phone svg { width: 37px; }
.device-plus { position: absolute; right: 0; top: 3px; color: #777; font-size: 8px; border: 1px solid #333; border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; }

.platform-list {
  display: flex;
  gap: 7px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.platform-list > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid #303030;
  border-radius: 100px;
  color: #bbb;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .4px;
  transition: border-color .25s, background .25s, color .25s;
}

.platform-list > span:hover { border-color: #777; background: #171717; color: #fff; }
.platform-list i { width: 12px; height: 12px; display: grid; place-items: center; color: #fff; font-style: normal; }
.windows-icon { grid-template-columns: 1fr 1fr; gap: 1px; }
.windows-icon b { display: block; width: 5px; height: 5px; background: #fff; }
.apple-icon { font-size: 10px; }
.android-icon { font-size: 15px; line-height: 1; transform: rotate(-12deg); }

.connection-capacity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #252525;
}

.connection-capacity > span { display: flex; gap: 3px; flex: 1; }
.connection-capacity i { height: 3px; flex: 1; background: #fff; border-radius: 10px; opacity: .85; }
.connection-capacity i:nth-last-child(-n+3) { opacity: .28; }
.connection-capacity b { color: #777; font-size: 7px; letter-spacing: 1px; }

@media (max-width: 600px) {
  .header .logo-mark {
    width: 43px;
    height: 30px;
  }

  .floating-card {
    transform: scale(.85);
  }

  .security-node,
  .connection-lines,
  .visual-coordinate {
    opacity: .72;
  }
  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: min(100%, 290px);
  }
}

/* Responsive layout: keeps the desktop composition while scaling it safely. */
@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  .header {
    width: calc(100% - 32px);
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-visual {
    width: min(100%, 610px);
    margin-inline: auto;
  }

  .feature-grid {
    align-items: stretch;
  }

  .feature-card {
    height: 100%;
  }
}

@media (max-width: 600px) {
  body::before {
    background-size: 150vw auto;
    background-position: center 90px;
  }

  .container {
    width: calc(100% - 28px);
  }

  .header {
    width: calc(100% - 28px);
  }

  .header .logo {
    gap: 8px;
    font-size: 18px;
  }

  .header .logo-mark {
    width: 39px;
    height: 28px;
  }

  .hero {
    display: block;
    padding-top: 48px;
    padding-bottom: 25px;
  }

  .hero h1 {
    font-size: clamp(47px, 15vw, 62px);
    line-height: .94;
    letter-spacing: -3.5px;
  }

  .hero-description {
    max-width: 390px;
    margin-top: 24px;
    margin-bottom: 25px;
    padding-inline: 4px;
    line-height: 1.6;
  }

  .hero-platforms {
    display: flex;
    justify-content: center;
  }

  .hero-stats {
    width: 100%;
    margin-top: 38px;
  }

  .hero-stats div {
    flex: 1;
    min-width: 0;
  }

  .hero-stats strong {
    white-space: nowrap;
  }

  .hero-stats span {
    line-height: 1.35;
  }

  .hero-visual {
    width: calc(100% + 70px);
    height: 570px;
    margin: -5px -35px -20px;
    transform: scale(.82);
    transform-origin: center center;
  }

  .app-card {
    transform: rotate(2deg);
  }

  .server-card { right: 0; }
  .data-card { left: 0; }
  .node-a { left: 1%; }
  .node-b { right: 1%; }

  .trust-strip {
    position: relative;
    z-index: 2;
  }

  .features {
    padding-top: 78px;
    padding-bottom: 80px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .feature-grid {
    gap: 14px;
  }

  .feature-card,
  .feature-large {
    width: 100%;
    min-width: 0;
    padding: 24px;
  }

  .privacy-visual,
  .speed-visual,
  .device-showcase {
    width: 100%;
    min-height: 225px;
  }

  .feature-card h3 {
    min-height: auto;
    font-size: 27px;
  }

  .cta {
    min-height: 380px;
    padding: 50px 28px;
  }

  .cta h2 {
    font-size: clamp(40px, 12vw, 52px);
    line-height: 1;
  }

  .cta .button {
    width: 100%;
    max-width: 310px;
  }

  .footer {
    width: calc(100% - 28px);
    text-align: center;
  }
}

@media (max-width: 380px) {
  .container,
  .header,
  .footer {
    width: calc(100% - 20px);
  }

  .header .logo {
    font-size: 17px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 46px;
    letter-spacing: -3px;
  }

  .hero-actions .button {
    max-width: 100%;
  }

  .hero-stats div {
    padding-inline: 8px;
  }

  .hero-stats strong {
    font-size: 15px;
  }

  .hero-stats span {
    font-size: 8px;
  }

  .hero-visual {
    width: calc(100% + 100px);
    height: 530px;
    margin-inline: -50px;
    transform: scale(.72);
  }

  .section-heading h2 {
    font-size: 39px;
  }

  .feature-card,
  .feature-large {
    padding: 20px;
  }

  .privacy-visual,
  .speed-visual,
  .device-showcase {
    min-height: 210px;
  }

  .ring-outer { width: 194px; height: 194px; }
  .ring-inner { width: 145px; height: 145px; }

  .cta {
    padding-inline: 20px;
  }
}
