/* ============================================================
   CloudDeals Hub — single stylesheet
   Palette: navy #16203A / #1a2233, orange #FF6A00, light gray
   No web fonts (system-ui stack), no external images.
   ============================================================ */

:root {
  --orange: #ff6a00;
  --orange-dark: #e05e00;
  --orange-soft: #fff1e6;
  --navy: #16203a;
  --navy-2: #1f2c4d;
  --navy-3: #263559;
  --ink: #222b3d;
  --muted: #5b6577;
  --line: #e4e8ef;
  --bg: #f5f7fa;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(22, 32, 58, 0.08), 0 8px 24px rgba(22, 32, 58, 0.06);
  --shadow-lift: 0 4px 10px rgba(22, 32, 58, 0.1), 0 16px 36px rgba(22, 32, 58, 0.12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { vertical-align: middle; }

a { color: var(--orange-dark); }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.6rem; font-weight: 800; }
h2 { font-size: 1.9rem; font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.35);
}
.btn--primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn--outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn--outline:hover { border-color: var(--orange); color: var(--orange-dark); }

.btn--block { width: 100%; }

.aff-note {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 32, 58, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand .brand-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), #ff9a4d);
  align-items: center;
  justify-content: center;
  color: #fff;
}
.brand em { font-style: normal; color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-links a[aria-current="page"] { color: var(--orange); }
.nav-links .nav-cta {
  background: var(--orange);
  color: #fff;
  margin-left: 8px;
}
.nav-links .nav-cta:hover { background: var(--orange-dark); color: #fff; }

/* CSS-only mobile menu (checkbox hack) */
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  border-radius: 8px;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.nav-toggle .icon-close { display: none; }
.nav-toggle-input:checked ~ .nav-bar .nav-toggle .icon-open { display: none; }
.nav-toggle-input:checked ~ .nav-bar .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(255, 106, 0, 0.35), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(64, 110, 255, 0.28), transparent 60%),
    linear-gradient(160deg, #16203a 0%, #1a2233 55%, #223052 100%);
  color: #fff;
  padding: 96px 0 104px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 460px at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 460px at 70% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  color: #fff;
  max-width: 720px;
  margin-bottom: 18px;
  font-size: 3rem;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .sub {
  max-width: 620px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 22px;
}
.hero-badge svg { color: var(--orange); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-stats .stat b {
  display: block;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.hero-stats .stat span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }

/* Page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(700px 320px at 90% -20%, rgba(255, 106, 0, 0.3), transparent 60%),
    linear-gradient(160deg, #16203a, #1f2c4d);
  color: #fff;
  padding: 72px 0;
}
.page-hero h1 { color: #fff; font-size: 2.5rem; max-width: 760px; }
.page-hero p { color: rgba(255, 255, 255, 0.85); max-width: 640px; font-size: 1.1rem; }
.page-hero .hero-actions { margin-top: 26px; }

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: #d6dce6;
}

.card .icon-tile {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  margin-bottom: 16px;
}

.card p { color: var(--muted); font-size: 0.95rem; }

.card .feature-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 0.92rem;
  color: var(--ink);
}
.card .feature-list li {
  position: relative;
  padding: 4px 0 4px 26px;
}
.card .feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange-soft);
}
.card .feature-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--orange-dark);
  border-bottom: 2px solid var(--orange-dark);
  transform: rotate(-45deg);
}

.card .card-footer { margin-top: auto; }

.price-hook {
  display: inline-block;
  font-weight: 700;
  color: var(--navy);
  background: #eef2f8;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.price-hook b { color: var(--orange-dark); }

/* Spotlight cards on homepage */
.spotlight {
  position: relative;
  overflow: hidden;
  padding: 36px;
}
.spotlight::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.14), transparent 70%);
}
.spotlight .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: var(--orange-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.spotlight h3 { font-size: 1.5rem; }
.spotlight .card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }

/* Category tiles */
.tile {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--orange);
  color: var(--ink);
}
.tile .icon-tile {
  flex: none;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--navy);
  color: #ffb27a;
}
.tile h3 { margin-bottom: 4px; font-size: 1.05rem; }
.tile p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* Why section */
.why-item { text-align: left; }
.why-item .icon-tile {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: #ffb27a;
  margin-bottom: 14px;
}
.why-item p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- FAQ / details ---------- */
.faq { max-width: 780px; }
details.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
details.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details.faq-item[open] summary { border-bottom: 1px solid var(--line); }
details.faq-item .faq-body { padding: 16px 20px; color: var(--muted); font-size: 0.96rem; }
details.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Category sections on products page ---------- */
.cat-section { padding: 56px 0 8px; scroll-margin-top: 84px; }
.cat-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.cat-head .icon-tile {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--navy);
  color: #ffb27a;
}
.cat-head h2 { margin: 0; font-size: 1.5rem; }
.cat-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.anchor-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.anchor-nav a:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Content / prose blocks ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2em; font-size: 1.45rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; color: var(--ink); }
.prose li { margin-bottom: 6px; }
.prose .note {
  background: var(--orange-soft);
  border-left: 4px solid var(--orange);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  color: var(--ink);
  font-size: 0.95rem;
}

/* Callout banner */
.callout {
  background:
    radial-gradient(600px 260px at 90% -30%, rgba(255, 106, 0, 0.35), transparent 60%),
    linear-gradient(150deg, var(--navy), var(--navy-3));
  color: #fff;
  border-radius: 16px;
  padding: 44px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.callout h2 { color: #fff; margin: 0 0 6px; font-size: 1.6rem; }
.callout p { margin: 0; color: rgba(255, 255, 255, 0.82); max-width: 560px; }
.callout .callout-cta { text-align: center; }

/* Comparison table-ish blocks */
.compare { align-items: stretch; }
.compare .card h3 { display: flex; align-items: center; gap: 10px; }
.compare .best-for {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-dark);
}

/* Instance families */
.family-grid .card h3 span.code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.85em;
  background: #eef2f8;
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--navy-2);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 32px;
  margin-top: 72px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-disclosure {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
}
.footer-copy { margin-top: 12px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h1, .hero h1 { font-size: 2.3rem; }
}

@media (max-width: 768px) {
  .section { padding: 52px 0; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 1.9rem; }
  .hero-stats { gap: 22px; }
  .callout { padding: 32px 24px; }

  /* Mobile nav */
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px 16px;
    display: none;
  }
  .nav-links a { min-height: 48px; border-radius: 8px; }
  .nav-links .nav-cta { margin: 8px 0 0; justify-content: center; }
  .nav-toggle-input:checked ~ .nav-bar .nav-links { display: flex; }
  .site-header { position: sticky; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .hero-actions .btn { width: 100%; }
  .spotlight .card-actions .btn { width: 100%; }
}
