/* ============================================
   LocalLoop — Global Styles
   ============================================ */
:root {
  --bg: #0F0F1A;
  --bg-card: #161628;
  --bg-card-alt: #1E1E36;
  --accent: #F5A623;
  --accent-dim: rgba(245, 166, 35, 0.12);
  --accent-glow: rgba(245, 166, 35, 0.25);
  --text: #F0EEE8;
  --text-dim: rgba(240, 238, 232, 0.55);
  --text-muted: rgba(240, 238, 232, 0.35);
  --border: rgba(240, 238, 232, 0.08);
  --border-accent: rgba(245, 166, 35, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }

::selection { background: var(--accent); color: var(--bg); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240,238,232,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,238,232,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 70%);
  top: -100px; right: -50px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,0.05) 0%, transparent 70%);
  bottom: 0; left: 20%;
}

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

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat {
  padding: 0 24px;
}
.stat:first-child { padding-left: 0; }
.stat-number {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 140px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================
   CHAT SCENE
   ============================================ */
.chat-scene {
  position: relative;
}
.chat-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--border-accent);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border);
}
.chat-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}
.chat-title {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.chat-messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 380px;
}
.msg { display: flex; }
.msg.user-msg { justify-content: flex-end; }
.bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.bubble-bot {
  background: var(--bg-card-alt);
  color: var(--text-dim);
  border-bottom-left-radius: 4px;
}
.bubble-user {
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  border-bottom-right-radius: 4px;
}
.bubble-system {
  background: rgba(245,166,35,0.15);
  color: var(--accent);
  font-size: 11px;
  border-radius: 8px;
  border: 1px solid var(--border-accent);
}
.system-msg { justify-content: center; }

.ai-badge {
  position: absolute;
  bottom: -16px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(245,166,35,0.4);
}
.ai-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg);
  position: relative;
}
.ai-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  opacity: 0.5;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 56px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(22,22,40,0.4) 100%);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.services-grid .service-card:nth-child(4),
.services-grid .service-card:nth-child(5) {
  grid-column: span 1;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ============================================
   PROOF
   ============================================ */
.proof {
  padding: 100px 0;
}
.proof-header {
  max-width: 640px;
  margin-bottom: 56px;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 56px;
}
.proof-stat {
  background: var(--bg-card);
  padding: 32px 28px;
}
.proof-number {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.proof-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.proof-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.case-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 4px 10px;
  border-radius: 100px;
}
.case-result {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  font-style: italic;
  margin: 20px 0;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.case-metrics {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.metric-value {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--text);
  margin-bottom: 4px;
}
.metric-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   PROCESS
   ============================================ */
.process {
  padding: 100px 0;
  background: var(--bg-card);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.step {
  padding: 0 40px 0 0;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: calc(100% - 40px);
  height: 1px;
  background: linear-gradient(to right, var(--accent-dim), transparent);
  transform: translateX(100%);
  width: 60px;
}
.step-number {
  font-family: 'DM Serif Display', serif;
  font-size: 64px;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 16px;
}
.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.step-content p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
  padding: 100px 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  transition: border-color 0.2s;
}
.pricing-card:hover { border-color: var(--border-accent); }
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(245,166,35,0.15);
  position: relative;
}
.pricing-tier {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.pricing-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.price-amount {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  color: var(--text);
  line-height: 1;
}
.price-period {
  font-size: 14px;
  color: var(--text-muted);
}
.pricing-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}
.pricing-features svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ============================================
   MANIFESTO
   ============================================ */
.manifesto {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.manifesto-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(245,166,35,0.06) 0%, transparent 70%);
}
.manifesto-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-quote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 32px;
}
.manifesto-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 48px;
}
.manifesto-line {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: var(--text);
  display: block;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 64px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.footer-col span:not(.footer-col-head) {
  font-size: 13px;
  color: var(--text-muted);
  cursor: default;
}
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 48px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { gap: 32px; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero { padding: 64px 0 56px; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .stat { padding: 0; }
  .stat-divider { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; border-radius: 12px; }
  .proof-cases { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 32px; }
}