/* Global CSS for the application */
/* Put here only truly global styles that apply to the entire application */
/* Define here only truly global variables for re-usable styles */

:root {
  /* Better Web For All Shared Brand Colors */
  --color-secondary: #1e293b; /* Dark blue/black */
  --color-secondary-light: #334155;
  --color-accent: #f8fafc; /* Light gray */
  --color-text-light-blue-gray: #88b0e1;

  /* Phoenix Brand Colors */
  --color-primary: #ea580c; /* Phoenix orange */
  --color-primary-dark: #c2410c;
  --color-primary-very-dark: #9a3412;
  --color-primary-light: #fed7aa;

  /* JSON Formatter Brand Colors */
  --medium-fuchsia: #cc397b;
  --dark-fuchsia: #7a2249;
  --lightest-fuchsia: #f8cce0;

  /* Text Colors */
  --color-text-primary: #1e293b;
  --color-text-primary-light: #334155;
  --color-text-secondary: #64748b;
  --color-text-light: #94a3b8;

  /* UI Colors */
  --color-border: #e2e8f0;
  --color-background: #ffffff;
  --color-background-alt: #f8fafc;
  --background-light-gradiant: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-background-ligth-yellow: #fff0de;

  /* Legacy variable mapping */
  --default-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  --default-font-size: 16px;
  --default-line-height: 1.6;
  --default-color: var(--color-text-primary);
  --default-background-color: var(--color-background);
  --default-link-color: var(--color-primary);
  --default-link-hover-color: var(--color-primary-dark);
  --default-border-color: var(--color-border);
  --default-border-radius: 8px;
  --default-padding: 1rem;
  --default-margin: 1rem;
  --default-transition: all 0.3s ease;
  --default-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --default-body-width-percent: 90vw;
  --max-content-width: 1200px;

  /* --- THEME CUSTOM PROPERTIES DEFAULTS (Homepage / main site) --- */
  --theme-primary: var(--color-primary);
  --theme-primary-dark: var(--color-primary-dark);
  --theme-accent: var(--color-text-light-blue-gray);
  --theme-heading-gradient: linear-gradient(135deg, var(--color-accent) 0%, var(--color-text-light) 100%);
  --theme-stat-number: var(--color-text-light-blue-gray);

  --theme-solution-bg: var(--color-background-alt-dark, #23272a);
  --theme-solution-border: var(--color-border);
  --theme-solution-title: var(--color-accent, #f8fafc);
  --theme-solution-text: var(--color-text-light, #94a3b8);
  --theme-solution-detail-title: var(--color-text-light-blue-gray-dark, #88b0e1);
  --theme-solution-detail-text: var(--color-text-light, #94a3b8);
  --theme-sustainability-point-title: var(--color-text-light-blue-gray);
  --theme-sustainability-commitment-bg: transparent;
  --theme-sustainability-commitment-text: var(--color-accent);

  --theme-how-step-bg: var(--color-text-light-blue-gray);
  --theme-how-step-title: var(--color-text-light);
  --theme-how-step-text: var(--color-text-light);

  --theme-section-padding: 5rem 0;
  --theme-section-even-bg: var(--color-background-dark, #181a1b);
  --theme-section-even-text: var(--color-accent, #f8fafc);
  --theme-section-even-h2-color: var(--color-accent, #f8fafc);
  --theme-section-odd-bg: var(--color-background-alt-dark, #23272a);
  --theme-section-odd-text: var(--color-accent, #f8fafc);
  --theme-section-odd-h2-color: var(--color-accent, #f8fafc);
}

/* Phoenix Brand Variables (scoped to element) */
#phoenix-adblocker {
  --medium-orange: #ea580c;
  --medium-light-orange: #ef7734;
  --dark-orange: #c2410c;
  --darkest-orange: #9a3412;
  --lightest-orange: #fed7aa;
  --dark-black-blue: #1e293b;
  --medium-dark-gray-blue: #334155;
  --lightest-gray-blue: #64748b;
}

/* JSON Formatter Pro Theme Overrides */
#json-formatter-pro {
  --theme-primary: var(--medium-fuchsia);
  --theme-primary-dark: var(--dark-fuchsia);
  --theme-accent: var(--medium-fuchsia);
  --theme-heading-gradient: linear-gradient(135deg, var(--medium-fuchsia) 0%, var(--lightest-fuchsia) 100%);
  --theme-stat-number: var(--medium-fuchsia);

  --theme-solution-bg: var(--lightest-fuchsia);
  --theme-solution-border: var(--darkest-fuchsia);
  --theme-solution-title: var(--darkest-fuchsia);
  --theme-solution-text: var(--dark-black-blue);

  --theme-sustainability-point-title: var(--medium-fuchsia);
  --theme-sustainability-commitment-bg: var(--color-background-alt);
  --theme-sustainability-commitment-text: var(--color-text-primary);

  --theme-how-step-bg: var(--medium-fuchsia);
  --theme-how-step-title: var(--darkest-fuchsia);
  --theme-how-step-text: var(--dark-black-blue);

  --theme-section-padding: 3rem 0;
  --theme-section-even-bg: var(--lightest-fuchsia);
  --theme-section-even-text: var(--dark-black-blue);
  --theme-section-even-h2-color: var(--dark-black-blue);
  --theme-section-odd-bg: var(--color-background-alt-dark, #181a1b);
  --theme-section-odd-text: var(--color-accent, #f8fafc);
  --theme-section-odd-h2-color: var(--color-accent, #f8fafc);
}

:focus {
  outline: 2px solid var(--default-link-color);
  outline-offset: 2px;
}

* {
  box-sizing: border-box;
}

html {
  background-color: white;
}

body {
  margin: 0;
  font-family: var(--default-font);
  font-size: var(--default-font-size);
  line-height: var(--default-line-height);
  color: var(--default-color);
  background-color: var(--color-background-alt);
}

main.darkmode h1,
main.darkmode h2,
main.darkmode h3,
main.darkmode h4,
main.darkmode h5,
main.darkmode h6 {
  color: var(--color-accent);
}

main#privacy-policy a,
main#story a {
  color: var(--color-text-light-blue-gray);
}
main#privacy-policy a:hover,
main#story a:hover {
  color: var(--color-text-light-blue-gray);
}

#body-container,
#phoenix-adblocker,
#json-formatter-pro {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--default-link-color);
  text-decoration: underline;
  transition: var(--default-transition);
}

a:hover {
  color: var(--default-link-hover-color);
}

html,
body,
main {
  flex: 1;
  font-size: var(--default-font-size);
  background-color: var(--default-background-color);
}

main.darkmode {
  background-color: #23272a;
  color: var(--color-accent);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Utility Classes */
main > .page-container {
  max-width: 60%;
  margin: 4rem auto;
}

.section {
  padding: 4rem 0;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--theme-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--theme-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--theme-primary);
  border: 2px solid var(--theme-primary);
}

.btn-secondary:hover {
  background: var(--theme-primary);
  color: white;
}

/* JSON formatter PRO button */
.btn-primary-json {
  background: #cc397b;
  color: white;
}

.btn-primary-json:hover {
  background: #7a2249;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #7a2249;
  color: white;
}

.badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--color-background-ligth-yellow);
  color: var(--color-primary-very-dark);
}

/* SVG Phoenix Ad Blocker SVG logo specific styles */
#pheonix_logo_svg > #phoenix_and_border {
  fill: var(--color-primary);
}
#phoenix_logo_svg > #inside_shield {
  fill: var(--color-secondary);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 2rem 0;
  }
}

/* --- NAVIGATION HEADER --- */
header.header a:focus,
header.header button:focus {
  outline: 2px solid var(--color-text-light-blue-gray, #94a3b8);
  outline-offset: 2px;
}
.header-dropdown {
  position: relative;
  display: inline-block;
}

.header-dropdown-toggle {
  background: none;
  border: none;
  color: var(--color-text-primary);
  font: inherit;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: color 0.2s;
}

.header-dropdown-toggle:hover {
  color: var(--color-text-light-blue-gray);
}

.header-dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: fit-content;
  min-width: fit-content;
  max-height: 220px;
  overflow-y: auto;
  background: var(--color-background-dark, #181a1b);
  color: var(--color-accent, #f8fafc);
  border: 1px solid var(--color-secondary-light, rgba(248, 250, 252, 0.1));
  box-shadow: 0 2px 16px var(--color-secondary-light);
  z-index: 200;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

.header-dropdown:hover .header-dropdown-menu,
.header-dropdown:focus-within .header-dropdown-menu {
  display: block;
}

.header-dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-accent, #f8fafc);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}

.header {
  background: var(--color-background-dark, #181a1b);
  color: var(--color-accent, #f8fafc);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px var(--color-text-secondary, rgba(248, 250, 252, 0.1));
  font-weight: 600;
  font-size: 1rem;
}

#secondary-header {
  border-top: 1px solid var(--color-text-secondary, rgba(248, 250, 252, 0.1));
}

.header-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
a.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.company-text-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-text-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: opacity 0.2s;
}

[href$="/phoenix-adblocker"] .company-text-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--medium-orange, #ea580c) 0%, var(--lightest-orange, #fed7aa) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: opacity 0.2s;
}
[href$="/json-formatter"] .company-text-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--medium-fuchsia) 0%, var(--lightest-fuchsia) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: opacity 0.2s;
}

.company-text-logo:hover {
  opacity: 0.8;
  color: var(--color-text-primary);
}

.header-logo-image {
  object-fit: contain;
}

.header-nav {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.header-nav-link {
  color: var(--color-accent, #f8fafc);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.header-dropdown-item:hover,
.header-nav-link:hover {
  color: var(--color-text-light-blue-gray);
}

.header-nav-link--active {
  color: var(--color-text-light-blue-gray);
  font-weight: 700;
}

.header-nav-link--active::after {
  content: "";
  position: absolute;
  bottom: -0.2rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-text-light-blue-gray);
}

.header-cta {
  display: flex;
  align-items: center;
}

.header-cta .badge {
  font-size: 1rem;
  font-weight: inherit;
}

@media (max-width: 768px) {
  .header-nav {
    order: 3;
    flex: 100%;
    justify-content: flex-start;
    gap: 1rem;
    padding-top: 0.75rem;
    overflow-x: auto;
    white-space: nowrap;
  }

  .header-nav-link {
    font-size: 0.875rem;
  }

  .company-text-logo {
    font-size: 1rem;
  }
}

/* --- SITE FOOTER --- */
.footer {
  margin-top: auto;
  background: var(--color-background-dark, #181a1b);
  color: var(--color-accent, #f8fafc);
  box-shadow: 0 4px 16px var(--color-text-secondary, rgba(248, 250, 252, 0.1));
  padding: 3rem 8rem 1rem 8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  font-size: 1rem;
}

footer.footer :focus,
footer.footer :active {
  outline: 2px solid var(--color-text-light-blue-gray, #94a3b8);
  outline-offset: 2px;
}
.separator {
  width: 50%;
  border-bottom: 1px solid var(--color-secondary-light);
}
.footer-content {
  display: grid;
  grid-template-columns: [col1-logo] auto [col2-company] auto [col3-products] auto [col4-newsletter] 400px [end];
  width: 80%;
  align-items: baseline;
}

.footer-column > .email-signup,
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1 1 0;
}

.footer-column h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem 0;
}

.footer-column p,
.footer-column a:not(.company-text-logo) {
  color: var(--color-text-light);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
  margin-bottom: 0;
}

.footer-column a:hover:not(.company-text-logo) {
  color: var(--color-text-light-blue-gray);
}

.footer-bottom {
  color: var(--color-text-light);
  font-size: 0.875rem;
  margin: 0;
  text-align: center;
}
/* Overrides for third-party Octopus Email form styles */
[data-form="2f26e780-cd69-11f0-8cb5-118f87646039"] div.hello-container {
  column-gap: 0;
}
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
  }
  .footer {
    padding: 3rem 1.5rem 1rem 1.5rem;
  }
}

/* --- EMAIL SIGNUP COMPONENT --- */
.email-signup {
  width: 100%;
  max-width: 600px;
}

.email-signup-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Actions container with email form and Reddit button */
.email-signup-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

#emailoctopus-form-wrapper {
  width: 100%;
}

.email-signup-divider {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 1rem;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.email-signup-divider::before,
.email-signup-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.email-signup-button--reddit {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.email-signup-input {
  flex: 1;
  min-width: 200px;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  background: white;
  transition: all 0.2s ease;
}

.email-signup-input:focus {
  outline: none;
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.email-signup-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.email-signup-button {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--theme-primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.email-signup-button:hover:not(:disabled) {
  color: white;
  background: var(--theme-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.email-signup-button:active:not(:disabled) {
  transform: translateY(0);
}

/* START: Overrides the default emailoctopus's color */
#emailoctopus-form-wrapper {
  --emailoctopus-primary-color: #6e54d7; /* Octopus's default purple */
  --emailoctopus-text-color: white;
}
#emailoctopus-form-wrapper .emailoctopus-form-row-consent > label[for="consent"] {
  color: var(--emailoctopus-text-color);
}
#emailoctopus-form-wrapper .emailoctopus-form-row-consent.mb-2 {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
#emailoctopus-form-wrapper .mastfoot {
  margin-top: 0px !important;
}
#emailoctopus-form-wrapper .mastfoot > .inner > p {
  color: var(--emailoctopus-text-color);
}
#emailoctopus-form-wrapper .mastfoot > .inner > p > a:hover,
#emailoctopus-form-wrapper .mastfoot > .inner > p > a {
  color: var(--emailoctopus-primary-color);
}

#emailoctopus-form-wrapper input.btn.w-100.btn-primary.mb-2 {
  background-color: var(--emailoctopus-primary-color);
  color: var(--emailoctopus-text-color);
  border-color: var(--emailoctopus-primary-color);
}
/* END: Overrides of default emailoctopus's form styles */

.email-signup-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.email-signup-success {
  padding: 1rem;
  background: #10b981;
  color: white;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

.email-signup-error {
  margin-top: 0.5rem;
  color: #ef4444;
  font-size: 0.9rem;
}

.email-signup--hero {
  text-align: center;
  margin: 3rem auto;
}
.email-signup--hero .email-signup-form {
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.email-signup--inline {
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .email-signup-form {
    flex-direction: column;
  }

  .email-signup-input {
    width: 100%;
  }

  .email-signup-button {
    width: 100%;
  }
}

/* --- PRIVACY POLICY PAGE --- */
.footer-info {
  margin-top: 50px;
  padding: 20px;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
  border-radius: 8px;
  font-size: 0.95em;
  color: var(--color-text-primary);
}
#privacy-policy .footer-info > h3 {
  color: var(--color-text-primary);
}
main#privacy-policy:not(#phoenix-adblocker):not(#json-formatter-pro) div.footer-info.footer-info > p > a[href^="mailto:"] {
  color: darkblue;
  font-weight: 600;
}

/* --- STORY PAGE --- */
#story {
  background: var(--color-background-dark, #181a1b);
  color: var(--color-accent, #f8fafc);
  padding: 0;
}

.story-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 2px solid var(--color-secondary-light, #334155);
}

.story-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--color-accent, #f8fafc);
}

.story-subtitle {
  font-size: 1.5rem;
  color: var(--color-text-light, #94a3b8);
  font-weight: 400;
}

.story-section {
  margin-bottom: 4rem;
  background: var(--color-background-dark, #181a1b);
  color: var(--color-accent, #f8fafc);
  border-radius: 10px;
}

.story-section--closing {
  background: var(--color-background-alt-dark, #23272a);
  padding: 3rem;
  border-radius: 12px;
  margin-top: 4rem;
}

#story .story-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-light-blue-gray);
  margin-bottom: 1.5rem;
}

.story-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-accent, #f8fafc);
}

.story-content p {
  margin-bottom: 1.5rem;
}

.story-content p:last-child {
  margin-bottom: 0;
}

.story-highlight {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: center;
  padding: 1.5rem 0;
  margin: 2rem 0;
  background: var(--color-text-light-blue-gray, #94a3b8);
  border-radius: 8px;
}

.story-list,
.story-content ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.story-list li,
.story-content ul li {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.story-list li::before,
.story-content ul li::before {
  content: "→";
  position: absolute;
  left: 0;
}

.story-list strong,
.story-content ul strong {
  color: var(--color-text-light-blue-gray);
  font-weight: 600;
}

.story-closing-text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--color-accent, #f8fafc);
}

.story-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-secondary-light, #334155);
}

@media (max-width: 768px) {
  .story-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }
  .story-title {
    font-size: 2rem;
  }
  .story-subtitle {
    font-size: 1.25rem;
  }
  .story-section {
    margin-bottom: 3rem;
  }
  .story-section-title {
    font-size: 1.5rem;
  }
  .story-content {
    font-size: 1rem;
  }
  .story-highlight {
    font-size: 1.25rem;
  }
  .story-closing-text {
    font-size: 1.1rem;
  }
  .story-section--closing {
    padding: 2rem 1.5rem;
  }
}

/* --- REUSABLE PARAMETERIZED LAYOUT SECTIONS --- */
main#home,
main#phoenix-adblocker-home,
main#json-formatter-pro-home {
  padding: 0;
  background: var(--color-background-dark, #181a1b);
  color: var(--color-accent, #f8fafc);
}

main#home > section,
main#phoenix-adblocker-home > section,
main#json-formatter-pro-home > section {
  padding: var(--theme-section-padding);
  background: var(--theme-section-even-bg);
  color: var(--theme-section-even-text);
}

main#home > section h2,
main#phoenix-adblocker-home > section h2,
main#json-formatter-pro-home > section h2 {
  margin-bottom: 3rem;
  line-height: 1.2;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--theme-section-even-h2-color);
}

#body-container main#home > section:nth-child(odd),
#phoenix-adblocker main#phoenix-adblocker-home > section:nth-child(odd),
#json-formatter-pro main#json-formatter-pro-home > section:nth-child(odd) {
  background: var(--theme-section-odd-bg);
  color: var(--theme-section-odd-text);
}

#body-container main#home > section:nth-child(odd) h2,
#phoenix-adblocker main#phoenix-adblocker-home > section:nth-child(odd) h2,
#json-formatter-pro main#json-formatter-pro-home > section:nth-child(odd) h2 {
  color: var(--theme-section-odd-h2-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-background-dark, #181a1b) 0%, var(--color-background-alt-dark, #23272a) 100%);
  padding: 3.5rem 0 3rem;
  color: var(--color-accent, #f8fafc);
}

.hero--split .hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-title,
main h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
  background: var(--theme-heading-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-strong-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--color-text-light);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero:not(.hero--split) {
  text-align: center;
}

.hero:not(.hero--split) .hero-subtitle {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
}

.hero--split .hero-stats {
  justify-content: flex-start;
}

.hero:not(.hero--split) .hero-stats {
  justify-content: center;
}

.stat {
  text-align: left;
}

.hero:not(.hero--split) .stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--theme-stat-number);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-accent);
  max-width: 150px;
  line-height: 1.4;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero--split .hero-cta {
  justify-content: center;
}

.hero:not(.hero--split) .hero-cta {
  justify-content: center;
}

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

.btn-lg svg {
  margin-right: 0.5rem;
  vertical-align: middle;
}

.hero-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.hero-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-link:hover {
  color: var(--color-text-light-blue-gray);
}

.badge--youtube {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  color: white;
}

/* Problem Section */
.problem {
  padding: 5rem 0;
  background: var(--color-background-alt-dark, #23272a);
  color: var(--color-accent, #f8fafc);
}

.problem-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.problem-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--color-text-light);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.problem-item {
  display: flex;
  column-gap: 2rem;
}

.problem-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-text-light-blue-gray-dark);
}

