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

:root {
  --white: #F5F4EB;
  --cream: #ECEADD;
  --border: #D5D2C4;
  --text-primary: #333334;
  --text-secondary: #555555;
  --text-muted: #888888;
  --gold: #C5A047;
  --accent: #4A6B5D;
}

body {
  min-height: 100vh;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--cream), var(--white));
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 50px;
  background: rgba(236, 234, 221, 0.96);
  border-bottom: 1px solid rgba(213, 210, 196, 0.7);
  backdrop-filter: blur(8px);
}

.logo {
  color: var(--text-primary);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 24px;
  text-decoration: none;
}

.back,
.blog-back-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.back:hover,
.blog-back-link:hover {
  color: var(--gold);
}

.blog-main {
  padding: 110px 24px 130px;
}

.blog-header {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.label {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 24px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(48px, 8vw, 86px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.03;
}

.blog-header p,
.blog-article-header p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
}

.blog-list {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.blog-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  color: var(--text-primary);
  background: rgba(245, 244, 235, 0.72);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 20px 60px rgba(51, 51, 52, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 160, 71, 0.6);
  box-shadow: 0 24px 70px rgba(51, 51, 52, 0.12);
}

.blog-card img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 14px;
}

.blog-card span {
  display: grid;
  align-content: center;
  gap: 9px;
}

.blog-card time,
.blog-article-header time {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.blog-card strong {
  font-size: 23px;
  line-height: 1.18;
}

.blog-card em {
  color: var(--text-secondary);
  font-style: normal;
  line-height: 1.55;
}

.blog-article {
  max-width: 850px;
  margin: 0 auto;
}

.blog-back-link {
  display: inline-flex;
  margin-bottom: 30px;
}

.blog-article-header {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.blog-article-header h1 {
  margin-bottom: 0;
}

.blog-article-image {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  margin-bottom: 34px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.blog-article-content {
  color: #3f3f40;
  font-size: 18px;
  line-height: 1.78;
}

.blog-article-content h2,
.blog-article-content h3 {
  margin: 36px 0 14px;
  color: var(--text-primary);
  line-height: 1.25;
}

.blog-article-content p,
.blog-article-content ul,
.blog-article-content ol {
  margin: 0 0 18px;
}

.blog-article-content ul,
.blog-article-content ol {
  padding-left: 24px;
}

.blog-article-content a {
  color: #8f6f20;
  font-weight: 700;
}

.blog-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

footer {
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

/* ===== DEMOS ===== */
.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.demo-card {
  display: flex;
  flex-direction: column;
  background: rgba(245, 244, 235, 0.72);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(51, 51, 52, 0.07);
}

.demo-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--text-primary);
  cursor: pointer;
  overflow: hidden;
}

.demo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
}

.demo-frame:hover img {
  transform: scale(1.04);
  opacity: 0.82;
}

.demo-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-frame:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.demo-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), background 0.3s ease;
}

.demo-frame:hover .demo-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--text-primary);
}

