/* ============================================================
   StagSense Marketing Website — Stylesheet
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #242424;
  --bg-card: #2a2a2a;
  --accent: #C9A84C;
  --accent-dark: #a8863c;
  --accent-glow: rgba(201, 168, 76, 0.15);
  --text-primary: #F0EDE6;
  --text-white: #ffffff;
  --text-muted: #8A8A8A;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(201, 168, 76, 0.4);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
  --max-width: 1120px;
  --nav-height: 68px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================================
   Utility
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: rgba(240, 237, 230, 0.35);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  color: var(--text-white);
}

.btn-nav {
  background-color: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

.btn-nav:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* ============================================================
   Navigation
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: rgba(26, 26, 26, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  gap: 1rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover {
  color: var(--accent);
}

/* ============================================================
   Hero Section
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

/* Layered CSS gradient — cinematic dark atmosphere */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(60, 40, 10, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 0%, rgba(30, 25, 15, 0.3) 0%, transparent 50%),
    linear-gradient(160deg, #1a1a1a 0%, #1c1a14 40%, #1a1a1a 100%);
  z-index: 0;
}

/* Grain/noise texture via SVG filter */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.4;
  pointer-events: none;
}

/* Subtle horizontal rule lines */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 79px,
    rgba(255, 255, 255, 0.018) 80px
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 5rem 0 6rem;
}

.hero-content {
  flex: 1 1 0;
  min-width: 0;
}

.hero-image {
  flex: 0 0 auto;
  width: 60%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.6));
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background-color: var(--accent);
}

.hero-headline {
  margin-bottom: 1.25rem;
}

.hero-headline .accent-line {
  color: var(--accent);
}

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-primary);
  max-width: 580px;
  margin-bottom: 2.5rem;
  opacity: 0.85;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-white);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ============================================================
   Section Shared
   ============================================================ */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

/* ============================================================
   Features Section
   ============================================================ */
#features .features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background-color: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
  color: var(--accent);
  font-size: 1.35rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--text-white);
}

.feature-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   Pricing Section
   ============================================================ */
#pricing {
  background-color: var(--bg-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--border-accent);
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.1), 0 2px 2px rgba(0,0,0,0.3);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  color: #1a1a1a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-tier-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-bottom: 0.375rem;
}

.pricing-price .amount {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1;
}

.pricing-price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-price .strikethrough {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.7;
  margin-left: 0.25rem;
}

.pricing-intro-note {
  font-size: 0.8rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.pricing-divider {
  height: 1px;
  background-color: var(--border);
  margin: 1.5rem 0;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--text-primary);
}

.pricing-feature .check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  color: var(--accent);
  font-size: 0.7rem;
}

.pricing-trust {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ============================================================
   Download Section
   ============================================================ */
#download {
  text-align: center;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  min-width: 180px;
}

.store-btn:hover {
  border-color: var(--border-accent);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.12);
  transform: translateY(-2px);
}

.store-btn-icon {
  flex-shrink: 0;
  color: var(--text-white);
  font-size: 1.75rem;
}

.store-btn-text {
  text-align: left;
}

.store-btn-line1 {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.store-btn-line2 {
  display: block;
  font-size: 1rem;
  color: var(--text-white);
  font-weight: 600;
  line-height: 1;
}

.download-web-link {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.download-web-link a {
  color: var(--accent);
  font-weight: 500;
  transition: color var(--transition);
}

.download-web-link a:hover {
  color: var(--text-white);
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links a {
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-links .separator {
  color: var(--border);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ============================================================
   Privacy Policy Page
   ============================================================ */
.privacy-section {
  padding-top: calc(var(--nav-height) + 3rem);
}

.privacy-content {
  max-width: 760px;
  margin: 0 auto;
}

.privacy-block {
  margin-bottom: 2.75rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--border);
  overflow-wrap: break-word;
  word-break: break-word;
}

.privacy-block-last {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.privacy-block h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1.25rem;
}

.privacy-block h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 0.625rem;
}

.privacy-block p {
  color: var(--text-primary);
  font-size: 0.975rem;
  line-height: 1.75;
  margin-bottom: 0.875rem;
}

.privacy-block p:last-child {
  margin-bottom: 0;
}

.privacy-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.privacy-block a:hover {
  color: var(--text-white);
}

.privacy-list {
  list-style: none;
  margin: 0.75rem 0 0.875rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.975rem;
  color: var(--text-primary);
  line-height: 1.65;
  min-width: 0;
}

.privacy-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent);
  margin-top: 0.58em;
}

/* ============================================================
   FAQ Section
   ============================================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-section-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2.5rem 0 0;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border-accent);
}

.faq-section-heading:first-child {
  margin-top: 0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.375rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--text-white);
}

.faq-question[aria-expanded="true"] {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.8rem;
  transition: transform var(--transition), background-color var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
  background-color: var(--accent-glow);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.75;
  padding-bottom: 1.5rem;
}

/* ============================================================
   Responsive — mobile hero image
   ============================================================ */
@media (max-width: 767px) {
  .hero-inner {
    flex-direction: column;
    padding: 4rem 0 3rem;
  }

  .hero-image {
    width: 85%;
    max-width: 340px;
  }
}

/* ============================================================
   Responsive — 768px (tablet)
   ============================================================ */
@media (min-width: 768px) {
  #features .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .footer-tagline {
    order: 3;
    width: 100%;
    text-align: center;
    margin-top: -0.5rem;
  }

  .footer-links {
    justify-content: flex-end;
  }

  .footer-copy {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    gap: 3.5rem;
  }
}

/* ============================================================
   Responsive — 1024px (desktop)
   ============================================================ */
@media (min-width: 1024px) {
  .nav-links,
  .nav-actions {
    display: flex;
  }

  .nav-hamburger {
    display: none !important;
  }

  #features .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hide desktop nav on mobile */
@media (max-width: 1023px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}
