/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background-color: #f9f9fa;
  color: #333;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --elevation-0: none;
  --elevation-1: 0 2px 8px rgba(0, 0, 0, 0.06);
  --elevation-2: 0 8px 20px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  --elevation-3: 0 16px 32px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.08);
  --elevation-4: 0 24px 48px rgba(0, 0, 0, 0.16), 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Brand color tokens */
:root {
  --brand: #a6a746;
  --brand-600: #949548;
  --ink: #314458;
  --bg: #f9f9fa;
}

/* Simplified, premium header/hero transition */
.header {
  background: var(--bg);
  box-shadow: none;
}
.header,
.hero {
  transition: background 300ms ease, box-shadow 300ms ease, opacity 300ms ease;
}
.header.scrolled {
  background: rgba(249, 249, 250, 0.98);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Clean brand-tinted hero background without aurora */
.hero {
  background: linear-gradient(
      180deg,
      rgba(166, 167, 70, 0) 0px,
      rgba(166, 167, 70, 0) 72px,
      rgba(166, 167, 70, 0.06) 220px,
      transparent 420px
    ),
    var(--bg);
}
/* Remove previous aurora layer */
.hero::before {
  content: none;
}
/* Keep very soft grain */
.hero::after {
  opacity: 0.25;
}

/* When scrolled, slightly increase hero top tint for depth */
body.scrolled .hero {
  background: linear-gradient(
      180deg,
      rgba(166, 167, 70, 0.12) 0px,
      rgba(166, 167, 70, 0.06) 140px,
      transparent 300px
    ),
    var(--bg);
}

/* Nav links color on transparent header */
.header:not(.scrolled) .nav-link {
  color: #314458;
}
.header.scrolled .nav-link {
  color: #314458;
}
.header.scrolled .nav-link:hover {
  color: var(--brand);
}

/* Glass panel behind hero text for premium look */
.hero-text {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 16px 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(49, 68, 88, 0.1);
}

/* Neutralize glass tint on hero copy */
.hero-text {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Soften/neutralize hero grain so it won’t shift perceived color */
.hero::after {
  opacity: 0.1;
}

/* Avoid header blur-induced color shifts */
.header {
  backdrop-filter: none;
}
.header.scrolled {
  backdrop-filter: none;
}

/* Ambient elliptical shadow under the phone */
.hero-visual::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 28px;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  background: radial-gradient(
    50% 100% at 50% 50%,
    rgba(0, 0, 0, 0.22),
    transparent 70%
  );
  filter: blur(12px);
  opacity: 0.6;
  pointer-events: none;
}

/* Use brand tokens in CTAs */
.download-btn {
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
}

/* Ink and background defaults */
body {
  color: var(--ink);
  background-color: var(--bg);
}

/* Reduced motion: stop background animation */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(249, 249, 250, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(166, 167, 70, 0.1);
}

.nav {
  padding: 0.5rem 0;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #a6a746;
  text-decoration: none;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: #9bb85c;
  text-decoration: none;
  letter-spacing: 0.5px;
  margin: 0;
  font-family: "Montserrat", sans-serif;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #314458;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #a6a746;
}

/* Header refinements */
.header {
  height: 64px;
  transition: background 200ms ease, box-shadow 200ms ease,
    border-color 200ms ease;
  border-bottom: none;
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 64px;
  padding: 0 0;
}

.nav .container {
  align-items: center;
}

/* Premium subtle brand accent line under header (disabled for seamless blend) */
.header::after {
  content: none;
}

/* Nav links: refined hover/active underline */
.nav-link {
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
  opacity: 0.8;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Logo weight/legibility tweak */
.logo-text {
  letter-spacing: 0.6px;
}

/* Hero Section */
.hero {
  padding: 104px 0 80px;
  background: radial-gradient(
      1200px 600px at 20% 0%,
      rgba(166, 167, 70, 0.1),
      transparent 60%
    ),
    radial-gradient(
      1000px 500px at 90% 10%,
      rgba(49, 68, 88, 0.1),
      transparent 55%
    ),
    linear-gradient(135deg, #f9f9fa 0%, rgba(166, 167, 70, 0.05) 100%);
  overflow: hidden;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.6;
}

.hero::before {
  top: -120px;
  left: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(166, 167, 70, 0.15),
    transparent 60%
  );
  transform: rotate(12deg);
}

.hero::after {
  right: -150px;
  top: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(49, 68, 88, 0.15),
    transparent 65%
  );
}

/* Hero spacing and grid balance */
.hero {
  padding: 104px 0 80px;
}
.hero-content {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4.5rem;
  align-items: center;
  min-height: 70vh;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #314458;
  text-align: center;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: #7b7b8b;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-description {
  font-size: 1.125rem;
  color: #7b7b8b;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}

/* Download Buttons */
.download-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Premium brand-solid CTAs with sheen */
.download-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(180deg, #a6a746, #949548);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: var(--elevation-2);
  min-width: 160px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.download-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 25px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
  opacity: 0.6;
}
.download-btn {
  position: relative;
  overflow: hidden;
}
.download-btn:hover {
  box-shadow: var(--elevation-3);
  transform: translateY(-1px);
}

.app-store-btn {
  background: #a6a746;
}

.google-play-btn {
  background: #a6a746;
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1400px;
}

.phone-mockup {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, -5deg))
    rotateZ(-2deg) translateZ(0);
  transition: transform 300ms ease, filter 300ms ease;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 34px 48px rgba(0, 0, 0, 0.22));
}

