:root {
  --bg: #f3f5f4;
  --surface: #ffffff;
  --text: #111111;
  --muted: #4b5563;
  --line: #e5e7eb;
  --cyan: #004c54;
  --pink: #5a6b73;
  --lime: #a5acaf;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.78); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  gap: .5rem;
}
.brand {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.status {
  justify-self: center;
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .02em;
}
nav { justify-self: end; }
nav a {
  margin-left: .9rem;
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width .18s ease;
}
nav a:hover::after { width: 100%; }
.hero {
  position: relative;
  padding: 5rem 0 3.5rem;
  overflow: hidden;
  background:
    radial-gradient(900px 300px at 5% -8%, #dfe9e7 0, transparent 70%),
    radial-gradient(700px 240px at 92% -10%, #e7ebec 0, transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, .12) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
  opacity: .15;
  pointer-events: none;
}
.hero-word {
  position: absolute;
  right: 2rem;
  top: 1.8rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.4rem, 8vw, 6.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px #9aa7ab;
  opacity: .45;
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: start; }
.eyebrow { color: #004c54; font-weight: 700; margin: 0 0 .6rem; }
h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  letter-spacing: -0.02em;
  line-height: 1.03;
  margin: .1rem 0 .9rem;
}
h2, h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.01em;
}
.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.sticker-row {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin: 1rem 0 .4rem;
}
.sticker {
  display: inline-block;
  background: #d7e4e3;
  border: 1px solid #8ea3a7;
  color: #12363b;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  padding: .3rem .55rem;
  letter-spacing: .03em;
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}
.sticker:nth-child(2) { background: #cdd9dc; }
.sticker:nth-child(3) { background: #dde2e4; }
.cta-row { display: flex; gap: .75rem; margin: 1.3rem 0 .3rem; flex-wrap: wrap; }
.btn {
  background: var(--cyan);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: .78rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.micro { color: #6b7280; font-size: .92rem; }
.tape-strip {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  background: #12393d;
  color: #e8f2f2;
  border-top: 2px solid #385f63;
  border-bottom: 2px solid #385f63;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
}
.tape-strip span {
  display: inline-block;
  padding: .55rem 1rem;
  animation: tape-scroll 18s linear infinite;
}
@keyframes tape-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.section { padding: 3.4rem 0; }
.section-head h2 { margin: 0 0 .5rem; }
.section-head p { margin: 0; color: var(--muted); }
.hero-card, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1rem; margin-top: 1rem; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-contact { grid-template-columns: 1fr 1.1fr; align-items: start; }
.cards .card:nth-child(1) { border-top: 3px solid #004c54; }
.cards .card:nth-child(2) { border-top: 3px solid #2f4f53; }
.cards .card:nth-child(3) { border-top: 3px solid #5a6b73; }
.cards .card:nth-child(4) { border-top: 3px solid #a5acaf; }

.offer-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: .62rem;
  min-height: 100%;
}
.offer-head { display: grid; gap: .5rem; }
.offer-title { margin: 0; line-height: 1.25; }
.offer-head .pill { margin: 0; }
.offer-desc {
  margin: 0;
  line-height: 1.72;
}
ul.offer-desc {
  margin: 0;
  padding-left: 1rem;
  line-height: 1.72;
}
ul.offer-desc li { margin: .24rem 0; }
.offer-price {
  margin: .2rem 0 0;
  align-self: end;
}
.offer-cta {
  margin: 0;
  padding-top: .35rem;
  padding-bottom: .35rem;
}
.pill {
  display: inline-block;
  font-size: .76rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: #e7efee;
  color: #00353b;
  font-weight: 700;
}
.price { font-size: 1.14rem; font-weight: 800; margin: .8rem 0; }
.section-dark {
  background: #0f1718;
  color: #eef2f7;
}
.section-dark .section-head p { color: #c5ced8; }
.card.dark {
  background: #171a21;
  border-color: #2a3240;
  color: #e8edf4;
}
.card.dark p, .card.dark li { color: #d1d9e3; }
.section-accent { background: #eefcff; }
.contact-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.contact-form { display: block; }

@media (max-width: 900px) {
  .cards-3,
  .cards-contact { grid-template-columns: 1fr; }
}

a { color: #004c54; }
a:hover { opacity: .9; }
p { line-height: 1.62; }
.site-footer { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #667085;
}
.footer-grid a { color: #334155; }

/* AI Studio MVP */
.studio-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1rem;
}
.studio-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: .5rem;
}
.studio-left,
.studio-main {
  min-height: 620px;
}
.template-list {
  display: grid;
  gap: .6rem;
  margin: .8rem 0 1rem;
}
.template-item {
  text-align: left;
  border: 1px solid var(--line);
  background: #fbfcfc;
  padding: .75rem;
  border-radius: 10px;
  display: grid;
  gap: .2rem;
  cursor: pointer;
}
.template-item span {
  font-size: .9rem;
  color: var(--muted);
}
.template-item.active {
  border-color: #004c54;
  background: #eef7f6;
}
.studio-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .7rem;
}
.chat-log {
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem;
  overflow-y: auto;
  background: #fcfdfd;
  margin-bottom: .8rem;
}
.chat-row {
  max-width: 90%;
  margin-bottom: .5rem;
  padding: .55rem .7rem;
  border-radius: 10px;
  font-size: .95rem;
}
.chat-row.user {
  margin-left: auto;
  background: #e8f2f2;
}
.chat-row.assistant {
  background: #f3f4f6;
}
textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .7rem;
  font: inherit;
  min-height: 110px;
}
.output-wrap {
  margin-top: 1rem;
}
pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: .8rem;
  max-height: 280px;
  overflow: auto;
  font-size: .8rem;
}

@media (max-width: 920px) {
  .nav { grid-template-columns: 1fr; gap: .35rem; padding: .55rem 0; }
  .status { justify-self: start; }
  nav { justify-self: start; display: flex; flex-wrap: wrap; }
  nav a { margin: 0 .7rem .2rem 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-word { right: .8rem; top: .8rem; opacity: .3; }
  .tape-strip { transform: none; font-size: .7rem; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-left, .studio-main { min-height: auto; }
}

/* Dashboard home variant (built from George Moller's CSS Grid thread steps) */
.dashboard-home {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 64px 1fr 54px;
  grid-template-areas:
    "aside header"
    "aside main"
    "aside footer";
}
.dash-header { grid-area: header; }
.dash-aside { grid-area: aside; }
.dash-main { grid-area: main; }
.dash-footer { grid-area: footer; }

.dash-header,
.dash-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.dash-footer {
  border-top: 1px solid var(--line);
  border-bottom: none;
  font-size: .9rem;
  color: var(--muted);
}
.dash-aside {
  border-right: 1px solid var(--line);
  background: #0f1718;
  color: #e4eef0;
  padding: 1rem;
}
.dash-aside h2 { margin-top: .2rem; margin-bottom: 1rem; font-size: 1rem; }
.side-nav { display: grid; gap: .5rem; margin-bottom: 1rem; }
.side-nav a {
  color: #d8e6ea;
  text-decoration: none;
  padding: .45rem .55rem;
  border-radius: .5rem;
  border: 1px solid #274045;
}
.side-nav a:hover { background: #143137; }
.aside-note {
  background: #12272b;
  border: 1px solid #2a4a50;
  border-radius: .7rem;
  padding: .7rem;
  font-size: .9rem;
}

.dash-main { padding: 1rem; }
.hero-lite {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: .8rem;
  padding: .9rem 1rem;
  margin-bottom: .9rem;
}
.hero-lite h1 {
  margin: .2rem 0 .6rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}
.hero-lite p { margin: 0; color: var(--muted); }

.overview-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.overview-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid #004c54;
  border-radius: .7rem;
  padding: .8rem;
}
.overview-card h3 { margin: 0 0 .3rem; font-size: 1rem; }
.overview-card p { margin: 0 0 .5rem; color: var(--muted); font-size: .95rem; }

.chart-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 200px 200px;
  grid-template-areas:
    "chart overview"
    "chart overview2";
  gap: 10px;
}
.chart { grid-area: chart; }
.chart-overview:nth-of-type(1) { grid-area: overview; }
.chart-overview:nth-of-type(2) { grid-area: overview2; }

.chart,
.chart-overview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .7rem;
  padding: .9rem;
}
.chart h3, .chart-overview h4 { margin: 0 0 .5rem; }
.chart ol { margin: .4rem 0 0 1rem; }

.status-pill {
  margin-left: .6rem;
  font-size: .78rem;
  color: #fff;
  background: #1f565e;
  border-radius: 999px;
  padding: .2rem .5rem;
}

@media (max-width: 980px) {
  .dashboard-home {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
      "header"
      "aside"
      "main"
      "footer";
  }
  .overview-content { grid-template-columns: 1fr; }
  .chart-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "chart" "overview" "overview2";
  }
}

/* Homepage V3: OG structure + 2000s accents, conversion first */
.v3-home {
  background: #edf1ef;
  color: #0d1214;
}
.v3-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 2px solid #12393d;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
}
.v3-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: .7rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .6rem;
}
.v3-brand {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #0d1214;
}
.v3-status {
  justify-self: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #10373c;
  background: #dce8e7;
  border: 1px solid #9db3b6;
  border-radius: 999px;
  padding: .24rem .55rem;
}
.v3-nav { justify-self: end; display: flex; flex-wrap: wrap; gap: .55rem; }
.v3-nav a {
  text-decoration: none;
  color: #102326;
  border: 1px solid #b8c8cb;
  background: #ffffff;
  border-radius: .45rem;
  padding: .35rem .55rem;
  font-weight: 700;
  font-size: .92rem;
}
.v3-nav a:hover { border-color: #12393d; }
.v3-wrap { max-width: 1160px; margin: 0 auto; padding: 1rem; }
.v3-hero {
  border: 2px solid #0f2f33;
  border-radius: 12px;
  background:
    linear-gradient(0deg, rgba(255,255,255,.94), rgba(255,255,255,.94)),
    radial-gradient(circle at 10% -30%, #a8c6c3 0, transparent 48%);
  padding: 1rem;
  position: relative;
}
.v3-hero-layout {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 1rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.v3-hero-copy { position: relative; z-index: 1; }
.v3-hero-visual {
  border: 1px solid #c8d7d9;
  border-radius: 10px;
  background:
    linear-gradient(145deg, #f0f6f6 0%, #dbe7e8 45%, #c7d9db 100%);
  min-height: 240px;
  position: relative;
  overflow: hidden;
  padding: 12px;
}
.v3-hero-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .5rem;
}
.v3-hero-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -40px;
  top: -40px;
  background: radial-gradient(circle, rgba(15,75,83,.26) 0%, rgba(15,75,83,0) 70%);
}
.v3-hero-stat {
  position: relative;
  background: rgba(255,255,255,.9);
  border: 1px solid #c1d1d4;
  border-radius: 8px;
  padding: .65rem;
  display: grid;
  gap: .2rem;
  z-index: 1;
}
.v3-hero-stat strong { font-size: .92rem; }
.v3-hero-stat span { font-size: .85rem; color: #3d4e52; }
.v3-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,.14) 0.65px, transparent 0.65px);
  background-size: 3px 3px;
  opacity: .12;
  border-radius: 10px;
}
.v3-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #0f3f44;
  border: 1px solid #8ea7aa;
  border-radius: 999px;
  background: #e3eceb;
  padding: .24rem .5rem;
  position: relative;
  z-index: 1;
}
.v3-hero h1 {
  margin: .5rem 0 .5rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.8rem, 4.6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.v3-hero p { margin: 0; max-width: 70ch; color: #38484c; font-size: 1.05rem; position: relative; z-index: 1; }
.v3-cta-row { margin-top: .9rem; display: flex; gap: .7rem; flex-wrap: wrap; position: relative; z-index: 1; }
.v3-badges { margin-top: .8rem; display: flex; gap: .45rem; flex-wrap: wrap; position: relative; z-index: 1; }
.v3-badges span {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  border: 1px solid #8a9fa3;
  border-radius: 999px;
  padding: .26rem .5rem;
  background: #d7e3e2;
}
.v3-badges span:nth-child(2) { transform: none; }
.v3-badges span:nth-child(3) { transform: none; }
.v3-grid { margin-top: .9rem; display: grid; grid-template-columns: 1fr; gap: 10px; }
.v3-panel {
  background: #fff;
  border: 1px solid #c7d2d6;
  border-radius: 10px;
  padding: .9rem;
}
.v3-panel h3 { margin: 0 0 .5rem; }
.v3-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.v3-card {
  border: 1px solid #d4dee1;
  border-top: 3px solid #0f4b53;
  border-radius: 8px;
  padding: .7rem;
  background: #fdfefe;
}
.v3-card p { margin: .3rem 0 .45rem; color: #47575b; font-size: .93rem; }
.v3-card a { font-weight: 700; text-decoration: none; }
.v3-card-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e7f0f1;
  border: 1px solid #c8d8da;
  margin-bottom: .35rem;
}
.v3-panel-side ol { margin: .35rem 0 .8rem 1rem; }
.v3-note {
  background: #edf5f4;
  border: 1px solid #c8d8da;
  border-radius: 8px;
  padding: .65rem;
}
.v3-note p { margin: 0; }
.v3-proof-row {
  margin-top: .9rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.v3-proof-item {
  background: #e8f0f2;
  border: 1px solid #c6d5d9;
  border-radius: 10px;
  padding: .75rem;
  display: grid;
  gap: .25rem;
}
.v3-proof-item strong { font-size: .92rem; }
.v3-proof-item span { color: #41555a; font-size: .9rem; }
.v3-strip {
  margin-top: .9rem;
  border-top: 2px solid #2c5358;
  border-bottom: 2px solid #2c5358;
  background: #12393d;
  color: #e7f1f0;
  overflow: hidden;
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.v3-strip-track {
  display: inline-flex;
  width: max-content;
  animation: v3-ticker 24s linear infinite;
}
.v3-strip-track span {
  display: inline-block;
  padding: .45rem 1rem;
}
@keyframes v3-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.v3-bottom {
  margin-top: .9rem;
  background: #fff;
  border: 1px solid #c7d3d7;
  border-radius: 10px;
  padding: .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.v3-bottom h3 { margin: 0 0 .35rem; }
.v3-bottom p { margin: 0; color: #4a5c60; }
.v3-footer {
  max-width: 1160px;
  margin: .8rem auto 1rem;
  border-top: 1px solid #c8d2d5;
  padding: .8rem 1rem 0;
  color: #5f7175;
  font-size: .92rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 1200px) {
  .v3-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .v3-header-inner { grid-template-columns: 1fr; }
  .v3-status { justify-self: start; }
  .v3-nav { justify-self: start; }
  .v3-hero-layout { grid-template-columns: 1fr; }
  .v3-hero-visual { min-height: 180px; }
  .v3-grid { grid-template-columns: 1fr; }
  .v3-cards { grid-template-columns: 1fr; }
  .v3-proof-row { grid-template-columns: 1fr; }
  .v3-bottom { flex-direction: column; align-items: flex-start; }
}
