/* =================================================================
   VARIABLES
================================================================= */
:root {
  --navy-950: #070f18;
  --navy-900: #0a1420;
  --navy-800: #0e1c2b;
  --navy-700: #14293b;
  --card-navy: #101f2f;

  --green-500: #12d18e;
  --green-400: #2be8a5;
  --green-700: #0a6e4c;
  --green-900: #06301f;

  --orange-400: #ff8b4d;

  --white: #ffffff;
  --muted-70: rgba(255, 255, 255, 0.7);
  --muted-50: rgba(255, 255, 255, 0.5);
  --border-soft: rgba(255, 255, 255, 0.1);

  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: "Fraunces", Georgia, serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =================================================================
   RESET
================================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-display);
  background: var(--white);
  color: var(--navy-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--green-400);
  outline-offset: 3px;
}

/* =================================================================
   TYPOGRAPHY
================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  color: var(--green-400);
}

.accent-orange { color: var(--orange-400); font-family: var(--font-accent); font-style: italic; }
.accent-green  { color: var(--green-400); }

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
  color: var(--white);
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

/* =================================================================
   NAVBAR
================================================================= */
#mainNav {
  padding: 1.1rem 0;
  transition: background 0.35s var(--ease-out), padding 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  background: transparent;
}

#mainNav.scrolled {
  background: rgba(7, 15, 24, 0.85);
  backdrop-filter: blur(14px);
  padding: 0.7rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.navbar-brand {
  display: flex;
  align-items: center;
  color: var(--white) !important;
}

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

.footer-brand .brand-logo {
  height: 30px;
}

.nav-links {
  gap: 2.25rem;
}

.nav-links .nav-link {
  position: relative;
  color: var(--orange-400);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0 !important;
}

.nav-links .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--orange-400);
  transition: width 0.3s var(--ease-out);
}

.nav-links .nav-link:hover::after,
.nav-links .nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  padding: 0.4rem;
}
.navbar-toggler:focus { box-shadow: none; }

.toggler-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 4px 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

/* =================================================================
   HERO
================================================================= */
.hero {
  position: relative;
  padding: 9.5rem 0 6rem;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--green-900) 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -20%;
  width: 55%;
  height: 90%;
  background: radial-gradient(circle, rgba(18, 209, 142, 0.35), transparent 70%);
  pointer-events: none;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 1.5rem;
}

.reveal-line {
  display: block;
}

.hero-sub {
  color: var(--muted-70);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 100px;
  border: 1px solid var(--border-soft);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.pill-badge:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
}

.pill-badge i { color: var(--green-400); }
.pill-badge.dark {
  background: rgba(7, 15, 24, 0.4);
  border-color: rgba(255,255,255,0.15);
  margin-bottom: 1.75rem;
}

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

/* --- Floating animation wrapper --- */
.phone-float {
  animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}

.hero-phone-float {
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45));
}

.hero-phone-img {
  width: 100%;
  max-width: 360px;
  height: auto;
}

/* =================================================================
   PHONE MOCKUP (shared component)
================================================================= */
.phone-mockup {
  width: 260px;
  background: #0c0c0c;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(255,255,255,0.05) inset;
  position: relative;
  transition: box-shadow 0.4s var(--ease-out);
}

.phone-mockup.small {
  width: 190px;
  margin: 0 auto 1.75rem;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #0c0c0c;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  min-height: 420px;
  padding: 2.2rem 1rem 1.2rem;
  position: relative;
}

.phone-mockup.small .phone-screen {
  min-height: 320px;
}

/* Hero phone screen contents */
.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.9rem;
}

.balance-card {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  color: var(--white);
  margin-bottom: 0.9rem;
}

.balance-label { font-size: 0.7rem; opacity: 0.85; margin: 0; }
.balance-amount { font-size: 1.3rem; margin: 0.25rem 0 0.75rem; }

