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

:root {
  /* Brand — sage green from logo */
  --brand-color: #6B8F56;
  --brand-dark: #527239;
  --brand-light: #eef4eb;
  --brand-subtle: #dce8d6;

  /* Accent — warm gold for decorative labels */
  --accent-color: #d4a24e;
  --accent-light: #faf3e6;

  /* Neutrals — cool-leaning to complement green */
  --text-color: #1a2e1a;
  --text-muted: #4a5e4a;
  --background-color: #ffffff;
  --background-alt: #f4f7f2;
  --dark-bg: #1a2418;
  --dark-text: #ffffff;
  --border-color: #e2e8df;
  --success: #16a34a;
  --error: #dc2626;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;
  --space-32: 8rem;

  /* Layout — softer corners */
  --max-width: 1240px;
  --content-width: 800px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
}

html {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: var(--brand-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-color);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-muted);
}

/* Layout utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-28);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 143, 86, 0.06) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.section-alt {
  background-color: var(--background-alt);
  background-image: radial-gradient(circle, var(--border-color) 1px, transparent 1px);
  background-size: 24px 24px;
}

.section-dark {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--dark-text);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.75);
}

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

/* Section label — uppercase colored label above headings */
.section-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  margin-bottom: var(--space-3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  line-height: 1.5;
  font-family: var(--font-family);
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand-color);
  color: #ffffff;
  border-color: var(--brand-color);
}

.btn-primary:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--brand-color);
  border-color: var(--brand-color);
}

.btn-secondary:hover {
  background-color: var(--brand-color);
  color: #ffffff;
}

.btn-large {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-color);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px var(--brand-light);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-8);
}

.card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-top: 3px solid transparent;
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-top-color: var(--brand-color);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-light);
  border-radius: var(--radius-md);
  color: var(--brand-color);
  margin-bottom: var(--space-4);
  transition: background-color 0.2s;
}

.card:hover .card-icon {
  background-color: var(--brand-subtle);
}

.card h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

.card p {
  font-size: var(--text-base);
}

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-24) var(--space-6);
  background: var(--background-color);
}

.hero h1 {
  font-size: var(--text-5xl);
  color: var(--text-color);
  margin-bottom: var(--space-6);
}

.hero p {
  font-size: var(--text-xl);
  color: var(--text-muted);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

/* Hero with vertical layout (text above, image below) */
.hero-split {
  display: flex;
  flex-direction: column;
  padding: var(--space-24) var(--space-6) var(--space-16);
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1e3a1a 100%);
}

.hero-split .hero-content {
  text-align: left;
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
  padding-inline: var(--space-6);
}

.hero-split .hero-content h1 {
  font-size: var(--text-6xl);
  margin-bottom: var(--space-6);
  color: #ffffff;
}

.hero-split .hero-content h1 em {
  font-style: italic;
}

.hero-split .hero-content p {
  margin-inline: 0;
  font-size: var(--text-xl);
  max-width: 640px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-split .hero-label {
  color: var(--accent-color);
}

.hero-split .btn-primary {
  background-color: #ffffff;
  color: var(--dark-bg);
  border-color: #ffffff;
}

.hero-split .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

.hero-split .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-split .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

/* Hero label — colored uppercase label above hero heading */
.hero-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  margin-bottom: var(--space-4);
}

/* Hero dual CTA buttons */
.hero-buttons {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* Hero full-width image */
.hero-image {
  max-width: var(--max-width);
  margin-inline: auto;
  margin-top: var(--space-16);
  width: 100%;
  padding-inline: var(--space-6);
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(107, 143, 86, 0.3);
  aspect-ratio: 16/7;
  object-fit: cover;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--background-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  border-right: 1px solid var(--border-color);
  padding-right: var(--space-6);
  margin-right: var(--space-2);
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo span {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-color);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--text-color);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: rgba(255, 255, 255, 0.65);
  padding-block: var(--space-20);
}

.footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.footer a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  column-gap: var(--space-16);
  row-gap: var(--space-8);
  align-items: start;
}
.footer-grid > div:first-child {
  max-width: 320px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.footer-brand span {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #ffffff;
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
}

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-sm);
  text-align: center;
}

/* Anchor links for features page */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-12);
}

