* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0;
  padding: 1rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  color: #1a1a1a;
}

/* ----- Landing (professional layout) ----- */
body.landing {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  padding: 0;
  max-width: none;
}

.landing .container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .landing .container { padding-left: 2rem; padding-right: 2rem; }
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .site-header__inner { padding: 1rem 2rem; }
}

.site-header__logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #0f172a;
  text-decoration: none;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header__nav a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.site-header__nav a:hover { color: #0f172a; }

.btn--header {
  padding: 0.5rem 1rem;
  background: #0f172a;
  color: #fff !important;
  border-radius: 6px;
  font-size: 0.9375rem;
}

.btn--header:hover { background: #1e293b; }

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

@media (min-width: 768px) {
  .hero { padding: 5rem 0 6rem; }
}

.hero__title {
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .hero__title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 2.75rem; max-width: 42rem; margin-left: auto; margin-right: auto; }
}

.hero__tagline {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #475569;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Buttons (landing) */
.landing .btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}

.landing .btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.landing .btn--primary {
  background: #0f172a;
  color: #fff;
}

.landing .btn--primary:hover { background: #1e293b; }

.landing .btn--secondary {
  background: #fff;
  color: #0f172a;
  border-color: #e2e8f0;
}

.landing .btn--secondary:hover { background: #f1f5f9; }

/* Sections */
.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section { padding: 4rem 0; }
}

.section--alt {
  background: #f8fafc;
}

.section__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section__title { font-size: 1.75rem; margin-bottom: 1.25rem; }
}

.section__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #334155;
  margin: 0 0 1rem;
  max-width: 52ch;
}

.section--value .flow {
  font-weight: 600;
  color: #0f172a;
  margin: 1.5rem 0 0;
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.section--alt .card { background: #fff; }

.card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.card__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

/* Use case strip */
.section--use-case {
  text-align: center;
}

.section--use-case .section__lead {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.section--use-case .btn { margin-top: 0.5rem; }

/* CTA section */
.section--cta {
  text-align: center;
  background: #0f172a;
  color: #fff;
}

.section--cta .section__title { color: #fff; }

.section--cta .section__lead {
  color: #cbd5e1;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.section--cta .btn--primary {
  background: #fff;
  color: #0f172a;
  margin-top: 0.5rem;
}

.section--cta .btn--primary:hover { background: #e2e8f0; }

/* Site footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
}

.site-footer__grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

.site-footer__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.site-footer__col a {
  display: block;
  font-size: 0.9375rem;
  color: #475569;
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.site-footer__col a:hover { color: #0f172a; }

.site-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.site-footer__copy {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

/* ----- Pages without .landing (e.g. jenkins-server) ----- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
}

.header a, nav a {
  color: #111;
  text-decoration: none;
}

.header a { font-weight: 600; }

nav a + a { margin-left: 1.25rem; }
nav a { padding: 0.25rem 0; }

.main h1 { margin-top: 0; margin-bottom: 0.5em; }

.headline {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
}

@media (min-width: 640px) {
  .headline { font-size: 1.75rem; }
}

.tagline {
  color: #444;
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
}

.value-prop, .benefits, .pain-points, .solution, .cta {
  margin-top: 2.25rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #111;
}

.value-prop p, .solution p, .cta p { margin: 0.5rem 0; }

.value-prop .flow {
  font-weight: 500;
  color: #333;
}

.benefits ul, .pain-points ol, .solution ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0 0;
}

.benefits li, .pain-points li, .solution li {
  margin-bottom: 0.6rem;
}

.cta .btn {
  display: inline-block;
  margin-top: 0.5rem;
  margin-right: 0.5rem;
  padding: 0.6rem 1.25rem;
  min-height: 2.75rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.cta .btn:hover { background: #333; }

.cta .btn-primary {
  padding: 0.75rem 1.5rem;
  min-height: 3rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.cta .btn-secondary {
  background: transparent;
  color: #111;
  border: 1px solid #111;
}

.cta .btn-secondary:hover { background: #f0f0f0; }

.footer {
  margin-top: 2.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e5e5;
  font-size: 0.9rem;
  color: #666;
}
