/* SMC GrowthX: one-page site for real estate agents.
   Layout: sticky nav, split hero with layered browser mockups, then alternating plain/tinted sections. */
:root {
  --ink: #0d1b2a;
  --ink-2: #33475b;
  --muted: #5d6e7e;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --tint: #edf3f1;
  --line: #dbe3e1;
  --accent: #0c8a68;
  --accent-deep: #086b51;
  --accent-soft: #d9efe7;
  --dark: #0b1724;
  --dark-2: #13253a;

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 24px 60px -24px rgba(13, 27, 42, 0.35);
  --wrap: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 700; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; }
h3 { font-size: 19px; font-weight: 600; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); }
.btn-small { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-2); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn-block { width: 100%; }

.text-link { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 247, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 6px auto; background: var(--ink); transition: transform 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero: faint grid lines that fade out, plus a soft green glow behind the mockups */
.hero { position: relative; padding: 64px 0 96px; overflow: hidden; }
.hero::before,
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero::before {
  background-image:
    linear-gradient(to right, rgba(13, 27, 42, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 27, 42, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 65% 35%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 70% at 65% 35%, #000 30%, transparent 78%);
}
.hero::after {
  background:
    radial-gradient(circle at 78% 38%, rgba(12, 138, 104, 0.16), transparent 38%),
    radial-gradient(circle at 12% 8%, rgba(95, 211, 174, 0.14), transparent 30%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

/* Same fading grid on the dark automation band */
.section-dark { position: relative; overflow: hidden; }
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}
.section-dark > .wrap { position: relative; }
.hero-copy { min-width: 0; }
.lead { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; list-style: none; font-size: 15px; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230c8a68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero-visual { position: relative; min-width: 0; aspect-ratio: 1.08; }
.browser {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.browser img { width: 100%; height: auto; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #eef1f0; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd8d5; }
.browser-bar span { margin-left: 10px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-back { width: 78%; top: 0; right: 0; opacity: 0.95; }
.browser-front { width: 88%; bottom: 6%; left: 0; }
.hero-badge {
  position: absolute;
  right: 2%;
  bottom: 0;
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.hero-badge strong { font-family: var(--font-display); font-size: 15px; }
.hero-badge span { font-size: 13px; color: rgba(255, 255, 255, 0.7); }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.section-head-left { margin: 0; text-align: left; }

/* Case study */
.case { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.case-shot { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform 0.3s ease; }
.case-shot:hover { transform: translateY(-3px); }
.case-side { display: grid; gap: 22px; min-width: 0; }
.case-list { list-style: none; display: grid; gap: 12px; font-size: 16px; color: var(--ink-2); }
.case-list li { padding-left: 18px; position: relative; }
.case-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.case-list b { color: var(--ink); font-weight: 600; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.feature { position: relative; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.feature:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(13, 27, 42, 0.35); }
.feature-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent-soft), #c4e8da);
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px rgba(12, 138, 104, 0.15);
}
.feature-icon svg { width: 24px; height: 24px; }
.features-dark .feature-icon { background: rgba(95, 211, 174, 0.12); color: #5fd3ae; box-shadow: inset 0 0 0 1px rgba(95, 211, 174, 0.25); }
.features-dark .feature:hover { border-color: rgba(95, 211, 174, 0.35); box-shadow: none; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  font-family: var(--font-display); font-weight: 600;
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.price-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.price { display: flex; align-items: baseline; margin: 10px 0 24px; font-family: var(--font-display); font-weight: 700; font-size: 64px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-currency { font-size: 32px; margin-right: 2px; align-self: flex-start; margin-top: 8px; }
.price-note { margin-left: 12px; font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-list { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; font-size: 16px; }
.price-list li { display: flex; gap: 10px; }
.price-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230c8a68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.price-fine { margin-top: 18px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.price-fine b { color: var(--ink-2); }

/* Automation (dark band) */
.section-dark { background: var(--dark); color: #fff; }
.section-dark .eyebrow { color: #5fd3ae; }
.section-dark .section-head p:not(.eyebrow) { color: rgba(255, 255, 255, 0.72); }
.features-dark .feature { background: var(--dark-2); border-color: rgba(255, 255, 255, 0.08); }
.features-dark .feature p { color: rgba(255, 255, 255, 0.7); }
.section-dark .btn { margin: 44px auto 0; display: flex; width: max-content; }

/* About */
.about { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: center; }
.about-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #1f7a6a, #0e4a49);
  box-shadow: var(--shadow);
}
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.about-initials { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, 0.9); font-family: var(--font-display); font-size: 88px; font-weight: 600; }
.about-copy { min-width: 0; }
.about-copy p:not(.eyebrow) { margin-top: 16px; color: var(--ink-2); font-size: 18px; max-width: 36em; }
.about-copy .text-link { display: inline-block; margin-top: 22px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 28px 20px 0;
  position: relative;
  font-weight: 600;
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--ink-2); font-size: 16px; }

/* Contact: copy + illustrated preview over a lined, glowing background */
.contact {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(95, 211, 174, 0.28), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(12, 138, 104, 0.35), transparent 45%),
    linear-gradient(150deg, #0a5f4b, #08463b 45%, var(--dark));
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, #000 25%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, #000 25%, transparent 80%);
  pointer-events: none;
}
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.contact-copy { min-width: 0; }
.contact .eyebrow { color: #a8eed6; }
.contact p:not(.eyebrow) { margin-top: 16px; font-size: 18px; color: rgba(255, 255, 255, 0.82); max-width: 32em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; list-style: none; font-size: 15px; color: rgba(255, 255, 255, 0.78); }
.contact-points li { display: inline-flex; align-items: center; gap: 8px; }
.contact-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5fd3ae; }

.contact-art { position: relative; min-width: 0; padding: 28px 28px 40px 0; }
.art-browser {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  transform: rotate(-1.5deg);
}
.art-browser .browser-bar span { color: #5d6e7e; }
.art-hero { position: relative; aspect-ratio: 2 / 1; overflow: hidden; }
.art-house { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 27, 42, 0.05), rgba(13, 27, 42, 0.45)); }
.art-hero-text { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; color: #fff; }
.art-eyebrow { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.9; }
.art-hero-text strong { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.art-pills { display: flex; gap: 8px; margin-top: 4px; }
.art-pills i { width: 64px; height: 18px; border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 3px; }
.art-rows { display: grid; gap: 8px; padding: 18px 20px 20px; }
.art-rows span { height: 8px; border-radius: 4px; background: #e6ecea; }
.art-rows .short { width: 55%; }

.art-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  line-height: 1.3;
}
.art-card b { display: block; font-weight: 600; }
.art-card small { display: block; color: var(--muted); font-size: 12px; }
.art-card-lead { top: 0; right: 0; }
.art-card-reviews { left: -24px; bottom: 64px; }
.art-card-live { right: 12px; bottom: 0; }
.art-icon, .art-check { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; }
.art-icon { background: var(--accent-soft); color: var(--accent-deep); }
.art-check { background: var(--accent); color: #fff; border-radius: 50%; }
.art-icon svg, .art-check svg { width: 18px; height: 18px; }
.art-stars { color: #f4b400; font-size: 15px; letter-spacing: 1px; }

@media (prefers-reduced-motion: no-preference) {
  .art-card { animation: float 6s ease-in-out infinite; }
  .art-card-reviews { animation-delay: -2s; }
  .art-card-live { animation-delay: -4s; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}
.copy-email {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font: 500 16px var(--font-body);
  cursor: pointer;
}
.copy-email span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; }
.copy-email:hover { border-color: #fff; }

/* Footer */
.footer { background: var(--dark); color: rgba(255, 255, 255, 0.7); padding: 40px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer .brand-mark { background: #fff; color: var(--ink); }
.footer .brand-name { color: #fff; font-size: 16px; }
.brand-small .brand-mark { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }

/* Reveal on scroll (content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .pricing-grid, .faq-wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 40px; }
  .hero-visual { max-width: 620px; }
  .case { grid-template-columns: 1fr; }
  .features, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 340px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-art { max-width: 560px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; font-size: 17px; }
  .nav-links .btn { margin-top: 8px; height: 50px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .lead { font-size: 17px; }
  .features, .steps { grid-template-columns: 1fr; }
  .price-card { padding: 28px 22px; }
  .price { font-size: 54px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { aspect-ratio: 1.45; }
  .browser-front { bottom: 0; }
  .hero-badge { bottom: -6%; }
  .hero-badge { padding: 10px 14px; }
  .hero-badge strong { font-size: 13px; }
  .hero-badge span { font-size: 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .contact-art { padding: 24px 0 36px; }
  .art-card { padding: 9px 12px; font-size: 12px; gap: 9px; }
  .art-card small { font-size: 11px; }
  .art-card-reviews { left: -4px; bottom: 54px; }
  .art-card-live { right: 0; }
  .art-icon, .art-check { width: 28px; height: 28px; }
  .contact-actions .btn, .copy-email { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .case-shot { transition: none; }
}
