@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Colors */
  --bg-primary: #0e141b;
  /* Deep Navy/Charcoal */
  --bg-content: #f4f4f0;
  /* Warm structural off-white */
  --text-main: #1a1b1e;
  /* Near black */
  --text-inverse: #ffffff;
  --text-muted: #8b95a1;
  --text-primary-muted: #a0aab5;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-inverse: rgba(255, 255, 255, 0.1);
  --accent: #d4d4dc;
  /* Very subtle grey/metallic */

  /* Spacing */
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --container-width: 1200px;
  --header-height: 80px;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-logo: 'Neue Haas Grotesk', system-ui, -apple-system, sans-serif;
  --line-height-base: 1.6;
  --line-height-tight: 1.2;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: var(--line-height-base);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

/* Utilities & Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.gap-lg {
  gap: var(--space-lg);
}

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

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-md {
  max-width: 600px;
}

.content-max-w {
  max-width: 700px;
}

/* Spacing Utilities */
.mt-xs {
  margin-top: 0.5rem;
}

.mt-sm {
  margin-top: 1.5rem;
}

.mt-md {
  margin-top: 3rem;
}

.mt-lg {
  margin-top: 5rem;
}

.mb-sm {
  margin-bottom: 1.5rem;
}

.mb-md {
  margin-bottom: 3rem;
}

/* Typography Scale */
h1 {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--text-main);
}

h3 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1.125rem;
  color: var(--text-main);
  line-height: 1.6;
  font-weight: 300;
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.emphasis {
  font-weight: 500;
  color: var(--text-main);
}

/* Header */
.header {
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(14, 20, 27, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-inverse);
  transition: transform 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--text-inverse);
}

.logo-img {
  height: 28px;
}

.nav ul {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-primary-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.nav .nav-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  color: var(--text-inverse);
  margin-top: -0.5rem;
  display: inline-block;
}

.nav .nav-btn:hover {
  background-color: var(--text-inverse);
  color: var(--bg-primary);
  border-color: var(--text-inverse);
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section-light {
  background-color: var(--bg-content);
  color: var(--text-main);
}

.bg-alt {
  background-color: #efefeb;
}

/* Premium "What We Do" Section */
#system.section {
  padding: 100px 0;
}

.section-title-premium {
  font-size: 2.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--text-main);
  text-align: center;
}

.content-premium-list {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.content-premium-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Align dots and text together */
  width: fit-content;
  margin: 0 auto;
}

.content-premium-list li {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-main);
  opacity: 0.9;
  margin-bottom: 1.25rem;
  position: relative;
  display: flex;
  align-items: flex-start;
  text-align: left;
}

.content-premium-list li::before {
  content: "•";
  margin-right: 0.75rem;
  color: var(--text-main);
  font-weight: bold;
  flex-shrink: 0;
}

.section-dark {
  background-color: var(--bg-primary);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

/* Agent Examples Background */
#examples {
  background-image: url('../public/samples.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
}

#examples::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 20, 27, 0.75);
  z-index: 1;
}

#examples .container {
  position: relative;
  z-index: 2;
}

/* System Creates Section */
#system-creates {
  background-image: url('../public/realtors.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

#system-creates::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 20, 27, 0.88);
  z-index: 1;
}

#system-creates .container {
  position: relative;
  z-index: 2;
}

#system-creates h2 {
  color: var(--text-inverse);
  margin-bottom: 3.5rem;
}

.creates-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.creates-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.creates-item:first-child {
  padding-top: 0;
}

.creates-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.creates-item h4 {
  color: var(--text-inverse);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.creates-item p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1.5;
}

.section-dark h2,
.section-dark p {
  color: var(--text-inverse);
}

.section-dark button {
  border: 1px solid var(--text-inverse);
  color: var(--text-inverse);
  background-color: transparent;
  cursor: pointer;
}

.section-dark button:hover {
  background-color: var(--text-inverse);
  color: var(--bg-primary);
}

.section-dark-alt {
  background-color: #080c11;
  color: var(--text-inverse);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?q=80&w=2613&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 20, 27, 0.75);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 980px;
}

