/* ==========================================================================
   1. GLOBAL VARIABLES & BASE STYLES
   ========================================================================== */

:root {
  /* Crisp White Canvas & Light Card Surfaces */
  --bg-dark: #FFFFFF;          /* Pure white main canvas */
  --bg-subtle: #F8FAFC;        /* Soft cool off-white for secondary sections */
  --card-bg: #FFFFFF;          /* Card container background */
  --border-color: #E5E7EB;     /* Crisp slate border */
  
  /* Brand Accent: HubSpot-inspired Electric Orange */
  --primary-orange: #FF4800;   /* Studio Hero Orange */
  --orange-hover: #E03E00;     /* Calibrated hover state */
  
  /* Harmonized Accent Red (YouTube & Reddit) */
  --accent-red: #FF2400;
  --accent-red-hover: #E01E00;
  --accent-red-pill: rgba(255, 36, 0, 0.08);
  --accent-red-border: rgba(255, 36, 0, 0.22);
  
  /* High-Contrast Neutral Typography */
  --text-main: #18181B;        /* Deep charcoal black for crisp legibility */
  --text-muted: #52525B;       /* Refined slate grey for secondary copy */
  
  /* Component Accents */
  --pill-bg: rgba(255, 72, 0, 0.08); /* Soft orange badge tint */
  
  /* Radii */
  --border-radius-lg: 20px;
  --border-radius-md: 14px;
  --border-radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Accessible, crisp focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--primary-orange);
  outline-offset: 3px;
}

