:root {
  --gn-bg: #030712;
  --gn-bg-soft: #0a1020;
  --gn-text: #f8fafc;
  --gn-muted: #94a3b8;
  --gn-accent: #7c3aed;
  --gn-accent-2: #3b82f6;
  --gn-border: rgba(148, 163, 184, 0.18);
  --gn-nav-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", system-ui, sans-serif;
  background: var(--gn-bg);
  color: var(--gn-text);
  overflow-x: hidden;
}

.gn-hero-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.gn-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.gn-page {
  display: none;
}

.gn-page.is-active {
  display: block;
}

.gn-page[data-gn-page="home"] .gn-hero {
  min-height: 100vh;
}

.gn-page[data-gn-page="product"],
.gn-page[data-gn-page="platform"],
.gn-page[data-gn-page="start"] {
  padding-top: var(--gn-nav-h);
  min-height: calc(100vh - var(--gn-nav-h));
}

body[data-gn-view="home"] .gn-hero-canvas {
  opacity: 0.85;
}

body[data-gn-view]:not([data-gn-view="home"]) .gn-hero-canvas {
  opacity: 0.35;
}

/* —— Nav —— */
.gn-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--gn-nav-h);
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}

.gn-nav.is-scrolled {
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gn-border);
}

.gn-nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.gn-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.gn-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  object-fit: cover;
}

.gn-nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.gn-nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s;
  position: relative;
  padding: 0.25rem 0;
}

.gn-nav-link:hover,
.gn-nav-link.is-active {
  color: #fff;
}

.gn-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gn-accent), var(--gn-accent-2));
}

.gn-nav-cta {
  flex-shrink: 0;
  padding: 0.55rem 1.25rem !important;
  font-size: 0.875rem !important;
}

.gn-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
}

.gn-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
}

/* —— Buttons —— */
.gn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}

.gn-btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.gn-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 45%, #3b82f6 100%);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
}

.gn-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.45);
}

.gn-btn-outline {
  color: #e2e8f0;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.gn-btn-outline:hover {
  border-color: rgba(196, 181, 253, 0.7);
  background: rgba(124, 58, 237, 0.08);
}

.gn-btn-ghost {
  color: #cbd5e1;
  background: transparent;
  border: 1px solid transparent;
}

.gn-btn-ghost:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.08);
}

/* —— Hero —— */
.gn-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--gn-nav-h) + 2rem) 1.25rem 4rem;
  overflow: hidden;
}

.gn-hero-bg-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background:
    radial-gradient(ellipse 55% 50% at 70% 35%, rgba(236, 72, 153, 0.22), transparent 65%),
    radial-gradient(ellipse 50% 45% at 25% 55%, rgba(124, 58, 237, 0.28), transparent 70%),
    radial-gradient(ellipse 40% 35% at 50% 80%, rgba(59, 130, 246, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.gn-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
}

.gn-hero-inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.gn-hero-copy {
  max-width: 36rem;
}

.gn-hero-tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.gn-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: #bfdbfe;
  font-size: 0.8125rem;
}

.gn-hero-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 10px #60a5fa;
}

.gn-hero-tag-line {
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.6), transparent);
}

.gn-hero-tag-note {
  color: #64748b;
  font-size: 0.8125rem;
}

.gn-hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.gn-hero-title span {
  display: block;
}

.gn-hero-title-accent {
  background: linear-gradient(135deg, #f472b6 0%, #e879f9 40%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.15em;
}

.gn-hero-title-main {
  color: #fff;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.gn-hero-desc {
  margin: 0 0 1.35rem;
  color: #94a3b8;
  font-size: clamp(0.95rem, 1.8vw, 1.0625rem);
  line-height: 1.8;
  max-width: 32rem;
}

.gn-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.gn-hero-chips li {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.45);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 500;
}

.gn-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.gn-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.gn-hero-stats p {
  margin: 0;
}

.gn-hero-stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7dd3fc, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.gn-hero-stats span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: #64748b;
}

/* Hero visual / mock */
.gn-hero-visual {
  position: relative;
  min-height: 420px;
  perspective: 1200px;
}

.gn-hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.2);
  pointer-events: none;
}

.gn-hero-orbit--a {
  inset: 8% 5% 12% 5%;
  animation: gn-orbit-spin 28s linear infinite;
}

.gn-hero-orbit--b {
  inset: 18% 15% 22% 15%;
  border-color: rgba(59, 130, 246, 0.15);
  animation: gn-orbit-spin 20s linear infinite reverse;
}