.problem-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.problem-item p {
  color: var(--color-accent);
  line-height: 1.7;
}

.problem-conclusion {
  font-size: 1.75rem;
  text-align: center;
  color: var(--color-text-primary);
  margin-top: 4rem;
  padding: 3em;
  background: var(--color-background-alt);
  border-radius: 8px;
  line-height: 1.7;
}

/* Product Section */
.product-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.hero-badge.coming-soon > .badge {
  display: block;
}
.hero-badge:not(.coming-soon) > .badge {
  opacity: 0;
}

.product-item {
  background: var(--color-background-alt-dark, #23272a);
  padding: 2.5rem;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-accent, #f8fafc);
  border-color: #cc397b;
}

.product-item:first-child {
  border-color: var(--color-primary);
}

.product-item .btn-primary,
.product-item .btn-primary-json {
  margin-top: auto;
}

.product-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.product-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-accent, #f8fafc);
}

.product-item p {
  color: var(--color-accent, #fff);
  line-height: 1.7;
}

/* Solution Section */
.solution {
  padding: 5rem 0;
  background: var(--color-background-dark, #181a1b);
  color: var(--color-accent, #f8fafc);
}

.solution-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.solution-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 4rem;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.solution-item {
  background: var(--theme-solution-bg);
  padding: 2.5rem;
  border-radius: 12px;
  border: 2px solid var(--theme-solution-border);
  text-align: center;
  color: var(--theme-solution-text);
}

.solution-item--featured {
  border-color: var(--theme-solution-border);
}

.solution-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--theme-solution-title);
}

.solution-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--theme-solution-title);
}