.send-btn {
  background: var(--white);
  color: var(--green-700);
  border: none;
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.send-btn.small { padding: 0.4rem 1rem; }

.quick-actions {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.qa-item {
  flex: 1;
  background: #f4f6f7;
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  text-align: center;
  font-size: 0.65rem;
  color: var(--navy-800);
}

.qa-item i { display: block; font-size: 1rem; margin-bottom: 0.2rem; color: var(--green-700); }

.recent-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 0.5rem;
}

.tx-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.68rem;
  color: var(--navy-800);
}

.tx-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--white);
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tx-name { flex: 1; }
.tx-amt.down { color: #d64545; font-weight: 700; }
.tx-amt.up { color: var(--green-700); font-weight: 700; }

/* =================================================================
   FEATURES SECTION
================================================================= */
.features {
  background: var(--navy-900);
  padding: 6rem 0;
}

.feature-row { row-gap: 2.5rem; }

.feature-col {
  text-align: center;
}

.feature-title {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.feature-text {
  color: var(--muted-70);
  font-size: 0.92rem;
  max-width: 280px;
  margin: 0 auto;
}

/* NFC screen */
.nfc-screen {
  background: var(--navy-950);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 320px !important;
}

.nfc-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-500), var(--green-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 0 0 8px rgba(18, 209, 142, 0.15);
}

.nfc-label { color: var(--muted-70); font-size: 0.7rem; margin: 0; }
.nfc-amount { color: var(--white); font-size: 1.2rem; margin: 0; }

/* QR screen */
.qr-screen {
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  min-height: 320px !important;
}

.qr-frame {
  width: 130px;
  height: 130px;
  position: relative;
}

.qr-pattern {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(0deg, #ccc 0 4px, transparent 4px 8px),
    repeating-linear-gradient(90deg, #ccc 0 4px, transparent 4px 8px);
  opacity: 0.5;
  border-radius: 6px;
}

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid var(--green-400);
}

.corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

/* Voice screen */
.voice-screen {
  background: var(--navy-950);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 320px !important;
  padding: 1.5rem;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 40px;
}

.waveform span {
  width: 3px;
  background: var(--green-400);
  border-radius: 3px;
  animation: waveBounce 1.2s ease-in-out infinite;
}

.waveform span:nth-child(1) { height: 10px; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 24px; animation-delay: 0.1s; }
.waveform span:nth-child(3) { height: 36px; animation-delay: 0.2s; }
.waveform span:nth-child(4) { height: 18px; animation-delay: 0.3s; }
.waveform span:nth-child(5) { height: 30px; animation-delay: 0.4s; }
.waveform span:nth-child(6) { height: 14px; animation-delay: 0.5s; }
.waveform span:nth-child(7) { height: 26px; animation-delay: 0.6s; }
.waveform span:nth-child(8) { height: 12px; animation-delay: 0.7s; }

@keyframes waveBounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.voice-prompt { color: var(--muted-50); font-size: 0.68rem; margin: 0; }
.voice-quote {
  color: var(--green-400);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.4em;
}

/* =================================================================
   QUANTA SECTION
================================================================= */
.quanta-section {
  background: var(--white);
  padding: 2rem 0 6rem;
}

.quanta-card {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--green-900) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
}

.quanta-copy h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 1rem;
}

.quanta-copy p {
  color: var(--muted-70);
  font-size: 0.95rem;
  max-width: 420px;
  margin-bottom: 1.5rem;
}

.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lang-pills span {
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--border-soft);
  font-size: 0.78rem;
  color: var(--white);
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.chat-line {
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  max-width: 90%;
  opacity: 0;
  transform: translateY(10px);
}

.chat-line strong { margin-right: 0.3rem; }

.chat-line.you {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.08);
}

.chat-line.quanta {
  align-self: flex-start;
  background: rgba(18, 209, 142, 0.15);
  color: var(--green-400);
}

.chat-line.confirm {
  align-self: flex-start;
  background: rgba(18, 209, 142, 0.1);
  color: var(--green-400);
  font-weight: 600;
}

.chat-line.in-view {
  animation: chatIn 0.5s var(--ease-out) forwards;
}

@keyframes chatIn {
  to { opacity: 1; transform: translateY(0); }
}