@keyframes gn-orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

.gn-hero-mock {
  position: relative;
  margin: 0 auto;
  max-width: 520px;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(18, 22, 34, 0.92);
  backdrop-filter: blur(16px);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.65),
    0 0 60px -10px rgba(124, 58, 237, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: rotateY(-6deg) rotateX(4deg);
  transform-style: preserve-3d;
  animation: gn-mock-float 6s ease-in-out infinite;
}

@keyframes gn-mock-float {
  0%,
  100% {
    transform: rotateY(-6deg) rotateX(4deg) translateY(0);
  }
  50% {
    transform: rotateY(-4deg) rotateX(2deg) translateY(-8px);
  }
}

.gn-hero-mock-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.8);
  background: rgba(26, 31, 44, 0.95);
}

.gn-hero-mock-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
}

.gn-hero-mock-dot--r {
  background: #ef4444;
}

.gn-hero-mock-dot--y {
  background: #eab308;
}

.gn-hero-mock-dot--g {
  background: #22c55e;
}

.gn-hero-mock-title {
  flex: 1;
  text-align: center;
  font-size: 0.6875rem;
  color: #64748b;
  font-family: ui-monospace, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gn-hero-mock-body {
  display: flex;
  min-height: 280px;
}

.gn-hero-mock-side {
  width: 5.5rem;
  flex-shrink: 0;
  padding: 0.75rem 0.5rem;
  border-right: 1px solid rgba(55, 65, 81, 0.6);
  background: rgba(15, 19, 29, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.625rem;
}

.gn-hero-mock-label {
  margin: 0 0 0.35rem;
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
}

.gn-hero-mock-side span {
  padding: 0.3rem 0.4rem;
  border-radius: 0.35rem;
  color: #64748b;
}

.gn-hero-mock-side .is-active {
  color: #e9d5ff;
  background: rgba(88, 28, 135, 0.35);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.gn-hero-mock-main {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(10, 13, 20, 0.85);
}

.gn-hero-mock-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gn-hero-mock-card {
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(55, 65, 81, 0.55);
  background: rgba(31, 41, 55, 0.35);
}

.gn-hero-mock-card.is-highlight {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(88, 28, 135, 0.2);
}

.gn-hero-mock-card p {
  margin: 0.25rem 0 0;
  font-size: 0.625rem;
  line-height: 1.45;
  color: #94a3b8;
}

.gn-hero-mock-tag {
  font-size: 0.5625rem;
  color: #c4b5fd;
}

.gn-hero-mock-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.gn-hero-mock-badges em {
  font-style: normal;
  font-size: 0.5625rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.gn-hero-mock-preview {
  flex: 1;
  min-height: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.65rem;
  border: 1px dashed rgba(100, 116, 139, 0.45);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(30, 27, 75, 0.35));
}

.gn-hero-mock-play {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.4);
}

.gn-hero-mock-preview p {
  margin: 0;
  font-size: 0.625rem;
  color: #64748b;
}

.gn-hero-mock-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.gn-hero-mock-metrics span {
  text-align: center;
  font-size: 0.625rem;
  color: #94a3b8;
  padding: 0.35rem;
  border-radius: 0.35rem;
  background: rgba(31, 41, 55, 0.5);
}

.gn-hero-mock-metrics b {
  display: block;
  font-size: 0.8125rem;
  color: #e9d5ff;
  font-weight: 700;
}

.gn-hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  animation: gn-float-bob 5s ease-in-out infinite;
}

.gn-hero-float strong {
  display: block;
  font-size: 0.75rem;
  color: #f1f5f9;
}

.gn-hero-float small {
  display: block;
  font-size: 0.625rem;
  color: #64748b;
}

.gn-hero-float-icon {
  font-size: 1.125rem;
  line-height: 1;
}

.gn-hero-float--1 {
  top: 2%;
  left: -6%;
  animation-delay: 0s;
}

.gn-hero-float--2 {
  top: 38%;
  left: -10%;
  animation-delay: 0.8s;
}

.gn-hero-float--3 {
  bottom: 22%;
  left: -4%;
  animation-delay: 1.6s;
}

.gn-hero-float--4 {
  top: 8%;
  right: -8%;
  animation-delay: 0.4s;
}

.gn-hero-float--5 {
  bottom: 10%;
  right: -6%;
  animation-delay: 1.2s;
}

@keyframes gn-float-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* —— Recommend / Product —— */
.gn-recommend-section {
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--gn-border);
  background: linear-gradient(180deg, rgba(3, 7, 18, 0) 0%, rgba(10, 16, 32, 0.65) 100%);
}