.demo-play::after {
  content: '';
  display: block;
  margin-left: 6px;
  border-left: 20px solid var(--white);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.demo-body {
  padding: 28px 32px 32px;
}

.demo-tag {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-title {
  margin-bottom: 10px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.demo-desc {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.demo-points {
  margin: 18px 0 0;
  padding: 18px 0 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.demo-points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.demo-points li:last-child {
  margin-bottom: 0;
}

.demo-points li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.demos-cta {
  max-width: 760px;
  margin: 96px auto 0;
  padding: 48px 40px;
  text-align: center;
  background: rgba(245, 244, 235, 0.72);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.demos-cta h2 {
  margin-bottom: 10px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.demos-cta p {
  max-width: 520px;
  margin: 0 auto 28px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.demos-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.demos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.demos-btn-primary {
  background: var(--text-primary);
  color: var(--white);
}

.demos-btn-primary:hover {
  background: var(--gold);
}

.demos-btn-outline {
  color: var(--text-primary);
  border: 1px solid rgba(51, 51, 52, 0.3);
}

.demos-btn-outline:hover {
  background: rgba(51, 51, 52, 0.05);
}

@media (max-width: 860px) {
  .demos-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .demo-body {
    padding: 24px;
  }

  .demo-title {
    font-size: 24px;
  }

  .demo-play {
    width: 58px;
    height: 58px;
  }

  .demo-play::after {
    border-left-width: 16px;
    border-top-width: 10px;
    border-bottom-width: 10px;
  }

  .demos-cta {
    margin-top: 64px;
    padding: 36px 24px;
  }

  .demos-cta h2 {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 18px 24px;
  }

  .blog-main {
    padding: 80px 24px 96px;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card img {
    height: 190px;
  }

  .blog-card strong {
    font-size: 20px;
  }

  .blog-article-content,
  .blog-header p,
  .blog-article-header p {
    font-size: 16px;
  }
}

.blog-cta {
  margin-top: 56px;
  padding: 36px;
  border: 1px solid rgba(51, 51, 52, 0.15);
  background: #fff;
}
.blog-cta h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 12px;
}
.blog-cta p { margin: 0 0 24px; font-size: 16px; line-height: 1.6; }
.blog-cta-button {
  display: inline-block;
  padding: 16px 28px;
  background: #333334;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.blog-cta-button:hover { background: #8B7D6B; }
@media (max-width: 600px) { .blog-cta { padding: 24px; } }

.blog-cta-more { margin: 20px 0 0 !important; font-size: 15px; }
.blog-cta-more a { color: #4A6B5D; font-weight: 600; }

/* Service pages (/netsuite-integration/, /accounting-automation/) */
.svc { max-width: 980px; margin: 0 auto; }
.svc-hero { max-width: 820px; margin: 0 auto 72px; text-align: center; }
.svc-hero h1 { font-size: clamp(40px, 7vw, 72px); }
.svc-hero p { color: var(--text-secondary); font-size: 19px; line-height: 1.7; margin-bottom: 32px; }
.svc-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.svc-section { padding: 56px 0; border-top: 1px solid var(--border); }
.svc-section h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(30px, 4.5vw, 44px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 14px; }
.svc-section > p { color: var(--text-secondary); font-size: 17px; line-height: 1.7; max-width: 720px; margin: 0 0 28px; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc-card { background: #fff; border: 1px solid var(--border); padding: 26px; }
.svc-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--text-primary); }
.svc-card p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.65; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chips span { padding: 9px 14px; border: 1px solid var(--border); background: #fff; font-size: 14px; color: var(--text-primary); }
.svc-proof { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; background: #fff; border: 1px solid var(--border); padding: 36px; }
.svc-proof h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1.15; margin: 0 0 12px; }
.svc-proof p { color: var(--text-secondary); font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.svc-stat { font-family: "Instrument Serif", Georgia, serif; font-size: 52px; color: var(--accent); line-height: 1; }
.svc-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.svc-quote { border-left: 3px solid var(--accent); padding-left: 22px; align-self: center; }
.svc-quote p { font-style: italic; color: var(--text-primary); font-size: 17px; }
.svc-quote strong { display: block; font-size: 14px; color: var(--text-primary); font-style: normal; }
.svc-quote span { font-size: 13px; color: var(--text-muted); }
.svc-note { font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.svc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc-steps div { border-top: 2px solid var(--accent); padding-top: 16px; }
.svc-steps h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.svc-steps p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.svc-faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.svc-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; color: var(--text-primary); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after { content: '+'; color: var(--text-muted); font-weight: 400; }
.svc-faq details[open] summary::after { content: '\2212'; }
.svc-faq details p { color: var(--text-secondary); font-size: 16px; line-height: 1.7; margin: 12px 0 0; }
.svc-reading { columns: 2; column-gap: 32px; padding: 0; margin: 0; list-style: none; }
.svc-reading li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--border); }
.svc-reading a { color: var(--text-primary); text-decoration: none; font-size: 15px; }
.svc-reading a:hover { color: var(--accent); }
.svc a.inline { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) {
  .svc-grid, .svc-proof { grid-template-columns: 1fr; }
  .svc-steps { grid-template-columns: 1fr 1fr; }
  .svc-reading { columns: 1; }
  .svc-proof { padding: 24px; }
}
@media (max-width: 480px) { .svc-steps { grid-template-columns: 1fr; } }
.svc-demos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc-demo { display: block; background: #fff; border: 1px solid var(--border); text-decoration: none; color: inherit; }
.svc-demo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--border); }
.svc-demo span { display: block; padding: 18px 22px; }
.svc-demo strong { display: block; font-size: 17px; color: var(--text-primary); margin-bottom: 6px; }
.svc-demo em { font-style: normal; font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.svc-demo:hover strong { color: var(--accent); }
@media (max-width: 760px) { .svc-demos { grid-template-columns: 1fr; } }
.svc-card-link { display: block; text-decoration: none; color: inherit; transition: border-color 0.2s; }
.svc-card-link:hover { border-color: var(--accent); }
.svc-card-link:hover h3 { color: var(--accent); }
.svc-demos-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .svc-demos-3 { grid-template-columns: 1fr; } }
.demos-group { max-width: 1100px; margin: 0 auto 72px; }
.demos-group-head { margin-bottom: 28px; }
.demos-group-head h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(30px, 4.5vw, 42px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 10px; }
.demos-group-head p { color: var(--text-secondary); font-size: 17px; line-height: 1.6; margin: 0; }
.demos-group-head a { color: var(--accent); font-weight: 600; }
@media (min-width: 861px) { .demos-grid.demos-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } .demos-grid-3 .demo-body { padding: 24px; } .demos-grid-3 .demo-title { font-size: 24px; } }
.demo-desc a { color: var(--accent); font-weight: 600; }
