:root {
  --brand-primary: #0f4c81;
  --brand-secondary: #11b8d8;
  --brand-accent: #7a5cff;
  --brand-ink: #16324f;
  --surface: #ffffff;
  --surface-alt: #f3f7fb;
  --surface-deep: #0e1f33;
  --border-soft: rgba(15, 76, 129, 0.12);
  --shadow-soft: 0 20px 45px rgba(10, 40, 74, 0.08);
  --shadow-card: 0 12px 30px rgba(11, 41, 73, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container-max: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  color: var(--brand-ink);
  background:
    radial-gradient(circle at top left, rgba(17, 184, 216, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(122, 92, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #edf4fb 100%);
  min-height: 100vh;
  padding-top: 88px;
}

a {
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.article-toc a:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 3px solid rgba(17, 184, 216, 0.95);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(17, 184, 216, 0.18);
}

img {
  max-width: 100%;
}

.section-padding {
  padding: 4.5rem 0;
}

.section-subtitle {
  max-width: 720px;
  color: #52667c;
  font-size: 1.02rem;
}

.site-navbar {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow: 0 12px 30px rgba(20, 54, 92, 0.06);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--brand-ink);
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--brand-primary);
}

.navbar-logo {
  width: auto;
  height: 34px;
  display: block;
}

.navbar-toggler {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler:focus,
.navbar-toggler:focus-visible {
  outline: 3px solid rgba(17, 184, 216, 0.95);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(17, 184, 216, 0.18);
}

@media (min-width: 768px) {
  .navbar-logo {
    height: 40px;
  }
}

@media (min-width: 992px) {
  .navbar-logo {
    height: 48px;
  }

  .brand-title {
    font-size: 1.22rem;
  }
}

.nav-link {
  font-weight: 600;
  color: #35516f;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
}

.nav-link.active,
.nav-link:hover,
.nav-link:focus {
  color: var(--brand-primary);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 31, 51, 0.98), rgba(15, 76, 129, 0.95));
  color: #fff;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(8, 24, 42, 0.25);
}

.hero-panel::before,
.hero-panel::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
}

.hero-panel::before {
  width: 280px;
  height: 280px;
  right: -100px;
  top: -80px;
  background: rgba(17, 184, 216, 0.2);
}

.hero-panel::after {
  width: 220px;
  height: 220px;
  left: -70px;
  bottom: -110px;
  background: rgba(122, 92, 255, 0.24);
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.08;
  margin: 1rem 0;
}

