:root {
  --bg: #050816;
  --bg-alt: #070d1d;
  --navy: #050816;
  --navy-soft: #0c1630;
  --green: #4cff91;
  --green-soft: #2dd07b;
  --text-main: #e6edff;
  --text-soft: #9ba5c9;
  --border-soft: rgba(255, 255, 255, 0.08);
  --card-bg: #070b18;
  --radius-lg: 20px;
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.65);
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
  background: radial-gradient(circle at top, #081933 0, #02030a 40%, #010107 100%);
  color: var(--text-main);
  scroll-behavior: smooth;
}

/* Starfield canvas */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Layout */
.page {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 120px 20px 80px;
}

/* Top nav */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 22, 0.96),
    rgba(5, 8, 22, 0.88),
    transparent
  );
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  letter-spacing: 0.17em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-main);
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.86rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-soft);
  padding: 4px 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--green);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

/* CTA bar */
.cta-bar {
  position: relative;
  z-index: 1;
  margin-top: 72px;
}

.cta-top {
  margin-bottom: 24px;
}

.cta-bottom {
  margin-top: 40px;
}

.cta-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  border-radius: 999px;
  background:
    radial-gradient(circle at left, rgba(76, 255, 145, 0.16), transparent 60%),
    radial-gradient(circle at right, rgba(76, 176, 255, 0.16), transparent 60%),
    rgba(5, 8, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cta-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-soft);
}

.cta-title {
  font-size: 0.9rem;
  color: var(--text-main);
}

.cta-button {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.86rem;
  background: var(--green);
  color: #02040a;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(76, 255, 145, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cta-button:hover {
  background: var(--green-soft);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(76, 255, 145, 0.4);
}

/* Hero */
.hero {
  margin-top: 32px;
  margin-bottom: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 38px;
  align-items: center;
}

.hero-left {
  position: relative;
}

/* keep original kicker styling */
.hero-kicker {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green-soft);
  margin: 0 0 10px;
}

.hero-title {
  font-size: clamp(2.1rem, 3.1vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 14px;
}

.hero-subtitle {
  font-size: 0.96rem;
  color: var(--text-soft);
  max-width: 34rem;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.primary-btn,
.ghost-btn {
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}

.primary-btn {
  background: var(--green);
  color: #020307;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(76, 255, 145, 0.4);
}

.primary-btn:hover {
  background: var(--green-soft);
  transform: translateY(-1px);
  box-shadow: 0 16px 46px rgba(76, 255, 145, 0.45);
}

.ghost-btn {
  background: transparent;
  color: var(--text-soft);
  border-color: rgba(255, 255, 255, 0.25);
}

.ghost-btn:hover {
  color: var(--text-main);
  border-color: var(--green);
  transform: translateY(-1px);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.hero-points li {
  margin-bottom: 6px;
}

/* Hero right card */
.hero-right {
  position: relative;
}

.orbit-orb {
  position: absolute;
  inset: -60px -50px auto auto;
  background:
    radial-gradient(circle at 30% 20%, rgba(76, 255, 145, 0.28), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(72, 209, 255, 0.24), transparent 60%);
  filter: blur(4px);
  opacity: 0.9;
  border-radius: 40%;
  pointer-events: none;
  animation: slow-orbit 14s ease-in-out infinite alternate;
}

.hero-card {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(76, 255, 145, 0.15), transparent 65%),
    radial-gradient(circle at bottom right, rgba(46, 125, 255, 0.19), transparent 70%),
    rgba(5, 8, 22, 0.98);
  border-radius: 32px;
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  animation: float 10s ease-in-out infinite;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.hero-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(
    145deg,
    rgba(76, 255, 145, 0.55),
    rgba(0, 230, 118, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
}

.hero-app-icon img {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  object-fit: cover;
}

.hero-card-name {
  font-size: 0.94rem;
  font-weight: 600;
}

.hero-card-role {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hero-card-body {
  font-size: 0.86rem;
  color: var(--text-soft);
}

.hero-card-line {
  margin-top: 0;
  margin-bottom: 14px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green-soft);
}

.metric-value {
  font-size: 0.84rem;
}

.hero-card-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(76, 255, 145, 0.8);
}

/* Sections */
.section {
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.section-header h2 {
  margin: 0 0 4px;
  font-size: 1.4rem;
}

.section-header p {
  margin: 0 0 18px;
  font-size: 0.94rem;
  color: var(--text-soft);
}

.section-body {
  font-size: 0.94rem;
  color: var(--text-soft);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(76, 255, 145, 0.4);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.8);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1rem;
}

.card p {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* Thinking blocks */
.thinking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.thinking-block {
  background: linear-gradient(135deg, rgba(76, 255, 145, 0.12), transparent 70%);
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.thinking-block:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 255, 145, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.thinking-block h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.thinking-block p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* Timeline */
.timeline {
  border-left: 1px dashed rgba(255, 255, 255, 0.2);
  margin-top: 10px;
  padding-left: 16px;
}

.timeline-item {
  position: relative;
  padding: 10px 0 6px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(76, 255, 145, 0.8);
}

.timeline-year {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green-soft);
  margin-bottom: 4px;
}

/* Contact */
.contact-section {
  margin-bottom: 24px;
}

.contact-form {
  margin-top: 8px;
  background: var(--card-bg);
  border-radius: 22px;
  padding: 18px 18px 16px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.form-field label {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.form-field input,
.form-field textarea {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 10px;
  background: #050816;
  color: var(--text-main);
  font-size: 0.86rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-soft);
}

.full-width {
  width: 100%;
}

/* QR section */
.qr-section {
  margin-top: 40px;
}

.qr-tool {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 18px 18px 16px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  display: grid;
  gap: 14px;
}

.qr-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) auto;
  gap: 10px;
}

#qr-text {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 10px;
  background: #050816;
  color: var(--text-main);
  font-size: 0.86rem;
}

#qr-text:focus {
  outline: none;
  border-color: var(--green-soft);
}

.qr-btn {
  padding-inline: 16px;
}

#qr-result-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 120px;
}