/* =================================================================
   APP PREVIEW
================================================================= */
.app-preview {
  background: var(--navy-900);
  padding: 5rem 0 0;
  text-align: center;
  overflow: hidden;
}

.app-preview h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 2.5rem;
}

/* The store mockup image is pre-cropped right at the phone's cut edge.
   Sitting it flush against the section's bottom (no padding, no card
   background) lets that cut edge double as the start of the CTA section
   below, instead of leaving an awkward gap of empty navy space. */
.store-phone-wrap {
  display: flex;
  justify-content: center;
  line-height: 0;
}

.store-phone-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.4));
}

/* =================================================================
   CTA SECTION
================================================================= */
.cta-section {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--green-900) 100%);
  padding: 5.5rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-form {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cta-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  padding: 0.85rem 1.4rem;
  color: var(--white);
  width: 300px;
  max-width: 80vw;
}

.cta-input::placeholder { color: var(--muted-50); }

.cta-btn {
  background: linear-gradient(135deg, var(--green-400), var(--green-700));
  border: none;
  border-radius: 100px;
  padding: 0.85rem 1.6rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.cta-btn:hover {
  box-shadow: 0 0 24px rgba(43, 232, 165, 0.55);
  transform: translateY(-2px);
}

.cta-tagline {
  color: var(--green-400);
  font-style: italic;
  font-family: var(--font-accent);
  font-size: 0.95rem;
}

/* =================================================================
   FOOTER
================================================================= */
.site-footer {
  background: var(--navy-950);
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--border-soft);
}

.footer-brand p {
  color: var(--muted-50);
  font-size: 0.85rem;
  max-width: 340px;
  margin: 1rem 0 1.2rem;
}

.footer-copy { font-size: 0.78rem; }

.footer-links { text-align: right; }

.footer-heading {
  color: var(--green-400);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links ul li { margin-bottom: 0.6rem; }
.footer-links ul li a {
  color: var(--muted-70);
  font-size: 0.88rem;
  transition: color 0.25s var(--ease-out);
}
.footer-links ul li a:hover { color: var(--green-400); }

/* =================================================================
   SCROLL-REVEAL ANIMATIONS
================================================================= */
.reveal-line,
.reveal-fade,
.reveal-up {
  opacity: 0;
}

.reveal-line { transform: translateY(30px); }
.reveal-fade { transform: translateY(0); }
.reveal-up { transform: translateY(40px); }

.reveal-line.in-view {
  animation: slideUp 0.7s var(--ease-out) forwards;
}
.reveal-fade.in-view {
  animation: fadeIn 0.9s var(--ease-out) forwards;
}
.reveal-up.in-view {
  animation: slideUp 0.8s var(--ease-out) forwards;
}

.hero-title .reveal-line:nth-child(1) { animation-delay: 0.05s; }
.hero-title .reveal-line:nth-child(2) { animation-delay: 0.2s; }
.hero-title .reveal-line:nth-child(3) { animation-delay: 0.35s; }

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.feature-col.in-view { transition: transform 0.35s var(--ease-out); }
.feature-col:hover { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .phone-float { animation: none; }
}

/* =================================================================
   RESPONSIVE
================================================================= */
@media (max-width: 991.98px) {
  .hero { padding: 8rem 0 4rem; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-badges { justify-content: center; }
  .hero-visual { margin-top: 3rem; }
  .footer-links { text-align: left; margin-top: 2rem; }
  .nav-links {
    background: var(--navy-950);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
    align-items: center;
    gap: 1rem !important;
  }
  .quanta-chat { margin-top: 2.5rem; }
}

@media (max-width: 767.98px) {
  .phone-mockup { width: 220px; }
  .section-heading { margin-bottom: 2.5rem; }
  .quanta-card { text-align: center; }
  .lang-pills { justify-content: center; }
  .chat-log { align-items: center; }
  .chat-line.you, .chat-line.quanta, .chat-line.confirm { align-self: center; }
}

@media (max-width: 575.98px) {
  .cta-input { width: 100%; }
  .cta-form { flex-direction: column; align-items: center; }
}
