/* --------------------------------------------------
   Base + Variables
-------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-navy: #12263a;
  --color-accent: #0057b8;
  --color-accent-soft: #1b6ed8;
  --color-bg: #f9f9f9;
  --color-surface: #ffffff;
  --color-muted: #6c757d;
  --color-border-subtle: rgba(18, 38, 58, 0.06);

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.10);
  --shadow-subtle: 0 10px 24px rgba(0, 0, 0, 0.06);

  --transition-fast: 0.18s ease-out;
  --transition-med: 0.28s ease-out;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
               "Roboto", sans-serif;
  background: var(--color-bg);
  color: #111827;
  line-height: 1.6;
}

/* --------------------------------------------------
   Main Layout
-------------------------------------------------- */
#main-content {
  min-height: 100vh;
  overflow-x: hidden;
}

/* --------------------------------------------------
   HERO
-------------------------------------------------- */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 7rem min(6vw, 80px) 5rem;
  color: #ffffff;
  background: radial-gradient(circle at top left, #1b6ed8 0%, #12263a 50%, #000714 100%);
  isolation: isolate;
}

/* WRAPPER for the background image */
.hero-visual-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.28;
  filter: blur(2px) brightness(1.15) saturate(0.8);
  transform: scale(1.06);
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

@media (max-width: 768px) {
  .home-hero {
    padding: 6rem 1.5rem 4.5rem;
  }
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.hero-bg-layer--gradient {
  background: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.12) 0, transparent 55%),
              radial-gradient(circle at 85% 70%, rgba(0, 111, 255, 0.35) 0, transparent 60%);
  mix-blend-mode: screen;
}

.hero-bg-layer--orbits {
  background:
    radial-gradient(circle at 65% 10%, rgba(255, 255, 255, 0.12) 0, transparent 50%),
    radial-gradient(circle at 10% 70%, rgba(0, 65, 130, 0.65) 0, transparent 55%);
  opacity: 0.9;
}

/* subtle animated glow */
.home-hero::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 130, 255, 0.55), transparent 65%);
  top: -30%;
  right: -10%;
  filter: blur(8px);
  opacity: 0.5;
  z-index: -3;
  animation: heroGlow 22s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.4;
  }
  100% {
    transform: translate3d(-40px, 30px, 0) scale(1.12);
    opacity: 0.7;
  }
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Hero text */
.hero-copy {
  max-width: 620px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.9rem;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 0.9rem;
}

.hero-tagline {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 440px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-secondary-text {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 768px) {
  .hero-actions {
    align-items: flex-start;
  }
}

/* Hero visual card */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 960px) {
  .hero-visual {
    justify-content: flex-start;
  }
}

.hero-visual-card {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.16) 0, rgba(9, 9, 11, 0.8) 55%);
  border-radius: 26px;
  padding: 1.75rem 1.75rem 1.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.65);
  max-width: 420px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.hero-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 120%, rgba(0, 122, 255, 0.45), transparent 56%);
  opacity: 0.85;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-visual-card > * {
  position: relative;
  z-index: 1;
}

.hero-visual-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: var(--radius-pill);
  padding: 0.32rem 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: #e5e7eb;
  margin-bottom: 1.2rem;
}

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

.hero-visual-card h2 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}

.hero-visual-card p {
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.85);
  margin-bottom: 1.3rem;
}

.hero-visual-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.hero-visual-metrics li {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.83);
  border: 1px solid rgba(148, 163, 184, 0.55);
}

.metric-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 0.35rem;
}

