 :root {
    --bg: #f3efe7;
    --bg-deep: #ebe5d8;
    --ink: #1a1a1a;
    --ink-soft: #4a4a48;
    --ink-mute: #7a7872;
    --rule: #c9c2b3;
    --rule-soft: #d8d2c2;
    --accent: #a8541d;
    --accent-deep: #82391a;
    --accent-soft: #d49a6a;
    --paper: #faf7ef;
    --shadow-1: 0 1px 0 rgba(26,26,26,0.06);
    --shadow-2: 0 8px 32px -12px rgba(40,30,18,0.18);
    --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1, 0 0 0 0 0.08, 0 0 0 0 0.04, 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter Tight', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
  }
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: var(--grain);
    pointer-events: none;
    opacity: 0.5;
    z-index: 100;
    mix-blend-mode: multiply;
  }

  /* ====== Typography ====== */
  .display { font-family: 'Fraunces', 'Times New Roman', serif; font-weight: 400; letter-spacing: -0.02em; line-height: 0.98; }
  .display-italic { font-style: italic; font-variation-settings: 'opsz' 144; }
  .mono { font-family: 'DM Mono', 'Courier New', monospace; }
  .eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
  }

  /* ====== Layout ====== */
  .wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
  @media (max-width: 720px) { .wrap { padding: 0 24px; } }

  /* ====== Nav ====== */
  nav {
    position: sticky; top: 0;
    background: rgba(243, 239, 231, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule-soft);
    z-index: 50;
  }
  .nav-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 48px;
    max-width: 1280px; margin: 0 auto;
  }
  .logo {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -0.02em;
    display: flex; align-items: baseline; gap: 8px;
  }
  .logo span { color: var(--accent); font-style: italic; }
  .nav-links { display: flex; gap: 32px; align-items: center; }
  .nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
  }
  .nav-links a:hover { color: var(--accent); }
  .nav-cta {
    background: var(--ink);
    color: var(--paper);
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
  }

  .hero::before{ display: none;}
  .nav-cta:hover { background: var(--accent); }
  @media (max-width: 720px) {
    .nav-inner { padding: 14px 24px; }
    .nav-links a:not(.nav-cta) { display: none; }
  }

  /* ====== Hero ====== */
  .hero {
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden; background: transparent !important;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: end;
  }
  @media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero { padding: 80px 0 60px; }
  }

  .hero h1 {
    font-size: 55px;
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 60px;
    margin-top: 32px;
  }
  .hero h1 em {
    font-variation-settings: 'opsz' 144;
    color: var(--accent);
  }
  .hero-tag {
    display: inline-block;
    margin-bottom: 24px;
    padding: 6px 14px;
    border: 1px solid var(--rule);
    border-radius: 100px;
    font-size: 12px;
    color: var(--ink-soft);
    background: var(--paper);
  }
  .hero-tag-dot {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s ease-in-out infinite;
    vertical-align: middle;
  }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

  .hero-side {
    border-left: 1px solid var(--rule);
    padding-left: 40px;
  }
  .hero-side p {
    font-size: 17px;
    color: var(--ink-soft);
    margin-bottom: 32px;
    max-width: 380px;
  }

  .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
  .btn-primary {
    background: var(--ink);
    color: var(--paper);
    padding: 16px 28px;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
  }
  .btn-primary:hover {
    background: var(--accent);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--ink);
  }
  .btn-ghost {
    background: transparent;
    color: var(--ink);
    padding: 16px 28px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
  }
  .btn-ghost:hover { background: var(--ink); color: var(--paper); }

  /* Hero illustration: a stylized mail thread with AI markup */
  .hero-illus {
    margin-top: 80px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: var(--shadow-2);
    transform: rotate(-0.3deg);
    position: relative;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-illus::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    background: linear-gradient(135deg, transparent 60%, rgba(168,84,29,0.08));
    pointer-events: none;
  }
  .illus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rule-soft);
    margin-bottom: 18px;
  }
  .illus-from {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 500;
  }
  .illus-meta { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--ink-mute); }
  .illus-subj {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    color: var(--ink);
    margin-bottom: 16px;
    font-style: italic;
  }
  .illus-body {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 24px;
  }
  .illus-body mark {
    background: rgba(168,84,29,0.15);
    color: var(--accent-deep);
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: 500;
    text-decoration: underline wavy var(--accent-soft);
    text-underline-offset: 4px;
  }
  .illus-ai {
    background: var(--bg-deep);
    border-radius: 6px;
    padding: 16px 18px;
    border-left: 3px solid var(--accent);
    margin-top: 8px;
  }
  .illus-ai-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .illus-ai-content { font-size: 13px; color: var(--ink); }
  .illus-pills { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 100px;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--ink-soft);
    text-transform: lowercase;
  }
  .pill.hot { color: var(--accent-deep); border-color: var(--accent-soft); }

  /* ====== Section header ====== */
  section { padding: 100px 0; position: relative; }
  .section-header { margin-bottom: 64px; max-width: 720px; }
  .section-header h2 {
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-top: 16px;
  }
  .section-header h2 em {
    font-variation-settings: 'opsz' 144;
    color: var(--accent);
  }
  .section-header p {
    color: var(--ink-soft);
    font-size: 18px;
    margin-top: 24px;
    max-width: 600px;
  }

  /* ====== Problem section ====== */
  .problem {
    background: var(--bg-deep);
    margin-top: 60px;
  }
  .problem-quote {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.2;
    font-weight: 300;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    color: var(--ink);
    position: relative;
    padding: 0 24px;
  }
  .problem-quote::before, .problem-quote::after {
    content: '"';
    color: var(--accent);
    font-size: 1.5em;
    position: absolute;
    font-family: 'Fraunces', serif;
  }
  .problem-quote::before { left: -8px; top: -20px; }
  .problem-quote::after { right: -8px; bottom: -50px; }
  .problem-attr {
    text-align: center;
    margin-top: 56px;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.18em;
  }

  /* ====== Capability grid ====== */
  .capability-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
  }
  @media (max-width: 720px) { .capability-grid { grid-template-columns: 1fr; } }

  .cap-card {
    background: var(--paper);
    padding: 48px 40px;
    position: relative;
    transition: background 0.3s ease;
  }
  .cap-card:hover { background: var(--bg); }
  .cap-num {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--ink-mute);
    margin-bottom: 32px;
  }
  .cap-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
  }
  .cap-card h3 em { color: var(--accent); font-variation-settings: 'opsz' 144; }
  .cap-card p { color: var(--ink-soft); font-size: 15px; }
  .cap-icon {
    width: 40px; height: 40px;
    margin-bottom: 28px;
    color: var(--accent);
  }
  @media (max-width: 720px) { .cap-card { padding: 36px 28px; } }

  /* ====== Provider section ====== */
  .providers {
    background: var(--ink);
    color: var(--paper);
  }
  .providers .section-header h2 { color: var(--paper); }
  .providers .section-header p { color: rgba(250, 247, 239, 0.7); }
  .providers .eyebrow { color: rgba(250, 247, 239, 0.5); }
  .providers .eyebrow::before { background: var(--accent-soft); }
  .provider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
  }
  @media (max-width: 720px) { .provider-grid { grid-template-columns: 1fr; } }
  .provider-card {
    border: 1px solid rgba(250, 247, 239, 0.15);
    border-radius: 8px;
    padding: 36px 32px;
    transition: all 0.3s ease;
    background: rgba(250, 247, 239, 0.02);
  }
  .provider-card:hover {
    border-color: var(--accent-soft);
    transform: translateY(-4px);
  }
  .provider-logo {
    width: 56px; height: 56px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    border-radius: 12px;
  }
  .provider-card h4 {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 500;
  }
  .provider-card p {
    color: rgba(250, 247, 239, 0.6);
    font-size: 14px;
    margin-bottom: 16px;
  }
  .live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6cc04a;
  }
  .live-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: #6cc04a;
    border-radius: 50%;
    box-shadow: 0 0 8px #6cc04a;
  }

  /* ====== How it works ====== */
  .how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    counter-reset: step;
  }
  @media (max-width: 960px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 540px) { .how-grid { grid-template-columns: 1fr; } }
  .step {
    position: relative;
    padding-top: 60px;
  }
  .step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 0;
    font-family: 'Fraunces', serif;
    font-size: 64px;
    font-weight: 300;
    color: var(--accent);
    font-variation-settings: 'opsz' 144;
    font-style: italic;
    line-height: 1;
  }
  .step h4 {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
    border-top: 1px solid var(--rule);
    padding-top: 20px;
  }
  .step p { color: var(--ink-soft); font-size: 14px; }

  /* ====== AI signals demo ====== */
  .signals {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 56px 48px;
    box-shadow: var(--shadow-2);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
  }
  @media (max-width: 880px) {
    .signals { grid-template-columns: 1fr; padding: 40px 28px; gap: 40px; }
  }
  .signals h3 {
    font-family: 'Fraunces', serif;
    font-size: 38px;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
  }
  .signals h3 em { color: var(--accent); font-variation-settings: 'opsz' 144; }
  .signals > div > p { color: var(--ink-soft); margin-bottom: 28px; }
  .signal-list { list-style: none; }
  .signal-list li {
    padding: 14px 0;
    border-bottom: 1px dashed var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
  }
  .signal-list li:last-child { border-bottom: none; }
  .signal-name {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-mute);
    flex-shrink: 0;
  }
  .signal-val {
    font-family: 'Fraunces', serif;
    font-size: 16px;
    font-style: italic;
    color: var(--ink);
    text-align: right;
  }

  /* ====== Pull quote ====== */
  .pull {
    text-align: center;
    padding: 140px 0;
  }
  .pull blockquote {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 1100px;
    margin: 0 auto;
  }
  .pull em { color: var(--accent); font-variation-settings: 'opsz' 144; }

  /* ====== CTA ====== */
  .cta-section {
    background: var(--accent);
    color: var(--paper);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
  }
  .cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(250,247,239,0.15), transparent 60%);
    pointer-events: none;
  }
  .cta-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: end;
  }
  @media (max-width: 720px) { .cta-grid { grid-template-columns: 1fr; } }
  .cta-section h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 0.95;
  }
  .cta-section h2 em {
    font-style: italic;
    font-variation-settings: 'opsz' 144;
    color: var(--paper);
    text-decoration: underline;
    text-decoration-color: rgba(250,247,239,0.4);
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
  }
  .cta-section p {
    color: rgba(250, 247, 239, 0.85);
    font-size: 17px;
    margin-bottom: 24px;
  }
  .btn-cta {
    background: var(--ink);
    color: var(--paper);
    padding: 18px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
  }
  .btn-cta:hover {
    background: var(--paper);
    color: var(--ink);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--ink);
  }

  /* ====== Footer ====== */
  footer {
    background: var(--ink);
    color: var(--paper);
    padding: 64px 0 32px;
  }
  .foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
  }
  @media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
  footer h5 {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-soft);
    margin-bottom: 20px;
  }
  footer ul { list-style: none; }
  footer li { padding: 6px 0; }
  footer a {
    color: rgba(250, 247, 239, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
  }
  footer a:hover { color: var(--paper); }
  .foot-tagline {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 22px;
    line-height: 1.3;
    color: var(--paper);
    max-width: 320px;
    margin-bottom: 16px;
  }
  .foot-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(250, 247, 239, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: rgba(250, 247, 239, 0.4);
    letter-spacing: 0.1em;
  }
  @media (max-width: 540px) {
    .foot-bottom { flex-direction: column; gap: 16px; text-align: center; }
  }

  /* ====== Reveal animations ====== */
.reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: all 0.8s ease;
}
  .reveal.in { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }

  /* FIX CONTENT HIDDEN UNDER HEADER */