/* 
   Native System Typography Stack
   - macOS / iOS: SF Pro Display
   - Windows: Segoe UI
   - Android: Roboto
*/
h1, h2, h3, h4, .brand-font {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

a {
  color: var(--primary-orange);
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Screen reader utility for SEO & accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   2. SITE HEADER & NAVIGATION
   ========================================================================== */

header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.88);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-logo:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.logo-img {
  width: 120px;
  height: auto;
  display: block;
  border-radius: var(--border-radius-sm);
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover, 
nav a.active {
  color: var(--text-main);
}

.social-header-links {
  display: flex;
  gap: 0.6rem;
  margin-left: 1rem;
}

.icon-btn-header {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.icon-btn-header:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  box-shadow: 0 2px 6px rgba(255, 72, 0, 0.15);
}


/* ==========================================================================
   3. MAIN LAYOUT & HERO SECTION
   ========================================================================== */

main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.hero-wrapper {
  text-align: center;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  border-radius: var(--border-radius-lg);
  /* Light mode dot matrix: subtle graphite dots on white */
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  background-position: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background-color: var(--pill-bg);
  border: 1px solid rgba(255, 72, 0, 0.25);
  color: var(--primary-orange);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary-orange);
  box-shadow: 0 0 8px rgba(255, 72, 0, 0.6);
  display: inline-block;
}

.banner-card {
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(255, 72, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
  line-height: 0;
  background-color: #FFFFFF;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-lg);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-primary-orange {
  background-color: var(--primary-orange);
  color: #FFFFFF;
  padding: 0.82rem 1.8rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(255, 72, 0, 0.28);
  transition: all 0.2s ease;
}

.btn-primary-orange:hover {
  background-color: var(--orange-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 72, 0, 0.35);
}

.btn-dark-secondary {
  background-color: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.82rem 1.8rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn-dark-secondary:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


/* ==========================================================================
   4. SECTION DIVIDERS & HEADERS
   ========================================================================== */

section[id] {
  scroll-margin-top: 5.5rem;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  width: 100%;
  margin: 3.5rem 0 2.5rem 0;
  opacity: 0.9;
}

.section-header-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.section-tag {
  color: var(--primary-orange);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.section-header-block h2 {
  font-size: 2rem;
  color: var(--text-main);
}

.section-desc {
  color: var(--text-muted);
  max-width: 580px;
  font-size: 0.95rem;
  text-align: right;
}


/* ==========================================================================
   5. PORTFOLIO & FULL-BLEED PROJECT CARDS (LIGHT THEME)
   ========================================================================== */

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  position: relative;
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.03);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--border-color);
  pointer-events: none;
  z-index: 5;
  transition: border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(255, 72, 0, 0.06);
}

.project-card:hover::after {
  border-color: rgba(255, 72, 0, 0.45);
}

/* Light Theme Preview Area: Clean off-white pearl with subtle orange center glow */
.card-preview-area {
  position: relative;
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(ellipse at center, rgba(255, 72, 0, 0.09) 0%, #F8FAFC 70%);
  background-color: #F8FAFC;
}

.card-preview-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  pointer-events: none;
}

/* Ceramic White Squircle App Platter */
.preview-icon-platter {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover .preview-icon-platter {
  transform: translateY(-2px);
  border-color: rgba(255, 72, 0, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 0 20px rgba(255, 72, 0, 0.15);
}

.status-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 72, 0, 0.10);
  border: 1px solid rgba(255, 72, 0, 0.25);
  color: var(--primary-orange);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: 12px;
  text-transform: uppercase;
  z-index: 3;
}

.status-pill.planned {
  background: #FFFFFF;
  border-color: var(--border-color);
  color: var(--text-muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
  background-color: #FFFFFF;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.card-info h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.card-info p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.card-footer-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.card-footer-link a {
  color: var(--primary-orange);
  font-weight: 700;
}

.card-footer-link a:hover {
  text-decoration: underline;
}

.card-link-placeholder {
  color: var(--primary-orange);
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.9;
  user-select: none;
}


/* ==========================================================================
   6. COMMUNITY SECTION
   ========================================================================== */

.community-section {
  text-align: center;
  padding: 1rem 0;
}

.community-section h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.community-subtitle {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: 0.98rem;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.community-card {
  position: relative;
  background-color: #FFFFFF;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 1.4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.03);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.community-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--border-color);
  pointer-events: none;
  transition: border-color 0.2s ease;
}

.community-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.community-card:hover::after {
  border-color: rgba(255, 36, 0, 0.35);
}

.community-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.community-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.community-card .handle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.community-card p {
  color: var(--text-muted);
  font-size: 0.90rem;
  margin-bottom: 1.8rem;
  line-height: 1.5;
  flex-grow: 1;
  max-width: 100%;
}

.community-card.youtube .community-icon,
.community-card.reddit .community-icon {
  background-color: var(--accent-red-pill);
  border: 1px solid var(--accent-red-border);
  color: var(--accent-red);
}

.text-link-red,
.text-link-reddit {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.text-link-red:hover,
.text-link-reddit:hover {
  color: var(--accent-red-hover);
  opacity: 0.95;
  text-decoration: underline;
}


/* ==========================================================================
   7. LEGAL & SUPPORT PAGES
   ========================================================================== */

.policy-page-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.policy-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.policy-card h1 {
  font-size: 2.8rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.policy-effective {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.policy-intro {
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.policy-section {
  margin-bottom: 2.2rem;
}

.policy-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.policy-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.policy-card a {
  color: var(--primary-orange);
  text-decoration: underline;
}

.support-page-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.support-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.support-hero h1 {
  font-size: 3rem;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0.6rem;
  color: var(--text-main);
}

.support-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.support-card-highlight {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.support-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 72, 0, 0.08);
  border: 1px solid rgba(255, 72, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-orange);
  margin-bottom: 1.2rem;
}

.support-card-highlight h2 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.support-card-highlight p {
  color: var(--text-muted);
  max-width: 540px;
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.faq-card-container {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.faq-card-container h2 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-item h3 {
  color: var(--primary-orange);
  font-size: 1.1rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item a {
  color: var(--primary-orange);
  text-decoration: underline;
}


/* ==========================================================================
   8. FOOTER (HUBSPOT CONTRAST ANCHOR FOOTER)
   ========================================================================== */

footer {
  border-top: 1px solid #2B2B2B;
  background-color: #1F1F1F;
  padding: 2.5rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Light high-contrast text for the dark anchor footer */
.footer-nav a {
  color: #A1A1AA;
  font-size: 0.85rem;
  font-weight: 600;
}

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

.footer-social-icons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.icon-btn-footer {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A1A1AA;
  transition: color 0.2s ease;
}

.icon-btn-footer:hover {
  color: #FFFFFF;
}


/* ==========================================================================
   9. MEDIA QUERIES (MOBILE RESPONSIVENESS)
   ========================================================================== */

@media (max-width: 768px) {
  .section-header-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .section-desc {
    text-align: left;
    max-width: 100%;
  }
  
  .policy-card {
    padding: 2rem 1.5rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}