/* ============================================================
   TideRISE Digital Design System
   ============================================================ */

:root {
  --navy:        #001166;
  --navy-dark:   #000D4D;
  --blue:        #0073E5;
  --blue-hover:  #005BB5;
  --blue-light:  #EBF3FE;
  --sky:         #0080FF;
  --bright:      #1A7FFF;
  --white:       #FFFFFF;
  --off-white:   #F5F7FF;
  --gray-50:     #F8FAFC;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-400:    #94A3B8;
  --gray-600:    #475569;
  --gray-800:    #1E293B;
  --text:        #0A0F2E;
  --text-muted:  #475569;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.10);
  --transition: 200ms ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { color: var(--text-muted); line-height: 1.75; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 800px; }
.container--wide   { max-width: 1400px; }

section { padding: 96px 0; }
section.section--sm { padding: 64px 0; }
section.section--lg { padding: 120px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header p {
  font-size: 1.125rem;
  margin-top: .75rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,115,229,.25);
}
.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 4px 16px rgba(0,115,229,.35);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,17,102,.2);
}
.btn-navy:hover {
  background: var(--navy-dark);
  box-shadow: 0 4px 16px rgba(0,17,102,.3);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-ghost:hover {
  background: var(--blue-light);
}

.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ---- Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.nav-logo img { height: 38px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gray-800);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--blue); }
.nav-links .btn { margin-left: .5rem; padding: .625rem 1.25rem; }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.mobile-nav a.btn-primary,
.mobile-nav a.btn-primary:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}
.mobile-nav a {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .btn { margin-top: 12px; text-align: center; justify-content: center; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.open { display: flex; }
}

/* ---- Hero ---- */
.hero {
  padding: 100px 0 96px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,115,229,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content { max-width: 580px; }
.hero-content h1 {
  margin-bottom: 1.25rem;
  color: var(--navy);
  letter-spacing: -.03em;
}
.hero-content .hero-sub {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero-chart {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 5 / 4;
}
.hero-chart-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.hero-chart-grid line {
  opacity: 0;
  animation: heroFadeIn .8s ease-out .1s forwards;
}
.hero-chart-area {
  opacity: 0;
  animation: heroFadeIn 1.6s ease-out .8s forwards;
}
.hero-chart-line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: heroDrawLine 2.4s cubic-bezier(.65,.01,.35,1) .3s forwards;
}
.hero-chart-points circle {
  opacity: 0;
  transform-origin: center;
  animation: heroPopIn .5s cubic-bezier(.34,1.56,.64,1) forwards;
}
.hero-chart-points circle:nth-child(1) { animation-delay: 1.0s; }
.hero-chart-points circle:nth-child(2) { animation-delay: 1.4s; }
.hero-chart-points circle:nth-child(3) { animation-delay: 1.8s; }
.hero-chart-points circle:nth-child(4) { animation-delay: 2.2s; }
.hero-chart-points circle.pulse { animation: heroPopIn .5s cubic-bezier(.34,1.56,.64,1) forwards, heroPulse 2.2s ease-in-out 2.8s infinite; }
.hero-chart-waves path {
  animation: heroWave 7s ease-in-out infinite;
  transform-origin: center;
}
.hero-chart-waves path:nth-child(2) { animation-delay: -2.5s; animation-duration: 8.5s; }
.hero-chart-waves path:nth-child(3) { animation-delay: -5s;   animation-duration: 10s; }

.hero-chart-badge {
  position: absolute;
  top: 12px;
  right: -8px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0,17,102,.22);
  min-width: 160px;
  opacity: 0;
  transform: translateY(8px);
  animation: heroBadgeIn .7s ease-out 1.6s forwards;
}
.hero-chart-badge-label {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.6);
  margin-bottom: 4px;
}
.hero-chart-badge-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.hero-chart-badge-sub {
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}

