/* DevOpsFort — static pages (shared with SPA theme) */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600&family=Onest:wght@400;500;600;700&display=swap');

:root {
  --df-font: 'Onest', system-ui, -apple-system, sans-serif;
  --df-mono: 'JetBrains Mono', ui-monospace, monospace;

  --df-bg: #060a10;
  --df-bg-elevated: #0c121c;
  --df-surface: #111827;
  --df-border: rgba(148, 163, 184, 0.12);
  --df-border-strong: rgba(148, 163, 184, 0.22);

  --df-text: #eef2f7;
  --df-text-muted: #94a3b8;
  --df-text-dim: #64748b;

  --df-accent: #00e5b8;
  --df-accent-dim: rgba(0, 229, 184, 0.14);
  --df-accent-glow: rgba(0, 229, 184, 0.35);
  --df-blue: #4d9fff;
  --df-danger: #f87171;
  --df-success: #34d399;

  --df-radius-sm: 10px;
  --df-radius-md: 16px;
  --df-radius-lg: 24px;

  --df-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --df-header-h: 72px;
  --df-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--df-font);
  color: var(--df-text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 229, 184, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(77, 159, 255, 0.06), transparent 50%),
    var(--df-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--df-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #7db9ff;
}

/* ── Header ── */

.sp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--df-header-h);
  border-bottom: 1px solid var(--df-border);
  background: rgba(6, 10, 16, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
}

.sp-header-inner {
  width: min(var(--df-max), calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: var(--df-header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.sp-header-toolbar {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.sp-header-mobile {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.sp-nav--desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sp-nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--df-border-strong);
  border-radius: var(--df-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  flex-shrink: 0;
}

.sp-nav-burger span {
  display: block;
  width: 1.125rem;
  height: 2px;
  margin-inline: auto;
  border-radius: 1px;
  background: var(--df-text);
  transition: transform 0.2s, opacity 0.2s;
}

.sp-nav-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.sp-nav-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.sp-nav-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sp-nav-drawer {
  display: none;
  flex-direction: column;
  flex-basis: 100%;
  width: 100%;
  border-top: 1px solid var(--df-border);
  padding-block: 0.35rem;
}

.sp-nav-drawer.is-open {
  display: flex;
}

.sp-nav-drawer-link {
  display: block;
  padding: 0.85rem 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--df-text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--df-border);
}

.sp-nav-drawer-link:last-child {
  border-bottom: none;
}

.sp-nav-drawer-link:hover {
  color: var(--df-accent);
}

.sp-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.sp-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--df-text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.sp-nav-link:hover {
  color: var(--df-text);
  background: rgba(255, 255, 255, 0.05);
}

.sp-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  color: #04120e;
  background: linear-gradient(135deg, #00e5b8 0%, #00c49e 100%);
  box-shadow: 0 4px 24px var(--df-accent-glow);
  text-decoration: none;
  white-space: nowrap;
}

.sp-nav-cta:hover {
  color: #04120e;
  filter: brightness(1.08);
}

.sp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--df-text);
  flex-shrink: 0;
}

.sp-brand:hover {
  color: var(--df-accent);
}

.sp-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 229, 184, 0.9) 0%, rgba(77, 159, 255, 0.85) 100%);
  box-shadow: 0 0 24px var(--df-accent-glow);
  position: relative;
  flex-shrink: 0;
}

.sp-brand-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
}

@media (max-width: 720px) {
  .sp-header {
    height: auto;
  }

  .sp-header-inner {
    padding-block: 0.65rem;
  }

  .sp-brand {
    font-size: 0.95rem;
  }

  .sp-nav--desktop {
    display: none;
  }

  .sp-header-mobile {
    display: flex;
  }

  .sp-header-mobile .sp-nav-cta {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 721px) {
  .sp-nav-drawer {
    display: none !important;
  }
}

/* ── Main ── */

.sp-main {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 5.5rem);
}

.sp-article {
  width: min(var(--df-max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.sp-article--narrow {
  max-width: 40rem;
}

.sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--df-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--df-accent);
}

.sp-eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--df-accent), transparent);
}

.sp-article h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 0%, #c8d4e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sp-article h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--df-text);
}

.sp-article p {
  color: var(--df-text-muted);
}

.sp-lead {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--df-text-muted);
}

