﻿:root {
  color-scheme: light;
  font-family: 'Manrope', sans-serif;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-soft: rgba(255, 255, 255, 0.94);
  --text: #1F2937;
  --muted: #4B5563;
  --green: #4CAF50;
  --green-strong: #3D8F3F;
  --border: rgba(31, 41, 55, 0.08);
  --shadow-soft: 0 26px 64px rgba(31, 41, 55, 0.08);
  --shadow-subtle: 0 16px 40px rgba(31, 41, 55, 0.06);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevents side-scrolling */
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* Prevents side-scrolling */
}

img,
svg {
  max-width: 100%;
  display: block;
}

button,
a,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.progress-bar {
  display: none;
}

.js-enabled .progress-bar {
  display: block;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1005;
  pointer-events: none;
}

.progress-bar__fill {
  width: 100%;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--green);
  box-shadow: 0 0 16px rgba(76, 175, 80, 0.25);
  will-change: transform;
}

.navbar {
  position: sticky;
  top: 24px;
  z-index: 999;
  margin: 0 auto;
  max-width: 1170px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(31, 41, 55, 0.06);
  box-shadow: 0 30px 80px rgba(31, 41, 55, 0.08);
  border-radius: 999px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.35rem;
  min-height: 104px;
  padding: 1rem 1.3rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.08rem;
}

.logo img {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  padding: 0.6rem;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.04));
}

.nav-menu {
  display: flex;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 2.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 600;
  transition: color 260ms ease-out, opacity 260ms ease-out;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--green);
  border-radius: 999px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 250ms ease-out;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--green);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.3rem;
  min-height: 64px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 24px 60px rgba(76, 175, 80, 0.14);
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-button:hover,
.nav-button:focus-visible {
  transform: translateY(-2px);
  background: var(--green-strong);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 41, 55, 0.08);
  position: relative;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  position: absolute;
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.nav-toggle span:nth-child(1) {
  top: 14px;
}

.nav-toggle span:nth-child(2) {
  top: 20px;
}

.nav-toggle span:nth-child(3) {
  top: 26px;
}

.hero {
  padding: 8rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 4rem;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: rgba(76, 175, 80, 0.1);
  color: var(--green);
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero-copy h1 {
  margin: 1.6rem 0 1.9rem;
  font-size: 96px;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  display: block;
  color: var(--green);
}

.hero-copy p {
  margin: 0 0 2rem;
  max-width: 540px;
  font-size: 22px;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: 1.05rem 1.8rem;
  font-weight: 700;
  transition: transform 250ms ease-out, box-shadow 250ms ease-out, background 250ms ease-out;
}

.primary-btn {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 24px 50px rgba(76, 175, 80, 0.18);
}

.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-3px);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border: 1px solid rgba(31, 41, 55, 0.12);
}

.secondary-btn::after {
  content: '→';
  margin-left: 0.65rem;
  transition: transform 0.2s ease;
}

.secondary-btn:hover::after,
.secondary-btn:focus-visible::after {
  transform: translateX(3px);
}

.hero-visual {
  position: relative;
  min-height: 680px;
  isolation: isolate; 
  z-index: 0; 
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(92px);
  opacity: 0.74;
}

.glow-top {
  top: 14%;
  left: 50%;
  width: 340px;
  height: 340px;
  background: rgba(76, 175, 80, 0.2);
}

.glow-bottom {
  top: 42%;
  left: 46%;
  width: 200px;
  height: 200px;
  background: rgba(76, 175, 80, 0.12);
}

.phone {
  position: absolute;
  width: 260px;
  border-radius: 42px;
  overflow: hidden;
  padding: 14px;
  background: linear-gradient(180deg, #121212, #090909);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 45px 100px rgba(31, 41, 55, 0.18), 0 20px 40px rgba(31, 41, 55, 0.1);
  --rotation: 0deg;
  --base-transform: rotate(var(--rotation));
  transform: var(--base-transform);
  animation: float 8s ease-in-out infinite;
}

.phone::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 22%);
}

.phone-one {
  top: 18%;
  left: 12%;
  --rotation: -10deg; 
  --base-transform: rotate(var(--rotation));
  transform: var(--base-transform);
  z-index: 1;
}

.phone-two {
  top: 6%;
  left: 50%;
  --rotation: 0deg;
  --base-transform: translateX(-50%) rotate(var(--rotation));
  transform: var(--base-transform);
  z-index: 2;
}

.phone-three {
  top: 18%;
  right: 12%;
  bottom: auto; 
  --rotation: 10deg; 
  --base-transform: rotate(var(--rotation));
  transform: var(--base-transform);
  z-index: 999;
}

.phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  background: #000;
}

@keyframes float {
  0%,
  100% {
    transform: var(--base-transform);
  }
  50% {
    transform: var(--base-transform) translateY(-10px);
  }
}

