:root {
  --ink: #1f1720;
  --muted: #675d69;
  --paper: #fffdf8;
  --line: rgba(31, 23, 32, 0.1);
  --surface: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 48px rgba(33, 24, 31, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.7), transparent 28%),
    linear-gradient(135deg, #f7f1ea 0%, #ebded0 100%);
}

body.demo-mini {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.6), transparent 28%),
    linear-gradient(135deg, #eef6f5 0%, #d7efe6 48%, #c8dbf0 100%);
  --accent: #165d6d;
  --accent-soft: #dff2f3;
}

body.demo-static {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.6), transparent 28%),
    linear-gradient(135deg, #f9f0e3 0%, #f0ddd5 50%, #dee8d8 100%);
  --accent: #7b3642;
  --accent-soft: #fff2ee;
}

body.demo-full {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.6), transparent 28%),
    linear-gradient(135deg, #eef0fb 0%, #dce9ff 46%, #d8efe6 100%);
  --accent: #29466e;
  --accent-soft: #eef4ff;
}

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

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.topbar,
.site-nav,
.hero,
.grid-2,
.grid-3,
.grid-4,
.stats,
.card-actions {
  display: grid;
  gap: 16px;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 18px;
}

.back-link,
.top-chip,
.nav-pill,
.button,
.feature-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.58);
  background: rgba(255,255,255,.68);
  box-shadow: 0 14px 28px rgba(26, 20, 23, .08);
  backdrop-filter: blur(14px);
}

.back-link,
.nav-pill {
  width: fit-content;
}

.top-chip,
.feature-pill {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.site-nav {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 18px 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 26px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.button {
  width: fit-content;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
}

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr);
  align-items: stretch;
  margin-bottom: 18px;
}

.hero-copy,
.panel,
.card,
.showcase {
  border: 1px solid rgba(255,255,255,.58);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-copy {
  padding: 34px;
}

.eyebrow {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin: 18px 0 14px;
  font-size: clamp(44px, 6vw, 72px);
  line-height: .96;
  letter-spacing: -.05em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -.04em;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  letter-spacing: -.03em;
}

.lead {
  max-width: 60ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.card-actions {
  grid-auto-flow: column;
  justify-content: start;
  margin-top: 22px;
}

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.stat {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.72);
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
}

.stat span,
.meta,
.card p,
.list,
.table {
  color: var(--muted);
  line-height: 1.6;
}

.showcase {
  overflow: hidden;
}

.showcase img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.showcase.mini-screen {
  display: grid;
  align-content: end;
  min-height: 620px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.22) 100%),
    url("../assets/images/cc-studios-coffee-card.png") center/cover no-repeat;
}

.showcase.static-screen {
  min-height: 620px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.18) 100%),
    url("../assets/images/cc-studios-static-business-website.png") center/cover no-repeat;
}

.showcase-card {
  margin: 20px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.panel {
  padding: 28px;
  margin-bottom: 18px;
}

.card {
  padding: 20px;
}

.list {
  display: grid;
  gap: 10px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery .card {
  padding: 0;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.map-box,
.chart-box {
  min-height: 220px;
  border-radius: 22px;
  background:
    repeating-linear-gradient(45deg, rgba(31,23,32,.05) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, #d3eadf, #d9e7fb);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table tr + tr td {
  border-top: 1px solid var(--line);
}

.table td {
  padding: 12px 0;
}

.footer-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 940px) {
  .hero,
  .grid-2,
  .grid-3,
  .grid-4,
  .stats,
  .gallery,
  .topbar,
  .site-nav {
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 20px, 1180px);
  }

  .hero-copy,
  .panel {
    padding: 22px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .card-actions {
    grid-auto-flow: row;
  }

  .button,
  .nav-pill,
  .back-link {
    width: 100%;
  }
}