body{
    padding-top: 90px;
}

/* sections visible properly */
section{
    position: relative;
    z-index: 1;
}

/* hero fix */
.hero{
    padding-top: 120px !important;
    overflow: visible !important;
}

/* quote section fix */
/* FIX PROBLEM SECTION */

.problem{
    background: var(--bg-deep);
    margin-top: 0 !important;
    padding-top: 180px !important;
    padding-bottom: 120px !important;
    position: relative;
    z-index: 1;
    overflow: visible !important;
}

.problem-quote{
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.45 !important;
    font-weight: 300;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    color: var(--ink);
    position: relative;
    padding: 40px 24px 0;
    overflow: visible !important;
}

/* FIX HEADER OVERLAP */
nav{
    z-index: 99999 !important;
}

/* MOBILE */
@media (max-width:768px){

    .problem{
        padding-top: 120px !important;
        padding-bottom: 80px !important;
    }

    .problem-quote{
        font-size: 32px !important;
        line-height: 1.5 !important;
    }
}
/* sticky header layer */
nav{
    z-index: 9999 !important;
}

/* mobile fix */
@media(max-width:768px){

    body{
        padding-top:70px;
    }

    .hero{
        padding-top:80px !important;
    }

    .problem{
        padding-top:80px !important;
    }

    .problem-quote{
        font-size:32px !important;
    }
}