.section {
  padding: 5rem 0;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header h2 {
  margin: 1rem auto 0;
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  line-height: 1.05;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card,
.showcase-card,
.about-card {
  padding: 2rem;
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
  animation: fade-up 0.9s ease forwards;
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.18s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.26s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.34s;
}

.feature-card:hover,
.showcase-card:hover,
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 110px rgba(31, 41, 55, 0.14);
  border-color: rgba(76, 175, 80, 0.18);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(76, 175, 80, 0.16);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card,
.showcase-card,
.about-card {
  padding: 2.4rem;
  transition: transform 280ms ease-out, box-shadow 280ms ease-out, border-color 280ms ease-out;
}

.feature-card h3,
.showcase-card h3,
.about-card h3 {
  margin: 1.3rem 0 1rem;
  font-size: 1.18rem;
}

.feature-card p,
.showcase-card p,
.about-card p,
.showcase-copy p,
.about-copy p {
  margin: 0;
  color: var(--muted);
}

.showcase-grid,
.about-grid {
  display: grid;
  gap: 2rem;
}

.about-grid {
  grid-template-columns: minmax(320px, 420px) minmax(340px, 1fr);
  align-items: center;
}

.showcase-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.showcase-copy {
  display: grid;
  gap: 1.5rem;
}

.about-copy {
  display: grid;
  gap: 1.6rem;
  max-width: 540px;
}

.about-copy h2 {
  font-size: clamp(2.5rem, 2.5vw, 3rem);
  margin-bottom: 0.75rem;
}

.about-copy p {
  max-width: 540px;
  margin: 0;
}

.showcase-cards,
.about-cards {
  display: grid;
  gap: 1rem;
}

.about-cards {
  gap: 1.25rem;
  align-content: center;
}

.about-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-card h3 {
  margin: 0 0 1rem;
}

.highlight-card {
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.12), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(76, 175, 80, 0.18);
  box-shadow: var(--shadow-subtle);
}

.highlight-card.accent {
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.18), rgba(255, 255, 255, 0.98));
}

.about-copy h2,
.showcase-copy h2 {
  margin: 0;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 1rem;
  padding: 3rem 2.6rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(247, 255, 247, 0.95), rgba(244, 251, 255, 0.98));
  border: 1px solid rgba(76, 175, 80, 0.12);
  box-shadow: var(--shadow-soft);
}

.contact-panel h2 {
  margin: 0.6rem 0 0;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  line-height: 1.04;
}

.primary-btn {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 24px 50px rgba(76, 175, 80, 0.18);
  min-width: 220px;
  padding: 1.1rem 2.2rem;
  font-size: 1rem;
}

.footer {
  padding: 3.5rem 0 4.5rem;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.footer-logo svg {
  height: 28px;
  width: auto;
  display: block;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-right p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero-grid,
  .showcase-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero-visual {
    min-height: 520px;
  }

  .hero-visual::before {
    width: 420px;
    height: 420px;
  }

  .phone-one {
    top: 15%;
    left: 15%;
    width: 210px;
  }

  .phone-two {
    top: 5%;
    left: 50%;
    width: 210px;
  }

  .phone-three {
    top: 15%;
    right: 15%;
    bottom: auto; 
    width: 210px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100%, calc(100% - 1.4rem));
    margin-inline: auto;
  }

  .nav-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.7rem 0.8rem;
    min-height: 88px;
  }

  .logo {
    gap: 0.8rem;
    font-size: 1.02rem;
  }

  .logo img {
    width: 54px;
    height: 54px;
    padding: 0.45rem;
  }

 .nav-menu {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 22px;
    padding: 1rem;
    
    /* These new properties fix the circle and the spacing */
    position: absolute; 
    top: 100%; 
    left: 0;
    margin-top: 0.4rem; /* Adjusted to bring it closer to the navbar */
    box-shadow: var(--shadow-subtle);
  }

  .navbar.nav-open .nav-menu {
    display: flex;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-menu a {
    padding: 0.6rem 0;
  }

  .nav-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
  }

  .nav-button {
    display: none;
  }

  .hero-copy {
    max-width: 100%;
    text-align: left;
  }

  .hero-copy h1 {
    font-size: clamp(4.4rem, 9vw, 5.4rem);
    margin-left: 0;
  }

  .hero-copy p {
    font-size: 1.15rem;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .secondary-btn {
    width: fit-content;
  }

  .hero-visual {
    margin-top: -1.2rem;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .phone-one,
  .phone-two,
  .phone-three {
    top: 6%;
  }

  .contact-panel {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100%, calc(100% - 1.4rem));
    margin-inline: auto;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .hero-copy h1 {
    font-size: 3.25rem;
  }

  .hero-visual {
    min-height: 380px;
    margin-top: -0.8rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-visual::before {
    width: 320px;
    height: 320px;
    top: 4%;
    left: 8%;
  }

  .phone-one {
    top: 10%;
    left: 5%;
    width: 170px;
  }

  .phone-two {
    top: 2%;
    left: 50%;
    width: 170px;
  }

  .phone-three {
    top: 10%;
    right: 5%;
    bottom: auto;
    width: 170px;
  }

  .feature-grid,
  .showcase-cards,
  .about-cards {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-left {
    margin-bottom: 0.75rem;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-in sections when they enter the viewport */
.will-fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 280ms ease-out, transform 280ms ease-out;
  will-change: opacity, transform;
}

.will-fade.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .primary-btn,
  .secondary-btn,
  .feature-card,
  .showcase-card,
  .about-card,
  .will-fade {
    transition: none !important;
  }
}