:root {
  --bg: #060d10;
  --bg-2: #0a1318;
  --surface: #0f1c22;
  --surface-2: #142028;
  --border: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(52, 199, 89, 0.3);

  /* Watermelon colors: green + red */
  --green: #34c759;
  --green-dim: rgba(52, 199, 89, 0.12);
  --green-glow: rgba(52, 199, 89, 0.35);
  --green-deep: #1e7e34;
  --red: #ff3b30;
  --red-dim: rgba(255, 59, 48, 0.1);
  --red-glow: rgba(255, 59, 48, 0.3);
  --cream: #fff8f0;

  --text: #e8edf0;
  --text-2: #8b9dad;
  --text-3: #4a6070;

  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
}

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

/* Brand-coloured text selection */
::selection {
  background: rgba(52, 199, 89, 0.28);
  color: #fff;
}

/* Accessible keyboard focus — visible only on keyboard nav, not mouse */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for sticky 70px header + breathing room */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

p {
  color: var(--text-2);
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 700;
  line-height: 1.15;
}

/* ======= ANIMATED CANVAS ======= */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ======= GRID OVERLAY ======= */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(52, 199, 89, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 199, 89, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    black 20%,
    transparent 100%
  );
}

main {
  position: relative;
  z-index: 1;
}

/* ======= HEADER ======= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 13, 16, 0.88);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(52, 199, 89, 0.2),
    0 0 20px rgba(52, 199, 89, 0.15);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}

.brand-name {
  color: var(--text);
  display: inline-flex;
  align-items: flex-start;
  gap: 0.08em;
  white-space: nowrap;
}

.brand-dot {
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-left: 1.25rem;
}

/* Tighten nav gap when 8 links + button need space */
@media (max-width: 1280px) {
  .nav-links {
    gap: 1.6rem;
  }
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 1.2rem;
    font-size: 0.82rem;
  }
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.team-suffix {
  font-size: 0.58em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-left: 0.08em;
  transform: translateY(-0.28em);
  display: inline-block;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
  background: var(--green);
  color: #060d10;
  padding: 0.52rem 1.25rem;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  margin-left: 1rem;
  transition:
    box-shadow 0.25s,
    transform 0.2s;
}

.btn-nav:hover {
  box-shadow: 0 0 28px var(--green-glow);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.menu-btn:hover {
  border-color: rgba(52, 199, 89, 0.3);
}

#mobileMenu {
  background: rgba(6, 13, 16, 0.97);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem 2rem;
}

#mobileMenu .links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#mobileMenu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
}

#mobileMenu a:hover {
  color: var(--green);
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }
}

@media (max-width: 600px) {
  .nav-right .btn-nav {
    display: none;
  }

  .brand {
    font-size: 1.1rem;
    gap: 0.5rem;
  }

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

  .team-suffix {
    font-size: 0.45em;
  }
}

/* ======= HERO ======= */
.hero {
  min-height: 96vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

/* Big radial glow */
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 800px;
  background: radial-gradient(
    ellipse at center,
    rgba(52, 199, 89, 0.1) 0%,
    rgba(52, 199, 89, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
}

/* Floating watermelon slices in background */
.float-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
  animation: floatDeco 12s ease-in-out infinite;
}

.float-deco img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0) brightness(2);
}

.float-deco:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 5%;
  right: -80px;
  animation-delay: 0s;
}

.float-deco:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: -50px;
  animation-delay: -4s;
}

.float-deco:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 5%;
  animation-delay: -8s;
}

.float-deco:nth-child(4) {
  width: 300px;
  height: 300px;
  top: 1%;
  left: -50px;
  animation-delay: 0s;
}

@keyframes floatDeco {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(8deg);
  }
}

.hero-inner {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem 0.4rem 0.6rem;
  border: 1px solid rgba(52, 199, 89, 0.3);
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.06);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeInDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(52, 199, 89, 0.2),
    0 8px 60px rgba(52, 199, 89, 0.2),
    0 0 120px rgba(52, 199, 89, 0.08);
  animation: fadeInUp 0.7s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both;
  position: relative;
}

.hero-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    transparent 50%
  );
  border-radius: inherit;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  font-size: clamp(2.8rem, 2rem + 4vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.7s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 .green {
  color: var(--green);
}

.hero h1 .outline {
  -webkit-text-stroke: 1.5px rgba(52, 199, 89, 0.45);
  color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: fadeInUp 0.7s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: #060d10;
  padding: 0.9rem 2.2rem;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition:
    box-shadow 0.3s,
    transform 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3),
    transparent 60%
  );
}

