/* ============================================
   POPE-AI Static Website Stylesheet
   Design: "Night Service" (Cinematic Kitchen Noir)
   Version: 1.0
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pope-charcoal: #111827;
  --pope-navy: #0F172A;
  --pope-steel: #CBD5E1;
  --pope-white: #FFFFFF;
  --pope-green: #22C55E;
  --pope-amber: #F59E0B;
  --pope-red: #DC2626;
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'Fira Code', monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--pope-navy);
  color: var(--pope-steel);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--pope-white);
  line-height: 1.2;
}

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

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

ul, ol {
  list-style: none;
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--pope-white);
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(203, 213, 225, 0.7);
  transition: color 0.2s ease;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--pope-white);
}

.header-cta {
  display: none;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  background: var(--pope-green);
  color: var(--pope-navy);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s var(--ease-out);
  border: none;
  cursor: pointer;
}

.header-cta:hover {
  background: #16A34A;
}

.header-cta:active {
  transform: scale(0.97);
}

@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--pope-steel);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(203, 213, 225, 0.7);
  transition: color 0.2s ease;
}

.nav-mobile a:hover {
  color: var(--pope-white);
}

.nav-mobile .mobile-cta {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: var(--pope-green);
  color: var(--pope-navy);
  font-weight: 600;
}

/* === SECTIONS === */
.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section { padding: 7rem 0; }
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.85) 40%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 640px;
  padding: 4rem 0;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.chip--green {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--pope-green);
}

.chip--neutral {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--pope-steel);
}

.chip--amber {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--pope-amber);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pope-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hero Typography */
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 3.25rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3.75rem; }
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(203, 213, 225, 0.8);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}

/* CTAs */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  background: var(--pope-green);
  color: var(--pope-navy);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s var(--ease-out);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.2);
}

.btn-primary:hover {
  background: #16A34A;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  background: transparent;
  color: var(--pope-white);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:active {
  transform: scale(0.97);
}

/* Voice Command Card */
.voice-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(203, 213, 225, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  max-width: 420px;
}

.voice-card-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.voice-card-row:last-child {
  margin-bottom: 0;
}

.voice-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.voice-card-icon--user {
  background: rgba(255, 255, 255, 0.1);
}

.voice-card-icon--system {
  background: rgba(34, 197, 94, 0.1);
}

.voice-card-label {
  font-size: 0.75rem;
  color: rgba(203, 213, 225, 0.5);
  margin-bottom: 0.25rem;
}

.voice-card-text {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--pope-white);
}

.voice-card-text--green {
  color: var(--pope-green);
}

/* === GLASS PANEL === */
.glass-panel {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(203, 213, 225, 0.1);
  border-radius: 12px;
}

/* === GRID LAYOUTS === */
.grid-2 {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-4 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* === BENEFIT CARDS === */
.benefit-card {
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}

.benefit-card:hover {
  border-color: rgba(34, 197, 94, 0.2);
}

.benefit-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.8125rem;
  color: rgba(203, 213, 225, 0.5);
  line-height: 1.5;
}

/* === SECTION HEADINGS === */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-heading h2 { font-size: 2.25rem; }
}

.section-heading p {
  font-size: 1.125rem;
  color: rgba(203, 213, 225, 0.6);
  max-width: 640px;
  margin: 0 auto;
}

/* === BACKGROUNDS === */
.bg-navy { background-color: var(--pope-navy); }
.bg-charcoal { background-color: var(--pope-charcoal); }

/* Light bleed effect */
.light-bleed {
  position: relative;
}

.light-bleed::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* === STEPS === */
.step-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3rem;
  color: rgba(34, 197, 94, 0.1);
  position: absolute;
  top: -0.5rem;
  left: -0.25rem;
}

.step-item {
  position: relative;
  padding-top: 2.5rem;
}

.step-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-item p {
  font-size: 0.875rem;
  color: rgba(203, 213, 225, 0.6);
}

/* === FORMS === */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pope-steel);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--pope-navy);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--pope-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(203, 213, 225, 0.3);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-error {
  font-size: 0.75rem;
  color: var(--pope-red);
  margin-top: 0.25rem;
}

.form-textarea {
  resize: none;
  min-height: 120px;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--pope-charcoal);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

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

.footer h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(203, 213, 225, 0.6);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--pope-white);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.75rem;
  color: rgba(203, 213, 225, 0.4);
}

.footer-bottom a:hover {
  color: var(--pope-white);
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-green { color: var(--pope-green); }
.text-amber { color: var(--pope-amber); }
.text-muted { color: rgba(203, 213, 225, 0.6); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--pope-navy); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* === IMAGE STYLING === */
.img-rounded {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* === DISCLAIMER === */
.disclaimer {
  font-size: 0.875rem;
  color: rgba(203, 213, 225, 0.5);
  line-height: 1.6;
  border-left: 2px solid rgba(245, 158, 11, 0.3);
  padding-left: 1rem;
}