.sp-lead a {
  color: var(--df-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sp-lead a:hover {
  color: #33f0c8;
}

.sp-lead strong {
  color: var(--df-text);
  font-weight: 600;
}

/* ── Notice / disclaimer ── */

.sp-notice {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--df-radius-md);
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.06);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--df-text-muted);
}

.sp-notice strong {
  color: var(--df-text);
  font-weight: 600;
}

.sp-card-source {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--df-border);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--df-text-dim);
}

.sp-card-source dt {
  font-family: var(--df-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--df-text-muted);
  margin-bottom: 0.35rem;
}

.sp-card-source dd {
  margin: 0;
}

.sp-process-list {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  color: var(--df-text-muted);
}

.sp-process-list li {
  margin-bottom: 0.65rem;
  line-height: 1.6;
}

.sp-legal-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--df-border);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--df-text-dim);
}

/* ── Cards (security page) ── */

.sp-card-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 720px) {
  .sp-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sp-card {
  padding: 1.35rem 1.5rem;
  border-radius: var(--df-radius-md);
  background: linear-gradient(160deg, var(--df-surface) 0%, rgba(17, 24, 39, 0.6) 100%);
  border: 1px solid var(--df-border);
  transition: border-color 0.25s, transform 0.25s;
}

.sp-card:hover {
  border-color: var(--df-border-strong);
  transform: translateY(-2px);
}

.sp-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.sp-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* ── Form ── */

.sp-form-card {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: var(--df-radius-lg);
  border: 1px solid var(--df-border-strong);
  background: linear-gradient(165deg, var(--df-surface) 0%, var(--df-bg-elevated) 100%);
  box-shadow: var(--df-shadow);
}

.sp-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sp-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sp-field > span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--df-text);
}

.sp-field input,
.sp-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--df-border-strong);
  border-radius: var(--df-radius-sm);
  font: inherit;
  font-size: 1rem;
  color: var(--df-text);
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sp-field input::placeholder,
.sp-field textarea::placeholder {
  color: var(--df-text-dim);
}

.sp-field input:focus,
.sp-field textarea:focus {
  outline: none;
  border-color: rgba(0, 229, 184, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 229, 184, 0.12);
}

.sp-field textarea {
  resize: vertical;
  min-height: 9rem;
}

.sp-submit,
.sp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  border: none;
  border-radius: var(--df-radius-sm);
  background: linear-gradient(135deg, #00e5b8 0%, #00c49e 100%);
  color: #04120e;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 24px var(--df-accent-glow);
  transition: filter 0.2s, transform 0.2s;
}

.sp-submit:hover,
.sp-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.sp-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.sp-form-note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--df-text-muted);
}

.sp-form-note--success {
  color: var(--df-success);
}

.sp-form-note--error {
  color: var(--df-danger);
}

/* ── Footer ── */

.sp-footer {
  border-top: 1px solid var(--df-border);
  padding: 2.5rem 0 2rem;
  background: var(--df-bg-elevated);
}

.sp-footer-inner {
  width: min(var(--df-max), calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .sp-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.sp-footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--df-text-dim);
}

.sp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
}

.sp-footer-links a {
  font-size: 0.875rem;
  color: var(--df-text-muted);
  text-decoration: none;
}

.sp-footer-links a:hover {
  color: var(--df-accent);
}

/* ── Breadcrumbs ── */

.sp-breadcrumb {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--df-text-muted);
}

.sp-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sp-breadcrumb li + li::before {
  content: '/';
  color: var(--df-text-dim);
}

.sp-breadcrumb a {
  color: var(--df-text-muted);
}

.sp-breadcrumb a:hover {
  color: var(--df-accent);
}

.sp-breadcrumb [aria-current='page'] {
  color: var(--df-text);
}

.sp-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}

.sp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.sp-table th,
.sp-table td {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--df-border);
  text-align: left;
  vertical-align: top;
}

.sp-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--df-text);
  font-weight: 600;
}

.sp-table td {
  color: var(--df-text-muted);
}

.sp-card-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 720px) {
  .sp-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sp-info-card {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--df-border);
  border-radius: var(--df-radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.sp-info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.sp-info-card p {
  margin: 0;
  color: var(--df-text-muted);
  font-size: 0.92rem;
}
