:root {
  --navy-950: #050a12;
  --navy-900: #0a1220;
  --teal: #2ec4b6;
  --teal-dim: #1a9e93;
  --text: #e8eef7;
  --muted: #8b9bb3;
  --line: rgba(46, 196, 182, 0.18);
  --app-bg: #090c15;
  --app-surface: #131a26;
  --cyan: #00e5ff;
  --green: #00ff7f;
  --red: #ff5252;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--navy-950);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 55% at 70% 15%, rgba(0, 229, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(20, 80, 120, 0.22), transparent 50%),
    linear-gradient(165deg, #07101c 0%, #0a1524 42%, #050a12 100%);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  border-radius: 22%;
}

.top-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.top-link:hover {
  color: var(--cyan);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem 3rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  min-height: calc(100vh - 5rem);
}

.hero-copy {
  animation: fade-up 0.8s ease both;
}

.domain {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dim);
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.tagline {
  margin: 1.35rem 0 0;
  max-width: 28rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--teal);
  color: #04201c;
}

.btn-primary:hover {
  background: #3fd4c5;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 580px;
  animation: fade-up 0.9s ease 0.12s both;
}

.app-icon {
  position: absolute;
  left: -4%;
  top: 4%;
  width: clamp(88px, 16vw, 132px);
  height: auto;
  border-radius: 28%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: float-y 5.5s ease-in-out infinite;
  z-index: 4;
  pointer-events: none;
}

.phone {
  width: min(300px, 80vw);
  margin-left: 10%;
  filter: drop-shadow(0 36px 70px rgba(0, 0, 0, 0.55));
}

.phone-bezel {
  position: relative;
  border-radius: 2rem;
  padding: 10px;
  background: linear-gradient(160deg, #2a3344, #121820 45%, #0a0e14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 229, 255, 0.1);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 18px;
  border-radius: 999px;
  background: #05070c;
  z-index: 2;
}

.app-screen {
  position: relative;
  border-radius: 1.45rem;
  overflow: hidden;
  background: var(--app-bg);
  height: 600px;
  padding: 1.5rem 0.95rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.72rem;
  isolation: isolate;
}

.app-bar {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  background: var(--app-surface);
  margin: -1.5rem -0.95rem 0.15rem;
  padding: 1.45rem 0.85rem 0.65rem;
}

.app-bar-title {
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cyan);
  letter-spacing: -0.02em;
}

.app-bar-icon {
  display: grid;
  place-items: center;
  color: rgba(0, 229, 255, 0.7);
}

.traffic {
  height: 72px;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  background: linear-gradient(180deg, #162032, #0e1520);
  padding: 10px 8px 8px;
  overflow: hidden;
}

.traffic-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 100%;
}

.traffic-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #7c4dff 0%, #00e5ff 70%, #00ff7f 100%);
  opacity: 0.9;
  animation: bar-pulse 2.8s ease-in-out infinite;
}

.traffic-bars i:nth-child(odd) {
  animation-delay: 0.15s;
}

.traffic-bars i:nth-child(3n) {
  animation-delay: 0.35s;
}

.status-ok {
  margin: 0.15rem 0 0;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green);
}

.status-ip {
  margin: 0;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  color: rgba(0, 229, 255, 0.85);
}

.connect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  height: 44px;
  margin-top: 0.15rem;
  border: 0;
  border-radius: 14px;
  background: var(--cyan);
  color: #001018;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 8px 18px rgba(0, 229, 255, 0.22);
  cursor: default;
}

.connect-btn.is-live {
  background: var(--red);
  box-shadow: 0 8px 18px rgba(255, 82, 82, 0.28);
  color: #001018;
}

.quota-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
}

.quota-row strong {
  color: #fff;
  font-weight: 600;
}

.quota-chip {
  flex-shrink: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.62rem;
}

.device-id {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  color: #777;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  background: var(--app-surface);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.chip-body {
  flex: 1;
  min-width: 0;
}

.chip-label {
  margin: 0;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.chip-title {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-meta {
  margin: 0.08rem 0 0;
  font-size: 0.58rem;
  color: var(--cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chev {
  color: #777;
  font-size: 1.15rem;
  line-height: 1;
}

.features {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  animation: fade-up 0.8s ease 0.2s both;
}

.features-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.features-lead {
  margin: 0.6rem 0 2rem;
  color: var(--muted);
  max-width: 36rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}

.feature-list li {
  display: grid;
  gap: 0.35rem;
  max-width: 36rem;
}

.feature-list strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-list span {
  color: var(--muted);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
}

.foot nav {
  display: flex;
  gap: 1.25rem;
}

.foot a:hover {
  color: var(--cyan);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes bar-pulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.06);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 0.5rem;
    gap: 2.5rem;
  }

  .hero-visual {
    min-height: 0;
    order: -1;
  }

  .app-icon {
    left: 0;
    top: auto;
    bottom: 8%;
    width: 84px;
  }

  .phone {
    margin-left: 0;
    width: min(270px, 74vw);
  }

  .app-screen {
    height: 560px;
  }

  .wordmark {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-visual,
  .features,
  .app-icon,
  .traffic-bars i {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}
