/* =============================================
   NakaLoop Landing Page — Custom Styles
   ============================================= */

/* --- Variables --- */
:root {
  --bg: #FDFAF5;
  --bg-alt: #F4EFE6;
  --fg: #1A1714;
  --fg-muted: #6B6560;
  --accent: #C95D0A;
  --accent-hover: #A84D08;
  --accent-light: #FDF0E6;
  --surface: #FFFFFF;
  --border: #E8E0D6;
  --ink: #1A1714;
  --ink-2: #3D3830;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 245, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* --- Section Shared --- */
section { padding: 80px 24px; }

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 24px 80px;
  border-bottom: 1px solid var(--border);
}

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

.hero-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 93, 10, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.1); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 440px;
}

/* Agent Card */
.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 8px 32px rgba(26, 23, 20, 0.08), 0 1px 4px rgba(26, 23, 20, 0.04);
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.agent-avatar {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
}

.agent-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
}

.agent-status {
  font-size: 0.75rem;
  color: #22C55E;
  font-weight: 500;
}

.agent-pulse {
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  animation: blink 1.5s infinite;
}

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

.agent-messages { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.msg {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 85%;
  position: relative;
}

.msg span { display: block; }

.msg time { display: block; font-size: 0.68rem; margin-top: 4px; opacity: 0.6; }

.incoming { background: var(--bg-alt); color: var(--ink); }

.outgoing {
  background: var(--accent);
  color: white;
  margin-left: auto;
}

.outgoing time { color: rgba(255,255,255,0.7); }

.agent-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.action-chip {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-alt);
  color: var(--fg-muted);
}

.action-chip.positive { background: #DCFCE7; color: #16A34A; }

/* --- Problem --- */
.problem { background: var(--bg-alt); }

.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.problem-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.problem-body {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.problem-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label { font-size: 0.75rem; color: var(--fg-muted); }

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(26,23,20,0.05);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 700;
}

blockquote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 12px;
}

cite { font-size: 0.8rem; color: var(--fg-muted); font-style: normal; }

/* Cost Compare */
.cost-compare {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26,23,20,0.05);
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.cost-row:last-child { border-bottom: none; }

.cost-label { font-size: 0.85rem; color: var(--fg-muted); }

.cost-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.cost-period { font-size: 0.75rem; font-weight: 500; color: var(--fg-muted); }

.cost-row.highlight { background: var(--accent); }
.cost-row.highlight .cost-label { color: rgba(255,255,255,0.8); font-size: 0.85rem; }
.cost-row.highlight .cost-value { color: white; }
.cost-row.highlight .cost-period { color: rgba(255,255,255,0.7); }

/* --- Features --- */
.features { background: var(--bg); }

.features-inner { max-width: 1100px; margin: 0 auto; }

.features-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 52px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(26,23,20,0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* --- How --- */
.how { background: var(--bg-alt); }

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.how-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 52px;
}

.how-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  justify-content: center;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  flex: 1;
  max-width: 300px;
  text-align: left;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.3;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.step-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
}

.step-content p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.65; }

.step-arrow {
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: var(--border);
}

/* --- Closing --- */
.closing {
  background: var(--ink);
  color: white;
}

.closing-inner { max-width: 760px; margin: 0 auto; text-align: center; }

.closing-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(201, 93, 10, 0.4);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.closing-body {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.footer-tagline { font-size: 0.8rem; color: var(--fg-muted); }

.footer-meta { font-size: 0.75rem; color: var(--fg-muted); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .problem-inner { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .how-steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 12px 0; }
}

@media (max-width: 600px) {
  section { padding: 60px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .problem-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 20px; align-items: flex-start; }
}