@keyframes float {
  0%,
  100% {
    transform: rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, -5deg))
      rotateZ(-2deg) translateY(0px) translateZ(0);
  }
  50% {
    transform: rotateX(calc(var(--tiltX, 0deg)))
      rotateY(calc(var(--tiltY, -5deg))) rotateZ(-2deg) translateY(-10px)
      translateZ(0);
  }
}

.phone-frame {
  width: 258px;
  height: 560px;
  background: linear-gradient(145deg, #1b1b1b, #2a2a2a);
  border-radius: 36px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 2px rgba(0, 0, 0, 0.4), 0 20px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  isolation: isolate;
}

/* Metallic chamfer edge */
.phone-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 36px;
  padding: 2px; /* edge thickness */
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.05) 25%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    rgba(0, 0, 0, 0.6)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Side buttons (volume/power) */
.phone-frame::after {
  content: "";
  position: absolute;
  left: -4px;
  top: 120px;
  width: 2px;
  height: 60px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6),
    rgba(40, 40, 40, 0.9)
  );
  box-shadow: 0 90px 0 0 rgba(60, 60, 60, 1),
    /* power button lower */ 0 100px 0 0 rgba(60, 60, 60, 1);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: radial-gradient(
      120% 100% at 50% 0%,
      rgba(0, 0, 0, 0.1),
      transparent 30%
    ),
    #fff;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 40px rgba(0, 0, 0, 0.06);
}

/* Dynamic glass glare following cursor */
.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      600px 200px at var(--glareX, 60%) var(--glareY, 0%),
      rgba(255, 255, 255, 0.18),
      transparent 40%
    ),
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0) 30% 70%,
      rgba(255, 255, 255, 0.12) 100%
    );
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Notch */
.phone-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 26px;
  background: #000;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 2;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Status Bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 12px;
  background: #000;
  color: white;
  font-size: 10px;
  font-weight: 600;
  height: 24px;
  position: relative;
}

.status-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
  opacity: 0.6;
}

.status-left .time {
  letter-spacing: 0.3px;
}

.status-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.status-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Cellular icon */
.cellular-icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 1px;
  height: 10px;
}

.cellular-icon .bar {
  width: 2px;
  background: #fff;
  border-radius: 1px;
  opacity: 0.9;
}

.cellular-icon .b1 {
  height: 3px;
  opacity: 0.5;
}
.cellular-icon .b2 {
  height: 5px;
  opacity: 0.65;
}
.cellular-icon .b3 {
  height: 7px;
  opacity: 0.8;
}
.cellular-icon .b4 {
  height: 9px;
}

/* Wi‑Fi icon (CSS-only arcs) */
.wifi-icon {
  position: relative;
  width: 14px;
  height: 10px;
}

.wifi-icon::before,
.wifi-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid transparent;
  border-top-color: #fff;
  border-radius: 50%;
}

.wifi-icon::before {
  width: 14px;
  height: 14px;
  top: -6px;
  opacity: 0.6;
}

.wifi-icon::after {
  width: 8px;
  height: 8px;
  top: -3px;
}

/* Battery */
.battery-icon {
  position: relative;
  width: 22px;
  height: 10px;
  border: 1.5px solid #fff;
  border-radius: 2px;
  box-sizing: border-box;
}

