/* CareCue Branding Site Styles */

:root {
  --color-primary: #1b8cf2;
  --color-primary-dark: #0f66b8;
  --color-accent: #7c4dff;
  --color-bg: #f4f7fb;
  --color-card: #ffffff;
  --color-text: #0f172a;
  --color-muted: #6b7280;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.16);
  --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.12);
  --max-width: 1120px;
  --nav-height: 72px;
  --transition-fast: 180ms ease-out;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at top left, #0f5fd7 0, #050b16 45%, #020617 100%);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Top gradient background */
.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.55;
}

.hero-bg::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #1b8cf2 0%, transparent 70%);
  top: -120px;
  left: -40px;
}

.hero-bg::after {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, #7c4dff 0%, transparent 75%);
  top: -80px;
  right: -80px;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px);
  background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.78),
      rgba(15, 23, 42, 0.4),
      transparent
    );
}

.nav-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 0, #66c3ff 0, #1b8cf2 40%, #0f5fd7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.55);
}

.brand-logo img {
  width: 26px;
  height: 26px;
}

.brand-text-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 17px;
  color: #e5f2ff;
}

.brand-text-sub {
  font-size: 12px;
  color: #9ca3af;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav-link {
  color: #e5f2ff;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
}

.nav-link:hover {
  background: rgba(15, 23, 42, 0.72);
  transform: translateY(-1px);
}

.nav-link--primary {
  background: linear-gradient(135deg, #1b8cf2, #0f66b8);
  color: #f9fafb;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.6);
}

.nav-link--primary:hover {
  background: linear-gradient(135deg, #1f9cf8, #0f5fd7);
  transform: translateY(-1px) scale(1.01);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #e5f2ff;
  font-size: 22px;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 32px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: center;
}

.hero-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e5f2ff;
  font-size: 12px;
  margin-bottom: 18px;
}

.hero-badge-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.1);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.hero-heading {
  font-size: clamp(34px, 4vw, 40px);
  line-height: 1.1;
  color: #f9fafb;
  margin-bottom: 12px;
}

.hero-heading span {
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subheading {
  font-size: 16px;
  line-height: 1.6;
  color: #cbd5f5;
  max-width: 520px;
  margin-bottom: 26px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
  font-size: 13px;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.24);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #1b8cf2, #0f66b8);
  color: #f9fafb;
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  background: linear-gradient(135deg, #1f9cf8, #0f5fd7);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  color: #e5f2ff;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.9);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #9ca3af;
  font-size: 12px;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-stars {
  color: #fde047;
}

/* Hero device preview */
.hero-device-wrap {
  display: flex;
  justify-content: center;
}

.feature-frame {
  position: relative;
  border-radius: 36px;
  padding: 20px 20px 26px;
  background: radial-gradient(circle at top left, #1b8cf2 0, #020617 55%, #020617 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  max-width: 380px;
}

.feature-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at top, rgba(56, 189, 248, 0.18) 0, transparent 55%);
  opacity: 1;
  pointer-events: none;
}

.feature-frame-inner {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #020617;
}

.hero-art {
  width: 100%;
  display: block;
}

.feature-pill-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.feature-pill {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #e5f2ff;
  font-size: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

/* Sections */
.section {
  padding: 0 0 64px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.section-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 4px;
}

.section-title {
  font-size: 22px;
  color: #e5e7eb;
}

.section-subtitle {
  font-size: 14px;
  color: #9ca3af;
  max-width: 400px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.16) 0, transparent 60%),
    rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-md);
  padding: 16px 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 17px;
}

.card-icon--water {
  background: rgba(56, 189, 248, 0.18);
  color: #0ea5e9;
}

.card-icon--sleep {
  background: rgba(129, 140, 248, 0.18);
  color: #818cf8;
}

.card-icon--meds {
  background: rgba(251, 146, 60, 0.18);
  color: #fb923c;
}

.card-icon--calendar {
  background: rgba(52, 211, 153, 0.18);
  color: #22c55e;
}

.card-title {
  font-size: 15px;
  color: #e5e7eb;
  margin-bottom: 6px;
}

.card-body {
  font-size: 13px;
  color: #9ca3af;
}

.benefit-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.benefit-panel {
  background: rgba(15, 23, 42, 0.94);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-card);
}

.benefit-metric {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.benefit-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.benefit-score-main {
  font-size: 26px;
  color: #bbf7d0;
  font-weight: 700;
}

.benefit-score-label {
  font-size: 13px;
  color: #9ca3af;
}

.benefit-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.benefit-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.09);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.55);
  font-size: 11px;
}

.benefit-footnote {
  font-size: 11px;
  color: #6b7280;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: flex;
  gap: 10px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 5px;
}

.timeline-content {
  font-size: 13px;
  color: #d1d5db;
}

.timeline-label {
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline-detail {
  color: #9ca3af;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.screen-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-card);
}

.screen-label {
  font-size: 13px;
  color: #e5e7eb;
  margin-top: 10px;
}

.screen-note {
  font-size: 12px;
  color: #9ca3af;
}

/* Privacy page */
.doc {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  padding: 22px 22px 26px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-card);
}

.doc h1 {
  font-size: 24px;
  color: #e5e7eb;
  margin-bottom: 4px;
}

.doc-updated {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 18px;
}

.doc-section-title {
  font-size: 16px;
  color: #e5e7eb;
  margin-top: 18px;
  margin-bottom: 8px;
}

.doc p,
.doc li {
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.6;
}

.doc ul {
  padding-left: 18px;
}

.doc a {
  color: #38bdf8;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(30, 64, 175, 0.5);
  padding: 18px 0 26px;
  margin-top: 16px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9) 0, rgba(15, 23, 42, 0.96) 35%, #020617 100%);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  color: #e5e7eb;
}

.footer-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Utility */
.pill-divider {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #4b5563;
}

.text-soft {
  color: #9ca3af;
}

.link-underline {
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.8);
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 18px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-inner {
    justify-content: space-between;
  }

  .nav-links {
    position: fixed;
    right: 20px;
    top: calc(var(--nav-height) + 8px);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    background: rgba(15, 23, 42, 0.96);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease-out, transform 160ms ease-out;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

