/* ==========================================================================
   home.css — Modern Equestrian Homepage Stylesheet
   Built with CSS Grid + Flexbox, CSS Custom Properties, vanilla HTML
   No Bootstrap. No jQuery. Responsive-first.
   ========================================================================== */

/* ----------------------------------------------------------
   CSS CUSTOM PROPERTIES
   ---------------------------------------------------------- */
:root {
  /* Brand Colors */
  --green:          #64b829;
  --green-light:    #6ad475;
  --green-dark:     #4a8c1c;
  --green-glow:     rgba(100, 184, 41, 0.18);
  --navy:           #08223b;
  --navy-mid:       #0d2f52;

  /* Neutral Palette */
  --heading-dark:   #152515;
  --body-text:      #708198;
  --bg-white:       #ffffff;
  --bg-tint:        #f7faf3;
  --bg-grey:        #f2f4f5;
  --border:         #dde8d3;
  --border-light:   #eef4e8;

  /* Typography */
  --font:           'Inter', 'Poppins', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-md:      0 8px 32px rgba(0, 0, 0, 0.11);
  --shadow-lg:      0 20px 60px rgba(0, 0, 0, 0.18);
  --shadow-green:   0 8px 28px rgba(100, 184, 41, 0.32);

  /* Radius */
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-pill: 100px;

  /* Layout */
  --max-w:         1200px;
  --max-w-wide:    1400px;
  --section-py:    96px;
  --nav-h:         70px;
}

/* ----------------------------------------------------------
   RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body-text);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

address { font-style: normal; }

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

/* ----------------------------------------------------------
   HEADINGS & TYPOGRAPHY
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--heading-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem,   5vw,   3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------
   LAYOUT UTILITIES
   ---------------------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.container--wide {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  padding-block: var(--section-py);
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
  background: var(--green-glow);
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(100, 184, 41, 0.28);
}

.section-heading {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-heading h2 {
  margin-bottom: 0.75rem;
}

.section-heading p {
  color: var(--body-text);
  max-width: 600px;
  margin-inline: auto;
  font-size: 1.05rem;
}

/* ----------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 64px;
  padding: 0.9rem 1.5rem;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.32);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 28px rgba(8, 34, 59, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.btn--primary {
  background: linear-gradient(135deg, rgba(35, 80, 58, 0.94) 0%, rgba(87, 117, 101, 0.88) 100%);
  color: #fff;
  border-color: rgba(255,255,255,0.34);
}
.btn--primary:hover {
  background: linear-gradient(135deg, rgba(46, 92, 69, 0.98) 0%, rgba(101, 132, 115, 0.92) 100%);
  border-color: rgba(255,255,255,0.46);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 18px 34px rgba(8, 34, 59, 0.22);
}

.btn--outline-white {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.42);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.58);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 18px 34px rgba(8, 34, 59, 0.2);
}

.btn--ghost {
  background: linear-gradient(135deg, rgba(35, 80, 58, 0.9) 0%, rgba(87, 117, 101, 0.84) 100%);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn--ghost:hover {
  background: linear-gradient(135deg, rgba(46, 92, 69, 0.96) 0%, rgba(101, 132, 115, 0.9) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 18px 34px rgba(8, 34, 59, 0.22);
}

.btn--white {
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  border-color: rgba(255,255,255,0.95);
}
.btn--white:hover {
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 18px 34px rgba(8, 34, 59, 0.14);
}

/* ----------------------------------------------------------
   STICKY NAVIGATION
   ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8, 34, 59, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(100, 184, 41, 0.14);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(8, 34, 59, 0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
}

.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 40px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.8vw, 1.75rem);
  flex: 1;
  justify-content: center;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--green-light);
  border-bottom-color: var(--green-light);
}

.nav__cta { flex-shrink: 0; }

/* Hamburger button */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
  background: none;
  border: none;
  margin-left: auto;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav__drawer {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(100, 184, 41, 0.2);
  padding: 1rem 1.5rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.nav__drawer.open { display: block; }

.nav__drawer-links { margin-bottom: 1.25rem; }

.nav__drawer-links li + li {
  border-top: 1px solid rgba(255,255,255,0.07);
}

.nav__drawer-links a {
  display: block;
  padding: 0.8rem 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav__drawer-links a:hover { color: var(--green-light); }

/* ----------------------------------------------------------
   HERO SECTION
   ---------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, var(--navy) 0%, #0b2a45 45%, #0d3a1f 100%);
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 75% 50%, rgba(100, 184, 41, 0.11) 0%, transparent 65%),
    radial-gradient(ellipse 45% 50% at 15% 85%, rgba(106, 212, 117, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle dot grid pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  width: 100%;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1.25rem;
  background: rgba(100, 184, 41, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(100, 184, 41, 0.3);
}

.hero__content h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero__content h1 em {
  font-style: normal;
  color: var(--green-light);
}

.hero__content > p {
  color: rgba(255,255,255,0.72);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero__device-wrap {
  position: relative;
  width: min(340px, 92%);
}

.hero__device-wrap::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 50px;
  background: radial-gradient(ellipse, rgba(100, 184, 41, 0.4) 0%, transparent 72%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(8px);
}

.hero__device {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.07);
  transform: perspective(900px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
  width: 100%;
}

.hero__device:hover {
  transform: perspective(900px) rotateY(0deg) rotateX(0deg);
}

/* ----------------------------------------------------------
   DOWNLOAD BAR
   ---------------------------------------------------------- */
.download-bar {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, var(--green-light) 100%);
  padding-block: 2.25rem;
}

.download-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 3rem;
}

