/* =========================================================
   NorthernSky Cloud — Shared Stylesheet
   This one file controls the look of every page on the site.
   Colors and fonts are defined once at the top as variables,
   so changing a value here updates the entire site.
   ========================================================= */

:root {
  --ink-navy: #152E4C;
  --signal-teal: #007AA0;
  --signal-teal-dark: #006B8C;
  --paper: #F3F2F2;
  --surface: #EAE9E9;
  --ink: #201E1D;
  --white: #FFFFFF;
  --alert-amber: #AD5F04;
  --success-green: #11823B;

  --font-main: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --max-width: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 2px 8px rgba(21, 46, 76, 0.06), 0 10px 30px rgba(21, 46, 76, 0.06);
  --transition: 180ms ease;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--ink);
  /* Matches the hero section's background so the strip of page behind
     the floating nav pill doesn't show up as a mismatched white seam. */
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 800; color: var(--ink-navy); line-height: 1.15; margin: 0 0 16px; }
p { margin: 0 0 16px; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-light { background: var(--white); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink-navy); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark .eyebrow { color: #8FC7DB; }
.section-dark p { color: #C9D4E0; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal-teal);
  margin-bottom: 16px;
}

.section-heading { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-heading h2 { font-size: clamp(28px, 4vw, 38px); }
.section-heading p { font-size: 18px; color: #4B5A6B; }
.section-dark .section-heading p { color: #C9D4E0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--signal-teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--signal-teal-dark); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--ink-navy);
}
.btn-outline:hover { background: var(--ink-navy); color: var(--white); }
.section-dark .btn-outline { color: var(--white); }
.section-dark .btn-outline:hover { background: var(--white); color: var(--ink-navy); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Header / Nav ---------- */
/* A floating, rounded "pill" bar that stays pinned near the top of the
   viewport while scrolling, with a frosted-glass background. */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  width: calc(100% - 40px);
  max-width: 1200px;
  margin: 16px auto 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 10px 40px rgba(21, 46, 76, 0.12), 0 2px 8px rgba(21, 46, 76, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  width: 100%;
}
.nav-logo img { height: 34px; width: auto; max-width: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-navy);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--signal-teal); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-navy);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

.dropdown { position: relative; }
.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 12px;
  min-width: 220px;
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.dropdown-panel a:hover { background: var(--paper); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(34px, 5vw, 60px); }
.hero .lede { font-size: 19px; max-width: 560px; color: #445265; }
.section-dark .hero .lede { color: #C9D4E0; }

/* Decorative abstract graphic (not a screenshot/illustration — simple
   brand-colored shapes) used to give text-only heroes a visual anchor. */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-visual svg { width: 100%; height: auto; max-width: 420px; }
@media (max-width: 900px) {
  .hero-visual { display: none; }
}

/* ---------- Cards / Feature grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.section-paper .card { background: var(--white); }
.section-dark .card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 136, 176, 0.12);
  color: var(--signal-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 800;
}
.section-dark .icon-badge { background: rgba(0, 136, 176, 0.25); color: #7FDDF2; }

.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: #4B5A6B; margin-bottom: 0; font-size: 15px; }
.section-dark .card p { color: #C9D4E0; }

.feature-list { margin-top: 14px; }
.feature-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 14.5px;
  color: #33465C;
}
.section-dark .feature-list li { color: #DCE5EE; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal-teal);
}

/* Compact icon+label grid — the standardized way to present a group
   of feature/capability tags, replacing plain bullet lists so both
   product pages use the same visual pattern. */
.mini-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  margin-top: 16px;
}
.mini-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: #33465C;
}
.mini-feature-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(0, 136, 176, 0.1);
  color: var(--signal-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.section-dark .mini-feature { color: #DCE5EE; }
.section-dark .mini-feature-icon { background: rgba(0, 136, 176, 0.22); color: #7FDDF2; }
@media (max-width: 480px) {
  .mini-feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Product cards (home / overview) ---------- */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--surface);
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card .tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--signal-teal);
  background: rgba(0,136,176,0.06);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  width: fit-content;
}
.product-card h3 { font-size: 26px; margin-bottom: 12px; }
.product-card p { color: #4B5A6B; }
.product-card .cta-row { margin-top: auto; padding-top: 20px; }

/* ---------- Numbered steps ---------- */
.steps {
  display: grid;
  gap: 28px;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink-navy);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.step h3 { margin-bottom: 4px; font-size: 18px; }
.step p { color: #4B5A6B; margin-bottom: 0; font-size: 15px; }
.section-dark .step p { color: #C9D4E0; }

/* ---------- Orphan / status explainer ---------- */
.status-card {
  border: 2px dashed var(--alert-amber);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(217, 119, 6, 0.06);
}
.status-card .status-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--alert-amber);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.status-card.status-good {
  border: 2px solid var(--success-green);
  border-style: solid;
  background: rgba(22, 163, 74, 0.06);
}
.status-card.status-good .status-label { color: var(--success-green); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.badge-amber { background: rgba(217,119,6,0.12); color: var(--alert-amber); }
.badge-green { background: rgba(22,163,74,0.12); color: var(--success-green); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 480px; background: var(--white); }
th, td { text-align: left; padding: 16px 20px; font-size: 15px; }
thead th { background: var(--ink-navy); color: var(--white); font-weight: 700; }
tbody tr:nth-child(even) { background: var(--paper); }
tbody td { color: #33465C; border-bottom: 1px solid var(--surface); }
tbody tr:last-child td { border-bottom: none; }

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.pricing-card .price { font-size: 34px; font-weight: 800; color: var(--ink-navy); margin: 12px 0 20px; }
.pricing-card .price span { font-size: 15px; font-weight: 600; color: #687486; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 20px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-navy);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--surface);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--signal-teal);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-error {
  display: none;
  color: #C2410C;
  font-size: 13px;
  margin-top: 6px;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #C2410C; }
.field.has-error .field-error { display: block; }

.form-note { font-size: 13px; color: #687486; margin-top: 8px; }

.form-message {
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 15px;
}
.form-message.success { background: rgba(22,163,74,0.1); color: #14532D; border: 1px solid rgba(22,163,74,0.3); }
.form-message.error { background: rgba(217,119,6,0.1); color: #7C2D12; border: 1px solid rgba(217,119,6,0.3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-navy); color: #C9D4E0; padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 30px; width: auto; max-width: none; margin-bottom: 14px; }
.footer-brand p { color: #9FB0C2; font-size: 14px; max-width: 260px; }
.footer-col h5 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14.5px;
  color: #C9D4E0;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13.5px;
  color: #9FB0C2;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-credit strong { color: #C9D4E0; }

/* ---------- Legal pages ---------- */
.legal-content h2 { font-size: 24px; margin-top: 40px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: #33465C; font-size: 15.5px; }
.legal-content ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-updated { color: #687486; font-size: 14px; margin-bottom: 40px; }

/* ---------- Pull quote ---------- */
/* A visual break for text-heavy pages — restates a line already in the
   page copy at larger scale, rather than introducing new claims. */
.pull-quote-wrap { max-width: 720px; margin: 0 auto; text-align: center; }
.pull-quote-mark {
  font-size: 56px;
  line-height: 1;
  color: var(--signal-teal);
  opacity: 0.3;
  font-weight: 800;
  margin-bottom: 8px;
}
.pull-quote {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--ink-navy);
  line-height: 1.35;
  margin: 0;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small { font-size: 14px; }
/* Hides content visually and from assistive tech while keeping it in
   the page (used for the contact form's spam honeypot field). */
.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .site-header { width: calc(100% - 24px); top: 10px; margin-top: 10px; border-radius: 18px; }
  .nav-links, .nav-actions .btn-primary { display: none; }
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    /* Solid background (not blurred) on purpose: nesting this inside the
       header's own frosted-glass pill causes rendering glitches in some
       browsers when both layers use backdrop-filter. */
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(21, 46, 76, 0.14), 0 2px 8px rgba(21, 46, 76, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 12px 20px 16px;
  }
  .site-header.nav-open .nav-links > a,
  .site-header.nav-open .dropdown > a {
    padding: 12px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .site-header.nav-open .dropdown-panel {
    display: block;
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0 0 4px 12px;
  }
  .site-header.nav-open .dropdown-panel a {
    padding: 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
