:root {
  --do-blue: #0069ff;
  --do-blue-dark: #0052cc;
  --do-blue-light: #e6f0ff;
  --do-navy: #031b4e;
  --do-slate: #5b6987;
  --do-slate-light: #8b9bb4;
  --do-bg: #f3f5f9;
  --do-bg-alt: #fafbfd;
  --do-white: #ffffff;
  --do-border: #e3e8f0;
  --do-shadow: 0 2px 4px rgba(3, 27, 78, 0.04), 0 8px 24px rgba(3, 27, 78, 0.08);
  --do-shadow-lg: 0 4px 8px rgba(3, 27, 78, 0.06), 0 16px 48px rgba(3, 27, 78, 0.12);
  --do-radius: 8px;
  --do-radius-lg: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
  --term-bg: #0c1222;
  --term-bar: #151d32;
  --term-green: #6ee7b7;
  --term-dim: #64748b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--do-navy);
  background: var(--do-white);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(1040px, 92vw);
  margin: 0 auto;
}

a {
  color: var(--do-blue);
  text-decoration: none;
}

a:hover {
  color: var(--do-blue-dark);
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--do-blue-dark);
  background: var(--do-blue-light);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--do-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--do-blue);
  color: var(--do-white);
}

.btn-primary:hover {
  background: var(--do-blue-dark);
  color: var(--do-white);
}

.btn-secondary {
  background: var(--do-white);
  color: var(--do-navy);
  border-color: var(--do-border);
}

.btn-secondary:hover {
  border-color: var(--do-blue);
  color: var(--do-blue);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--do-border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--do-navy);
}

.logo-mark {
  width: 28px;
  height: 28px;
  color: var(--do-blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a:not(.btn) {
  color: var(--do-slate);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:not(.btn):hover {
  color: var(--do-blue);
}

/* Hero */
.hero {
  position: relative;
  padding: 3.25rem 0 3.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 15% 20%, rgba(0, 105, 255, 0.08), transparent 50%),
    radial-gradient(ellipse 40% 35% at 85% 60%, rgba(110, 231, 183, 0.06), transparent 45%),
    linear-gradient(180deg, #fafbfd 0%, var(--do-white) 100%);
  z-index: -1;
}

.hero-copy.section-head.center {
  margin-bottom: 0;
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--do-blue);
}

.hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--do-blue) 0%, #3d8bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.05rem;
  color: var(--do-slate);
  margin: 0 0 1.35rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.35rem auto 0;
  padding: 0;
  list-style: none;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
}

.hero-pills li {
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--do-slate);
  background: var(--do-white);
  border: 1px solid var(--do-border);
  border-radius: 999px;
}

.hero-terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #334155;
}

.hero-terminal-dot:nth-child(1) { background: #ef4444; }
.hero-terminal-dot:nth-child(2) { background: #eab308; }
.hero-terminal-dot:nth-child(3) { background: #22c55e; }

.t-dim { color: var(--term-dim); }
.t-prompt { color: var(--term-green); }

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

.section-alt {
  background: var(--do-bg);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head.center {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.section-head.left {
  text-align: left;
}

.section-head h2 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--do-slate);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.35rem 1.4rem;
  background: var(--do-white);
  border: 1px solid var(--do-border);
  border-radius: var(--do-radius-lg);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  border-color: #bfd7ff;
  box-shadow: var(--do-shadow);
}

.feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--do-blue);
  background: var(--do-blue-light);
  border-radius: var(--do-radius);
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--do-slate);
  line-height: 1.55;
}

/* Compare table */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--do-border);
  border-radius: var(--do-radius-lg);
  background: var(--do-white);
  box-shadow: var(--do-shadow);
}

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

.compare-table th,
.compare-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--do-border);
}

.compare-table thead th {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--do-navy);
  background: var(--do-bg-alt);
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--do-navy);
  width: 28%;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table td {
  color: var(--do-slate);
}

.compare-highlight {
  background: rgba(0, 105, 255, 0.04);
  color: var(--do-navy);
  font-weight: 500;
}

/* OpenVMS limits section */
.limits-callout {
  margin: 0 auto 2rem;
  max-width: 720px;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--do-blue);
  background: var(--do-blue-light);
  border-radius: 0 var(--do-radius) var(--do-radius) 0;
  color: var(--do-navy);
  font-size: 0.95rem;
}

