/* ==========================================================================
   PENTECOST MARKETING SITE — DESIGN SYSTEM & TOKENS
   Incorporating PRD Brand Directives & "On Air" Broadcast Console System
   Domain: pentecost.one
   ========================================================================== */

:root {
  /* PRD Brand Color Tokens */
  --flame-amber: #FF9500;
  --ember: #FF6A00;
  --flame-red: #FF3B00;
  --flame-gradient: linear-gradient(135deg, #FF9500 0%, #FF6A00 45%, #FF3B00 100%);
  --flame-gradient-glow: linear-gradient(135deg, rgba(255, 149, 0, 0.25) 0%, rgba(255, 59, 0, 0.25) 100%);

  --ink: #141118;
  --ink-2: #3A3340;
  --ink-muted: #6B6273;
  --surface: #FFFBF7;
  --surface-2: #F5EFE9;
  --surface-card: #FFFFFF;
  --border: #E9E0D8;
  --border-subtle: #F0E8E1;

  --success: #1E9E6A;
  --info: #2D7FF9;
  --roadmap-plum: #7A5AF8;

  /* Typography Stack */
  --font-heading: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-cjk: "Segoe UI Variable Text", "Microsoft JhengHei UI", "Malgun Gothic", "Noto Sans CJK TC", "Hiragino Sans", sans-serif;

  /* On Air Broadcast System Tokens (from on-air-system.html & .impeccable/design.json) */
  --oa-panel: #1C1B19;
  --oa-strip: #24221E;
  --oa-strip-2: #2B2823;
  --oa-well: #191816;
  --oa-rule: #38342D;
  --oa-rule-2: #2A2721;
  --oa-legend: #E9E4D9;
  --oa-dim: #A39B8D;
  --oa-faint: #9A9182;
  --oa-live: #FF5A1F;
  --oa-live-ink: #1C1B19;
  --oa-lamp-off: #7C7364;
  --oa-good: #7FBF6A;
  --oa-warn: #E8B33C;
  --oa-bad: #E2564A;
  --oa-cap-ground: #141311;
  --oa-cap-now: #F0EBE1;
  --oa-cap-prev: #94897A;
  --oa-mach: "Bahnschrift Condensed", "Franklin Gothic Medium Cond", "Segoe UI", sans-serif;
  --oa-num: "Cascadia Mono", Consolas, ui-monospace, monospace;

  /* Constraints & On Air Discrete Invariants */
  --max-width: 1240px;
  --header-height: 72px;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-device: 22px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(20, 17, 24, 0.05);
  --shadow-md: 0 8px 24px rgba(20, 17, 24, 0.08);
  --shadow-lg: 0 16px 48px rgba(20, 17, 24, 0.12);
  --shadow-glow: 0 8px 32px rgba(255, 106, 0, 0.25);
}

/* Dark Theme Overrides */
[data-theme="dark"], body.dark-mode {
  --ink: #EDEDEB;
  --ink-2: #C4C0B8;
  --ink-muted: #8E887E;
  --surface: #141118;
  --surface-2: #1C1822;
  --surface-card: #221D2A;
  --border: #332B3E;
  --border-subtle: #292233;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--font-body), var(--font-cjk);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Accessibility Skip Link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--flame-amber);
  color: #000000;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 9999;
  border-radius: var(--radius-pill);
  transition: top 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.skip-to-content:focus {
  top: 16px;
  outline: 2px solid #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading), var(--font-cjk);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(22px, 4.2vw, 38px); letter-spacing: -0.03em; }
h2 { font-size: clamp(18px, 3vw, 28px); }
h3 { font-size: clamp(15px, 2vw, 22px); }
h4 { font-size: 15px; }

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Layout Classes */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section { padding: 50px 0; }
}

.text-center { text-align: center; }
.text-gradient {
  background: var(--flame-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--flame-gradient);
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(255, 106, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--ink-2);
}

.hero-section .btn-secondary,
.btn-secondary-dark {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-section .btn-secondary:hover,
.btn-secondary-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-dark {
  background: #1C1B19;
  color: #E9E4D9;
  border-color: #38342D;
}

.btn-dark:hover {
  background: #2B2823;
  color: #FFFFFF;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

/* Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(20, 17, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #FFFFFF;
}

.brand-logo img,
.brand-logo svg {
  height: 34px;
  width: auto;
  border-radius: 4px;
}

.brand-logo span,
.brand-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  line-height: 1;
}

/* Mobile Menu Toggle Button (On Air Console Style) */
.mobile-menu-toggle {
  display: none;
  background: #24221E;
  border: 1px solid #38342D;
  border-radius: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  background: #2B2823;
  border-color: var(--flame-amber);
  outline: none;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #E9E4D9;
  border-radius: 1px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.2s ease;
  transform-origin: center;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--flame-amber);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--flame-amber);
}

/* Primary Nav Menu Container */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
  padding: 8px 0;
  text-decoration: none;
  position: relative;
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-link.active,
.nav-link[aria-current="page"] {
  color: #FFFFFF;
  font-weight: 500;
}

.nav-link.active::after,
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--flame-amber);
  border-radius: 1px;
}

