:root {
  --bg: #f5efe3;
  --paper: #fffaf2;
  --paper-strong: rgba(255, 255, 255, 0.82);
  --ink: #102126;
  --muted: rgba(16, 33, 38, 0.72);
  --line: rgba(16, 33, 38, 0.12);
  --dark: #0b1d22;
  --dark-soft: #132a30;
  --accent: #f06449;
  --gold: #f2c572;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --shadow-lg: 0 30px 90px rgba(11, 29, 34, 0.14);
  --shadow-md: 0 20px 50px rgba(11, 29, 34, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(240, 100, 73, 0.17), transparent 25%),
    radial-gradient(circle at 85% 15%, rgba(242, 197, 114, 0.16), transparent 20%),
    linear-gradient(180deg, #f7f1e6 0%, #efe3cf 100%);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.theme-dark {
  background: linear-gradient(180deg, #0c1b20 0%, #12262c 100%);
  color: #eef3f1;
}

.theme-paper {
  background: linear-gradient(180deg, #f4efe4 0%, #efe7d8 100%);
}

.site-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.masthead-dark { color: #eef3f1; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff7f0;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-text small { color: var(--muted); }
.theme-dark .brand-text small,
.masthead-dark .brand-text small { color: rgba(238, 243, 241, 0.72); }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.main-nav a:not(.button) {
  padding: 8px 4px;
  color: var(--muted);
}

.theme-dark .main-nav a:not(.button),
.masthead-dark .main-nav a:not(.button) {
  color: rgba(238, 243, 241, 0.8);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-1px); }

.button-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 18px 35px rgba(240, 100, 73, 0.2);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.38);
  border-color: var(--line);
}

.theme-dark .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #eef3f1;
  border-color: rgba(255, 255, 255, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0 40px;
}

.hero-home { min-height: calc(100svh - 88px); }
.hero-pricing { min-height: 55svh; }

.hero-copy h1,
.blog-hero h1,
.article-hero h1 {
  margin: 18px 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero-pricing h1 { font-size: clamp(42px, 6vw, 74px); }

.lede {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.65;
}

.theme-dark .lede { color: rgba(238, 243, 241, 0.78); }

.eyebrow,
.mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-tag {
  padding: 8px 12px;
  font-size: 11px;
}

.theme-dark .eyebrow,
.theme-dark .mini-tag {
  color: #fff8f2;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.signal-grid,
.grid-three,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.signal-grid { margin-top: 32px; }

.signal-card,
.feature-card,
.product-card,
.pricing-card,
.sidebar-card,
.post-card,
.workflow-item,
.floating-panel,
.visual-card,
.featured-post,
.cta-panel,
.comparison-table,
.article-hero,
.blog-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-strong);
  box-shadow: var(--shadow-md);
}

.signal-card,
.feature-card,
.product-card,
.pricing-card,
.sidebar-card,
.post-card,
.workflow-item {
  padding: 22px;
}

.signal-card strong {
  display: block;
  font-size: 42px;
  letter-spacing: -0.08em;
}

.hero-visual {
  position: relative;
  min-height: 580px;
}

.visual-card-large {
  padding: 18px;
  width: min(100%, 540px);
  margin-left: auto;
}

.floating-panel {
  position: absolute;
  padding: 20px;
  max-width: 280px;
}

.panel-dark {
  right: 26px;
  bottom: 130px;
  background: rgba(11, 29, 34, 0.9);
  color: #f1f4f2;
}

.panel-light {
  left: 0;
  bottom: 30px;
}

.panel-dark p { color: rgba(241, 244, 242, 0.76); }

.section { padding: 44px 0 12px; }

.section-heading,
.section-copy {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2,
.section-copy h2,
.editorial-main h2,
.cta-panel h2,
.article-body h2 {
  margin: 14px 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.split-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.feature-stack,
.workflow-list {
  display: grid;
  gap: 16px;
}

.compact-list,
.number-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.theme-dark .compact-list,
.theme-dark .number-list,
.theme-dark p { color: rgba(238, 243, 241, 0.78); }

.product-card h3,
.pricing-card h3,
.workflow-item h3,
.post-card h3,
.feature-card h3 {
  margin: 10px 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.price {
  margin: 8px 0 14px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(240, 100, 73, 0.16), rgba(255, 255, 255, 0.84));
  transform: translateY(-10px);
}

.theme-dark .pricing-card,
.theme-dark .comparison-table,
.theme-dark .feature-card,
.theme-dark .workflow-item,
.theme-dark .pricing-card.featured {
  color: #eef3f1;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.editorial-main,
.editorial-visual {
  border-radius: var(--radius-xl);
  padding: 28px;
  background: rgba(11, 29, 34, 0.92);
  color: #f1f4f2;
  box-shadow: var(--shadow-lg);
}

.editorial-main p,
.cta-panel p,
.article-body p,
.blog-hero p,
.featured-post-copy p,
.blog-sidebar p {
  color: var(--muted);
  line-height: 1.75;
}

.editorial-main p,
.cta-panel p { color: rgba(241, 244, 242, 0.78); }

.editorial-visual {
  background: linear-gradient(180deg, rgba(240, 100, 73, 0.2), rgba(11, 29, 34, 0.9));
  display: grid;
  place-items: center;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(11, 29, 34, 0.95), rgba(19, 42, 48, 0.88));
  color: #f1f4f2;
}

.comparison-table { overflow: hidden; }

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr 1.3fr;
  gap: 16px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.table-head {
  background: rgba(11, 29, 34, 0.06);
  font-weight: 700;
  border-top: 0;
}

.theme-dark .table-head { background: rgba(255, 255, 255, 0.08); }

.blog-layout { padding: 22px 0 40px; }

.blog-hero,
.article-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 28px;
  margin-bottom: 22px;
}

.blog-grid,
.article-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 22px;
}

.featured-post { overflow: hidden; }
.featured-post-copy { padding: 22px; }

.post-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.blog-sidebar,
.article-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.article-layout { padding-bottom: 40px; }
.article-body { display: grid; gap: 18px; }
.article-body h2 { font-size: clamp(28px, 3vw, 42px); }

.article-body blockquote {
  margin: 10px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  background: rgba(240, 100, 73, 0.08);
  font-size: 20px;
  line-height: 1.7;
}

.article-table { margin: 10px 0; }
.article-table .table-row { grid-template-columns: 0.9fr 1.1fr 1fr 1fr; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 48px 0 56px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.parallax {
  transform: translate3d(0, 0, 0);
  transition: transform 180ms ease;
}

@media (max-width: 1080px) {
  .hero,
  .split-band,
  .editorial-grid,
  .blog-grid,
  .article-grid,
  .blog-hero,
  .article-hero,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .signal-grid,
  .grid-three,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual { min-height: auto; }

  .floating-panel {
    position: relative;
    inset: auto;
    margin-top: 16px;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .site-shell { width: min(100% - 24px, 1280px); }

  .masthead,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav { width: 100%; }

  .table-row,
  .article-table .table-row {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .blog-hero h1,
  .article-hero h1 {
    font-size: clamp(40px, 13vw, 64px);
  }
}