.battery-icon .battery-cap {
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2.5px;
  height: 6px;
  background: #fff;
  border-radius: 1px;
}

.battery-icon .battery-level {
  position: absolute;
  top: 1px;
  left: 1px;
  bottom: 1px;
  background: linear-gradient(180deg, #b5ff99, #6ee86a);
  border-radius: 1px;
}

/* Demand Cards */
.demand-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--elevation-2);
  position: relative;
  overflow: visible;
  padding-top: 24px;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.demand-card:hover {
  box-shadow: var(--elevation-4);
  transform: translateY(-2px);
}

.demand-content {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: flex-start;
  position: relative;
}

.demand-text {
  flex: 1;
}

/* In-phone typography tuning */
.demand-text p {
  font-size: 12px;
  line-height: 1.35;
}
.hashtags {
  font-size: 9px;
}
.response-label {
  font-size: 9px;
}

.demand-badge {
  position: absolute;
  top: -28px;
  right: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  z-index: 2;
}

.badge-shop-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(0deg)
    brightness(100%) contrast(100%);
  margin-right: 20px;
}

.badge-icon {
  background: #a6a746;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  min-width: 16px;
  min-height: 16px;
}

.badge-number {
  position: absolute;
  font-size: 8px;
  font-weight: 700;
  color: #f9f9fa;
  font-family: "Montserrat", sans-serif;
  text-align: center;
  line-height: 1;
  z-index: 3;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #314458;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 2px;
  right: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.product-image {
  width: 50px;
  height: 60px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a6a746;
  flex-shrink: 0;
  padding: 4px;
}

/* Audio Waveform */
.audio-waveform {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
  padding: 4px 8px;
  background: rgba(166, 167, 70, 0.1);
  border-radius: 12px;
  width: fit-content;
}

.audio-icon {
  height: 20px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(67%) sepia(15%) saturate(1458%)
    hue-rotate(38deg) brightness(91%) contrast(88%);
}

.waveform-icon {
  font-size: 14px;
  margin-right: 8px;
  color: #a6a746;
}

.waveform.nav-brand {
  display: flex;
  align-items: center;
}

.waveform-bars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.bar {
  width: 2px;
  background: #a6a746;
  border-radius: 1px;
  animation: waveform 1.2s ease-in-out infinite;
  margin: 0 1px;
}

.bar:nth-child(1) {
  height: 4px;
  animation-delay: 0s;
}
.bar:nth-child(2) {
  height: 8px;
  animation-delay: 0.1s;
}
.bar:nth-child(3) {
  height: 12px;
  animation-delay: 0.2s;
}
.bar:nth-child(4) {
  height: 6px;
  animation-delay: 0.3s;
}
.bar:nth-child(5) {
  height: 10px;
  animation-delay: 0.4s;
}
.bar:nth-child(6) {
  height: 14px;
  animation-delay: 0.5s;
}
.bar:nth-child(7) {
  height: 8px;
  animation-delay: 0.6s;
}
.bar:nth-child(8) {
  height: 16px;
  animation-delay: 0.7s;
}
.bar:nth-child(9) {
  height: 10px;
  animation-delay: 0.8s;
}
.bar:nth-child(10) {
  height: 12px;
  animation-delay: 0.9s;
}
.bar:nth-child(11) {
  height: 6px;
  animation-delay: 1s;
}
.bar:nth-child(12) {
  height: 8px;
  animation-delay: 1.1s;
}

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

/* User Info */
.user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.user-avatar {
  width: 20px;
  height: 20px;
  background: #a6a746;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: white;
}

.username {
  font-size: 10px;
  color: #314458 !important;
  font-weight: 500 !important;
}

/* Response Section */
.response-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(249, 249, 250, 0.9);
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  column-gap: 12px;
  box-shadow: var(--elevation-1);
  white-space: nowrap;
  justify-content: flex-start;
}

/* Ensure response row min width to prevent wrap */
.response-section {
  min-width: 0;
}

.response-buttons {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.action-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  padding-left: 12px;
  position: relative;
  margin-left: auto;
}

.action-icons::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.response-buttons {
  display: flex;
  gap: 10px;
}

.response-btn {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 10px;
  color: #314458;
  padding: 6px 10px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  white-space: nowrap;
  box-shadow: var(--elevation-0);
}

.circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid #ddd;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(166, 167, 70, 0.2);
}

.circle.filled {
  background: #a6a746;
  border-color: #ddd;
}

.circle.empty {
  background: transparent;
  border-color: #ddd;
}

.response-btn.active {
  color: #314458;
  background: rgba(166, 167, 70, 0.1);
  border-color: rgba(166, 167, 70, 0.25);
  box-shadow: var(--elevation-1);
}

.response-btn:hover {
  background: rgba(166, 167, 70, 0.12);
  box-shadow: var(--elevation-1);
}

.action-icon {
  width: 18px;
  height: 18px;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.2s ease;
  filter: brightness(0) saturate(100%) invert(20%) sepia(15%) saturate(1458%)
    hue-rotate(200deg) brightness(30%) contrast(88%);
  padding: 2px;
}

.action-icon:hover {
  opacity: 1;
}

/* Follow-up Questions */
.follow-up-questions {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.follow-up-questions p {
  font-size: 9px;
  color: #7b7b8b;
  margin: 2px 0;
  font-weight: 400;
}

/* Bottom Navigation */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
  height: 60px;
  box-shadow: var(--elevation-1);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
  font-size: 8px;
  color: #666;
}

.nav-item.active {
  color: #a6a746;
}

.nav-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: all 0.2s ease;
}

.nav-item .nav-icon-img {
  filter: brightness(0) saturate(100%) invert(68%) sepia(15%) saturate(1200%)
    hue-rotate(35deg) brightness(95%) contrast(92%) !important;
}

.nav-item.active .nav-icon-img {
  transform: scale(1.1);
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(67%) sepia(23%) saturate(1400%)
    hue-rotate(35deg) brightness(95%) contrast(95%) !important;
}

.nav-item:not(.active) .nav-icon-img {
  opacity: 0.6;
  filter: brightness(0) saturate(100%) invert(65%) sepia(16%) saturate(1000%)
    hue-rotate(87deg) brightness(95%) contrast(90%);
}

.nav-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #314458;
  color: white;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6px;
  font-weight: bold;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: white;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #333;
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #f9f9fa;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(166, 167, 70, 0.1);
  box-shadow: var(--elevation-1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--elevation-3);
  background: white;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #a6a746, #949548);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.feature-description {
  color: #666;
  line-height: 1.6;
  font-weight: 400;
}

