/* =============================================
   HOME.CSS — index.html Specific Styles
   Inherits root scale (16px) from base.css
   ============================================= */

/* =============================================
   HERO SECTION
   ============================================= */
.system-hero {
  background-color: var(--brand-navy);
  background-image:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(201, 166, 70, 0.05) 0%,
      transparent 50%
    ),
    linear-gradient(to right, rgba(15, 34, 64, 0.9), rgba(15, 34, 64, 0.6));
  color: #ffffff;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s ease;
}

[data-theme="dark"] .system-hero {
  background-color: var(--brand-navy);
}

/* Gold Overline Label Sync with the-system.html */
.system-hero .section-overline-master {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.75rem;
  font-family: var(--body-font);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: none;
}

.system-hero .section-overline-master::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background-color: var(--accent-gold);
}

/* Massive Serif H1 */
.system-hero h1 {
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: 5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 2rem; /* Increased margin as requested */
  line-height: 1.1;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Heavy shadow to separate from background graphic */
}

/* Hero Subtitle */
.system-hero p.system-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  max-width: 40rem;
  line-height: 1.6; /* Adjusted for better readability as requested */
}

/* Hero Content — above watermark */
.system-hero .container {
  position: relative;
  z-index: 2;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 4rem; /* Added breathing room */
  position: relative;
  z-index: 2;
}

/* Hero Portrait (Replaces Abstract Circle) */
.hero-portrait-container {
  position: absolute;
  right: -10%;
  top: 0;
  bottom: 0;
  width: 75%; /* Increased width to move the starting edge further left */
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

/* 25% Navy Blue Blur Overlay over the image */
.hero-portrait-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--brand-navy);
  opacity: 0.45; /* Navy blue at 25% */
  backdrop-filter: blur(5px); /* Professional blur effect */
  -webkit-backdrop-filter: blur(5px);
  z-index: 2;
}

/* Subtle gradient overlay starting from the new left edge of the container */
.hero-portrait-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--brand-navy) 0%, transparent 35%);
  opacity: 0.5;
  z-index: 3;
}

.hero-portrait {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: right center; /* Ensure founders stay on the right */
  opacity: 1;
  /* Mask transition starting from the far left edge of the expanded container */
  mask-image: linear-gradient(to left, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 70%, transparent 100%);
  filter: contrast(1.05) brightness(1.05);
  transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.system-hero:hover .hero-portrait {
  transform: scale(1.03);
}

/* =============================================
   POSITIONING SECTION
   ============================================= */
.positioning-content {
  position: relative;
  z-index: 2;
  /* 1100px / 16 ≈ 57.895rem */
  max-width: 57.895rem;
}

.positioning-content h2 {
  width: 100%;
  max-width: none;
  font-family: var(--heading-font);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  text-align: left;
}

.gold-text {
  display: block;
  color: var(--accent-gold);
}

.positioning-description {
  text-align: left;
}

.positioning-description p {
  font-family: var(--body-font);
  color: var(--text-color);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Watermark Tree */
.watermark-tree {
  position: absolute;
  right: -12%;
  bottom: 0%;
  height: 105%;
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    filter 0.4s ease;
}

[data-theme="dark"] .watermark-tree {
  opacity: 0.05;
  filter: invert(1) brightness(2);
}

/* Dark mode: positioning section background override */
[data-theme="dark"] #positioning {
  background-color: var(--bg-color) !important;
}

/* =============================================
   SYSTEM ARCHITECTURE FLOW
   ============================================= */
.flow-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-top: 5rem;
}

/* 50px / 16 ≈ 2.632rem */
.flow-container::before {
  content: "";
  position: absolute;
  top: 2.632rem;
  left: 5%;
  right: 5%;
  height: 1px;
  background-color: var(--accent-gold);
  z-index: 1;
  opacity: 0.5;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  flex: 1;
  padding: 0 1rem;
}

/* 100px / 16 ≈ 5.263rem */
.flow-icon-wrapper {
  width: 5.263rem;
  height: 5.263rem;
  background-color: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--accent-gold);
  transition: background-color 0.4s ease;
}

/* 53px / 16 ≈ 2.789rem */
.flow-icon {
  width: 2.789rem;
  height: 2.789rem;
  display: block;
  flex-shrink: 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* =============================================
   METHODOLOGY GRID
   ============================================= */
.methodology-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

.vertical-separator {
  width: 1px;
  background-color: var(--accent-gold);
  height: 100%;
  opacity: 0.3;
}

/* =============================================
   APPLICATIONS
   ============================================= */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.app-column {
  text-align: left;
}

/* 48px / 16 ≈ 2.526rem */
.app-icon {
  width: 2.526rem;
  height: 2.526rem;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  margin-bottom: 1.5rem;
  position: relative;
}

/* 16px / 16 ≈ 0.842rem */
.app-icon::after,
.app-icon::before {
  display: none !important;
}

/* =============================================
   RESULTS DASHBOARD
   ============================================= */
.results-dashboard {
  background-color: var(--brand-navy);
  background-image: radial-gradient(
    circle at center,
    rgba(201, 166, 70, 0.05) 0%,
    transparent 80%
  );
}

.results-title {
  color: var(--brand-ivory) !important;
  margin-bottom: 0 !important;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 4rem;
}

/* Metrics */
.metric-card {
  text-align: center;
  padding: 2rem 1rem;
  cursor: default;
  transition: transform 0.3s ease;
}

.metric-card:hover {
  transform: scale(1.05);
}

.metric-card:hover .metric-value {
  text-shadow: 0 0 25px rgba(201, 166, 70, 0.5);
}

.metric-value {
  font-family: var(--heading-font);
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  line-height: 1;
  text-shadow: 0 0 15px rgba(201, 166, 70, 0.3);
  transition: text-shadow 0.3s ease;
}

.metric-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  font-weight: 600;
}