@keyframes heroFadeIn {
  to { opacity: 1; }
}
@keyframes heroDrawLine {
  to { stroke-dashoffset: 0; }
}
@keyframes heroPopIn {
  0% { opacity: 0; r: 0; }
  60% { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; r: 6; }
  50% { opacity: .6; r: 9; }
}
@keyframes heroWave {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-14px); }
}
@keyframes heroBadgeIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-chart-line,
  .hero-chart-area,
  .hero-chart-points circle,
  .hero-chart-waves path,
  .hero-chart-grid line,
  .hero-chart-badge { animation: none !important; opacity: 1; stroke-dashoffset: 0; transform: none; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding: 72px 0 80px; }
}

/* ---- Metrics bar ---- */
.metrics {
  padding: 0;
  background: var(--navy);
}
.metrics-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide: var(--navy-dark);
}
.metric-item {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
}
.metric-item:last-child { border-right: none; }
.metric-number {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1;
}
.metric-label {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  margin-top: .5rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
@media (max-width: 640px) {
  .metrics-inner { grid-template-columns: repeat(2, 1fr); }
  .metric-item:nth-child(2) { border-right: none; }
  .metric-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,.1); }
  .metric-item:nth-child(3),
  .metric-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,.1); }
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.375rem;
}
.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: .5rem;
  color: var(--text);
}
.service-card p {
  font-size: .9375rem;
  line-height: 1.65;
}
.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 1.25rem;
  transition: gap var(--transition);
}
.service-card .service-link:hover { gap: .625rem; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---- Why section ---- */
.why { background: var(--off-white); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-content h2 { margin-bottom: 1rem; }
.why-content .lead {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}
.why-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.why-check svg { width: 13px; height: 13px; color: var(--blue); }
.why-item-text h4 { font-size: 1rem; margin-bottom: 2px; color: var(--text); }
.why-item-text p { font-size: .9375rem; margin: 0; }

.why-visual {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
}
.why-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.why-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.why-stat-label {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  margin-top: 6px;
  line-height: 1.4;
}
.why-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.12);
  margin: 32px 0;
}
.why-quote {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
  font-style: italic;
}
.why-quote-author {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  margin-top: 12px;
  font-style: normal;
  font-weight: 600;
}

@media (max-width: 900px) {
  .why-inner { grid-template-columns: 1fr; gap: 48px; }
  .why-visual { padding: 32px; }
  .why-stat-grid { gap: 24px; }
  .why-stat-number { font-size: 2.25rem; }
}
@media (max-width: 500px) {
  .why-visual { padding: 24px; border-radius: var(--radius); }
  .why-stat-grid { gap: 20px; }
  .why-stat-number { font-size: 1.875rem; }
  .why-stat-label { font-size: .8125rem; }
  .why-divider { margin: 24px 0; }
  .why-quote { font-size: 1rem; }
}