.solution-item p {
  color: var(--theme-solution-text);
  line-height: 1.7;
}

.solution-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.solution-detail {
  background: var(--color-background-dark, #181a1b);
  padding: 2rem;
  border-radius: 8px;
  color: var(--color-accent, #f8fafc);
}

.solution-detail h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--theme-solution-detail-title);
}

.solution-detail p {
  color: var(--theme-solution-detail-text);
  line-height: 1.7;
  font-size: 1rem;
}

/* Trust Section */
.trust {
  padding: 5rem 0;
  background: var(--color-background-alt-dark, #23272a);
  color: var(--color-accent, #f8fafc);
}

.trust-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.trust-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--theme-accent);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.trust-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--color-accent, #f8fafc);
  line-height: 1.2;
}

.trust-content {
  margin-bottom: 3rem;
}

.trust-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-light, #94a3b8);
  margin-bottom: 1.5rem;
}

.trust-text--emphasis {
  font-size: 1.25rem;
  color: var(--color-accent, #f8fafc);
  padding: 1.5rem 0;
  margin: 2rem 0;
}

.trust-cta {
  text-align: left;
}
.trust-cta a.btn {
  color: var(--theme-accent);
  border: 2px solid var(--theme-accent);
}
.trust-cta a.btn:hover {
  color: var(--color-text-primary);
  border: 2px solid var(--theme-accent);
  background-color: var(--theme-accent);
}

/* Sustainability Section */
.sustainability {
  padding: 5rem 0;
  background: var(--color-background-alt-dark, #23272a);
  color: var(--color-accent, #f8fafc);
}

.sustainability-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sustainability-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-accent, #f8fafc);
}

.sustainability-intro {
  font-size: 1.25rem;
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 4rem;
}

.sustainability-model {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.sustainability-point h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--theme-sustainability-point-title);
}

.sustainability-point p {
  color: var(--color-accent, #94a3b8);
  line-height: 1.7;
}

.sustainability-commitment {
  background: var(--theme-sustainability-commitment-bg);
  padding: 6rem 0;
  color: var(--theme-sustainability-commitment-text);
  display: flex;
  justify-content: center;
  align-items: center;
}

.sustainability-commitment p {
  font-size: 1.5rem;
  line-height: 1.7;
  max-width: 70%;
  color: var(--theme-sustainability-commitment-text);
}

/* Final CTA Section */
.final-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-background-dark, #181a1b) 0%, var(--color-background-alt-dark, #23272a) 100%);
  color: var(--color-accent, #f8fafc);
}

.final-cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-accent, #f8fafc);
}

.final-cta-text {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.7;
  opacity: 0.95;
  color: var(--color-text-light, #94a3b8);
}

.final-cta-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.link-arrow {
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.link-arrow:hover {
  opacity: 1;
}

/* How It Works Summary Section */
.how-works {
  padding: 4rem 0;
  background: var(--color-background-alt-dark, #23272a);
  color: var(--color-accent, #f8fafc);
}

.how-works-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.how-works-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-accent, #f8fafc);
}

.how-works-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.how-works-step {
  text-align: center;
  padding: 1.5rem;
}

.how-works-step-number {
  width: 48px;
  height: 48px;
  background: var(--theme-how-step-bg);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.how-works-step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--theme-how-step-title);
}

.how-works-step p {
  color: var(--theme-how-step-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.how-works-cta {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 968px) {
  .hero--split .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-content {
    text-align: center;
    order: 1;
  }
  .hero-visual {
    order: 0;
  }
  .hero--split .hero-stats {
    justify-content: center;
  }
  .stat {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0 2rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-strong-title {
    font-size: 1.75rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .stat-number {
    font-size: 2rem;
  }
  .stat-label {
    max-width: none;
  }
  .trust-title {
    font-size: 1.5rem;
  }
  .trust-container,
  .sustainability-container {
    max-width: 100%;
  }
  .sustainability-model {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
  }
  .how-works-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .solution-grid,
  .solution-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
