:root {
    --bg: #f5f3ed;
    --surface: #ffffff;
    --text: #1c1b1b;
    --muted: #5c5c5c;
    --border: #e8e6e1;
    --accent: #73bc41;
    --accent-hover: #5fa335;
    --accent-subtle: rgba(115, 188, 65, 0.12);
    --container-max: 1200px;
    --container-pad: 1.5rem;
    --touch-min: 44px;
    /* Section strips: warm beige / off-white (Evernote hero background) */
    --strip-1: #f5f3ed;
    --strip-2: #eeebe5;
    --strip-3: #ffffff;
    --strip-4: #f0ede8;
    /* Typography scale (Evernote-like) */
    --text-hero: 2.75rem;
    --text-hero-tag: 1.25rem;
    --text-h1: 2rem;
    --text-h2: 1.5rem;
    --text-h3: 1.25rem;
    --text-body: 1rem;
    --text-small: 0.9375rem;
    --text-caption: 0.875rem;
    --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }
  
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-main);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
  }
  
  .site-header { background: var(--surface); padding: 0.75rem var(--container-pad); border-bottom: 1px solid var(--border); flex-shrink: 0; }
  .nav {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .logo { font-weight: 700; color: var(--text); text-decoration: none; min-height: var(--touch-min); display: inline-flex; align-items: center; }
  .nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
  .nav-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: var(--touch-min);
    height: var(--touch-min);
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--border);
  }
  .nav-menu-btn span { display: block; height: 2px; background: var(--text); border-radius: 1px; transition: transform 0.2s; }
  
  .main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  
  /* Full-width section strips; content constrained inside .section-inner */
  .section {
    width: 100%;
    padding: 0;
    border-bottom: none;
    min-height: 85vh;
    display: flex;
    align-items: center;
  }
  .section-inner {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 3rem var(--container-pad);
    box-sizing: border-box;
  }
  .section-strip-1 { background: var(--strip-1); }
  .section-strip-2 { background: var(--strip-2); }
  .section-strip-3 { background: var(--strip-3); }
  .section-strip-4 { background: var(--strip-4); }
  .section h1 { font-size: var(--text-h1); font-weight: 700; margin: 0 0 0.5rem; letter-spacing: -0.02em; line-height: 1.25; }
  .section h2 { margin: 0 0 0.5rem; font-size: var(--text-h2); font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
  .section-desc { color: var(--muted); margin: 0 0 1.5rem; font-size: var(--text-body); }
  
  /* Hero */
  .hero { text-align: center; }
  .hero .section-inner { padding-top: 2rem; padding-bottom: 3rem; }
  .hero h1 { font-size: var(--text-hero); font-weight: 700; margin: 0 0 0.5rem; line-height: 1.2; letter-spacing: -0.02em; }
  .hero-tagline { color: var(--muted); font-size: var(--text-hero-tag); margin: 0 0 1.5rem; max-width: 36em; margin-left: auto; margin-right: auto; line-height: 1.45; }
  .hero-intro { color: var(--muted); font-size: var(--text-body); max-width: 40em; margin: 0 auto 1.5rem; line-height: 1.6; }
  .hero-image-wrap { margin: 1.5rem 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
  .hero-image { display: block; width: 100%; height: auto; vertical-align: top; }
  .hero-meta { color: var(--muted); font-size: var(--text-caption); margin: 1rem 0 0; }
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-min);
    padding: 0.65rem 1.35rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background 0.2s, color 0.2s;
  }
  .btn-primary { background: #000000; color: #ffffff; border: none; }
  .btn-primary:hover { background: #1c1b1b; }
  .btn-secondary { background: transparent; color: var(--text); border: 2px solid var(--text); }
  .btn-secondary:hover { background: rgba(28, 27, 27, 0.06); }
  .back-link { margin-top: 1rem; }
  
  /* Team */
  .team .section-inner { padding-top: 3rem; padding-bottom: 3rem; }
  .team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
  .team-card { background: var(--surface); padding: 1.25rem; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }
  .team-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 0.75rem; display: block; }
  .team-card h3 { margin: 0 0 0.25rem; font-size: var(--text-h3); font-weight: 600; }
  .team-role { color: var(--muted); font-size: var(--text-small); margin: 0 0 0.5rem; }
  .team-link { font-size: var(--text-small); color: var(--accent); text-decoration: none; }
  .team-link:hover { text-decoration: underline; }
  .team-bio { font-size: var(--text-body); margin: 0.75rem 0 0; color: var(--muted); }
  
  /* Testimonials */
  .testimonials .section-inner { padding-top: 3rem; padding-bottom: 3rem; }
  .testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
  .testimonial-card { background: var(--surface); padding: 1.25rem; border-radius: 12px; margin: 0; border: 1px solid var(--border); border-left: 4px solid var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }
  .testimonial-quote { margin: 0 0 0.5rem; font-style: italic; }
  .testimonial-card footer { color: var(--muted); font-size: var(--text-small); }
  .testimonial-company { display: block; font-size: var(--text-caption); color: var(--muted); margin-top: 0.25rem; }
  
  /* Numbers */
  .numbers .section-inner { padding-top: 3rem; padding-bottom: 3rem; }
  .numbers-intro { margin-bottom: 2rem; max-width: 32em; }
  .numbers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.5rem; }
  .stat { text-align: center; padding: 1rem; background: var(--surface); border-radius: 12px; border: 1px solid var(--border); }
  .stat-value { display: block; font-size: 2rem; font-weight: 700; color: var(--accent); }
  .stat-label { font-size: var(--text-small); color: var(--muted); }
  .numbers-note { margin-top: 2rem; color: var(--muted); font-size: var(--text-small); max-width: 36em; }
  
  /* Logos */
  .logos .section-inner { padding-top: 3rem; padding-bottom: 3rem; }
  .logos-row { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: center; }
  .client-logo { height: 48px; width: auto; max-width: 140px; object-fit: contain; opacity: 0.85; filter: grayscale(0.4); }
  .client-logo:hover { opacity: 1; filter: grayscale(0); }
  .logos-note { margin-top: 1.5rem; text-align: center; color: var(--muted); }
  
  /* Badges */
  .security .section-inner { padding-top: 3rem; padding-bottom: 3rem; }
  .badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .badge { background: var(--bg); padding: 0.45rem 0.85rem; border-radius: 999px; font-size: var(--text-caption); color: var(--muted); border: 1px solid var(--border); font-weight: 500; }
  .security-note { margin-top: 1.5rem; color: var(--muted); font-size: var(--text-small); max-width: 40em; }
  
  /* Case CTA */
  .case-cta .section-inner { padding-top: 3rem; padding-bottom: 3rem; text-align: center; }
  .case-cta p { margin: 0 0 1rem; color: var(--muted); }
  .case-cta-desc { max-width: 36em; margin: 0 auto 1.5rem; }
  
  /* Demo video */
  .demo .section-inner { padding-top: 3rem; padding-bottom: 3rem; }
  
  .video-wrap { max-width: 720px; margin: 0 auto; }
  .video-thumb { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/9; background: var(--surface); }
  .video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.25); cursor: pointer; }
  .video-play::after { content: ""; width: 0; height: 0; border-left: 28px solid #fff; border-top: 18px solid transparent; border-bottom: 18px solid transparent; margin-left: 8px; border-radius: 2px; }
  .video-caption { color: var(--muted); font-size: var(--text-caption); margin: 0.5rem 0 0; text-align: center; }
  
  /* Reviews */
  .reviews .section-inner { padding-top: 3rem; padding-bottom: 3rem; }
  .reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
  .review-card { background: var(--surface); padding: 1.25rem; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }
  .review-stars { color: var(--accent); font-size: var(--text-body); letter-spacing: 0.05em; margin-bottom: 0.5rem; }
  .review-quote { margin: 0 0 0.5rem; font-style: italic; font-size: var(--text-body); }
  .review-meta { color: var(--muted); font-size: var(--text-caption); margin: 0; }
  .reviews-cta { margin: 1rem 0 0; text-align: center; }
  .reviews-cta a { color: var(--accent); text-decoration: none; }
  .reviews-cta a:hover { text-decoration: underline; }
  
  /* Architecture diagram */
  .architecture .section-inner { padding-top: 3rem; padding-bottom: 3rem; }
  .diagram { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 0.75rem; }
  .diagram-step { display: flex; align-items: center; gap: 0.5rem; }
  .diagram-label { font-size: var(--text-small); color: var(--text); }
  .diagram-arrow { color: var(--muted); font-size: var(--text-h3); }
  .diagram-note { color: var(--muted); font-size: var(--text-small); margin: 0; }
  .architecture-list { margin-top: 1.5rem; color: var(--muted); font-size: var(--text-body); }
  .architecture-list li { margin-bottom: 0.5rem; }
  
  /* Case study page */
  .case-study-page .case-block { margin-bottom: 2rem; }
  .case-block h2 { font-size: var(--text-h3); margin: 0 0 0.5rem; font-weight: 600; }
  .case-study-label { text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-size: var(--text-caption); margin: 0 0 0.5rem; }
  .case-results { margin: 0.5rem 0 0 1.25rem; }
  .case-results li { margin-bottom: 0.5rem; }
  .case-quote { background: var(--surface); padding: 1rem 1.25rem; border-radius: 12px; border-left: 4px solid var(--accent); font-style: italic; color: var(--muted); margin: 2rem 0 1.5rem; border: 1px solid var(--border); border-left-width: 4px; border-left-color: var(--accent); }
  
  /* Pricing */
  .pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
  .pricing-card { background: var(--surface); padding: 1.5rem; border-radius: 12px; position: relative; border: 1px solid var(--border); }
  .pricing-card-featured { border-color: var(--text); box-shadow: 0 0 0 2px var(--text); }
  .pricing-badge { position: absolute; top: -0.5rem; right: 1rem; background: #000000; color: #fff; font-size: var(--text-caption); font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px; }
  .pricing-card h3 { margin: 0 0 0.5rem; font-size: var(--text-h3); font-weight: 600; }
  .pricing-price { font-size: var(--text-h2); font-weight: 700; color: var(--text); margin: 0 0 0.25rem; }
  .pricing-price span { font-size: var(--text-small); font-weight: 400; color: var(--muted); }
  .pricing-desc { color: var(--muted); font-size: var(--text-small); margin: 0 0 1rem; }
  .pricing-features { list-style: none; margin: 0 0 1rem; padding: 0; }
  .pricing-features li { padding: 0.35rem 0; font-size: var(--text-body); color: var(--text); border-bottom: 1px solid var(--border); }
  .pricing-features li:last-child { border-bottom: 0; }
  
  /* Roadmap */
  .roadmap-list { margin-bottom: 1.5rem; }
  .roadmap-item { background: var(--surface); padding: 1.25rem; border-radius: 12px; margin-bottom: 0.75rem; border: 1px solid var(--border); border-left: 4px solid var(--accent); }
  .roadmap-quarter { display: inline-block; font-size: var(--text-caption); font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
  .roadmap-item h3 { margin: 0 0 0.5rem; font-size: var(--text-h3); font-weight: 600; }
  .roadmap-item ul { margin: 0.5rem 0 0 1.25rem; }
  
  /* API docs */
  .api-auth, .api-endpoints { background: var(--surface); padding: 1.25rem; border-radius: 12px; margin-bottom: 1rem; border: 1px solid var(--border); }
  .api-auth h2, .api-endpoints h2 { margin: 0 0 0.75rem; font-size: var(--text-h3); font-weight: 600; }
  .api-endpoint { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
  .api-endpoint:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
  .api-endpoint p { margin: 0.25rem 0 0; font-size: var(--text-small); color: var(--muted); }
  .api-endpoint code { background: var(--surface); padding: 0.15rem 0.4rem; border-radius: 6px; font-size: 0.9em; color: var(--accent); border: 1px solid var(--border); }
  .api-note { color: var(--muted); font-size: var(--text-small); margin: 1rem 0 0; }
  pre { margin: 0.5rem 0 0; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; overflow-x: auto; font-size: var(--text-small); }
  pre code { background: none; padding: 0; color: var(--text); }
  
  /* Onboarding */
  .onboarding-steps { margin-bottom: 2rem; }
  .onboarding-step { background: var(--surface); padding: 1.25rem; border-radius: 12px; margin-bottom: 0.75rem; display: flex; gap: 1rem; align-items: flex-start; border: 1px solid var(--border); }
  .onboarding-num { flex-shrink: 0; width: 2rem; height: 2rem; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--text-body); }
  .onboarding-step h3 { margin: 0 0 0.35rem; font-size: var(--text-h3); font-weight: 600; }
  .onboarding-step p { margin: 0; font-size: var(--text-body); color: var(--muted); }
  .onboarding-cta { margin: 1.5rem 0; text-align: center; }
  .onboarding-note { color: var(--muted); font-size: var(--text-small); margin: 0.5rem 0 0; }
  
  .site-footer { text-align: center; padding: 1rem var(--container-pad); color: var(--muted); font-size: var(--text-caption); border-top: 1px solid var(--border); flex-shrink: 0; }
  
  /* ----- Responsive: tablet and down ----- */
  @media (max-width: 768px) {
    :root { --container-pad: 1rem; }
    .nav-menu-btn { display: flex; }
    .nav-links {
      display: none;
      width: 100%;
      flex-direction: column;
      align-items: stretch;
      padding: 0.5rem 0 0;
      border-top: 1px solid var(--border);
      margin-top: 0.5rem;
    }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .nav-links a { padding: 0.75rem 0; justify-content: flex-start; }
    .nav-toggle:checked + .nav-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked + .nav-menu-btn span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked + .nav-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .section { min-height: 70vh; align-items: flex-start; }
    .section-inner { padding: 2rem var(--container-pad); }
    .hero .section-inner { padding-top: 1.5rem; }
    .hero h1 { font-size: var(--text-h1); }
    .hero-tagline { font-size: var(--text-body); }
    .team-grid { grid-template-columns: 1fr; gap: 1rem; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .logos-row { gap: 1rem; }
    .client-logo { height: 40px; max-width: 110px; }
    .badges { gap: 0.4rem; }
    .badge { font-size: var(--text-caption); padding: 0.35rem 0.6rem; }
    .diagram { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1rem; }
    .diagram-arrow { transform: rotate(90deg); margin-left: 0.5rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .onboarding-step { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  }
  
  /* ----- Responsive: small phones ----- */
  @media (max-width: 480px) {
    :root { --container-pad: 0.75rem; }
    .section { min-height: auto; padding: 0; }
    .section-inner { padding: 1.5rem var(--container-pad); }
    .hero h1 { font-size: 1.75rem; }
    .section h2 { font-size: var(--text-h3); }
    .numbers-grid { grid-template-columns: 1fr; }
    .stat-value { font-size: 1.75rem; }
    .logos-row { justify-content: flex-start; }
  }
  