.btn-primary:hover {
  box-shadow:
    0 0 40px var(--green-glow),
    0 8px 24px rgba(52, 199, 89, 0.2);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.9rem 2.2rem;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  transition:
    border-color 0.25s,
    background 0.25s,
    transform 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(52, 199, 89, 0.3);
  background: var(--green-dim);
  transform: translateY(-2px);
}

/* Stats strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  animation: fadeInUp 0.7s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stat-item {
  padding: 1.4rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  display: block;
  line-height: 1;
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
  display: block;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ======= SECTION BASE ======= */
section {
  padding: 96px 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section-head {
  margin-bottom: 3.5rem;
}

.section-head.c {
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.section-head p {
  max-width: 580px;
  font-size: 1.05rem;
}

.section-head.c p {
  margin: 0 auto;
}

/* ── Divider: transparent track, green bar slides front-to-back ── */
.divider {
  width: 44px; /* fallback; overridden by JS */
  height: 2px;
  background: transparent;
  border-radius: 2px;
  margin: 0.9rem 0;
  position: relative;
}

.section-head.c .divider {
  margin: 0.9rem auto;
}

.divider::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  border-radius: 2px;
  animation: dividerSlide 2.2s ease-in-out infinite;
}

@keyframes dividerSlide {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(var(--div-travel, 0px));
  }
  100% {
    transform: translateX(0);
  }
}

/* ======= SERVICES ======= */
#services {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

#services::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(52, 199, 89, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  transition:
    border-color 0.3s,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: rgba(52, 199, 89, 0.25);
  transform: translateY(-6px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(52, 199, 89, 0.06);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1.35rem;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(52, 199, 89, 0.15);
  transition: box-shadow 0.3s;
}

.service-card:hover .service-icon {
  box-shadow: 0 0 24px var(--green-glow);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.92rem;
}

.service-features {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-3);
}

.service-features li i {
  color: var(--green);
  font-size: 0.72rem;
  flex-shrink: 0;
}

.service-card:hover .service-features li {
  color: var(--text-2);
}

.service-card:hover .service-features li i {
  opacity: 1;
}

/* ======= TECHNOLOGIES ======= */
#technologies {
  background: var(--bg);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem;
  transition:
    border-color 0.3s,
    transform 0.3s;
}

.tech-card:hover {
  border-color: rgba(52, 199, 89, 0.2);
  transform: translateY(-3px);
}

.tech-card-hd {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.tech-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-dim);
  border: 1px solid rgba(52, 199, 89, 0.15);
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 0.9rem;
}

.tech-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.pill {
  font-size: 0.79rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}

.pill:hover {
  border-color: rgba(52, 199, 89, 0.3);
  color: var(--green);
  transform: translateY(-1px);
}

/* ======= PROJECTS ======= */
#projects {
  background: var(--bg-2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.25rem;
}

.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.3s,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s;
}

.proj-card:hover {
  border-color: rgba(52, 199, 89, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.proj-hd {
  padding: 1.75rem 2rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.proj-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--green-dim);
  border: 1px solid rgba(52, 199, 89, 0.15);
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.status {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}

.s-live {
  background: rgba(52, 199, 89, 0.1);
  color: #4ade80;
  border: 1px solid rgba(52, 199, 89, 0.2);
}

.s-beta {
  background: rgba(255, 214, 10, 0.1);
  color: #ffd60a;
  border: 1px solid rgba(255, 214, 10, 0.2);
}

.s-dev {
  background: rgba(10, 132, 255, 0.1);
  color: #0a84ff;
  border: 1px solid rgba(10, 132, 255, 0.2);
}

.proj-body {
  padding: 1.25rem 2rem;
  flex: 1;
}

.proj-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.proj-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(52, 199, 89, 0.15);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.proj-metric i {
  font-size: 0.7rem;
}

.proj-foot {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.tech-stack {
  font-size: 0.78rem;
  color: var(--text-3);
}

.btn-proj {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--green);
  padding: 0.45rem 1rem;
  border: 1px solid rgba(52, 199, 89, 0.2);
  border-radius: 999px;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}

.btn-proj:hover {
  background: var(--green-dim);
  box-shadow: 0 0 16px rgba(52, 199, 89, 0.12);
}

.btn-proj.dis {
  opacity: 0.3;
  pointer-events: none;
}

/* ======= TESTIMONIALS ======= */
#testimonials {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

#testimonials::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(52, 199, 89, 0.05) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* ── Rating overview bar ── */
.testi-overview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.testi-overview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(52, 199, 89, 0.5),
    transparent
  );
}

