/* AI4SRE.com — NZ Cloud Computing */
:root {
  --bg: #0b1117;
  --bg-elevated: #141c27;
  --bg-card: #1a2433;
  --text: #e8eef4;
  --text-muted: #8fa3b8;
  --accent: #3d9ed8;
  --accent-soft: #1e4a66;
  --border: #2a3a4f;
  --success: #3fb950;
  --max-width: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand-title:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a.active {
  border-bottom: 2px solid var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 1rem !important;
  border-radius: 6px;
  font-weight: 600;
}

.nav-cta:hover {
  background: #2d8ac4;
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  background: linear-gradient(165deg, var(--bg) 0%, #0f1a28 45%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 38em;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.badge {
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #2d8ac4;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.hero-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Sections */
section {
  padding: 3.5rem 0;
}

section.alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-header {
  max-width: 42em;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: 1.85rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .card-grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid.four {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Feature blocks */
.feature-block {
  display: grid;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

@media (min-width: 800px) {
  .feature-block {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .feature-block.reverse .feature-copy {
    order: 2;
  }

  .feature-block.reverse .feature-media {
    order: 1;
  }
}

.feature-copy h3 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

.feature-copy p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.feature-copy ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.feature-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Screenshots */
.screenshot {
  margin: 0;
}

.screenshot img {
  border-radius: 8px;
  border: 1px solid var(--border);
  width: 100%;
}

.screenshot-link {
  display: block;
  cursor: zoom-in;
  border-radius: 8px;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.screenshot-link:hover {
  opacity: 0.92;
  box-shadow: 0 0 0 2px var(--accent-soft), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.screenshot-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.screenshot-link img {
  border-radius: 8px;
  border: 1px solid var(--border);
  width: 100%;
}

.screenshot-placeholder {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  border: 2px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.screenshot figcaption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Architecture diagram */
.arch-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.arch-box {
  flex: 1 1 200px;
  max-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}

.arch-box strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.arch-box span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.arch-arrow {
  align-self: center;
  color: var(--text-muted);
  font-size: 1.25rem;
}

/* Lists */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  color: var(--text-muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}

.contact-card h3 {
  margin-top: 0;
}

.contact-email {
  font-size: 1.25rem;
  font-weight: 600;
}

.contact-email a {
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-nav a {
  color: var(--text-muted);
}

/* Utility */
.lead-narrow {
  max-width: 36em;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.prose p {
  color: var(--text-muted);
}

.prose h3 {
  color: var(--text);
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .site-nav .nav-cta {
    display: none;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