.gn-section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.gn-section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #64748b;
}

.gn-section-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
}

.gn-section-sub {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--gn-muted);
  font-size: 0.9375rem;
}

.gn-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem 0 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--gn-border);
  position: sticky;
  top: var(--gn-nav-h);
  z-index: 30;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(8px);
}

.gn-tab-btn {
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.gn-tab-btn:hover {
  color: #e9d5ff;
  background: rgba(88, 28, 135, 0.2);
}

.gn-tab-btn.is-active {
  color: #f3e8ff;
  background: rgba(88, 28, 135, 0.35);
  border-color: rgba(168, 85, 247, 0.4);
  font-weight: 600;
}

.gn-tab-panel {
  display: none;
}

.gn-tab-panel.is-active {
  display: block;
}

.gn-section {
  border-top: 1px solid var(--gn-border);
}

.gn-footer {
  border-top: 1px solid var(--gn-border);
  padding: 2.5rem 0;
}

/* —— App mockups (from original) —— */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-gradient-x {
  background-size: 200% 200%;
  animation: gradient-x 4s ease infinite;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

.animate-spin-slow-reverse {
  animation: spin-slow-reverse 15s linear infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes gradient-x {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-slow-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.35);
  border-radius: 10px;
}

.app-window {
  background: rgba(18, 22, 34, 0.92);
  border: 1px solid rgba(75, 85, 99, 0.6);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 30px 80px -24px rgba(124, 58, 237, 0.22);
}

.app-titlebar {
  background: #1a1f2c;
  border-bottom: 1px solid #1f2937;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
}

.app-sidebar {
  background: rgba(15, 19, 29, 0.95);
  border-right: 1px solid #1f2937;
}

.app-nav-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.app-nav-item {
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-bottom: 2px;
}

.app-nav-item.active {
  background: rgba(88, 28, 135, 0.35);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.app-scene-card {
  padding: 0.75rem;
  border-radius: 0.65rem;
  font-size: 0.75rem;
}

.app-scene-card.highlight {
  background: rgba(88, 28, 135, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.app-scene-card.muted {
  background: rgba(31, 41, 55, 0.45);
  border: 1px solid rgba(55, 65, 81, 0.5);
  opacity: 0.85;
}

.app-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.app-badge-blue {
  background: rgba(30, 58, 138, 0.5);
  color: #93c5fd;
}

.app-badge-green {
  background: rgba(20, 83, 45, 0.5);
  color: #86efac;
}

.app-badge-amber {
  background: rgba(120, 53, 15, 0.5);
  color: #fcd34d;
}

.app-badge-gray {
  background: rgba(55, 65, 81, 0.6);
  color: #d1d5db;
}

.app-stat {
  background: rgba(31, 41, 55, 0.55);
  border-radius: 0.5rem;
  padding: 0.5rem;
  text-align: center;
  font-size: 10px;
  color: #d1d5db;
}

@media (max-width: 900px) {
  .gn-nav-links,
  .gn-nav-cta {
    display: none;
  }

  .gn-nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .gn-nav.is-open .gn-nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--gn-nav-h);
    left: 0;
    right: 0;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(3, 7, 18, 0.96);
    border-bottom: 1px solid var(--gn-border);
    gap: 0.75rem;
  }

  .gn-nav.is-open .gn-nav-cta {
    display: inline-flex;
    position: absolute;
    top: calc(var(--gn-nav-h) + 11rem);
    right: 1.25rem;
  }

  .gn-hero-stats {
    gap: 1.5rem;
  }

  .gn-hero-inner--split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .gn-hero-visual {
    min-height: 360px;
  }

  .gn-hero-mock {
    transform: none;
    animation: none;
    max-width: 100%;
  }

  .gn-hero-float--1 {
    top: 0;
    left: 0;
  }

  .gn-hero-float--2 {
    top: auto;
    bottom: 52%;
    left: 0;
  }

  .gn-hero-float--3 {
    bottom: 28%;
    left: 0;
  }

  .gn-hero-float--4 {
    top: 0;
    right: 0;
    left: auto;
  }

  .gn-hero-float--5 {
    bottom: 0;
    right: 0;
    left: auto;
  }

  .gn-hero-orbit {
    display: none;
  }
}
