:root {
  --navy-950: #06141c;
  --navy-900: #0b1f2a;
  --navy-800: #123040;
  --navy-700: #17475e;
  --foam: #dff8ff;
  --mist: #87a8b8;
  --aqua: #6ee7da;
  --aqua-strong: #38bdf8;
  --line: rgba(140, 213, 226, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.automation-page {
  min-height: 100vh;
  font-family: 'Space Grotesk', sans-serif;
  color: #f2fbff;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(110, 231, 218, 0.14), transparent 22%),
    linear-gradient(180deg, #07131a 0%, #091c25 55%, #061117 100%);
}

body.automation-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(162, 221, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(162, 221, 238, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 90%);
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 15px 28px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 23, 31, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(140, 213, 226, 0.1);
}

.site-brand {
  display: flex;
  align-items: center;
}

.site-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-brand-logo {
  display: block;
  height: 96px;
  width: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.2));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.96rem;
}

.site-nav a:hover {
  color: var(--foam);
}

.site-nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(110, 231, 218, 0.12);
  color: var(--foam);
  border: 1px solid rgba(110, 231, 218, 0.18);
}

.automation-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 28px auto;
  padding: 28px;
  border: 1px solid rgba(166, 220, 232, 0.16);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(7, 22, 30, 0.9), rgba(5, 15, 22, 0.94));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.automation-shell::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -180px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}

.automation-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.automation-copy,
.automation-summary,
.automation-panel,
.marine {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(10, 30, 40, 0.6);
  backdrop-filter: blur(18px);
}

.automation-copy {
  padding: 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--mist);
  text-decoration: none;
}

.back-link:hover {
  color: var(--foam);
}

.automation-kicker,
.card-badge,
.summary-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(110, 231, 218, 0.1);
  color: var(--aqua);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.automation-copy h1 {
  margin-top: 18px;
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.automation-copy p,
.automation-summary p,
.section-intro p,
.marine p {
  color: var(--mist);
  line-height: 1.7;
}

.automation-copy p {
  margin-top: 18px;
  max-width: 58ch;
}

.automation-summary {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(18, 48, 64, 0.74), rgba(8, 23, 31, 0.86)),
    linear-gradient(145deg, rgba(56, 189, 248, 0.12), transparent 50%);
}

.automation-summary strong {
  margin-top: 18px;
  font-size: 1.65rem;
  line-height: 1.2;
}

.automation-summary p {
  margin-top: 12px;
}

.automation-panel {
  margin-top: 22px;
  padding: 28px;
}

.section-intro {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.section-intro h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.section-intro p {
  max-width: 45ch;
}

.grid {
  display: grid;
  gap: 18px;
}

.automation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.card {
  text-decoration: none;
}

.marine {
  padding: 24px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.marine::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  top: -110px;
  right: -120px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.marine:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 231, 218, 0.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  background: rgba(13, 36, 49, 0.76);
}

.marine h3 {
  margin-top: 18px;
  margin-bottom: 12px;
  font-size: 1.4rem;
  color: var(--foam);
}

.card-meta {
  display: inline-block;
  margin-top: 20px;
  color: var(--aqua-strong);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .automation-hero,
  .automation-grid,
  .section-intro {
    grid-template-columns: 1fr;
  }

  .section-intro {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 14px;
  }

  .site-brand-logo {
    height: 74px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .automation-shell {
    width: min(100% - 16px, 100%);
    margin: 8px auto;
    padding: 16px;
    border-radius: 22px;
  }

  .automation-copy,
  .automation-summary,
  .automation-panel,
  .marine {
    padding: 20px;
    border-radius: 22px;
  }

  .automation-copy h1 {
    max-width: none;
  }
}