.download-bar__label {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.download-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.dl-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: var(--r-md);
  padding: 0.65rem 1.3rem;
  color: #fff;
  min-width: 155px;
  transition: background 0.2s, transform 0.15s;
}

.dl-badge:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-2px);
  color: #fff;
}

.dl-badge__icon { font-size: 1.65rem; line-height: 1; }

.dl-badge__text small {
  display: block;
  font-size: 0.63rem;
  opacity: 0.8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dl-badge__text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}

/* ----------------------------------------------------------
   FEATURES SECTION ("Stay Connected")
   ---------------------------------------------------------- */
.features-section {
  padding-block: var(--section-py);
  background: var(--bg-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--r-md);
  background: var(--bg-tint);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.25s, transform 0.25s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.feature-card__icon {
  width: 190px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.feature-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--body-text);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.7;
}

/* ----------------------------------------------------------
   ABOUT SECTION
   ---------------------------------------------------------- */
.about-section {
  padding-block: var(--section-py);
  background: var(--bg-grey);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-content h2 { margin-bottom: 1.5rem; }

.about-content p {
  color: var(--body-text);
  font-size: 1rem;
  line-height: 1.82;
}

.about-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-image img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: min(360px, 100%);
  border: 3px solid rgba(100, 184, 41, 0.18);
}

/* ----------------------------------------------------------
   APP SCREENS SECTION ("Our Screens")
   ---------------------------------------------------------- */
.screens-section {
  padding-block: var(--section-py);
  background: var(--bg-white);
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.screen-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.screen-card__img {
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-tint);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.25s, transform 0.25s;
}

.screen-card__img:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.screen-card__img img {
  width: 100%;
  height: auto;
  display: block;
}

.screen-card h4 {
  font-size: 0.95rem;
  color: var(--heading-dark);
  text-align: center;
  margin: 0 0 0.2rem;
}

.screen-card p {
  font-size: 0.82rem;
  color: var(--body-text);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* ----------------------------------------------------------
   PRICING SECTION
   ---------------------------------------------------------- */
.pricing-section {
  padding-block: var(--section-py);
  background: var(--bg-tint);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.pricing-content h2 { margin-bottom: 1rem; }

.pricing-content > p {
  color: var(--body-text);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.pricing-list {
  margin: 0 0 2rem;
}

.pricing-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: var(--body-text);
}

.pricing-list li:last-child { border-bottom: none; }

.pricing-list li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 0.38rem;
  width: 16px;
  height: 16px;
  background: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
}

.pricing-image {
  display: flex;
  justify-content: center;
}

.pricing-image img {
  width: min(290px, 100%);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}

/* ----------------------------------------------------------
   PARTNERS / COMMUNITY CAROUSEL
   ---------------------------------------------------------- */
.partners-section {
  padding-block: var(--section-py);
  background: var(--bg-white);
  overflow: hidden;
}

.carousel-wrap {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 0.5rem 1.5rem;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.carousel-wrap::-webkit-scrollbar { display: none; }

.carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.partner-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 268px;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.25s, transform 0.25s;
}

.partner-card__content {
  display: block;
  height: 100%;
}

.partner-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.partner-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.partner-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 34, 59, 0.88) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.1rem;
  opacity: 0;
  transition: opacity 0.25s;
}

.partner-card:hover .partner-card__overlay,
.partner-card:focus-within .partner-card__overlay {
  opacity: 1;
}

.partner-card__name {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-white);
  color: var(--heading-dark);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.carousel-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ----------------------------------------------------------
   FAQ SECTION
   ---------------------------------------------------------- */
.faq-section {
  padding-block: var(--section-py);
  background: var(--bg-grey);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

details.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-white);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

details.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

