/* =============================================
   AUTOFLOW — style.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface2: #1a1a24;
  --accent: #00e5a0;
  --accent2: #7c5cfc;
  --accent3: #ff6b35;
  --text: #f0f0f8;
  --muted: #7a7a96;
  --border: rgba(255,255,255,0.07);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* NOISE TEXTURE */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

h1, h2, h3, h4 { font-family: 'Syne', sans-serif; }

/* =============================================
   NAV
   ============================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

nav.scrolled {
  background: rgba(10,10,15,0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-link.nav-cta {
  background: rgba(0,229,160,0.12);
  border: 1px solid rgba(0,229,160,0.3);
  color: var(--accent);
  margin-left: 8px;
}

.nav-link.nav-cta:hover {
  background: rgba(0,229,160,0.2);
  color: var(--accent);
}
.nav-link.nav-login {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--muted);
  margin-left: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.nav-link.nav-login:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 210;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,252,0.15) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}

.hero-glow2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,160,0.1) 0%, transparent 70%);
  top: 30%; right: 15%;
  pointer-events: none;
  animation: breathe 8s ease-in-out infinite reverse;
}

@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,92,252,0.12);
  border: 1px solid rgba(124,92,252,0.3);
  color: #a78bfa;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease forwards;
}

.tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -3px;
  margin-bottom: 28px;
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero h1 .line2 {
  display: block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 20px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 48px;
  font-weight: 300;
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-sub strong { color: var(--text); font-weight: 500; }

.cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.3s both;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  font-family: 'Syne', sans-serif;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: -0.3px;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,229,160,0.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 15px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.7s ease 0.4s both;
}

.stat-item { text-align: center; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  min-width: 80px;
  display: inline-block;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 100px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
  font-weight: 300;
}

/* =============================================
   PROBLEMA
   ============================================= */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 0;
  background: var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.problem-card {
  background: var(--surface);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.problem-card:hover { background: var(--surface2); }
.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.problem-card:hover::before { opacity: 1; }

.problem-icon { font-size: 32px; margin-bottom: 20px; display: block; }
.problem-card h3 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 12px; letter-spacing: -0.5px;
}
.problem-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* =============================================
   SOLUÇÃO
   ============================================= */