.metric-value {
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  width: 36px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  justify-content: center;
  cursor: pointer;
  padding: 0.4rem;
  color: rgba(209, 213, 219, 0.9);
  backdrop-filter: blur(14px);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.scroll-cue-line {
  width: 2px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(148, 163, 184, 0.2), #e5e7eb);
  animation: scrollPulse 1.5s ease-in-out infinite;
}

.scroll-cue-arrow i {
  font-size: 0.8rem;
}

.scroll-cue:hover {
  transform: translateX(-50%) translateY(-4px);
  border-color: rgba(248, 250, 252, 0.85);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

@keyframes scrollPulse {
  0% { transform: translateY(-4px); opacity: 0.8; }
  100% { transform: translateY(4px); opacity: 1; }
}

/* CTA Button */
.cta-main-button {
  background: var(--color-accent);
  color: #ffffff;
  padding: 0.95rem 1.55rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.65rem;
  box-shadow: 0 16px 38px rgba(0, 87, 184, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.32);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.cta-main-button i {
  font-size: 1.1rem;
}

.cta-main-button:hover {
  background: #0044a3;
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 87, 184, 0.6);
}

.cta-main-button--inline {
  box-shadow: 0 10px 26px rgba(0, 87, 184, 0.3);
}

/* --------------------------------------------------
   Sections
-------------------------------------------------- */
.home-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem min(6vw, 80px);
}

@media (max-width: 768px) {
  .home-section {
    padding: 3.5rem 1.5rem;
  }
}

.home-section--features {
  margin-top: -1.2rem;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.7rem, 2.3vw, 2rem);
  margin: 0 0 0.75rem;
  color: #111827;
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

/* --------------------------------------------------
   Feature Rows
-------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.2rem;
}

.feature-row:last-of-type {
  margin-bottom: 0;
}

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

.feature-row--reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
}

.feature-row--reverse .feature-copy {
  order: 2;
}
.feature-row--reverse .feature-visual {
  order: 1;
}

@media (max-width: 960px) {
  .feature-row--reverse .feature-copy {
    order: 2;
  }
  .feature-row--reverse .feature-visual {
    order: 1;
  }
}

.feature-copy h3 {
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #111827;
}

.feature-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 87, 184, 0.09);
  color: var(--color-accent);
}

.feature-copy p {
  margin: 0 0 0.9rem;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  position: relative;
}

.feature-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--color-accent), var(--color-accent-soft));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--transition-med);
}

.feature-link:hover::after {
  transform: scaleX(1);
}

.feature-link i {
  font-size: 0.85rem;
}

/* NEW: real images for feature visuals */
.feature-visual {
  position: relative;
}

.feature-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow-subtle);
  display: block;
}

/* --------------------------------------------------
   Weekly Digest
-------------------------------------------------- */
.home-section--digest {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}

.digest-inner {
  border-radius: 26px;
  background: radial-gradient(circle at 0% 0%, rgba(0, 87, 184, 0.13), transparent 55%),
              #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.12);
  padding: 1.8rem 2.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.digest-text h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.digest-text p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.96rem;
}

@media (max-width: 768px) {
  .digest-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.7rem 1.6rem;
  }
}

/* --------------------------------------------------
   Laws Timeline
-------------------------------------------------- */
.home-section--laws {
  padding-top: 4.0rem;
  padding-bottom: 5.0rem;
}

.home-section--laws .section-header h2 i {
  margin-right: 0.5rem;
  color: var(--color-accent);
}

.laws-timeline {
  position: relative;
  margin-top: 2.3rem;
}

.timeline-line {
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(148, 163, 184, 0.8), rgba(209, 213, 219, 0));
  pointer-events: none;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0;
}

.timeline-item {
  position: relative;
  border-radius: 18px;
  padding: 1.15rem 1.35rem 1.25rem 3.3rem;
  margin-bottom: 1.0rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  border-color: rgba(0, 87, 184, 0.24);
  background: linear-gradient(to right, rgba(0, 87, 184, 0.03), #ffffff);
}

.timeline-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  left: 12px;
  top: 1.35rem;
  background: #ffffff;
  border: 3px solid var(--color-accent);
  box-shadow: 0 0 0 6px rgba(0, 87, 184, 0.16);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.timeline-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #111827;
  font-size: 0.76rem;
}

.timeline-date {
  font-size: 0.8rem;
}

.timeline-title {
  font-size: 1rem;
  margin: 0;
  color: #111827;
}

.timeline-link {
  font-size: 0.88rem;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* clickable-card compatibility */
.clickable-card {
  cursor: pointer;
}

/* --------------------------------------------------
   Animations: Reveal on Scroll
-------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Staggered delays */
.home-section--features .feature-row:nth-of-type(1).is-visible {
  transition-delay: 0.05s;
}
.home-section--features .feature-row:nth-of-type(2).is-visible {
  transition-delay: 0.08s;
}
.home-section--features .feature-row:nth-of-type(3).is-visible {
  transition-delay: 0.11s;
}
.home-section--features .feature-row:nth-of-type(4).is-visible {
  transition-delay: 0.14s;
}

/* Parallax base */
.parallax-floating {
  will-change: transform;
  transition: transform 0.3s ease-out;
}

/* --------------------------------------------------
   Footer Compatibility
-------------------------------------------------- */
.footer {
  text-align: center;
  padding: 30px 20px;
  color: #666;
  font-size: 14px;
}