/* Vertical Gold Gradient Divider */
/* 80px / 16 ≈ 4.211rem */
.metric-gradient-divider {
  width: 1px;
  height: 4.211rem;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--accent-gold) 30%,
    var(--accent-gold) 70%,
    transparent 100%
  );
  opacity: 0.4;
  justify-self: center;
}

/* =============================================
   ARCHITECT ROW
   ============================================= */
.architect-row {
  /* 80px / 16 ≈ 4.211rem */
  padding: 4.211rem 5%;
  background-color: #fdfbf7;
}

.arch-container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* 1200px / 16 ≈ 63.158rem */
  max-width: 63.158rem;
  margin: 0 auto;
  gap: 3rem;
}

/* Left Column */
.arch-left {
  flex: 1;
  text-align: center;
}

.developed-by {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--primary-blue);
  font-weight: 600;
  opacity: 0.8;
}

.arch-name {
  font-family: "Playfair Display", serif;
  color: var(--primary-blue);
  font-size: 2.2rem;
  /* 10px / 16 ≈ 0.526rem */
  margin: 0.526rem 0;
}

/* Gold Divider */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 15px / 16 ≈ 0.789rem */
  margin: 0.789rem 0;
}

/* 60px / 16 ≈ 3.158rem */
.gold-divider::before,
.gold-divider::after {
  content: "";
  height: 1px;
  width: 3.158rem;
  background-color: var(--accent-gold);
  opacity: 0.5;
}

/* 8px / 16 ≈ 0.421rem */
.diamond {
  width: 0.421rem;
  height: 0.421rem;
  background-color: var(--accent-gold);
  transform: rotate(45deg);
  /* 10px / 16 ≈ 0.526rem */
  margin: 0 0.526rem;
}

.arch-desc {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  /* 400px / 16 ≈ 21.053rem */
  max-width: 21.053rem;
  margin: 0 auto;
}

/* Center Column (Seal) */
/* 200px / 16 ≈ 10.526rem */
.arch-center {
  flex: 0 0 10.526rem;
  display: flex;
  justify-content: center;
}

/* 180px / 16 ≈ 9.474rem */
.golden-seal {
  width: 9.474rem;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Right Column (List) */
.arch-right {
  flex: 1;
}

.check-list {
  list-style: none;
  padding: 0;
}

/* 15px / 16 ≈ 0.789rem */
.check-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.789rem;
  font-size: 1.1rem;
  color: #333;
}

/* 24px / 16 ≈ 1.263rem */
.check-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.263rem;
  height: 1.263rem;
  border: 1px solid var(--accent-gold);
  border-radius: 50%;
  color: var(--accent-gold);
  /* 15px / 16 ≈ 0.789rem */
  margin-right: 0.789rem;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* =============================================
   FOUNDER / BENEFITS (legacy)
   ============================================= */
.positioning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.results-grid-lined {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  gap: 2rem;
  align-items: center;
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

/* 180px / 16 ≈ 9.474rem */
.seal-placeholder {
  width: 9.474rem;
  height: 9.474rem;
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 2.5rem;
  color: var(--accent-gold);
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  font-size: 0.8rem;
}

.benefits-list {
  list-style: none;
}

.benefits-list li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.2rem;
  font-size: 1.125rem;
  color: var(--text-color);
  transition: color 0.4s ease;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

/* =============================================
   HOME PAGE — MOBILE OVERRIDES (≤768px)
   ============================================= */
@media (max-width: 768px) {
  /* Hero */
  .system-hero {
    min-height: 65vh;
    padding: 4.211rem 5%;
  }

  .system-hero h1 {
    font-size: 2.5rem;
  }

  .system-hero p.system-hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-portrait-container {
    right: 0;
    width: 100%;
    opacity: 0.25;
    z-index: 0;
  }

  .hero-portrait {
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(
      circle at center,
      black 40%,
      transparent 100%
    );
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  /* Positioning */
  .positioning-content h2 {
    font-size: 2.25rem;
  }

  .watermark-tree {
    right: -15%;
    height: 70%;
    opacity: 0.08;
    z-index: -1;
  }

  [data-theme="dark"] .watermark-tree {
    opacity: 0.04;
  }

  /* Flow System — vertical stack */
  .flow-container {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
  }

  .flow-container::before {
    display: none;
  }

  .flow-step {
    padding: 0;
  }

  /* Methodology — single column */
  .methodology-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 2.5rem;
  }

  .vertical-separator {
    display: none;
  }

  /* Applications — single column */
  .applications-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Results Dashboard — single column stack */
  .results-grid,
  .results-grid-lined {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .metric-gradient-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent 0%,
      var(--accent-gold) 30%,
      var(--accent-gold) 70%,
      transparent 100%
    );
    opacity: 0.3;
    margin: 0 auto;
  }

  .results-grid-lined .vertical-separator {
    display: none;
  }

  .metric-card {
    padding: 2rem 0;
  }

  .metric-value {
    font-size: 3.5rem;
  }

  /* Founder — single column */
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .seal-placeholder {
    margin: 0 auto 2rem;
  }

  /* Architect Row — stack */
  .arch-container {
    flex-direction: column;
    text-align: center;
  }

  .arch-center {
    order: -1;
    flex: none;
    margin-bottom: 1.5rem;
  }

  .golden-seal {
    width: 160px;
    height: auto;
  }
}