.solution-wrapper {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.solution-header {
  padding: 60px;
  background: linear-gradient(135deg, rgba(124,92,252,0.1), rgba(0,229,160,0.05));
  border-bottom: 1px solid var(--border);
}
.solution-header h3 {
  font-size: 24px; font-weight: 700;
  letter-spacing: -1px; margin-bottom: 10px;
}
.solution-header p { color: var(--muted); font-size: 15px; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.feature-item {
  padding: 40px 50px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-item:nth-child(even) { border-right: none; }
.feature-item:nth-last-child(-n+2) { border-bottom: none; }
.feature-item:hover { background: rgba(124,92,252,0.05); }

.feature-num {
  font-family: 'Syne', sans-serif;
  font-size: 48px; font-weight: 800;
  color: rgba(255,255,255,0.04);
  position: absolute;
  top: 20px; right: 30px;
  line-height: 1; letter-spacing: -2px;
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.fi-green  { background: rgba(0,229,160,0.1); }
.fi-purple { background: rgba(124,92,252,0.1); }
.fi-orange { background: rgba(255,107,53,0.1); }
.fi-blue   { background: rgba(56,189,248,0.1); }

.feature-item h3 {
  font-size: 19px; font-weight: 700;
  margin-bottom: 10px; letter-spacing: -0.5px;
}
.feature-item p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* =============================================
   COMO FUNCIONA
   ============================================= */
.steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 36px 50px;
  background: var(--surface);
  border-radius: 4px;
  transition: background 0.3s;
  position: relative;
}
.step:first-child { border-radius: 20px 20px 4px 4px; }
.step:last-child  { border-radius: 4px 4px 20px 20px; }
.step:hover { background: var(--surface2); }

.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 52px; font-weight: 800;
  color: rgba(255,255,255,0.06);
  line-height: 1; letter-spacing: -2px;
}

.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.5px; }
.step p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

.step-badge {
  background: rgba(0,229,160,0.08);
  border: 1px solid rgba(0,229,160,0.2);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* =============================================
   MERCADO
   ============================================= */
.market-section {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 70px;
  margin: 0 60px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.market-title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.market-desc { color: var(--muted); font-size: 16px; line-height: 1.6; font-weight: 300; }

.market-mrr { margin-top: 32px; }
.market-mrr-label { font-family: 'Syne', sans-serif; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.market-mrr-value {
  font-family: 'Syne', sans-serif;
  font-size: 38px; font-weight: 800;
  letter-spacing: -2px;
  color: var(--accent);
}
.market-mrr-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

.market-stats { display: flex; flex-direction: column; gap: 32px; }
.market-bar-wrap { flex: 1; }
.market-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}
.market-bar-label span:first-child { color: var(--muted); }
.market-bar-label span:last-child {
  font-family: 'Syne', sans-serif;
  font-weight: 700; color: var(--text);
}
.market-bar {
  height: 6px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
}
.market-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   PRICING — toggle
   ============================================= */
.billing-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.billing-label {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.discount-badge {
  background: rgba(0,229,160,0.15);
  border: 1px solid rgba(0,229,160,0.3);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.toggle-btn {
  width: 44px; height: 24px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
}
.toggle-btn[aria-checked="true"] {
  background: rgba(0,229,160,0.2);
  border-color: rgba(0,229,160,0.4);
}
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--muted);
  border-radius: 50%;
  transition: transform 0.3s, background 0.3s;
}
.toggle-btn[aria-checked="true"] .toggle-thumb {
  transform: translateX(20px);
  background: var(--accent);
}

/* PRICING GRID */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 60px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); }
.plan.featured {
  background: linear-gradient(135deg, rgba(124,92,252,0.15), rgba(0,229,160,0.08));
  border-color: rgba(124,92,252,0.4);
}
.plan.featured::before {
  content: 'MAIS POPULAR';
  position: absolute;
  top: 20px; right: 20px;
  background: var(--accent2);
  color: white;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 10px;
  border-radius: 6px;
}

.plan-name {
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.plan-price {
  font-family: 'Syne', sans-serif;
  font-size: 48px; font-weight: 800;
  letter-spacing: -2px; line-height: 1;
  margin-bottom: 6px;
}
.plan-price span { font-size: 18px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan-period { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.plan-divider { height: 1px; background: var(--border); margin-bottom: 28px; }

.plan-features { list-style: none; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px; color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.4;
}
.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700; font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-btn {
  display: block; width: 100%;
  text-align: center; margin-top: 32px;
  padding: 14px;
  border-radius: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; border: none;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.plan-btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.plan-btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.plan-btn-filled { background: var(--accent2); color: white; }
.plan-btn-filled:hover {
  background: #8b6dff;
  box-shadow: 0 8px 30px rgba(124,92,252,0.4);
  transform: translateY(-1px);
}

/* =============================================
   ROADMAP
   ============================================= */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.roadmap-phase {
  background: var(--surface);
  padding: 40px 36px;
  transition: background 0.3s;
}
.roadmap-phase:hover { background: var(--surface2); }

.phase-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.pt-green  { background: rgba(0,229,160,0.1);   color: var(--accent);  }
.pt-purple { background: rgba(124,92,252,0.1);  color: #a78bfa;        }
.pt-orange { background: rgba(255,107,53,0.1);  color: var(--accent3); }

.roadmap-phase h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.5px; }
.roadmap-phase .period { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.roadmap-phase ul { list-style: none; }
.roadmap-phase ul li {
  font-size: 14px; color: var(--muted);
  margin-bottom: 10px;
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}
.roadmap-phase ul li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--accent); font-size: 12px;
}
.roadmap-phase .milestone {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 800;
  letter-spacing: -1px;
}

/* =============================================
   FAQ
   ============================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--border);
}

.faq-item { background: var(--surface); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 36px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--surface2); }

.faq-icon {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
  line-height: 1;
}

.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 36px;
}
.faq-answer.open {
  max-height: 200px;
  padding: 0 36px 28px;
}
.faq-answer p { font-size: 15px; color: var(--muted); line-height: 1.7; }

/* =============================================
   CTA FINAL + CONTACT FORM
   ============================================= */
.final-cta {
  text-align: center;
  padding: 100px 40px 120px;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,160,0.07) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -3px;
  margin-bottom: 20px;
  line-height: 1.05;
}
.final-cta > p {
  font-size: 18px; color: var(--muted);
  margin-bottom: 56px;
  font-weight: 300;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CONTACT FORM */
.contact-form-wrap {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  z-index: 1;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.form-group:last-child { margin-bottom: 24px; }

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 11px;
}

input, select, textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

input::placeholder,
textarea::placeholder { color: var(--muted); }

input:focus, select:focus, textarea:focus {
  border-color: rgba(0,229,160,0.4);
  box-shadow: 0 0 0 3px rgba(0,229,160,0.08);
}

input.error, select.error, textarea.error {
  border-color: rgba(255,107,53,0.5);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.08);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7a96' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

select option { background: var(--surface2); }

textarea { resize: vertical; min-height: 110px; }

.field-error {
  font-size: 12px;
  color: var(--accent3);
  min-height: 16px;
  display: block;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  padding: 18px;
  font-size: 16px;
}

/* FORM SUCCESS */
.form-success {
  background: var(--surface);
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
}
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,229,160,0.15);
  color: var(--accent);
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.form-success h3 {
  font-size: 26px; font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.form-success p { color: var(--muted); margin-bottom: 32px; line-height: 1.6; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer p { font-size: 13px; color: var(--muted); }

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 300;
  width: 44px; height: 44px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: rgba(0,229,160,0.1);
  border-color: rgba(0,229,160,0.3);
  color: var(--accent);
  transform: translateY(-2px);
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.modal-close:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

.modal-header {
  padding: 40px 40px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-tag {
  display: inline-block;
  background: rgba(0,229,160,0.1);
  border: 1px solid rgba(0,229,160,0.25);
  color: var(--accent);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 6px;
  margin-bottom: 16px;
}
.modal-header h2 {
  font-size: 26px; font-weight: 800;
  letter-spacing: -1px; margin-bottom: 8px;
}
.modal-header p { font-size: 14px; color: var(--muted); }

/* DEMO CHAT */
.demo-chat { padding: 24px 40px; }
.chat-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 40px; height: 40px;
  background: rgba(124,92,252,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.chat-name { font-size: 15px; font-weight: 600; }
.chat-status { font-size: 12px; color: var(--accent); margin-top: 2px; }

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 80px;
  margin-bottom: 16px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: fadeUp 0.3s ease;
}
.chat-msg.bot {
  background: var(--surface2);
  border-radius: 4px 16px 16px 16px;
  align-self: flex-start;
  color: var(--text);
}
.chat-msg.user {
  background: rgba(124,92,252,0.2);
  border: 1px solid rgba(124,92,252,0.3);
  border-radius: 16px 4px 16px 16px;
  align-self: flex-end;
  color: var(--text);
}
.chat-msg.typing span {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--muted);
  border-radius: 50%;
  margin: 0 2px;
  animation: typing 1s infinite;
}
.chat-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-options {
  display: flex; flex-direction: column; gap: 8px;
}
.chat-option {
  background: rgba(124,92,252,0.08);
  border: 1px solid rgba(124,92,252,0.2);
  color: #a78bfa;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.chat-option:hover {
  background: rgba(124,92,252,0.15);
  border-color: rgba(124,92,252,0.4);
  transform: translateX(4px);
}

.modal-footer {
  padding: 24px 40px 36px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.modal-footer p { font-size: 13px; color: var(--muted); flex: 1; }
.modal-footer .btn-primary { white-space: nowrap; font-size: 14px; padding: 13px 24px; }

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  nav {
    padding: 0 24px;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 190;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link { width: 100%; padding: 12px 16px; font-size: 16px; }
  .nav-link.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; justify-content: center; display: flex; }

  .hamburger { display: flex; }

  .section { padding: 60px 24px; }
  .section-inner { padding: 0 24px 60px; }

  .problem-grid,
  .feature-list,
  .pricing-grid,
  .roadmap { grid-template-columns: 1fr; }

  .feature-item:nth-child(even) { border-right: 1px solid var(--border); }
  .feature-item { border-right: none !important; }

  .step { grid-template-columns: 60px 1fr; }
  .step-badge { display: none; }

  .market-section {
    grid-template-columns: 1fr;
    padding: 40px 28px;
    margin: 0 24px 60px;
    gap: 40px;
  }

  .hero-stats { flex-wrap: wrap; gap: 28px; justify-content: center; }

  footer {
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    text-align: center;
  }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }

  .modal-header,
  .demo-chat,
  .modal-footer { padding-left: 24px; padding-right: 24px; }

  .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .hero h1 { letter-spacing: -2px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .billing-toggle { flex-wrap: wrap; }
}