.testi-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.score-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.score-stars {
  color: #ffd60a;
  font-size: 1rem;
  letter-spacing: 3px;
}

.score-lbl {
  font-size: 0.73rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.testi-sep {
  width: 1px;
  height: 56px;
  background: var(--border);
}

@media (max-width: 600px) {
  .testi-sep {
    width: 100%;
    height: 1px;
  }
}

.testi-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.testi-hl {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-2);
}

.testi-hl i {
  color: var(--green);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

/* ── Featured testimonial ── */
.testi-featured {
  background: linear-gradient(
    135deg,
    rgba(52, 199, 89, 0.07) 0%,
    rgba(52, 199, 89, 0.02) 60%,
    transparent 100%
  );
  border: 1px solid rgba(52, 199, 89, 0.25);
  border-radius: var(--r-xl);
  padding: 2.75rem 3rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.testi-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--green) 40%,
    transparent
  );
}

.testi-featured .qmark-bg {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 5rem;
  line-height: 1;
  color: var(--green);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}

.testi-featured .stars {
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-bottom: 1.25rem;
}

.testi-featured blockquote {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 820px;
}

.testi-featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.testi-featured-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #34c759, #1e7e34);
  display: grid;
  place-items: center;
  color: #060d10;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-display);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(52, 199, 89, 0.3);
}

.feat-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.feat-role {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-top: 0.2rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(52, 199, 89, 0.2);
  border-radius: 999px;
  padding: 0.32rem 0.9rem;
}

/* ── Regular quote cards ── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.quote-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.quote-card:hover {
  border-color: rgba(52, 199, 89, 0.22);
  transform: translateY(-5px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(52, 199, 89, 0.05);
}

.quote-card:hover::before {
  opacity: 1;
}

.qmark {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--green);
  opacity: 0.35;
}

.quote-card blockquote {
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.9;
  margin-top: 0.5rem;
  font-style: italic;
  flex: 1;
}

.quote-card footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
  margin-left: -1.75rem;
  margin-right: -1.75rem;
  margin-bottom: -1.5rem;
  padding: 1.1rem 1.75rem;
  border-radius: 0 0 calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px);
}

.footer-author {
  flex: 1;
  min-width: 0;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    rgba(52, 199, 89, 0.3),
    rgba(52, 199, 89, 0.08)
  );
  border: 1px solid rgba(52, 199, 89, 0.22);
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.q-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.q-role {
  font-size: 0.74rem;
  color: var(--text-3);
  margin-top: 0.12rem;
}

.q-check {
  color: var(--green);
  font-size: 0.75rem;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Stars */
.stars {
  color: #ffd60a;
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.1rem;
}

.card-top .qmark {
  position: static;
  font-size: 2.2rem;
  opacity: 0.2;
  line-height: 1;
}

/* ======= CONTACT ======= */
#contact {
  background: var(--bg-2);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

input,
textarea,
select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-3);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(52, 199, 89, 0.4);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.06);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-submit {
  width: 100%;
  background: var(--green);
  color: #060d10;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: var(--r-md);
  margin-top: 0.25rem;
  transition:
    box-shadow 0.3s,
    transform 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25),
    transparent 60%
  );
}

.btn-submit:hover {
  box-shadow: 0 0 36px var(--green-glow);
  transform: translateY(-2px);
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

.form-note--ok {
  color: #4ade80;
}

.form-note--err {
  color: #ff453a;
}

.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info h3 {
  font-size: 1.3rem;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.info-ic {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-dim);
  border: 1px solid rgba(52, 199, 89, 0.12);
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.info-item a {
  color: var(--text-2);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.info-item a:hover {
  color: var(--green);
}

.info-item span {
  color: var(--text-2);
  font-size: 0.9rem;
}

.cta-box {
  background: linear-gradient(
    135deg,
    rgba(52, 199, 89, 0.08),
    rgba(52, 199, 89, 0.03)
  );
  border: 1px solid rgba(52, 199, 89, 0.2);
  border-radius: 14px;
  padding: 1.5rem;
}

.cta-box p.accent {
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.cta-box p {
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}

/* ======= FOOTER ======= */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.quote-card footer > div:last-child {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

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

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand .brand {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-3);
  max-width: 280px;
}

.foot-nav h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 1.2rem;
}

.foot-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.foot-nav a {
  font-size: 0.88rem;
  color: var(--text-3);
  transition: color 0.2s;
}

.foot-nav a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-3);
}

.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-size: 0.85rem;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

.social-link:hover {
  border-color: rgba(52, 199, 89, 0.3);
  color: var(--green);
  background: var(--green-dim);
}

/* ======= SCROLL REVEAL ======= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.on {
  opacity: 1;
  transform: none;
}

.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger.on > * {
  opacity: 1;
  transform: none;
}

.stagger.on > *:nth-child(1) {
  transition-delay: 0s;
}

.stagger.on > *:nth-child(2) {
  transition-delay: 0.07s;
}

.stagger.on > *:nth-child(3) {
  transition-delay: 0.14s;
}

.stagger.on > *:nth-child(4) {
  transition-delay: 0.21s;
}

.stagger.on > *:nth-child(5) {
  transition-delay: 0.28s;
}

.stagger.on > *:nth-child(6) {
  transition-delay: 0.35s;
}

.stagger.on > *:nth-child(7) {
  transition-delay: 0.42s;
}

.stagger.on > *:nth-child(8) {
  transition-delay: 0.49s;
}

/* ======= UTILS ======= */
.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 420px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none !important;
    border-top: 1px solid var(--border);
  }

  .stat-item:first-child {
    border-top: none;
  }
}

