
/* Cloud Rescue — Visual Refresh 001
   Inspired by Cloud Rescue Projects.
   Loaded after global.css and resilient.css.
*/

:root {
  --color-background: #0b1119;
  --color-background-deep: #080e15;
  --color-surface: #121d29;
  --color-surface-soft: #14212d;
  --color-text: #f2f6fa;
  --color-text-soft: #a5b5c5;
  --color-text-muted: #a5b5c5;
  --color-muted: #a5b5c5;
  --color-crystal: #51c9dd;
  --color-accent: #51c9dd;
  --color-accent-light: #51c9dd;
  --color-gold: #e8bf64;
  --color-border: #263644;
}

/* Crisp, bold typography */

h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.hero h1 {
  font-size: clamp(3.1rem, 5.8vw, 6rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero-tagline {
  font-weight: 750;
}

/* Match the Projects header */

.header-inner {
  min-height: 92px;
}

.brand img {
  width: 54px;
  height: 54px;
}

.brand-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.brand-parent {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.main-nav a {
  font-size: 0.94rem;
}

/* Stronger hero spacing */

.hero {
  padding-block: clamp(5rem, 8vw, 8rem);
}

.hero-grid {
  gap: clamp(2.5rem, 5vw, 5rem);
}

/* Sharper, quieter systems panel */

.resilience-panel {
  border-radius: 14px;
  background: #121d29;
  box-shadow: none;
}

.panel-question {
  font-size: 1.45rem;
  font-weight: 750;
}

.resilience-list strong {
  font-weight: 750;
}

/* Buttons */

.button {
  border-radius: 7px;
  font-weight: 750;
}

.button-primary {
  background: var(--color-crystal);
  color: #07131c;
}

/* Cards and sections */

.section {
  padding-block: clamp(5rem, 9vw, 7rem);
}

.section-heading h2 {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.card {
  border-radius: 13px;
  background: #121d29;
}

.card h3 {
  font-weight: 750;
}

/* Keep the existing footer layout */

.site-footer {
  background: var(--color-background-deep);
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 0;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .hero {
    padding-block: 4.5rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 11vw, 4.5rem);
  }

  .section {
    padding-block: 4.5rem;
  }
}

/* Hero refinement — give the headline breathing room */

@media (min-width: 961px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.85fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 5vw, 5.4rem);
    line-height: 1.08;
    max-width: 850px;
  }

  .resilience-panel {
    align-self: center;
  }
}

/* Raise the main homepage hero */

@media (min-width: 961px) {
  .hero:has(.hero-grid) {
    padding-top: 3rem;
    padding-bottom: 5rem;
  }

  .hero-grid {
    align-items: center;
  }
}

/* Cloud Rescue — Brand Accent Refinements */

/* Crystal blue hero tagline */
.hero-tagline {
  color: var(--color-crystal);
  font-weight: 800;
}

/* Navigation hover and active states */
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--color-crystal);
}

/* Smooth navigation transitions */
.main-nav a {
  transition: color 180ms ease;
}

/* Privacy Policy — refined typography */

body:has(.privacy-page) h1 {
  font-size: clamp(1rem, 1vw, 1rem);
  line-height: 1.5;
}

body:has(.privacy-page) h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}
.privacy-page h3 {
  font-size: 1.2rem;
  line-height: 1.35;
}

body:has(.privacy-page) .section {
  padding-block: 2.5rem;
}


/* ========================================
   Cloud Rescue — Privacy Document Styling
   ======================================== */

main.privacy-page {
  max-width: 100%;
}

/* Comfortable reading width */
.privacy-page .section > .site-shell,
.privacy-page .section > .narrow {
  width: min(100% - 40px, 920px);
  margin-inline: auto;
}

/* Main document title */
.privacy-page h1,
.privacy-page .hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

/* Section headings */
.privacy-page h2 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 2.5rem 0 0.85rem;
}

/* Subheadings */
.privacy-page h3 {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 1.75rem 0 0.65rem;
}

/* Paragraph readability */
.privacy-page p,
.privacy-page li {
  font-size: 1rem;
  line-height: 1.85;
  color: #b7c4d0;
  letter-spacing: 0;
}

/* Reduce oversized section spacing */
.privacy-page .section {
  padding-block: 2rem;
}

/* More consistent paragraph spacing */
.privacy-page p + p {
  margin-top: 0.9rem;
}

/* Clear, understated links */
.privacy-page a {
  color: #51c9dd;
  text-underline-offset: 3px;
}

.privacy-page a:hover {
  color: #f2f6fa;
}

/* Small screens */
@media (max-width: 760px) {
  .privacy-page .section > .site-shell,
  .privacy-page .section > .narrow {
    width: min(100% - 32px, 920px);
  }

  .privacy-page h2 {
    margin-top: 2rem;
  }
}
