:root {
  /* --- Dark-First Canvas & Surfaces --- */
  --bg:          #18171A;   
  --surface:     #201F22;   
  --elevated:    #2A292D;   
  --line:        #333236;   

  /* --- Inks & Typography Colors --- */
  --ink:         #F0EDE7;   
  --ink-muted:   #A9A6A1;   

  /* --- Accents --- */
  --turquoise:   #4ECDC4;   
  --cyan:        #38BDF8;   
  --emerald:     #10B981;   

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --font-serif:   'DM Serif Display', serif;
}

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

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.045;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.drafting-lines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.drafting-lines span {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: var(--line);
    opacity: 0.35;
}
.drafting-lines span:nth-child(1) { top: 20%; }
.drafting-lines span:nth-child(2) { top: 40%; }
.drafting-lines span:nth-child(3) { top: 60%; }
.drafting-lines span:nth-child(4) { top: 80%; }
.drafting-lines span:nth-child(5) { top: 96%; }

.ghost {
    font-family: var(--font-serif);
    font-weight: 700 !important;
    font-style: italic !important;
    color: var(--turquoise);
}

.topbar {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 10;
    background: rgba(24, 23, 26, 0.8);
    backdrop-filter: blur(8px);
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
}

.header-status {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--turquoise);
    border: 1px solid rgba(78, 205, 196, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--ink-muted);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.title {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.desc {
    color: var(--ink-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.pipeline-map {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin-bottom: 2.25rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.metric {
    border-left: 2px solid var(--turquoise);
    padding-left: 1rem;
}

.metric .value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink);
}

.metric .label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.log-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.log-header {
    background: var(--elevated);
    padding: 0.8rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--ink-muted);
    border-bottom: 1px solid var(--line);
}

.log-list {
    list-style: none;
    padding: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--ink);
    max-height: 200px;
    overflow-y: auto;
}

.log-list li {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}
.log-list li.active {
    color: var(--turquoise);
    opacity: 1;
}
.log-list li.success {
    color: var(--emerald);
    opacity: 1;
}

/* Interactive Panel */
.interactive-panel {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.simulation-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.mock-property-card {
    background: #FAF8F4; /* Deliberately light to look like a client's site (parchment token) */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}

.property-image {
    height: 180px;
    background: url('property.svg') center/cover no-repeat, #2A3A44;
}

.property-details {
    padding: 1.5rem 1.5rem 0.5rem;
    color: #111;
}

.property-details h3 {
    font-family: -apple-system, sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.property-details .price {
    font-weight: 700;
    color: #059669;
    font-size: 1.4rem;
}

.mock-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-family: -apple-system, sans-serif;
    font-size: 0.95rem;
}

.btn-submit {
    background: #111827;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #374151;
}

/* Simulated Smartphone */
.phone-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 320px;
    height: 640px;
    transition: opacity 0.3s ease;
}

.phone-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.phone-frame {
    width: 100%;
    height: 100%;
    border: 12px solid #111;
    border-radius: 40px;
    background: #000;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #111;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 30;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background: linear-gradient(200deg, #24333E, #18171A 65%, #101013);
    overflow: hidden;
    position: relative;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    color: white;
    font-family: -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
    z-index: 30;
}

.notification-drawer {
    padding: 40px 15px;
}

.sms-notification {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 12px 16px;
    color: #000;
    font-family: -apple-system, sans-serif;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sms-notification.slide-in {
    transform: translateY(0);
    opacity: 1;
}

.sms-notification.hidden {
    display: none;
}

.sms-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 6px;
}

.app-name {
    font-weight: 600;
}

.sms-body {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Post-demo CTA */
.demo-cta {
    margin-top: 1.5rem;
    padding: 1.2rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 2px solid var(--turquoise);
    border-radius: 8px;
    transition: opacity 0.4s ease;
}
.demo-cta.hidden { display: none; }
.demo-cta p {
    color: var(--ink-muted);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-cta {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg);
    background: var(--turquoise);
    border: 1px solid var(--turquoise);
    border-radius: 6px;
    padding: 0.6rem 1.1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-cta:hover { filter: brightness(1.08); }
.btn-cta.outline {
    background: transparent;
    color: var(--turquoise);
}
.btn-cta.outline:hover { background: rgba(78, 205, 196, 0.08); }

/* Mobile — the panels stack and the phone scales down */
@media (max-width: 900px) {
    .demo-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem auto;
        padding: 0 1.25rem;
    }
    .title { font-size: 2.1rem; }
    .desc { font-size: 1rem; }
    .metrics-grid { gap: 1rem; }
    .metric .value { font-size: 1.35rem; }
    .metric .label { font-size: 0.68rem; }
    .interactive-panel { min-height: 560px; }
    .phone-overlay { width: 250px; height: 500px; }
    .phone-frame { border-width: 9px; border-radius: 32px; }
    .phone-notch { width: 90px; height: 20px; }
}
@media (max-width: 480px) {
    .topbar { padding: 0.8rem 1.25rem; }
    .header-status { font-size: 0.65rem; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .metric:last-child { grid-column: span 2; }
}