/* ======= TYPING CURSOR ======= */
.typing-cursor {
  display: inline-block;
  width: 3px;
  background: var(--green);
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
  vertical-align: middle;
  height: 0.85em;
  border-radius: 2px;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Scroll progress bar */
#scrollBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  z-index: 10001; /* above sticky header */
  background: linear-gradient(
    90deg,
    var(--green-deep),
    var(--green),
    rgba(52, 199, 89, 0.5)
  );
  width: 0%;
  transition: width 0.08s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.5);
}

/* Inline keyword emphasis in hero/section text — styled but not jarring */
.hero-sub strong,
.section-head p strong {
  color: var(--text);
  font-weight: 600;
}

/* Number counter animation */
.counter {
  display: inline-block;
}

/* ======= PHILOSOPHY CANVAS ======= */
.mem-word {
  font-family: "DM Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.15);
  padding: 0 2px;
  flex-shrink: 0;
}

.mem-word.mem-hl {
  color: rgba(52, 199, 89, 0.4);
  font-weight: 600;
}

.phil-pillar-h {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 1.15rem 1.3rem;
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.25s;
  cursor: default;
}

.phil-pillar-h:hover {
  background: rgba(52, 199, 89, 0.04);
  border-color: rgba(52, 199, 89, 0.18);
  transform: translateX(4px);
}

.pph-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  background: rgba(52, 199, 89, 0.08);
  border: 1px solid rgba(52, 199, 89, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34c759;
  transition: box-shadow 0.25s;
  margin-top: 1px;
}

.phil-pillar-h:hover .pph-icon {
  box-shadow: 0 0 14px rgba(52, 199, 89, 0.3);
}

.pph-title {
  font-family: "Syne", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.3rem;
  line-height: 1.2;
}

.pph-text {
  font-size: 0.81rem;
  color: rgba(139, 157, 173, 0.72);
  line-height: 1.68;
  margin: 0;
}

/* ======= PHILOSOPHY REFINEMENTS ======= */
.phil-content-wrap {
  background: linear-gradient(180deg, #060d10 0%, #030810 45%, #060d10 100%);
  border-top: 1px solid rgba(52, 199, 89, 0.06);
}

.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.belief-box {
  padding-left: 1.4rem;
  border-left: 2px solid rgba(52, 199, 89, 0.3);
  margin-bottom: 2rem;
}

.belief-main {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.1rem, 0.95rem + 0.9vw, 1.6rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 0.4rem;
}

.belief-sub {
  font-family: "Syne", sans-serif;
  font-size: clamp(0.95rem, 0.88rem + 0.55vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.018em;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.phil-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(52, 199, 89, 0.08);
}

.p-stat-val {
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #34c759;
  line-height: 1;
}

.p-stat-lbl {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

@media (max-width: 860px) {
  #phil-two-col {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  .phil-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .phil-stats {
    flex-direction: column;
    gap: 1.25rem;
  }

  .hero h1 {
    font-size: 2.4rem !important; /* Force smaller size on mobile */
  }
}

/* Global Horizontal Fix */
html,
body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* ======= FIXED ACTIONS ======= */
.fixed-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.action-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  /* Using flex to perfectly center font-awesome icons */
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.25s,
    opacity 0.25s,
    box-shadow 0.25s,
    background 0.2s,
    color 0.2s;
}

.action-btn:hover {
  transform: translateY(-4px);
}

.whatsapp-btn {
  background: #25d366;
}

.whatsapp-btn:hover {
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  color: #fff;
}

.back-to-top {
  background: rgba(6, 13, 16, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--green);
  color: #060d10;
  border-color: var(--green);
  box-shadow: 0 8px 24px var(--green-glow);
}

/* ======= CHATBOT ======= */
.chat-toggle {
  background: var(--green);
  color: #060d10;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--green-glow);
  padding: 0;
  overflow: hidden;
}

.chat-btn-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 0.25s;
}

