@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

:root {
  --bg-0: #070612;
  --bg-1: #0f1022;
  --bg-2: #17122f;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7f8ff;
  --muted: #bcc0df;
  --accent-a: #ff4f82;
  --accent-b: #ff8b3d;
  --accent-c: #8f7cff;
  --card: rgba(18, 18, 40, 0.72);
  --card-strong: rgba(22, 22, 49, 0.9);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1100px 720px at 8% -10%, #34152f 0%, transparent 60%),
    radial-gradient(950px 680px at 100% -5%, #2d244f 0%, transparent 56%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1) 46%, var(--bg-0) 100%);
  color: var(--text);
  font-family: "Outfit", "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  min-height: 100%;
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image: radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.3) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 32%, rgba(255, 255, 255, 0.23) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 68%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px);
}

.glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.24;
}

.glow-a {
  top: 8%;
  left: -60px;
  background: #ff4f82;
}

.glow-b {
  right: -70px;
  top: 20%;
  background: #8f7cff;
}

.page {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 18px 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(14, 14, 33, 0.72);
  backdrop-filter: blur(12px);
}

.logo {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 12px;
}

.nav-links a {
  color: #e5e9ff;
  text-decoration: none;
  font-size: 0.88rem;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
}

.cta-mini {
  text-decoration: none;
  color: white;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  background: linear-gradient(130deg, var(--accent-a), var(--accent-b));
}

.hero {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
}

.hero-copy,
.hero-device {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  backdrop-filter: blur(10px);
}

.hero-copy {
  padding: 26px;
}

.eyebrow {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
}

h1 {
  margin: 14px 0 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 3rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  background: linear-gradient(118deg, #ff7fa7, #ffbe61 48%, #9f8bff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.sales-points {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sales-points .pill {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  padding: 6px 9px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  color: #e8ebff;
}

.hero-cta {
  margin-top: 15px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(130deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 10px 30px rgba(255, 79, 130, 0.35);
}

.btn-secondary {
  color: #f0f2ff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.quick-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quick-tags span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
  color: #eceeff;
  background: rgba(255, 255, 255, 0.05);
}

.hero-device {
  padding: 18px;
}

.device-shell {
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(28, 28, 58, 0.95), rgba(15, 15, 34, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.device-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #6fffab;
  box-shadow: 0 0 8px #6fffab;
}

.device-feed {
  padding: 10px;
  display: grid;
  gap: 9px;
}

.device-item {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.04);
}

.device-item .t {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.device-item .s {
  font-size: 0.76rem;
  color: #b8bfdf;
}

.metrics {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-strong);
  padding: 12px;
}

.metric .k {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #aeb4d8;
}

.metric .v {
  margin-top: 6px;
  font-size: 1.5rem;
  font-weight: 800;
}

.section {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(17, 17, 38, 0.68);
  backdrop-filter: blur(8px);
  padding: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.section-head p {
  margin: 7px 0 0;
  color: var(--muted);
}

.section-head.compact h2 {
  font-size: 1.2rem;
}

.meta-line {
  margin-top: 7px;
  font-size: 0.85rem;
  color: #c9ceeb;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.meta-pill {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.04);
}

.cap-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tech-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tech-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 13px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.tech-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tech-title span {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(255, 79, 130, 0.32), rgba(143, 124, 255, 0.32));
}

.tech-card p {
  margin: 0;
  color: #c7cde7;
  font-size: 0.88rem;
  line-height: 1.45;
}

.cap-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.cap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cap-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cap-emoji {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(255, 79, 130, 0.32), rgba(159, 139, 255, 0.32));
}

.cap-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.cap-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  padding: 4px 7px;
}

.cap-card p {
  margin: 9px 0 0;
  color: #c7cce8;
  font-size: 0.88rem;
  line-height: 1.45;
}

.feed-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.feed-controls {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.feed-showing {
  color: #c9ceeb;
  font-size: 0.85rem;
}

.feed-more-btn {
  min-width: 130px;
}

.story-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.story-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(130deg, rgba(255, 79, 130, 0.28), rgba(255, 139, 61, 0.24), rgba(143, 124, 255, 0.28));
  position: relative;
  overflow: hidden;
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-image-logo {
  object-fit: contain;
  padding: 20px;
  background: linear-gradient(145deg, rgba(16, 24, 45, 0.95), rgba(22, 32, 58, 0.95));
}

.story-image-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.84);
}

.story-body {
  padding: 11px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
}

.meta-chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 0.69rem;
  color: #cad1ee;
  background: rgba(255, 255, 255, 0.04);
  text-transform: lowercase;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-title {
  margin: 7px 0 6px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.story-summary {
  margin: 0;
  color: #cad0ea;
  font-size: 0.86rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.story-tag {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.story-link {
  color: #ffb77a;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.story-link:hover {
  text-decoration: underline;
}

.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.badge-grid,
.mode-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.badge-card,
.mode-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 11px;
}

.badge-title,
.mode-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  font-weight: 700;
}

.badge-desc,
.mode-desc {
  margin: 0;
  color: #c7cde7;
  font-size: 0.86rem;
  line-height: 1.4;
}

.mode-status {
  margin-top: 8px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mode-status.beta {
  border-color: rgba(255, 112, 150, 0.6);
  color: #ff9dbc;
}

.panel {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.panel h3 {
  margin: 0 0 7px;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
}

.panel li {
  margin: 6px 0;
  color: #cad0ea;
}

.close-cta {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(140deg, rgba(255, 79, 130, 0.18), rgba(255, 139, 61, 0.13), rgba(143, 124, 255, 0.2));
}

.close-cta h2 {
  margin: 0;
  font-size: 1.65rem;
}

.close-cta p {
  color: #d2d6ef;
  margin: 8px 0 14px;
}

.empty {
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  color: #d1d6ef;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cap-grid,
  .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page {
    padding: 12px 12px 30px;
  }
  .topbar {
    border-radius: 14px;
    padding: 9px 10px;
    flex-wrap: wrap;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  h1 {
    font-size: 2.1rem;
  }
  .hero-copy,
  .hero-device,
  .section {
    border-radius: 16px;
    padding: 14px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .metric .v {
    font-size: 1.25rem;
  }
  .cap-grid,
  .feed-grid,
  .badge-grid,
  .mode-grid {
    grid-template-columns: 1fr;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .feed-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .feed-more-btn {
    width: 100%;
  }
  .story-body {
    padding: 10px;
  }
  .story-summary {
    -webkit-line-clamp: 5;
  }
  .meta-chip {
    max-width: 100%;
  }
  .dual {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .btn {
    width: 100%;
  }
  .hero-cta {
    flex-direction: column;
  }
  .close-cta h2 {
    font-size: 1.35rem;
  }
}