#qr-code img,
#qr-code canvas {
  margin: 0;
  border-radius: 16px;
  padding: 8px;
  background: radial-gradient(circle at top, rgba(76, 255, 145, 0.18), transparent 70%);
  border: 1px solid rgba(76, 255, 145, 0.45);
}

.qr-note {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-soft);
  padding: 24px 20px 30px;
}

/* Scroll reveal (if you want to use later) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-6px) translateX(3px);
  }
  100% {
    transform: translateY(0px) translateX(0px);
  }
}

@keyframes slow-orbit {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(8px, -6px) rotate(4deg);
  }
  100% {
    transform: translate(-4px, 6px) rotate(-4deg);
  }
}

/* ===========================
   Responsive
   =========================== */

/* Tablet-ish */
@media (max-width: 900px) {
  .page {
    padding: 104px 16px 64px;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 4px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-right {
    order: -1;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cta-button {
    align-self: stretch;
    text-align: center;
    width: 100%;
  }

  .qr-input-row {
    grid-template-columns: 1fr;
  }

  #qr-result-wrapper {
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .page {
    padding-inline: 16px;
    padding-top: 96px;
    padding-bottom: 56px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
  }

  .brand-tagline {
    font-size: 0.7rem;
  }

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

  .hero {
    margin-bottom: 44px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .hero-card {
    border-radius: 24px;
  }

  .cards-grid {
    gap: 16px;
  }

  .card {
    padding: 16px 14px 14px;
  }

  .thinking-grid {
    gap: 14px;
  }

  .section {
    margin-bottom: 48px;
  }

  .timeline {
    padding-left: 12px;
  }

  .timeline-item {
    font-size: 0.86rem;
  }

  .contact-form,
  .qr-tool {
    padding: 16px 14px 14px;
    border-radius: 18px;
  }

  .cta-bar {
    margin-top: 58px;
  }

  .footer {
    padding: 20px 16px 26px;
  }

  .qr-note {
    font-size: 0.76rem;
  }
}

/* Extra small devices */
@media (max-width: 420px) {
  .brand-text {
    max-width: 180px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.84rem;
  }

  .hero-points {
    font-size: 0.8rem;
  }

  .section-header h2 {
    font-size: 1.25rem;
  }

  .section-header p {
    font-size: 0.86rem;
  }
}