/* ---- Process ---- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: var(--gray-200);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; }
.process-number {
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 20px;
}
.process-step h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.process-step p { font-size: .9375rem; }

@media (max-width: 900px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
}
@media (max-width: 500px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-item:first-child { border-top: 1px solid var(--gray-200); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.faq-question:hover { color: var(--blue); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
}
.faq-icon svg { width: 12px; height: 12px; color: var(--blue); transition: transform var(--transition); }
.faq-item.open .faq-icon { background: var(--blue); }
.faq-item.open .faq-icon svg { color: var(--white); transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
}
.faq-answer-inner {
  padding-bottom: 20px;
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 500px; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--navy);
  padding: 96px 0;
}
.cta-band-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.7); font-size: 1.0625rem; margin-bottom: 2rem; }
.cta-band-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-dark);
  padding: 64px 0 0;
  color: rgba(255,255,255,.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-brand .nav-logo img { height: 44px; }
.footer-brand p {
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  max-width: 280px;
  line-height: 1.65;
}
.footer-col h4 {
  color: var(--white);
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .8125rem; color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---- Cards / general ---- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.bg-off-white { background: var(--off-white); }
.bg-navy { background: var(--navy); }
.text-white { color: var(--white) !important; }
.text-blue  { color: var(--blue) !important; }

/* ---- Form ---- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,115,229,.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-note {
  font-size: .8125rem;
  color: var(--gray-400);
  margin-top: 8px;
}
.form-submit { width: 100%; justify-content: center; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---- Blog ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-body { padding: 24px; }
.blog-category {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
  margin-bottom: 8px;
}
.blog-card h3 {
  font-size: 1.0625rem;
  margin-bottom: .625rem;
  color: var(--text);
  line-height: 1.35;
}
.blog-card p { font-size: .875rem; margin-bottom: 16px; }
.blog-meta {
  font-size: .8125rem;
  color: var(--gray-400);
}

@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: var(--navy);
  padding: 80px 0 72px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: rgba(255,255,255,.6); }
.page-hero h1 { color: var(--white); letter-spacing: -.03em; }
.page-hero p  { color: rgba(255,255,255,.7); font-size: 1.125rem; max-width: 560px; margin-top: .875rem; }

.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.3) 70%, rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.3) 70%, rgba(0,0,0,0));
}
.page-hero-glow-a {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 75% at 85% 15%, rgba(0,115,229,.32), transparent 60%);
  animation: phGlowPulse 16s ease-in-out infinite;
  transform-origin: 85% 15%;
}
.page-hero-glow-b {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 60% at 8% 100%, rgba(0,115,229,.18), transparent 65%);
  animation: phGlowPulseSlow 22s ease-in-out infinite;
  transform-origin: 8% 100%;
}
.page-hero-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,115,229,.65) 50%, transparent 100%);
}

@keyframes phGlowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .85; transform: scale(1.05); }
}
@keyframes phGlowPulseSlow {
  0%, 100% { opacity: .9; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-glow-a, .page-hero-glow-b { animation: none !important; }
}

/* ---- Utilities ---- */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-delay-1 { animation-delay: .1s; }
.fade-up-delay-2 { animation-delay: .2s; }
.fade-up-delay-3 { animation-delay: .3s; }

/* ---- Alert / notification ---- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .9375rem;
  margin-top: 16px;
  display: none;
}
.alert.show { display: block; }
.alert-success { background: #D1FAE5; color: #065F46; }
.alert-error   { background: #FEE2E2; color: #991B1B; }

/* ---- Legal documents (privacy policy, terms) ---- */
.legal-doc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}
.legal-doc p {
  margin: 0 0 1.25rem;
}
.legal-doc h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--navy);
  margin: 2.5rem 0 .75rem;
  padding-top: .5rem;
  border-top: 1px solid var(--gray-200);
}
.legal-doc h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 2.5rem;
}
.legal-doc h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.5rem 0 .5rem;
}
.legal-doc ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.legal-doc ul li {
  margin-bottom: .5rem;
}
.legal-doc a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-doc a:hover { color: var(--blue-hover); }
.legal-doc code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .875rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--navy);
}
.legal-doc strong { font-weight: 700; color: var(--navy); }
.legal-footnote {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  font-size: .9375rem;
}

/* ---- Cookie consent banner ---- */
#tide-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 17, 102, .14);
  animation: tideCookieIn .25s ease both;
  max-width: 880px;
  margin: 0 auto;
}
@keyframes tideCookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tide-cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.tide-cookie-text {
  flex: 1;
  min-width: 260px;
}
.tide-cookie-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
  letter-spacing: -.01em;
}
.tide-cookie-body {
  font-size: .8125rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.tide-cookie-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tide-cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.tide-cookie-btn {
  padding: 9px 18px;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.tide-cookie-btn-primary {
  background: var(--blue);
  color: var(--white);
}
.tide-cookie-btn-primary:hover { background: var(--blue-hover); }
.tide-cookie-btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-200);
}
.tide-cookie-btn-ghost:hover {
  background: var(--gray-50);
  color: var(--text);
  border-color: var(--gray-400);
}
@media (max-width: 640px) {
  #tide-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .tide-cookie-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }
  .tide-cookie-actions {
    width: 100%;
  }
  .tide-cookie-btn {
    flex: 1;
  }
}