.hero-text {
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.btn-primary-gradient {
  background: linear-gradient(135deg, #0f7ea3, #5b43c4);
  border: none;
  color: #fff;
  box-shadow: 0 15px 32px rgba(17, 184, 216, 0.28);
}

.btn-primary-gradient:hover,
.btn-primary-gradient:focus {
  color: #fff;
  opacity: 0.94;
}

.btn-soft {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-soft:hover,
.btn-soft:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.metric-card,
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
}

.metric-card {
  padding: 1rem 1.1rem;
}

.metric-card strong {
  display: block;
  font-size: 1.3rem;
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

.hero-image-card {
  position: relative;
  isolation: isolate;
  align-self: start;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 44px rgba(7, 20, 36, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.hero-image-card::before,
.hero-image-card::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.hero-image-card::before {
  inset: 0 auto 0 0;
  width: 58%;
  background:
    radial-gradient(circle at 18% 72%, rgba(17, 184, 216, 0.34), transparent 56%),
    radial-gradient(circle at 44% 20%, rgba(122, 92, 255, 0.24), transparent 44%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 62%);
}

.hero-image-card::after {
  left: -6%;
  top: 10%;
  width: 56%;
  height: 78%;
  border-radius: 44% 56% 58% 42% / 38% 42% 58% 62%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(17, 184, 216, 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 18px 34px rgba(15, 76, 129, 0.16);
  backdrop-filter: blur(3px);
}

.hero-image-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 1;
}

.glass-card {
  padding: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-card h3 {
  font-size: 1.05rem;
}

.floating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-primary);
  font-weight: 700;
  box-shadow: var(--shadow-card);
}

.page-hero {
  padding-top: 1.2rem;
}

.page-header-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(239, 247, 255, 0.9));
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.breadcrumb {
  margin-bottom: 0.8rem;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: #607389;
}

.breadcrumb-item.active {
  color: var(--brand-primary);
}

.feature-card,
.content-card,
.prompt-card,
.contact-card,
.news-card,
.info-card,
.step-card {
  height: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.feature-card,
.content-card,
.prompt-card,
.contact-card,
.news-card,
.info-card,
.step-card {
  padding: 1.6rem;
}

.feature-card,
.content-card,
.prompt-card,
.contact-card,
.news-card,
.info-card,
.step-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-card .btn,
.content-card .btn,
.prompt-card .btn,
.contact-card .btn {
  align-self: flex-start;
}

.feature-card .btn {
  margin-top: auto;
}

.feature-card:hover,
.content-card:hover,
.prompt-card:hover,
.news-card:hover,
.info-card:hover {
  transform: translateY(-4px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 20px 40px rgba(14, 40, 71, 0.14);
}

.icon-badge {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(17, 184, 216, 0.12), rgba(122, 92, 255, 0.14));
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.08);
  color: var(--brand-primary);
  font-size: 0.84rem;
  font-weight: 700;
}

.callout-box {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(17, 184, 216, 0.12), rgba(122, 92, 255, 0.12));
  border: 1px solid rgba(17, 184, 216, 0.12);
  padding: 1.8rem;
}

.list-check {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.list-check i {
  color: var(--brand-secondary);
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.1);
  box-shadow: 0 10px 20px rgba(15, 76, 129, 0.06);
  color: #45607a;
  font-weight: 600;
}

.prompt-text {
  min-height: 140px;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: #eef6ff;
  border: 1px dashed rgba(15, 76, 129, 0.2);
  color: #2f4760;
  white-space: pre-wrap;
}

.copy-feedback {
  font-size: 0.9rem;
  color: #166534;
}

.study-hero-image {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15, 76, 129, 0.12);
  box-shadow: var(--shadow-soft);
}

.study-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.prompt-box {
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 76, 129, 0.12);
  background: #f8fbff;
  padding: 1rem;
}

.prompt-box pre {
  margin-bottom: 0.85rem;
  white-space: pre-wrap;
  font-size: 0.95rem;
  color: #26415d;
}

.prompt-box-featured {
  border: 1px solid rgba(17, 184, 216, 0.3);
  background: linear-gradient(145deg, rgba(238, 250, 255, 0.95), rgba(245, 245, 255, 0.9));
}

.senior-readable {
  font-size: 1.04rem;
  line-height: 1.75;
}

.senior-readable p,
.senior-readable li {
  color: #2e4a66;
}

.module-nav-card {
  border: 1px solid rgba(15, 76, 129, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(10, 40, 74, 0.08);
  padding: 1.2rem;
}

.module-nav-card h2,
.module-nav-card h3 {
  font-size: 1.15rem;
}

.prompt-copy-box {
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 76, 129, 0.16);
  background: #f7fbff;
  padding: 1rem;
}

.prompt-copy-box pre {
  margin-bottom: 0.85rem;
  white-space: pre-wrap;
  font-size: 0.96rem;
  color: #26415d;
}

