/* ==========================================================================
   CareAdmin Solutions — Design System
   Brand primary: #20b2aa | Navy: #0f3d4a
   ========================================================================== */

:root {
  --primary: #20b2aa;
  --primary-dark: #1a9e96;
  --primary-darker: #15857e;
  --primary-light: #3ec9c0;
  --primary-50: #e8f7f6;
  --primary-100: #d4f0ee;
  --primary-200: #b8e8e4;
  --mint: #e0f2f1;
  --mint-deep: #c8ebe8;
  --navy: #0f3d4a;
  --navy-soft: #134e5f;
  --navy-deep: #0a2d36;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0284c7;

  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(15, 61, 74, 0.05);
  --shadow: 0 4px 6px -1px rgba(15, 61, 74, 0.08), 0 2px 4px -2px rgba(15, 61, 74, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(32, 178, 170, 0.12), 0 8px 10px -6px rgba(15, 61, 74, 0.06);
  --shadow-lg: 0 20px 40px -12px rgba(32, 178, 170, 0.18), 0 12px 24px -8px rgba(15, 61, 74, 0.08);
  --shadow-xl: 0 28px 56px -16px rgba(15, 61, 74, 0.22);
  --shadow-primary: 0 10px 30px -8px rgba(32, 178, 170, 0.35);

  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);

  --header-h: 4.5rem;
  --container: min(1160px, 92vw);
  --container-wide: min(1280px, 94vw);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

.container { width: var(--container); margin-inline: auto; }
.container-wide { width: var(--container-wide); margin-inline: auto; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--slate-900);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-primary { color: var(--primary); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--slate-500); }
.text-center { text-align: center; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.875rem;
}

.section-label::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
}

.section-label.light {
  color: var(--primary-light);
}

.section-label.light::before {
  background: linear-gradient(90deg, var(--primary-light), var(--white));
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.85rem);
  margin-bottom: 1rem;
  max-width: 18ch;
  letter-spacing: -0.03em;
}

.section-title.wide { max-width: 28ch; }
.section-title.center { max-width: 22ch; margin-inline: auto; }

.section-desc {
  font-size: 1.0625rem;
  color: var(--slate-600);
  max-width: 52ch;
  line-height: 1.7;
}

.section-desc.center {
  margin-inline: auto;
  text-align: center;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section {
  padding: clamp(4.25rem, 9vw, 7rem) 0;
  position: relative;
}

.section-alt {
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(32, 178, 170, 0.06), transparent 55%),
    var(--slate-50);
}

.section-mint {
  background:
    radial-gradient(ellipse 60% 50% at 100% 20%, rgba(32, 178, 170, 0.14), transparent 55%),
    linear-gradient(180deg, var(--primary-50) 0%, var(--white) 100%);
}
.section-dark {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-soft) 100%);
  color: var(--slate-200);
}

.section-dark .section-title,
.section-dark h2,
.section-dark h3 { color: var(--white); }

.section-dark .section-desc { color: rgba(226, 232, 240, 0.85); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  border: 1.5px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px rgba(32, 178, 170, 0.45);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-darker);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(15, 61, 74, 0.2);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-darker);
  background: var(--primary-50);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-dark);
  padding-inline: 0.75rem;
}

.btn-ghost:hover { color: var(--primary-darker); }

.btn-light {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-soft);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.btn-arrow::after {
  content: "→";
  transition: transform var(--transition);
}

.btn-arrow:hover::after { transform: translateX(3px); }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-primary {
  background: var(--primary-50);
  color: var(--primary-darker);
  border: 1px solid var(--primary-200);
}

.badge-soon {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.badge-dev {
  background: rgba(2, 132, 199, 0.12);
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.badge-dark {
  background: rgba(32, 178, 170, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(32, 178, 170, 0.3);
}

.badge-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo-img {
  width: 42px;
  height: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-care { color: var(--navy); }
.logo-admin { color: var(--primary); }

.logo-tagline {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-desktop a {
  padding: 0.5rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--navy);
  background: var(--primary-50);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-cta { display: none; }

.menu-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-200);
  padding: 1rem 4vw 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-slow) var(--ease-out), opacity var(--transition);
  z-index: 999;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  padding: 0.875rem 1rem;
  font-weight: 560;
  color: var(--slate-700);
  border-radius: var(--radius);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--primary-50);
  color: var(--navy);
}

.mobile-nav .btn { margin-top: 0.75rem; width: 100%; }

body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef8f7 0%, var(--white) 100%);
}

.hero-stage {
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(88vh, 760px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 640px;
  width: min(640px, 92vw);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.hero-brand-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-logo {
  width: 56px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 16px rgba(32, 178, 170, 0.25));
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--navy);
  margin: 0;
}

.hero-brand-care { color: var(--primary); }

.hero-brand-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-darker);
}

.text-accent {
  color: var(--primary-darker);
}

.hero h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 18ch;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--slate-600);
  max-width: 40ch;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.hero-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 70% 60% at 70% 30%, rgba(32, 178, 170, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 48%, #134e5f 100%);
  overflow: hidden;
}

.hero-panel-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 178, 170, 0.4), transparent 70%);
  filter: blur(20px);
  top: 10%;
  right: 5%;
  pointer-events: none;
}

.hero-panel .mockup {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(32, 178, 170, 0.2);
}

.trust-band {
  background: linear-gradient(90deg, var(--navy-deep), var(--navy) 40%, var(--navy-soft));
  color: var(--white);
  padding: 1rem 0;
  border-block: 1px solid rgba(32, 178, 170, 0.25);
}

.trust-band-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.trust-band .hero-trust-item {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
}

.trust-band .hero-trust-item svg {
  color: var(--primary-light);
}

.audience-strip {
  padding: 1.35rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.audience-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.25rem;
}

.audience-strip-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.audience-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.audience-chips span {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 600;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-600);
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(226, 232, 240, 0.8);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-care { color: var(--white); }
.footer-brand .logo-tagline { color: rgba(226, 232, 240, 0.55); }

.footer-desc {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 36ch;
  color: rgba(226, 232, 240, 0.7);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.125rem;
}

.footer-col a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  color: rgba(226, 232, 240, 0.7);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--primary-light); }

.footer-contact li {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.footer-contact a:hover { color: var(--primary-light); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  color: rgba(226, 232, 240, 0.55);
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a:hover { color: var(--primary-light); }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(32, 178, 170, 0.12), transparent 50%),
    linear-gradient(180deg, var(--slate-50), var(--white));
  border-bottom: 1px solid var(--slate-100);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--navy);
  margin-bottom: 1rem;
  max-width: 18ch;
}

.page-hero p {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 52ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-bottom: 1.25rem;
}

.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb span[aria-current="page"] { color: var(--navy); font-weight: 600; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
