:root {
    --navy: #0b1437;
    --deep: #060d24;
    --gold: #c9a84c;
    --gold-light: #f0cc6e;
    --cream: #f5f0e8;
    --muted: #8a90aa;
    --white: #ffffff;
    --card-bg: rgba(255,255,255,0.04);
    --border: rgba(201,168,76,0.2);
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--deep);
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
  }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.4rem 5vw;
    background: rgba(6,13,36,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.02em;
    text-decoration: none;
  }
  .logo span { color: var(--cream); font-style: italic; }

  .nav-links {
    display: flex; gap: 2.5rem; list-style: none;
  }
  .nav-links a {
    color: var(--muted); font-size: 0.88rem; letter-spacing: 0.06em;
    text-decoration: none; text-transform: uppercase;
    transition: color 0.25s;
  }
  .nav-links a:hover { color: var(--gold); }

  .nav-cta {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.55rem 1.4rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
  }
  .nav-cta:hover {
    background: var(--gold); color: var(--deep);
  }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    padding: 8rem 5vw 5rem;
    overflow: hidden;
  }

  /* animated grid */
  .hero-grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
    animation: gridPulse 8s ease-in-out infinite;
  }
  @keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
  }

  .hero-glow {
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
  }
  @keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  }

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

  .hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem; letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--border);
    padding: 0.35rem 1rem;
    margin-bottom: 2rem;
    animation: fadeUp 0.8s ease both;
  }

  .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.01em;
    color: var(--cream);
    margin-bottom: 1.6rem;
    animation: fadeUp 0.9s 0.1s ease both;
  }
  .hero-title em {
    font-style: italic;
    color: var(--gold);
  }

  .hero-sub {
    font-size: 1.12rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 2.8rem;
    animation: fadeUp 1s 0.2s ease both;
  }

  .hero-actions {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    animation: fadeUp 1s 0.3s ease both;
  }

  .btn-primary {
    background: var(--gold);
    color: var(--deep);
    padding: 0.9rem 2.2rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none; cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    position: relative; overflow: hidden;
  }
  .btn-primary::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.15);
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  .btn-primary:hover::after { transform: translateX(0); }

  .btn-ghost {
    background: transparent;
    color: var(--cream);
    padding: 0.9rem 2.2rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(245,240,232,0.2);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
  }
  .btn-ghost:hover {
    border-color: var(--cream);
    background: rgba(245,240,232,0.06);
  }

  /* STATS STRIP */
  .stats-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 5vw;
    display: flex; justify-content: center; gap: 5vw; flex-wrap: wrap;
    background: rgba(201,168,76,0.03);
  }
  .stat {
    text-align: center;
    animation: fadeUp 0.8s ease both;
  }
  .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
  }
  .stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.3rem;
  }

  /* SECTIONS */
  section { padding: 7rem 5vw; }

  .section-label {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
  }

  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--cream);
    margin-bottom: 1.2rem;
  }
  .section-title em { font-style: italic; color: var(--gold); }

  .section-body {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 520px;
  }

  /* HOW IT WORKS */
  .how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
  }

  .steps {
    display: flex; flex-direction: column; gap: 2.2rem;
    margin-top: 3rem;
  }

  .step {
    display: flex; gap: 1.4rem; align-items: flex-start;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
  }
  .step:nth-child(1) { animation-delay: 0.1s; }
  .step:nth-child(2) { animation-delay: 0.2s; }
  .step:nth-child(3) { animation-delay: 0.3s; }
  .step:nth-child(4) { animation-delay: 0.4s; }

  .step-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
    flex-shrink: 0;
    width: 2.5rem;
  }
  .step-info h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 0.35rem;
    letter-spacing: 0.03em;
  }
  .step-info p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
  }

  /* CHATBOT MOCKUP */
  .chat-mockup {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  }

  .chat-header {
    background: rgba(201,168,76,0.1);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.4rem;
    display: flex; align-items: center; gap: 0.8rem;
  }
  .chat-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    color: var(--deep);
    font-weight: 700;
  }
  .chat-header-info h5 {
    font-size: 0.88rem; font-weight: 500; color: var(--cream);
  }
  .chat-header-info span {
    font-size: 0.72rem; color: #4caf50; letter-spacing: 0.05em;
  }

  .chat-body {
    padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem;
  }

  .msg {
    max-width: 80%; font-size: 0.88rem; line-height: 1.55;
    padding: 0.75rem 1rem;
  }
  .msg.bot {
    background: rgba(201,168,76,0.08);
    border: 1px solid var(--border);
    color: var(--cream);
    align-self: flex-start;
  }
  .msg.user {
    background: rgba(245,240,232,0.07);
    border: 1px solid rgba(245,240,232,0.1);
    color: var(--cream);
    align-self: flex-end;
  }

  .chat-input {
    border-top: 1px solid var(--border);
    padding: 0.9rem 1.2rem;
    display: flex; gap: 0.8rem; align-items: center;
  }
  .chat-input input {
    flex: 1; background: transparent; border: none; outline: none;
    color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: 0.85rem;
  }
  .chat-input input::placeholder { color: rgba(138,144,170,0.5); }
  .send-btn {
    background: var(--gold); border: none; cursor: pointer;
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  }
  .send-btn svg { fill: var(--deep); width: 14px; height: 14px; }

  /* FEATURES */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5px;
    max-width: 1100px;
    margin: 4rem auto 0;
    background: var(--border);
  }

  .feature-card {
    background: var(--deep);
    padding: 2.5rem;
    position: relative;
    transition: background 0.3s;
  }
  .feature-card:hover {
    background: rgba(201,168,76,0.04);
  }

  .feature-icon {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
  }

  .feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 0.7rem;
  }
  .feature-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.65;
  }

  /* USE CASES */
  .usecases {
    background: rgba(201,168,76,0.03);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .usecases-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 2fr; gap: 5rem;
    align-items: start;
  }

  .uc-tabs {
    display: flex; flex-direction: column; gap: 0.3rem;
    margin-top: 3rem;
  }

  .uc-tab {
    padding: 0.9rem 1.2rem;
    font-size: 0.88rem; letter-spacing: 0.04em;
    color: var(--muted);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    text-align: left;
    font-family: 'DM Sans', sans-serif;
  }
  .uc-tab:hover { color: var(--cream); border-color: var(--border); }
  .uc-tab.active {
    color: var(--gold); border-color: var(--border);
    background: rgba(201,168,76,0.06);
  }

  .uc-panels { margin-top: 3rem; }
  .uc-panel { display: none; }
  .uc-panel.active { display: block; }
  .uc-panel h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; font-weight: 700;
    color: var(--cream); margin-bottom: 1rem;
  }
  .uc-panel p {
    color: var(--muted); font-size: 1rem; line-height: 1.75;
    margin-bottom: 1.5rem;
  }
  .uc-tag {
    display: inline-block;
    font-size: 0.75rem; letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--border);
    padding: 0.3rem 0.8rem;
    margin: 0.25rem;
  }

  /* TESTIMONIALS */
  .testimonials-inner {
    max-width: 900px; margin: 0 auto; text-align: center;
  }

  .testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
  }

  .testi-card {
    border: 1px solid var(--border);
    padding: 2rem;
    text-align: left;
    position: relative;
    transition: border-color 0.3s;
  }
  .testi-card:hover { border-color: var(--gold); }

  .testi-quote {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 0.5rem;
  }
  .testi-text {
    font-size: 0.92rem;
    color: var(--cream);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-style: italic;
  }
  .testi-author {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.05em;
  }
  .testi-author strong {
    display: block; color: var(--gold);
    font-style: normal; font-weight: 500;
    margin-bottom: 0.15rem;
  }

  /* PRICING */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 4rem auto 0;
  }

  .price-card {
    border: 1px solid var(--border);
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s;
  }
  .price-card:hover { border-color: var(--gold); }
  .price-card.featured {
    border-color: var(--gold);
    background: rgba(201,168,76,0.05);
  }
  .price-badge {
    position: absolute; top: -1px; right: 2rem;
    background: var(--gold); color: var(--deep);
    font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    font-weight: 500;
  }
  .price-tier {
    font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 1rem;
  }
  .price-amount {
    font-family: 'Playfair Display', serif;
    font-size: 3rem; font-weight: 700;
    color: var(--cream); line-height: 1;
  }
  .price-amount sup {
    font-size: 1.2rem; vertical-align: top; margin-top: 0.5rem;
    color: var(--gold);
  }
  .price-amount small {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem; color: var(--muted); font-weight: 300;
  }
  .price-desc {
    font-size: 0.88rem; color: var(--muted);
    margin: 1rem 0 1.5rem;
    line-height: 1.6;
  }
  .price-features {
    list-style: none; display: flex; flex-direction: column; gap: 0.7rem;
    margin-bottom: 2rem;
  }
  .price-features li {
    font-size: 0.88rem; color: var(--muted);
    display: flex; gap: 0.6rem; align-items: center;
  }
  .price-features li::before {
    content: '✦'; color: var(--gold); font-size: 0.6rem; flex-shrink: 0;
  }

  /* CTA FOOTER */
  .cta-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, transparent 60%);
    border-top: 1px solid var(--border);
  }
  .cta-section .section-title { margin: 0 auto 1rem; max-width: 600px; }
  .cta-section .section-body { margin: 0 auto 2.5rem; text-align: center; }

  footer {
    border-top: 1px solid var(--border);
    padding: 2rem 5vw;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
  }
  .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 700;
  }
  .footer-links {
    display: flex; gap: 2rem; list-style: none;
  }
  .footer-links a {
    font-size: 0.8rem; color: var(--muted);
    letter-spacing: 0.06em; text-transform: uppercase;
    text-decoration: none; transition: color 0.2s;
  }
  .footer-links a:hover { color: var(--gold); }
  .footer-copy {
    font-size: 0.78rem; color: rgba(138,144,170,0.5);
  }

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

  /* TYPING ANIMATION */
  .typing {
    display: flex; gap: 4px; align-items: center;
    padding: 0.6rem 1rem;
    background: rgba(201,168,76,0.08);
    border: 1px solid var(--border);
    align-self: flex-start;
    width: fit-content;
  }
  .typing span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold);
    animation: bounce 1.2s infinite;
  }
  .typing span:nth-child(2) { animation-delay: 0.2s; }
  .typing span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
  }

  /* CONTACT FORM */
  .contact-form-wrap {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
  }
  .contact-form-box {
    border: 1px solid var(--border);
    padding: 2.5rem;
    background: rgba(6,13,36,0.8);
    backdrop-filter: blur(10px);
    transition: opacity 0.4s, transform 0.4s;
  }
  .contact-form-box.hidden {
    opacity: 0; transform: scale(0.96); pointer-events: none;
  }
  .form-plan-badge {
    display: inline-block;
    font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--deep); background: var(--gold);
    padding: 0.3rem 0.9rem; margin-bottom: 1.4rem;
    font-weight: 500;
  }
  .form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  }
  .form-group {
    display: flex; flex-direction: column; gap: 0.4rem;
    margin-bottom: 1.1rem;
  }
  .form-group label {
    font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted);
  }
  .form-group input,
  .form-group textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    padding: 0.7rem 1rem;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
  }
  .form-group input::placeholder,
  .form-group textarea::placeholder { color: rgba(138,144,170,0.5); }
  .form-group input:focus,
  .form-group textarea:focus { border-color: var(--gold); }
  .form-group input.error { border-color: #e05c5c; }
  .form-privacy {
    font-size: 0.76rem; color: var(--muted);
    text-align: center; margin-top: 1rem;
  }

  /* SUCCESS */
  .form-success {
    display: none;
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    border: 1px solid var(--gold);
    background: rgba(201,168,76,0.05);
    animation: fadeUp 0.6s ease both;
  }
  .form-success.visible { display: block; }
  #confettiCanvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none;
  }
  .success-icon {
    font-size: 3rem; color: var(--gold);
    animation: spinIn 0.6s ease both;
    margin-bottom: 1rem;
  }
  @keyframes spinIn {
    from { transform: rotate(-180deg) scale(0); opacity: 0; }
    to   { transform: rotate(0) scale(1); opacity: 1; }
  }
  .form-success h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; color: var(--cream);
    margin-bottom: 0.8rem;
  }
  .form-success p {
    color: var(--muted); font-size: 0.95rem; line-height: 1.65;
    max-width: 380px; margin: 0 auto 0.5rem;
  }
  .success-sub { font-size: 0.82rem !important; }
  .success-sub span { color: var(--gold); }

  /* SUBMIT LOADING */
  #submitDemoBtn.loading {
    pointer-events: none; opacity: 0.8;
  }
  .spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(6,13,36,0.3);
    border-top-color: var(--deep);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle; margin-right: 0.5rem;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* MODAL OVERLAY for chat demo */
  .modal-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 200;
    background: rgba(6,13,36,0.88);
    backdrop-filter: blur(6px);
    align-items: center; justify-content: center;
  }
  .modal-overlay.open { display: flex; }
  .modal-box {
    width: min(480px, 92vw);
    background: var(--deep);
    border: 1px solid var(--border);
    overflow: hidden;
    animation: fadeUp 0.35s ease;
  }
  .modal-close {
    position: absolute; top: 1rem; right: 1.2rem;
    background: none; border: none; color: var(--muted);
    font-size: 1.4rem; cursor: pointer; z-index: 10;
  }
  .modal-box .chat-header { position: relative; }

  @media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
  }

    .how-grid { grid-template-columns: 1fr; gap: 3rem; }
    .usecases-inner { grid-template-columns: 1fr; gap: 2rem; }
    .uc-tabs { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
    .nav-links { display: none; }
  }