.senior-alert,
.safety-warning {
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.senior-alert {
  border-left: 4px solid #f2a900;
  background: linear-gradient(135deg, rgba(242, 169, 0, 0.16), rgba(255, 244, 210, 0.62));
  border: 1px solid rgba(242, 169, 0, 0.3);
}

.safety-warning {
  border-left: 4px solid #c74234;
  background: linear-gradient(135deg, rgba(199, 66, 52, 0.14), rgba(255, 237, 234, 0.62));
  border: 1px solid rgba(199, 66, 52, 0.3);
}

.featured-prompt-card img {
  width: 100%;
  object-fit: cover;
  max-height: 280px;
}

.study-table thead th {
  white-space: nowrap;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.8rem;
}

.contact-list a {
  color: var(--brand-primary);
  font-weight: 600;
}

.form-control,
.form-select {
  border-radius: 14px;
  border-color: rgba(15, 76, 129, 0.16);
  padding: 0.85rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(17, 184, 216, 0.72);
  box-shadow: 0 0 0 0.25rem rgba(17, 184, 216, 0.15);
}

.site-footer {
  background: #0d1c2d;
  color: rgba(255, 255, 255, 0.82);
  padding: 2rem 0;
  margin-top: 4rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer li a {
  display: inline-block;
  padding: 0.2rem 0;
  line-height: 1.35;
}

.footer-logo {
  width: auto;
  height: 46px;
  display: block;
  margin-bottom: 0.85rem;
}

@media (min-width: 992px) {
  .footer-logo {
    height: 54px;
  }
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
}

.reveal-up {
  animation: revealUp 0.6s ease both;
}

.article-header {
  border-radius: 30px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.08);
  border: 1px solid rgba(15, 76, 129, 0.12);
  color: #385777;
  font-size: 0.92rem;
  font-weight: 600;
}

.article-content {
  grid-template-columns: 1fr;
}

.article-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  padding: 1.7rem;
}

.article-highlight {
  border-left: 4px solid var(--brand-secondary);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(17, 184, 216, 0.12), rgba(122, 92, 255, 0.08));
  padding: 1.15rem;
}

.article-checklist {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.8rem;
}

.article-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.article-checklist i {
  color: var(--brand-secondary);
  margin-top: 0.1rem;
}

.article-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.article-toc {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  padding: 1.3rem;
}

.article-toc nav {
  display: grid;
  gap: 0.55rem;
}

.article-toc a {
  color: #34577a;
  font-weight: 600;
}

.article-toc a:hover,
.article-toc a:focus {
  color: var(--brand-primary);
}

.reveal-delay-1 {
  animation-delay: 0.08s;
}

.reveal-delay-2 {
  animation-delay: 0.16s;
}

.reveal-delay-3 {
  animation-delay: 0.24s;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  body {
    padding-top: 82px;
  }

  .site-navbar-collapse {
    margin-top: 0.85rem;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 0.55rem 0.2rem 0.4rem;
    border-top: 1px solid rgba(15, 76, 129, 0.08);
  }

  .site-nav-list .nav-item {
    width: 100%;
  }

  .site-nav-list .nav-link {
    display: block;
    margin: 0.12rem 0;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    border-radius: 28px;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-top: 78px;
  }

  .brand-title {
    font-size: 0.96rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 2.05rem;
    line-height: 1.12;
  }

  .hero-text,
  .section-subtitle {
    font-size: 0.98rem;
  }

  .senior-readable {
    font-size: 1rem;
    line-height: 1.72;
  }

  .module-nav-card {
    padding: 1rem;
  }

  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-lg {
    width: 100%;
  }

  .feature-card,
  .content-card,
  .prompt-card,
  .contact-card,
  .news-card,
  .info-card,
  .step-card,
  .callout-box,
  .article-card,
  .article-toc {
    padding: 1.25rem;
  }

  .site-footer {
    padding: 2.2rem 0 1.7rem;
  }

  .site-footer .row {
    row-gap: 1.7rem !important;
  }

  .site-footer h2 {
    margin-bottom: 0.65rem !important;
  }

  .site-footer li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.3rem 0;
  }

  .site-nav-list .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .callout-box .btn {
    width: 100%;
  }

  .page-header-card,
  .hero-panel,
  .feature-card,
  .content-card,
  .prompt-card,
  .contact-card,
  .news-card,
  .info-card,
  .step-card,
  .article-card,
  .article-toc {
    border-radius: 22px;
  }

  .article-nav-buttons .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-up,
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3 {
    animation: none;
  }
}
