/* --- GLOBAL VARIABLES & RESET --- */
:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --primary-blue: #0ea5e9;
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- STICKY NAVIGATION --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-container img {
  height: 32px;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 1.05rem;
  transition: 0.3s;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-blue);
}

.btn-try,
.btn-launch {
  background: var(--primary-blue);
  color: #ffffff !important;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.btn-try:hover,
.btn-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.5);
}

/* --- HEADERS & CONTAINERS --- */
header,
.pricing-header {
  padding: 160px 5% 80px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Specific container for Security/Doc pages */
.container {
  max-width: 900px;
  margin: 160px auto 100px;
  padding: 0 5%;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  /* Default margin for the Hero */
}

/* --- OVERRIDES FOR DOCS/SECURITY PAGES --- */
.container h1 {
  text-align: center;
  margin-bottom: 1rem;
  /* Slightly tighter margin for the doc header */
}

/* Keeps the introductory paragraph centered */
.intro {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-dim);
}

.hero-img-container {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-img-container img {
  width: 100%;
  display: block;
}

/* --- ZIG-ZAG FEATURE SECTIONS (INDEX) --- */
.section {
  padding: 80px 10%;
  display: flex;
  align-items: center;
  gap: 80px;
}

.section.reverse {
  flex-direction: row-reverse;
}

.section-text {
  flex: 1;
}

.section-visual {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.section-visual img {
  width: 100%;
  display: block;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.feature-item {
  margin-bottom: 1.5rem;
}

.feature-item strong {
  display: block;
  color: var(--primary-blue);
  margin-bottom: 0.25rem;
}

/* --- PRIVACY BLOCK (INDEX) --- */
.privacy-block {
  padding: 100px 10%;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #1e293b 100%);
  text-align: center;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
  text-align: left;
}

/* --- PRICING CARDS --- */
.plans-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 5%;
}

.plan-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
}

.plan-card.pro-featured {
  border-color: var(--primary-blue);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.15);
  transform: scale(1.05);
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 400;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.feature-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.feature-list li::before {
  content: "✓";
  color: var(--primary-blue);
  font-weight: bold;
}

.upgrade-panel {
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 40px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 16px;
  border: 1px solid var(--primary-blue);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(14, 165, 233, 0.1);
  text-align: center;
}

.upgrade-panel h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: #fff;
}

.upgrade-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
}

.step-text strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .upgrade-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-note {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 0 5%;
}

/* --- SECURITY PAGE SPECIFICS --- */
.security-section {
  margin-bottom: 4rem;
  padding: 40px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  text-align: left;
}

.security-section h2 {
  font-size: 2rem;
  color: var(--primary-blue);
}

.security-section ul {
  margin-bottom: 1.5rem;
  padding-left: 25px;
  list-style: disc;
}

.security-section li {
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

/* --- LEGAL & DOCS SPECIFICS (CONSERVATIVE) --- */
.legal-section {
  margin-bottom: 3rem;
  text-align: left;
}

.legal-section h2 {
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal-section p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-section ul {
  margin-bottom: 1.5rem;
  padding-left: 20px;
  list-style: disc;
}

.legal-section li {
  color: var(--text-dim);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.legal-section a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.legal-section a:visited {
  color: var(--primary-blue);
}

.legal-section a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.modal-crop,
.modal-callout img {
  display: block;
  width: 100%;
  max-width: 600px;
  /* Limits the width so it looks like a modal */
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--glass-border);
}

/* --- FOOTER --- */
footer {
  padding: 40px 5%;
  text-align: center;
  color: var(--text-dim);
  border-top: 1px solid var(--glass-border);
  font-size: 0.8rem;
}

footer a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

footer a:visited {
  color: var(--primary-blue);
}

footer a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: -4px;
  font-weight: 400;
}

/* --- EXAMPLES PAGE & LIGHTBOX --- */
.examples-container {
  max-width: 1400px;
  margin: 0 auto 100px;
  padding: 0 5%;
}

.example-card {
  margin-bottom: 4rem;
  padding: 40px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  text-align: left;
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 40px;
  align-items: start;
}

.example-card h2 {
  grid-column: span 2;
  font-size: 2.25rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.example-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.example-meta strong {
  display: block;
  color: var(--text-main);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.example-meta .meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.example-meta .meta-item {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-blue);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.prompt-box {
  background: rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--primary-blue);
  padding: 20px;
  border-radius: 0 8px 8px 0;
}

.prompt-box strong {
  display: block;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.prompt-text {
  font-family: 'Courier New', Courier, monospace;
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.4;
}

.steps-box {
  background: rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--primary-blue);
  padding: 20px;
  border-radius: 0 8px 8px 0;
}

.steps-box strong {
  display: block;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.step-list {
  list-style: decimal inside;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}

.step-list li {
  margin-bottom: 8px;
}

.step-img {
  display: inline-block;
  vertical-align: middle;
  height: 28px;
  margin-top: -4px;
  margin-left: 8px;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
}

.example-visual {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.example-visual img {
  width: 100%;
  display: block;
}

.example-description {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Lightbox Overlay */
#lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

#lightbox-overlay.active {
  display: flex;
}

#lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--glass-border);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .example-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
  }
  .example-card h2 {
    grid-column: span 1;
    font-size: 1.75rem;
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 1000px) {
  h1 {
    font-size: 2.5rem;
  }

  .section,
  .section.reverse {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .plans-container {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-bottom: 60px;
  }

  .plan-card.pro-featured {
    transform: scale(1);
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

/* --- MOBILE ORCHESTRATION (Hamburger & Typography) --- */
.menu-toggle {
  display: none;
}

.hamburger-btn {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  z-index: 1002;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

@media (max-width: 768px) {
  nav {
    padding: 0.8rem 5%;
  }

  .hamburger-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 65px; /* Adjust based on Nav height */
    right: -100%;
    width: 280px;
    height: calc(100vh - 65px);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: flex-start;
    border-left: 1px solid var(--glass-border);
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links a {
    font-size: 1.1rem;
    width: 100%;
  }

  .nav-links .btn-try {
    text-align: center;
    margin-top: 1rem;
  }

  /* Hamburger Toggle Display */
  .menu-toggle:checked ~ .nav-links {
    right: 0;
  }

  /* Transformation for X Icon */
  .menu-toggle:checked ~ .hamburger-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle:checked ~ .hamburger-btn span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle:checked ~ .hamburger-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Responsive Typography & Spacing */
  h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.8rem;
  }

  header, .pricing-header {
    padding: 120px 5% 40px;
  }

  .container {
    margin-top: 100px;
    padding: 0 5%;
  }

  .intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .section {
    padding: 40px 5%;
    gap: 30px;
  }

  .example-card {
    padding: 25px;
  }

  .example-card h2 {
    font-size: 1.6rem;
  }

  .pricing-header h1 {
    font-size: 2rem;
  }

  .plans-container {
    padding: 0;
  }

  .plan-card {
    padding: 30px 20px;
  }
}

/* --- SCENARIO MULTI-LINE HEADERS --- */
.scenario-header {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
  line-height: 1.2 !important;
}

.scenario-label {
  font-size: 0.85rem !important;
  color: #0c82ba !important; /* Slightly darker than #0ea5e9 */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.scenario-content {
  font-size: 1.8rem !important; /* ~80% of 2.25rem */
  color: var(--primary-blue);
  font-weight: 700;
}

@media (max-width: 900px) {
  .scenario-content {
    font-size: 1.5rem !important;
  }
}