/* Headline: force clean 2-line layout via the two spans */
.hero-preheader {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.625rem;
  letter-spacing: 0.05em;
}

.hero-title {
  font-weight: 600;
  margin-left: auto;
  margin-right: auto;
  max-width: 980px;
  text-align: center;
  text-wrap: balance;
}

.hero-line-1,
.hero-line-2 {
  display: block;
}

.hero-line-2 {
  margin-top: 0.35rem;
}

/* Subtext: tuned to land on ~2 lines on laptops */
.hero p.hero-sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  font-weight: 400;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

/* Force hero subtitle to 2 lines (like the H1) */
.hero-sub-line-1,
.hero-sub-line-2 {
  display: block;
}

.hero-sub-line-2 {
  margin-top: 0.35rem;
}

.hero-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2rem;
  letter-spacing: 0.02em;
}

/* Buttons */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.btn-primary {
  background-color: var(--text-inverse);
  color: var(--bg-primary);
  border: 1px solid var(--text-inverse);
}

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: var(--text-inverse);
}

/* Feature List */
.feature-list {
  padding-left: 0;
  max-width: 600px;
}

.feature-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 1.25rem;
  color: var(--text-main);
}

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

/* Steps */
#process {
  background-image: url('../public/video-map.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

#process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 20, 27, 0.88);
  z-index: 1;
}

#process .container {
  position: relative;
  z-index: 2;
}

#process h2 {
  color: var(--text-inverse);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-inverse);
  line-height: 1;
  opacity: 0.15;
  flex-shrink: 0;
}

.step-content {
  padding-top: 0.25rem;
}

.step-item h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-inverse);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.step-item p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

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

.pillar h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.pillar p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 400px;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.testimonial blockquote {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.testimonial cite {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  display: block;
}

/* Footer */
.footer {
  padding: 5rem 0 4rem;
  font-size: 0.95rem;
}

.footer h3 {
  color: var(--text-inverse);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer .text-muted {
  color: rgba(255, 255, 255, 0.4);
}

.footer a {
  color: var(--text-inverse);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.footer-brand {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 1rem;
}

.logo-lg {
  display: inline-flex;
  align-items: center;
}

.logo-img-lg {
  height: 32px;
  opacity: 0.5;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}



/* Mobile Nav & Responsive */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-inverse);
  transition: all 0.3s ease;
}

/* 2-span "X" animation */
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  position: absolute;
  top: 50%;
}

.mobile-toggle.active span:nth-child(2) {
  transform: rotate(-45deg);
  position: absolute;
  top: 50%;
}

@media (max-width: 900px) {

  .grid-2-col,
  .pillars-grid,
  .testimonials,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .header-inner {
    padding: 0 1.5rem;
  }

  .mobile-toggle {
    display: flex;
    position: relative;
    height: 20px;
    width: 30px;
    justify-content: center;
  }

  .mobile-toggle span {
    position: absolute;
    width: 24px;
  }

  .mobile-toggle span:nth-child(1) {
    top: 6px;
  }

  .mobile-toggle span:nth-child(2) {
    top: 14px;
  }

  .mobile-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
  }

  .mobile-toggle.active span:nth-child(2) {
    top: 10px;
    transform: rotate(-45deg);
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0e141b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    padding-top: 60px;
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav ul {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
    width: 100%;
  }

  .nav a {
    font-size: 1.75rem;
    color: var(--text-inverse);
    display: block;
    padding: 1rem;
  }

  .nav .nav-btn {
    border: none;
    padding: 1rem;
    margin-top: 0;
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero p.hero-sub {
    font-size: 1rem;
    max-width: 560px;
  }

  .section {
    padding: 3rem 0;
  }

  #system.section {
    padding: 60px 24px;
  }

  .section-title-premium {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .content-premium-list li {
    font-size: 1.125rem;
    /* 18px */
    line-height: 1.4;
    text-align: left;
  }

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

  .footer-brand {
    text-align: center;
    align-items: center;
  }
}