.chat-toggle:hover .chat-btn-img {
  transform: scale(1.2);
}

.chat-toggle:hover {
  box-shadow: 0 12px 32px var(--green-glow);
}

.chat-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  height: 500px;
  background: rgba(15, 28, 34, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: none; /* Hidden by default */
  flex-direction: column;
  z-index: 10000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: chatFadeIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.chat-container.open {
  display: flex; /* Shown when .open is added */
}

@keyframes chatFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-header {
  padding: 1.25rem 1.5rem;
  background: rgba(52, 199, 89, 0.05);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vira-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--green);
  line-height: 1.1;
}

.vira-sub {
  display: block;
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 0.1rem;
}

.ai-status {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  position: relative;
}

.ai-status::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.close-chat {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.close-chat:hover {
  color: var(--text);
}

.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.msg.bot {
  background: var(--surface-2);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  border: 1px solid var(--border);
}

.msg.user {
  background: var(--green);
  color: #060d10;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  font-weight: 500;
}

.chat-input-area {
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
}

.chat-input-area textarea {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  font-family: inherit;
  line-height: 1.5;
  min-height: 40px;
  max-height: 112px;
  overflow-y: auto;
  display: block;
}

.chat-input-area textarea::placeholder {
  color: var(--text-3);
  font-size: 0.82rem;
}

.chat-input-area textarea:focus {
  border-color: var(--green-glow);
}

.chat-input-area button {
  background: var(--green);
  color: #060d10;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.chat-input-area button:hover {
  background: #2ecc60;
  box-shadow: 0 0 14px var(--green-glow);
  transform: scale(1.06);
}

.chat-input-area button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .fixed-actions {
    bottom: 15px;
    right: 15px;
    gap: 8px;
  }

  .action-btn {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .chat-container {
    right: 10px;
    bottom: 75px;
    width: calc(100vw - 20px);
    height: 420px;
  }

  /* Hero Refinements */
  .hero-logo {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 1rem !important;
  }

  .hero h1 {
    font-size: 2.22rem !important;
    line-height: 1.08 !important;
  }

  .hero-sub {
    font-size: 0.95rem !important;
    padding: 0 0.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .btn-primary,
  .btn-ghost {
    justify-content: center;
    padding: 0.8rem 1.5rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .stat-item {
    padding: 1rem 0.75rem !important;
  }

  .stat-item:nth-child(2) {
    border-right: none !important;
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.95rem !important;
  }

  .brand-name {
    font-size: 0.95rem;
  }

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

/* ══════════════════════════════════════════════
   FAQ SECTION
   ══════════════════════════════════════════════ */
#faq {
  background: var(--bg-2);
  padding: 96px 0;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.faq-item[open],
.faq-item:hover {
  border-color: rgba(52, 199, 89, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
  user-select: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--green);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

details[open] > .faq-q::after {
  transform: rotate(45deg);
}

.faq-item:hover .faq-q {
  color: var(--green);
}

.faq-a {
  padding: 0 1.6rem 1.5rem;
  font-size: 0.94rem;
  color: var(--text-2);
  line-height: 1.8;
}

.faq-link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-link:hover {
  opacity: 0.75;
}

/* ══════════════════════════════════════════════
   BLOG SECTION
   ══════════════════════════════════════════════ */
#blog {
  background: var(--bg);
  padding: 96px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition:
    border-color 0.3s,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s;
}

.blog-card:hover {
  border-color: rgba(52, 199, 89, 0.25);
  transform: translateY(-6px);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(52, 199, 89, 0.04);
}

.blog-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(52, 199, 89, 0.15);
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
}

.blog-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  transition: color 0.2s;
}

.blog-card:hover h3 {
  color: var(--green);
}

.blog-card p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.78;
  flex: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.blog-read {
  font-size: 0.75rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-link {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition:
    gap 0.2s,
    opacity 0.2s;
}

.blog-link:hover {
  gap: 0.7rem;
  opacity: 0.8;
}

@media (max-width: 600px) {
  .faq-q {
    font-size: 0.94rem;
    padding: 1.1rem 1.25rem;
  }
  .faq-a {
    padding: 0 1.25rem 1.25rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