.nav-actions-mobile {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Responsive Narrow Screen Navigation Dropdown (<= 860px) */
@media (max-width: 860px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-actions {
    display: none;
  }

  .nav-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(20, 17, 24, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #38342D;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
    padding: 20px 24px 26px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .nav-menu.is-active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .nav-link {
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 4px;
    color: #E9E4D9;
    display: block;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
  }

  .nav-link:hover,
  .nav-link:focus {
    background: #24221E;
    color: #FFFFFF;
    border-left-color: var(--flame-amber);
  }

  .nav-link.active,
  .nav-link[aria-current="page"] {
    background: #24221E;
    color: #FFFFFF;
    border-left-color: var(--flame-amber);
    font-weight: 600;
  }

  .nav-link.active::after,
  .nav-link[aria-current="page"]::after {
    display: none;
  }

  .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #38342D;
    width: 100%;
  }

  .nav-actions-mobile .nav-login-link {
    text-align: center;
    background: #24221E;
    border: 1px solid #38342D;
    color: #E9E4D9;
    font-weight: 600;
    padding: 10px;
    border-radius: var(--radius-pill);
    margin: 0;
  }

  .nav-actions-mobile .nav-login-link:hover {
    background: #2B2823;
    color: #FFFFFF;
    border-color: #A39B8D;
  }

  .nav-actions-mobile .btn {
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}


/* On Air Lamp & Status Chips */
.oa-lamp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--oa-well);
  border: 1px solid var(--oa-rule);
  color: var(--oa-lamp-off);
}

.oa-lamp-chip.live, .oa-lamp-chip.on-air {
  background: rgba(255, 90, 31, 0.12);
  border-color: rgba(255, 90, 31, 0.4);
  color: var(--oa-live);
}

.oa-lamp-chip.live .bulb, .oa-lamp-chip.on-air .bulb {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--oa-live);
  box-shadow: 0 0 6px var(--oa-live);
}

.oa-lamp-chip.beta {
  border-color: rgba(232, 179, 60, 0.4);
  color: var(--oa-warn);
}

.oa-lamp-chip.coming {
  border-color: rgba(122, 90, 248, 0.4);
  color: var(--roadmap-plum);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: #141118;
  color: #FFFFFF;
  padding: 100px 0 90px;
  overflow: hidden;
}

.hero-bg-art {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}

.hero-tagline-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 149, 0, 0.12);
  border: 1px solid rgba(255, 149, 0, 0.3);
  color: var(--flame-amber);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  margin-bottom: 24px;
  color: #FFFFFF;
}

.hero-rotating-word {
  color: var(--flame-amber);
  display: inline-block;
  border-bottom: 2px solid var(--flame-amber);
  padding-bottom: 2px;
}

.hero-lede {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
  max-width: 58ch;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-micro-text {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 14px;
}

/* Feature Pillar Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 106, 0, 0.4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 106, 0, 0.08);
  color: var(--ember);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature-card p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* Interactive Caption Demo (On Air Phone Reader) */
.caption-demo-wrap {
  background: var(--oa-panel);
  border: 1px solid var(--oa-rule);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  color: var(--oa-legend);
}

.oa-phone {
  background: var(--oa-cap-ground);
  border: 1px solid var(--oa-rule-2);
  border-radius: var(--radius-device);
  overflow: hidden;
  max-width: 340px;
  margin: 0 auto;
}

.oa-phone-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--oa-strip);
  border-bottom: 1px solid var(--oa-rule-2);
}

.oa-phone-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--oa-live);
  box-shadow: 0 0 8px var(--oa-live);
}

.oa-phone-bar .title {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oa-faint);
}

.oa-phone-caps {
  padding: 20px 18px 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.oa-phone-caps p {
  font-size: 0.95rem;
  color: var(--oa-cap-prev);
  line-height: 1.5;
}

.oa-phone-caps p.now {
  color: var(--oa-cap-now);
  font-size: 1.0625rem;
  font-weight: 600;
}

/* Master Comparison Table */
.compare-table-wrapper {
  overflow-x: auto;
  margin-top: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-card);
}

table.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

table.compare-table th, table.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

table.compare-table th {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--ink);
}

table.compare-table th.pentecost-col {
  background: rgba(255, 149, 0, 0.08);
  color: var(--ember);
}

table.compare-table td.pentecost-col {
  background: rgba(255, 149, 0, 0.03);
  font-weight: 600;
}

/* FAQ Accordion */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 840px;
  margin: 40px auto 0;
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--ink-2);
  font-size: 0.95rem;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Global CTA Section */
.global-cta-band {
  background: #141118;
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 60px 0;
  border: 1px solid rgba(255, 106, 0, 0.3);
}

.global-cta-band h2 {
  color: #FFFFFF;
  margin-bottom: 16px;
}

.global-cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 60ch;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  background: #0E0F10;
  color: #A0A3A8;
  padding: 70px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-col h4 {
  color: #EDEDEB;
  font-size: 0.95rem;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 16px;
}