/* Footer */
.footer {
  background: linear-gradient(
      180deg,
      rgba(166, 167, 70, 0.06) 0%,
      rgba(49, 68, 88, 0.04) 100%
    ),
    var(--bg);
  color: var(--ink);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(49, 68, 88, 0.12);
  backdrop-filter: blur(6px);
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.footer-social a {
  color: #6b7d90;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--brand);
  transform: translateY(-1px);
  outline: none;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: var(--ink);
  margin-bottom: 1rem;
}

.footer-description {
  color: #52657a;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-section a {
  display: block;
  color: #52657a;
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  padding: 6px 0;
  border-radius: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-section a:hover {
  color: var(--brand);
  transform: translateX(2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(49, 68, 88, 0.15);
  color: #6b7d90;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 96px 0 60px;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
    perspective: 1000px;
  }

  .phone-mockup {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(0.9);
  }

  .download-buttons {
    justify-content: center;
  }

  .download-btn {
    min-width: 160px;
    padding: 0.75rem 1.25rem;
  }

  .features {
    padding: 80px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-section a {
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .download-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .phone-mockup {
    transform: scale(0.85);
  }

  .demand-text p {
    font-size: 9px;
  }

  .hashtags {
    font-size: 8px !important;
  }

  .feature-card {
    padding: 1.5rem 1rem;
  }
}

/* Performance Optimizations */
.hero-visual,
.phone-mockup,
.feature-card {
  will-change: transform;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .phone-mockup {
    animation: none;
  }
}

/* Focus styles for accessibility */
.nav-link:focus,
.download-btn:focus {
  outline: 2px solid #a6a746;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-description,
  .feature-description {
    color: #333;
  }

  .footer-description,
  .footer-section a {
    color: #000;
  }
}

/* App content container inside screen */
.app-interface {
  padding: 14px 12px 20px 12px;
  height: calc(100% - 84px);
  background: #f9f9fa;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translateZ(20px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02) inset;
}

.app-interface::-webkit-scrollbar {
  display: none;
}

/* Compact single-line response row tuning */
.response-section {
  padding: 8px 10px;
}

.response-buttons {
  gap: 8px;
}

.response-label {
  font-size: 9px;
  letter-spacing: 0.1px;
  margin-right: 6px;
}

.circle-btn {
  width: 20px;
  height: 20px;
  margin-right: 4px;
}

/* Smaller inner indicator for compact layout */
.circle {
  width: 10px;
  height: 10px;
  border-width: 2px;
  box-shadow: 0 1px 2px rgba(166, 167, 70, 0.2);
}

/* Icons more compact */
.action-icons {
  gap: 10px;
  padding-left: 10px;
}
.action-icons::before {
  height: 16px;
  opacity: 0.6;
}
.action-icon {
  width: 16px;
  height: 16px;
}

/* Spacing refinements for single-line response row */
.response-buttons {
  gap: 4px;
}
.response-label {
  margin-right: 6px;
}
.response-label:last-of-type {
  margin-right: 14px;
}
.action-icons {
  gap: 12px;
  padding-left: 12px;
}

/* Border-only empty circle buttons */
.circle-btn {
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.12);
  box-shadow: none;
}
.circle-btn:hover {
  background: transparent;
  border-color: rgba(166, 167, 70, 0.5);
  box-shadow: none;
}
.circle-btn.filled,
.circle-btn[aria-pressed="true"] {
  background: transparent;
  border-color: rgba(166, 167, 70, 0.6);
  box-shadow: none;
}

/* Inner indicator stays as the only fill */
.circle.empty {
  background: transparent;
  border-color: #ccc;
}
.circle.filled {
  background: #a6a746;
  border-color: #ddd;
}

/* Override: make circle button truly borderless and transparent */
.circle-btn {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  width: auto;
  height: auto;
  padding: 0;
}

/* Hover/active/focus visuals on the circle only */
.circle-btn:hover .circle {
  border-color: rgba(166, 167, 70, 0.6);
}

.circle-btn.filled .circle,
.circle-btn[aria-pressed="true"] .circle {
  background: #a6a746;
  border-color: #ddd;
}

.circle-btn:focus-visible .circle {
  box-shadow: 0 0 0 2px rgba(166, 167, 70, 0.35);
}

/* Ensure empty circles remain border-only */
.circle.empty {
  background: transparent;
}

@media (min-width: 1024px) {
  /* Desktop hero typography and layout refinement */
  .hero-text {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    max-width: 600px;
  }
  .hero-title {
    text-align: left;
    letter-spacing: -0.02em;
    color: #314458;
    margin-bottom: 0.75rem;
  }
  .hero-description {
    text-align: left;
    max-width: 560px;
    color: #4a5a6b;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
  }
  .download-buttons {
    justify-content: flex-start;
    gap: 12px;
  }
}

/* Seamless header-to-hero blending with center-to-edges white increase */
.header {
  background: rgba(249, 249, 250, 0.92);
}
.hero {
  background: radial-gradient(
      120% 200% at 50% 50%,
      rgba(249, 249, 250, 0) 0%,
      rgba(249, 249, 250, 0.05) 40%,
      rgba(249, 249, 250, 0.1) 60%,
      rgba(249, 249, 250, 0.16) 80%,
      rgba(249, 249, 250, 0.22) 100%
    ),
    var(--bg);
}
.header .nav-link {
  color: #2f4152;
}
.header .logo-text {
  color: var(--brand);
}
.header.scrolled {
  background: rgba(249, 249, 250, 0.98);
}

/* Phone bottom-nav brand tint */
.bottom-nav {
  background: #fff;
}
.nav-item span {
  color: #666;
}
.nav-item.active span {
  color: var(--brand);
  font-weight: 600;
}

/* Recolor PNG icons toward brand #A6A746 */
.nav-item .nav-icon-img {
  filter: brightness(0) saturate(100%) invert(68%) sepia(15%) saturate(1200%)
    hue-rotate(35deg) brightness(95%) contrast(92%);
}
.nav-item.active .nav-icon-img {
  filter: brightness(0) saturate(100%) invert(67%) sepia(23%) saturate(1400%)
    hue-rotate(35deg) brightness(95%) contrast(95%);
}
.nav-item:not(.active) .nav-icon-img {
  opacity: 0.55;
}