.anchor-nav a {
  padding: var(--space-2) var(--space-6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.anchor-nav a:hover {
  border-color: var(--brand-color);
  color: var(--brand-color);
  background-color: var(--brand-light);
  text-decoration: none;
}

/* Feature sections with alternating layout */
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  padding-block: var(--space-16);
}

.feature-section:last-child {
  border-bottom: none;
}

.feature-section:nth-child(even) .feature-content {
  order: 2;
}

.feature-section:nth-child(even) .feature-visual {
  order: 1;
}

.feature-content h3 {
  margin-bottom: var(--space-4);
}

.feature-content p {
  margin-bottom: var(--space-6);
}

.feature-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-content li {
  padding-left: var(--space-6);
  position: relative;
  color: var(--text-muted);
}

.feature-content li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--brand-color);
  font-weight: 700;
}

/* Feature label — colored uppercase label above feature heading */
.feature-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  margin-bottom: var(--space-2);
}

.feature-visual {
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Image placeholder */
.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: linear-gradient(145deg, var(--brand-light) 0%, var(--brand-subtle) 100%);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.image-placeholder-icon {
  color: var(--brand-color);
  opacity: 0.5;
}

.image-placeholder-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
  opacity: 0.4;
  font-weight: 600;
}

/* Two column layout for forms */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-12);
  align-items: start;
}

/* Checklist (used in demo sidebar) */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.checklist li {
  padding-left: var(--space-6);
  position: relative;
  color: var(--text-muted);
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--brand-color);
  font-weight: 700;
}

/* Stats bar */
.stats-bar {
  padding-block: var(--space-12);
  background-color: var(--background-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--text-color);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.stat-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* CTA Banner — light brand-tinted background */
.cta-banner {
  padding-block: var(--space-20);
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--accent-light) 50%, var(--brand-light) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cta-banner h2 {
  color: var(--text-color);
}

.cta-banner p {
  color: var(--text-muted);
}

/* Featured video */
.featured-video {
  display: block;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-12);
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.featured-video:hover {
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.featured-video-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.featured-video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.2s;
}

.featured-video:hover .featured-video-play {
  opacity: 1;
}

.featured-video-info {
  padding: var(--space-6) var(--space-8);
}

.featured-video-info h2 {
  margin-bottom: var(--space-3);
  color: var(--text-color);
}

.featured-video-info p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Video card */
.video-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.video-card:hover {
  box-shadow: var(--shadow-md);
}

.video-card-thumbnail {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-decoration: none;
}

.video-card-thumbnail:hover {
  text-decoration: none;
}

.video-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card-duration {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  line-height: 1;
}

.video-card-body {
  padding: var(--space-6);
}

.video-card-category {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-color);
  margin-bottom: var(--space-2);
}

.video-card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.video-card-title a {
  color: var(--text-color);
  text-decoration: none;
}

.video-card-title a:hover {
  color: var(--brand-color);
}

.video-card-description {
  font-size: var(--text-base);
  color: var(--text-muted);
}

/* Video page layout */
.video-page {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-block: var(--space-12);
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: var(--space-8);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-page-header {
  margin-bottom: var(--space-6);
}

.video-page-header h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-3);
}

.video-page-meta {
  font-size: var(--text-base);
  color: var(--text-muted);
  display: flex;
  gap: var(--space-2);
}

.video-page-description {
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.video-page-content {
  font-size: var(--text-lg);
  line-height: 1.8;
}

.video-page-content p {
  margin-bottom: var(--space-6);
  color: var(--text-color);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--brand-color);
  margin-bottom: var(--space-8);
}

/* Differentiator grid — "Built Different" section */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-6);
}

.diff-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, transform 0.2s;
}

.diff-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.diff-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-light);
  border-radius: var(--radius-md);
  color: var(--brand-color);
}

.diff-item h4 {
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
}

.diff-item p {
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  .hero {
    padding: var(--space-16) var(--space-6);
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  .hero-split {
    padding: var(--space-12) var(--space-6);
  }

  .hero-split .hero-content h1 {
    font-size: var(--text-3xl);
  }

  .hero-split .hero-content {
    text-align: left;
  }

  .hero-split .hero-content p {
    margin-inline: 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-image {
    margin-top: var(--space-10);
  }

  .nav-logo {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    flex-direction: column;
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .feature-section {
    grid-template-columns: 1fr;
  }

  .feature-section:nth-child(even) .feature-content,
  .feature-section:nth-child(even) .feature-visual {
    order: unset;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .diff-grid {
    grid-template-columns: 1fr;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .stat-number {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-4);
  }
}
