  :root {
    --white: #ffffff;
    --snow: #f6f8fc;
    --ice: #eef2f9;
    --mist: #dce3f0;
    --slate: #64748b;
    --graphite: #334155;
    --ink: #0f172a;

    --emerald: #10b981;
    --emerald-deep: #059669;
    --emerald-soft: rgba(16, 185, 129, 0.08);
    --emerald-glow: rgba(16, 185, 129, 0.15);

    --sky: #3b82f6;
    --sky-deep: #2563eb;
    --sky-soft: rgba(59, 130, 246, 0.07);

    --coral: #f43f5e;
    --coral-soft: rgba(244, 63, 94, 0.06);

    --amber: #f59e0b;
    --amber-soft: rgba(245, 158, 11, 0.08);

    --violet: #8b5cf6;
    --violet-soft: rgba(139, 92, 246, 0.07);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--ink);
    overflow-x: hidden;
  }

  /* ── Nav ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 22px 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.35s;
  }

  nav.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 24px rgba(15, 23, 42, 0.06);
    padding: 16px 52px;
  }

  .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

  .nav-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--emerald), var(--sky));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .nav-mark::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 3px;
    transform: rotate(45deg);
  }

  .nav-wordmark {
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
    letter-spacing: -0.5px;
  }

  .nav-wordmark span {
    color: var(--emerald-deep);
  }

  .nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
    list-style: none;
  }

  .nav-links a {
    text-decoration: none;
    color: var(--slate);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s;
  }

  .nav-links a:hover { color: var(--ink); }

  .nav-cta {
    padding: 10px 24px;
    background: var(--ink);
    color: var(--white) !important;
    border-radius: 8px;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.2px;
    transition: background 0.25s, transform 0.25s !important;
  }

  .nav-cta:hover {
    background: var(--emerald-deep) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
  }

  /* ── Hero ── */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 160px 52px 100px;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 70% 55% at 65% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 60%),
      radial-gradient(ellipse 50% 50% at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 55%),
      radial-gradient(ellipse 40% 40% at 85% 75%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
      linear-gradient(180deg, var(--snow) 0%, var(--white) 60%);
  }

  .hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 70%);
  }

  /* Floating shapes */
  .hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .h-shape {
    position: absolute;
    border-radius: 50%;
    animation: floatShape 12s ease-in-out infinite;
  }

  .h-shape:nth-child(1) {
    width: 300px; height: 300px;
    top: 5%; right: 8%;
    background: radial-gradient(circle, var(--emerald-glow), transparent 70%);
    animation-delay: 0s;
  }

  .h-shape:nth-child(2) {
    width: 200px; height: 200px;
    top: 60%; right: 20%;
    background: radial-gradient(circle, var(--sky-soft), transparent 70%);
    animation-delay: -4s;
  }

  .h-shape:nth-child(3) {
    width: 160px; height: 160px;
    top: 30%; left: 60%;
    background: radial-gradient(circle, var(--violet-soft), transparent 70%);
    animation-delay: -8s;
    animation-duration: 15s;
  }

  @keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 12px) scale(0.97); }
  }

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

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 8px;
    background: var(--emerald-soft);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s forwards;
  }

  .hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
  }

  .hero-badge span {
    font-size: 12px;
    font-weight: 600;
    color: var(--emerald-deep);
    letter-spacing: 0.5px;
  }

  .hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(40px, 5.5vw, 72px);
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.7s 0.35s forwards;
  }

  .hero-title .gradient-text {
    background: linear-gradient(135deg, var(--emerald-deep), var(--sky), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--slate);
    max-width: 540px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeUp 0.7s 0.5s forwards;
  }

  .hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.7s 0.65s forwards;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.35);
  }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--white);
    color: var(--ink);
    border: 1.5px solid var(--mist);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.25s, background 0.25s;
  }

  .btn-secondary:hover {
    border-color: var(--sky);
    background: var(--sky-soft);
  }

  /* Hero floating card */
  .hero-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    z-index: 2;
    margin-top: 56px;
    opacity: 0;
    animation: cardReveal 0.8s 0.7s forwards;
  }

  @keyframes cardReveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-card-inner {
    background: var(--white);
    border-radius: 16px;
    box-shadow:
      0 4px 6px rgba(15, 23, 42, 0.03),
      0 12px 40px rgba(15, 23, 42, 0.08),
      0 0 0 1px rgba(15, 23, 42, 0.04);
    overflow: hidden;
  }

  .hc-header {
    padding: 18px 22px;
    background: var(--snow);
    border-bottom: 1px solid var(--ice);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .hc-header-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--graphite);
  }

  .hc-header-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--emerald-soft);
    color: var(--emerald-deep);
  }

  .hc-body { padding: 22px; }

  .hc-parcel-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--slate);
    margin-bottom: 14px;
  }

  .hc-parcel-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .hc-parcel-loc {
    font-size: 13px;
    color: var(--slate);
    margin-bottom: 20px;
  }

  .hc-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }

  .hc-metric {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--snow);
    border: 1px solid var(--ice);
  }

  .hc-metric-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
  }

  .hc-metric-value {
    font-size: 18px;
    font-weight: 700;
  }

  .hc-metric:nth-child(1) .hc-metric-value { color: var(--emerald-deep); }
  .hc-metric:nth-child(2) .hc-metric-value { color: var(--sky-deep); }
  .hc-metric:nth-child(3) .hc-metric-value { color: var(--violet); }
  .hc-metric:nth-child(4) .hc-metric-value { color: var(--amber); }

  .hc-score-bar {
    height: 6px;
    border-radius: 100px;
    background: var(--ice);
    overflow: hidden;
  }

  .hc-score-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--emerald), var(--sky));
    width: 0%;
    animation: scoreFill 1.2s 1.2s forwards;
  }

  @keyframes scoreFill {
    to { width: 82%; }
  }

  .hc-score-label {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--slate);
    font-weight: 500;
  }

  .hc-score-label strong {
    color: var(--emerald-deep);
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── Features ── */
  .features {
    padding: 120px 52px;
    background: var(--white);
    position: relative;
  }

  .features::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mist), transparent);
  }

  .section-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--emerald-deep);
    margin-bottom: 14px;
    text-align: center;
  }

  .section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .section-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--slate);
    max-width: 480px;
    margin: 0 auto 64px;
    text-align: center;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .feature-card {
    padding: 36px 32px;
    border-radius: 16px;
    border: 1px solid var(--ice);
    background: var(--white);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
  }

  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  }

  .feature-card:nth-child(1):hover { border-color: rgba(16, 185, 129, 0.35); }
  .feature-card:nth-child(2):hover { border-color: rgba(59, 130, 246, 0.35); }
  .feature-card:nth-child(3):hover { border-color: rgba(139, 92, 246, 0.35); }
  .feature-card:nth-child(4):hover { border-color: rgba(244, 63, 94, 0.35); }
  .feature-card:nth-child(5):hover { border-color: rgba(245, 158, 11, 0.35); }
  .feature-card:nth-child(6):hover { border-color: rgba(59, 130, 246, 0.35); }

  .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
  }

  .feature-card:nth-child(1) .feature-icon { background: var(--emerald-soft); }
  .feature-card:nth-child(2) .feature-icon { background: var(--sky-soft); }
  .feature-card:nth-child(3) .feature-icon { background: var(--violet-soft); }
  .feature-card:nth-child(4) .feature-icon { background: var(--coral-soft); }
  .feature-card:nth-child(5) .feature-icon { background: var(--amber-soft); }
  .feature-card:nth-child(6) .feature-icon { background: var(--sky-soft); }

  .feature-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .feature-card:nth-child(1) svg { stroke: var(--emerald); }
  .feature-card:nth-child(2) svg { stroke: var(--sky); }
  .feature-card:nth-child(3) svg { stroke: var(--violet); }
  .feature-card:nth-child(4) svg { stroke: var(--coral); }
  .feature-card:nth-child(5) svg { stroke: var(--amber); }
  .feature-card:nth-child(6) svg { stroke: var(--sky); }

  .feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ink);
  }

  .feature-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--slate);
  }

  /* ── How It Works ── */
  .how-it-works {
    padding: 120px 52px;
    background: var(--snow);
    position: relative;
    overflow: hidden;
  }

  .how-it-works::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 50% 50% at 80% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 60%),
      radial-gradient(ellipse 40% 40% at 20% 70%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  }

  .hiw-header {
    text-align: center;
    position: relative;
    margin-bottom: 80px;
  }

  .hiw-header .section-heading {
    margin: 0 auto 16px;
  }

  .hiw-header .section-desc {
    margin: 0 auto;
    max-width: 500px;
  }

  .hiw-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
  }

  .hiw-steps::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--emerald), var(--sky), var(--violet), var(--amber));
    border-radius: 2px;
    z-index: 0;
  }

  .hiw-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 20px;
  }

  .hiw-num {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    position: relative;
  }

  .hiw-step:nth-child(1) .hiw-num { background: linear-gradient(135deg, var(--emerald), #34d399); }
  .hiw-step:nth-child(2) .hiw-num { background: linear-gradient(135deg, var(--sky), #60a5fa); }
  .hiw-step:nth-child(3) .hiw-num { background: linear-gradient(135deg, var(--violet), #a78bfa); }
  .hiw-step:nth-child(4) .hiw-num { background: linear-gradient(135deg, var(--amber), #fbbf24); }

  .hiw-num::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .hiw-step:hover .hiw-num::after { opacity: 1; }

  .hiw-step:nth-child(1) .hiw-num::after { border-color: rgba(16, 185, 129, 0.3); }
  .hiw-step:nth-child(2) .hiw-num::after { border-color: rgba(59, 130, 246, 0.3); }
  .hiw-step:nth-child(3) .hiw-num::after { border-color: rgba(139, 92, 246, 0.3); }
  .hiw-step:nth-child(4) .hiw-num::after { border-color: rgba(245, 158, 11, 0.3); }

  .hiw-step h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
  }

  .hiw-step p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--slate);
  }

  /* ── Markets ── */
  .markets {
    padding: 120px 52px;
    background: var(--white);
    position: relative;
  }

  .markets::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mist), transparent);
  }

  .markets-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .market-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 960px;
  }

  .market-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 36px 28px;
    border-radius: 14px;
    border: 1px solid var(--ice);
    background: var(--white);
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .market-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  }

  .market-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
  }

  .market-card:nth-child(1) .market-card-icon { background: var(--emerald-soft); }
  .market-card:nth-child(2) .market-card-icon { background: var(--sky-soft); }
  .market-card:nth-child(3) .market-card-icon { background: var(--amber-soft); }

  .market-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
  }

  .market-card p {
    font-size: 13px;
    color: var(--slate);
    line-height: 1.5;
  }

  /* ── CTA ── */
  .cta-section {
    padding: 100px 52px;
    position: relative;
    overflow: hidden;
  }

  .cta-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 72px 60px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
  }

  .cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 50% 50% at 20% 30%, rgba(16, 185, 129, 0.15), transparent),
      radial-gradient(ellipse 50% 50% at 80% 70%, rgba(59, 130, 246, 0.12), transparent);
    pointer-events: none;
  }

  .cta-inner .section-eyebrow {
    color: var(--emerald);
    position: relative;
  }

  .cta-inner .section-heading {
    color: var(--white);
    max-width: 500px;
    margin: 0 auto 16px;
    position: relative;
  }

  .cta-inner .section-desc {
    color: rgba(255,255,255,0.6);
    margin: 0 auto 36px;
    max-width: 440px;
    position: relative;
  }

  .cta-inner .btn-primary {
    position: relative;
    font-size: 16px;
    padding: 16px 40px;
  }

  /* ── Footer ── */
  footer {
    padding: 40px 52px;
    background: var(--snow);
    border-top: 1px solid var(--ice);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .footer-brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--emerald), var(--sky));
  }

  .footer-brand span {
    font-weight: 600;
    font-size: 14px;
    color: var(--graphite);
  }

  .footer-right {
    font-size: 13px;
    color: var(--slate);
  }

  .footer-right a {
    color: var(--emerald-deep);
    text-decoration: none;
    font-weight: 500;
  }

  /* ── Scroll Reveal ── */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s, transform 0.65s;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Fallback: if JS doesn't fire, show content after 2s */
  @keyframes revealFallback {
    to { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    animation: revealFallback 0.65s 1.5s forwards;
  }

  .reveal.visible {
    animation: none;
  }

  /* ── Responsive ── */
  @media (max-width: 900px) {
    nav { padding: 18px 24px; }
    nav.scrolled { padding: 14px 24px; }
    .nav-links { display: none; }
    .hero { padding: 120px 24px 80px; }
    .features, .how-it-works, .markets, .cta-section { padding: 80px 24px; }
    .features-grid { grid-template-columns: 1fr; }
    .hiw-steps { grid-template-columns: 1fr 1fr; gap: 40px; }
    .hiw-steps::before { display: none; }
    .markets-inner { gap: 40px; }
    .market-cards { grid-template-columns: 1fr; }
    .cta-inner { padding: 48px 28px; }
    .hero-card { max-width: 100%; }
    .hc-metrics { grid-template-columns: 1fr 1fr; }
    footer { flex-direction: column; gap: 12px; text-align: center; }
  }
