/* =============================================================================
   Cafezin — Landing Page Styles
   Paleta: dark warm brown (#1c1610) + teal accent (#4ecfb8)
   Fonts: Nunito (UI) + Vollkorn (headings)
   ============================================================================= */

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Cores (dark theme — igual ao app) */
  --bg:           #1c1610;
  --surface:      #231d15;
  --surface2:     #2c2519;
  --surface3:     #322b1e;
  --border:       #2c2519;
  --border2:      #3f3426;

  --text:         #cdb89f;
  --text-bright:  #dcc9ac;
  --text-muted:   #856e53;
  --text-dim:     #5e4d38;

  --accent:       #4ecfb8;
  --accent-rgb:   78, 207, 184;
  --accent-dim:   rgba(78, 207, 184, 0.15);
  --accent-glow:  rgba(78, 207, 184, 0.08);

  --yellow:       #dab26e;
  --red-dot:      #cf7b76;
  --green-dot:    #82cfa5;

  --shadow:       rgba(0, 0, 0, 0.45);

  /* Tipografia */
  --font-ui:    'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Vollkorn', Georgia, 'Times New Roman', serif;

  /* Espaço */
  --max-w: 1100px;
  --section-pad: 100px 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Typography helpers ───────────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.2;
  margin-bottom: 56px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 14px;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-download {
  background: var(--surface2);
  color: var(--text-bright);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 14px;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 175px;
  position: relative;
  overflow: hidden;
}
.btn-download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.btn-download:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.12);
}
.btn-download:hover::before {
  opacity: 1;
}
.btn-download:active {
  transform: translateY(0);
}

.btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.18s ease;
}
.btn-download:hover .btn-icon {
  opacity: 1;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.btn-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
}
.btn-main {
  font-size: 16px;
  font-weight: 700;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 22, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-bright);
  font-weight: 700;
  font-size: 18px;
}
.nav-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.nav-logo-name {
  font-family: var(--font-serif);
  font-weight: 700;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 24px 80px;
  text-align: center;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 32px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  max-width: 600px;
  margin: 0 auto 56px;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  line-height: 1.7;
}

/* Download group */
.download-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.download-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
}
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Hero decorative glows */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: rgba(var(--accent-rgb), 0.07);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-glow-2 {
  width: 300px;
  height: 300px;
  background: rgba(218, 178, 110, 0.06);
  bottom: 0;
  right: 10%;
}

/* ── App Mockup ───────────────────────────────────────────────────────────── */
.mockup-section {
  padding: 0 24px 80px;
  display: flex;
  justify-content: center;
}
.mockup-wrap {
  max-width: 900px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border2);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.08),
    0 40px 120px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(var(--accent-rgb), 0.06);
  background: var(--surface);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border2);
  user-select: none;
}
.titlebar-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.titlebar-dot.red    { background: var(--red-dot); }
.titlebar-dot.yellow { background: var(--yellow); }
.titlebar-dot.green  { background: var(--green-dot); }
.titlebar-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}

.mockup-body {
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  min-height: 320px;
}

.mockup-sidebar {
  background: var(--surface2);
  border-right: 1px solid var(--border);
  padding: 12px 0;
  font-size: 12px;
}
.mockup-sidebar-item {
  padding: 6px 16px;
  color: var(--text-muted);
  cursor: default;
  transition: background 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup-sidebar-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}
.mockup-sidebar-item.dim {
  color: var(--text-dim);
}

.mockup-editor {
  padding: 20px 24px;
  font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}
.mockup-line {
  min-height: 1.8em;
}
.mockup-line.heading {
  color: var(--text-bright);
  font-weight: 700;
  font-size: 14px;
}
.mockup-line.heading2 {
  color: var(--text-bright);
  font-weight: 600;
  font-size: 12px;
}
.mockup-line.ai-mark {
  background: rgba(var(--accent-rgb), 0.08);
  border-left: 2px solid rgba(var(--accent-rgb), 0.4);
  padding-left: 8px;
  margin-left: -10px;
  color: rgba(78, 207, 184, 0.85);
}
.mockup-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
  font-weight: 300;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.mockup-ai {
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}
.mockup-ai-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.ai-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.mockup-ai-bubble {
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.5;
  font-size: 11px;
}
.mockup-ai-bubble.user {
  background: var(--surface2);
  color: var(--text);
  align-self: flex-end;
  margin-left: 12px;
}
.mockup-ai-bubble.assistant {
  background: var(--accent-dim);
  color: var(--text-bright);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

/* ── Features ─────────────────────────────────────────────────────────────── */
.features {
  padding: var(--section-pad);
  border-top: 1px solid var(--border);
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.04), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.feature-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 20px rgba(var(--accent-rgb), 0.06);
}
.feature-card:hover::before {
  opacity: 1;
}

.feature-card.featured {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: linear-gradient(135deg, #231d15, #1f2820);
}

.feature-badge {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 16px;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}
.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 10px;
  font-family: var(--font-ui);
}
.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── For Whom ─────────────────────────────────────────────────────────────── */
.for-whom {
  padding: var(--section-pad);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.personas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.persona-card {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.2s ease;
}
.persona-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-2px);
}
.persona-emoji {
  font-size: 32px;
  display: block;
  margin-bottom: 14px;
}
.persona-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 10px;
}
.persona-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── CTA Section ─────────────────────────────────────────────────────────── */
.cta-section {
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-glow {
  position: absolute;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 24px rgba(var(--accent-rgb), 0.15);
}
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 16px;
}
.cta-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.7;
}
.cta-buttons {
  justify-content: center;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 15px;
}
.footer-logo-img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  opacity: 0.7;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .mockup-body {
    grid-template-columns: 1fr;
  }
  .mockup-sidebar {
    display: none;
  }
  .mockup-ai {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .btn-download {
    min-width: 140px;
    padding: 12px 16px;
  }
  .btn-main {
    font-size: 14px;
  }

  .download-buttons {
    gap: 10px;
  }

  :root {
    --section-pad: 64px 20px;
  }
}

@media (max-width: 480px) {
  .download-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 260px;
  }
  .btn-download {
    width: 100%;
    min-width: unset;
  }
}