details.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--heading-dark);
  font-size: 0.97rem;
  user-select: none;
  gap: 1rem;
  transition: color 0.2s;
}

details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary:hover { color: var(--green-dark); }

details.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--green);
  font-weight: 300;
  line-height: 1;
  transition: transform 0.25s;
}

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

.faq-body {
  padding: 0 1.35rem 1.35rem;
  color: var(--body-text);
  font-size: 0.93rem;
  line-height: 1.75;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.faq-image {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.faq-image img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

/* ----------------------------------------------------------
   TEAM SECTION
   ---------------------------------------------------------- */
.team-section {
  padding-block: var(--section-py);
  background: var(--bg-white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card {
  text-align: center;
  padding: 2.25rem 1.5rem;
  border-radius: var(--r-md);
  background: var(--bg-tint);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.25s, transform 0.25s;
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.team-card__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  border: 3px solid var(--green);
  box-shadow: 0 4px 18px rgba(100, 184, 41, 0.25);
}

.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--heading-dark);
}

.team-card__role {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--body-text);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.team-card__social {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.team-card__social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.78rem;
  transition: background 0.2s, transform 0.15s;
}

.team-card__social a:hover {
  background: var(--green-dark);
  transform: scale(1.1);
  color: #fff;
}

/* ----------------------------------------------------------
   SECOND DOWNLOAD CTA BAND
   ---------------------------------------------------------- */
.download-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3a1f 100%);
  padding-block: var(--section-py);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(100,184,41,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.download-cta__inner { position: relative; z-index: 1; }

.download-cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.download-cta > .download-cta__inner > p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.download-cta .download-badges {
  justify-content: center;
}

/* ----------------------------------------------------------
   CONTACT SECTION
   ---------------------------------------------------------- */
.contact-section {
  padding-block: var(--section-py);
  background: var(--bg-tint);
}

.contact-box {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3a20 100%);
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.contact-info h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  font-size: 0.98rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item:last-of-type { border-bottom: none; }
.contact-item:hover { color: var(--green-light); }

.contact-item__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: rgba(100, 184, 41, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--green-light);
  flex-shrink: 0;
}

.contact-item__text small {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.2rem;
}

.contact-item__text strong {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
}

.contact-cta-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
}

.contact-cta-col h3 {
  color: #fff;
  font-size: 1.45rem;
}

.contact-cta-col p {
  color: rgba(255,255,255,0.6);
  max-width: 300px;
  font-size: 0.93rem;
}

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
.footer {
  background: var(--navy);
  padding-block: 3.5rem 2rem;
  border-top: 1px solid rgba(100, 184, 41, 0.18);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
}

.footer__logo img {
  height: 36px;
  width: auto;
  opacity: 0.85;
}

.footer__social {
  display: flex;
  gap: 0.65rem;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer__social a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.footer__copyright {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.7;
}

.footer__copyright a {
  color: rgba(255,255,255,0.45);
}

.footer__copyright a:hover { color: var(--green-light); }

.footer__seo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: flex-end;
}

.footer__seo a {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.22);
  transition: color 0.2s;
}

.footer__seo a:hover { color: rgba(255,255,255,0.45); }

/* ----------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------- */

/* Tablet landscape */
@media (max-width: 1024px) {
  :root { --section-py: 72px; }

  .screens-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid    { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet portrait */
@media (max-width: 768px) {
  :root { --section-py: 56px; }

  /* Nav */
  .nav__links,
  .nav__cta      { display: none; }
  .nav__hamburger { display: flex; }

  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 3rem 2rem;
  }
  .hero__content > p { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__image { order: -1; }
  .hero__device-wrap { width: min(220px, 60%); }

  /* Sections with 2-col grids */
  .about-grid,
  .pricing-grid,
  .faq-grid,
  .contact-box { grid-template-columns: 1fr; }

  .about-image  { order: -1; }
  .pricing-image { order: -1; }
  .faq-image    { display: none; }

  .contact-box { text-align: center; }
  .contact-item { text-align: left; }
  .contact-cta-col {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
  }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }
  .feature-card__icon {
    width: 180px;
    height: 142px;
  }

  /* Footer */
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer__seo    { justify-content: center; }
}

/* Mobile */
@media (max-width: 480px) {
  :root { --section-py: 48px; }

  .screens-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .team-grid    { grid-template-columns: 1fr 1fr; }
  .feature-card__icon {
    width: 162px;
    height: 130px;
  }

  .download-bar__inner { flex-direction: column; gap: 1.25rem; }
  .dl-badge { min-width: 0; width: 100%; max-width: 260px; }

  .footer__top { flex-direction: column; align-items: center; text-align: center; }
}