.limits-table-wrap {
  margin-bottom: 2rem;
}

.limits-table tbody th {
  width: 22%;
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.limits-card {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--do-border);
  border-radius: var(--do-radius-lg);
  background: var(--do-white);
  box-shadow: var(--do-shadow);
  text-align: center;
}

.limits-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.limits-card ul {
  margin: 0 auto;
  padding-left: 1.15rem;
  display: inline-block;
  text-align: left;
  font-size: 0.88rem;
  color: var(--do-slate);
  line-height: 1.55;
}

.limits-card li + li {
  margin-top: 0.4rem;
}

.limits-card-good {
  border-top: 3px solid #10b981;
}

.limits-card-partial {
  border-top: 3px solid #f59e0b;
}

.limits-card-no {
  border-top: 3px solid #ef4444;
}

.limits-more {
  margin: 2rem 0 0;
  text-align: center;
  font-weight: 500;
}

/* Account section */
.account-block {
  max-width: 36rem;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 2rem;
  align-items: start;
}

.step-card {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--do-border);
}

.step-card:last-of-type {
  border-bottom: none;
}

.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--do-blue);
  background: var(--do-blue-light);
  border-radius: 50%;
}

.step-card h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--do-slate);
}

.account-email {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--do-slate);
}

.connect-card {
  padding: 1.35rem 1.4rem;
  background: var(--do-white);
  border: 1px solid var(--do-border);
  border-radius: var(--do-radius-lg);
  box-shadow: var(--do-shadow);
}

.connect-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
}

.connect-card .btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

.connect-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--do-slate);
  line-height: 1.55;
}

.connect-facts {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--do-slate);
}

.connect-facts li + li {
  margin-top: 0.35rem;
}

.code-inline {
  padding: 0.85rem 1rem;
  background: var(--do-bg);
  border: 1px solid var(--do-border);
  border-radius: var(--do-radius);
  text-align: left;
}

.code-inline code {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--do-navy);
  background: none;
  padding: 0;
}

/* Learn grid */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.learn-card {
  display: block;
  padding: 1.35rem 1.4rem;
  background: var(--do-white);
  border: 1px solid var(--do-border);
  border-radius: var(--do-radius-lg);
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.learn-card:hover {
  border-color: var(--do-blue);
  box-shadow: var(--do-shadow);
  transform: translateY(-2px);
  color: inherit;
}

.learn-tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--do-blue);
  background: var(--do-blue-light);
  border-radius: 999px;
}

.learn-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--do-navy);
}

.learn-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--do-slate);
  line-height: 1.55;
}

.learn-more {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.95rem;
}

/* About */
.about-block {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.about-block h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.about-text {
  margin: 0;
  color: var(--do-slate);
  line-height: 1.65;
}

/* Footer */
.site-footer {
  background: var(--do-navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 2.25rem 0 1.25rem;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--do-white);
}

.footer-brand p {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  max-width: 22rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--do-white);
}

.footer-legal-row {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-row p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Docs pages (shared header styles) */
.docs-header {
  background: var(--do-white);
  border-bottom: 1px solid var(--do-border);
  padding: 0.85rem 0;
}

.docs-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.docs-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.docs-nav a {
  color: var(--do-slate);
  font-size: 0.925rem;
  font-weight: 500;
}

.docs-nav a:hover,
.docs-nav a.active {
  color: var(--do-blue);
}

.footer-compact {
  text-align: center;
}

.footer-compact p {
  margin: 0;
  font-size: 0.875rem;
}

.footer-compact a {
  color: rgba(255, 255, 255, 0.85);
  margin-left: 0.35rem;
}

.footer-compact a:hover {
  color: var(--do-white);
}

.footer-legal {
  margin-top: 0.65rem !important;
  font-size: 0.78rem !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Legacy site3 compat */
.start-block {
  max-width: 36rem;
  text-align: center;
}

.start-label {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--do-navy);
}

.account-facts {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  text-align: left;
  color: var(--do-slate);
}

.account-facts li + li {
  margin-top: 0.45rem;
}

.quote-card {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--do-white);
  border: 1px solid var(--do-border);
  border-radius: var(--do-radius);
  border-left: 3px solid var(--do-blue);
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .learn-grid {
    grid-template-columns: 1fr;
  }

  .limits-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .nav a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 2.25rem 0 2.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .compare-table {
    font-size: 0.82rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.65rem 0.75rem;
  }
}
