/* ─── RESET & VARIABLES ──────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --forest:   #1a3a2a;
  --leaf:     #2d6a4f;
  --lime:     #74c69d;
  --mint:     #b7e4c7;
  --cream:    #f8f5ef;
  --gold:     #e9c46a;
  --rust:     #e76f51;
  --ink:      #1b1b1b;
  --muted:    #6b7c6e;
  --white:    #ffffff;
  --chat-bg:  #f0faf5;
}

html  { scroll-behavior: smooth; }
body  { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--ink); overflow-x: hidden; }

/* ─── ANIMATIONS ─────────────────────────────────────────────────────────────── */
@keyframes pulse      { 0%,100%{ opacity:1; transform:scale(1) }   50%{ opacity:0.5; transform:scale(1.3) } }
@keyframes fadeUp     { from{ opacity:0; transform:translateY(20px) } to{ opacity:1; transform:translateY(0) } }
@keyframes fadeRight  { from{ opacity:0; transform:translateX(30px) } to{ opacity:1; transform:translateX(0) } }
@keyframes msgIn      { from{ opacity:0; transform:translateY(8px)  } to{ opacity:1; transform:translateY(0) } }
@keyframes typingAnim { 0%,60%,100%{ transform:translateY(0);  opacity:0.4 } 30%{ transform:translateY(-5px); opacity:1 } }
@keyframes micPulse   { 0%,100%{ box-shadow:0 0 0 0   rgba(231,111,81,0.4) } 50%{ box-shadow:0 0 0 8px rgba(231,111,81,0) } }

/* ─── NAV ────────────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(248,245,239,0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45,106,79,0.12);
}
.nav-logo           { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--forest); letter-spacing: -0.5px; }
.nav-logo span      { color: var(--lime); }
.nav-links          { display: flex; gap: 2rem; list-style: none; }
.nav-links a        { text-decoration: none; color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover  { color: var(--forest); }
.nav-cta            { background: var(--forest); color: var(--white); border: none; padding: 0.6rem 1.4rem; border-radius: 100px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.nav-cta:hover      { background: var(--leaf); transform: translateY(-1px); }

/* ─── HERO ───────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  align-items: center; padding: 8rem 4rem 4rem;
  background: var(--cream); position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -10%; right: -5%; width: 60%; height: 120%;
  background: radial-gradient(ellipse at center, rgba(116,198,157,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge         { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(45,106,79,0.1); border: 1px solid rgba(45,106,79,0.2); padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600; color: var(--leaf); margin-bottom: 1.5rem; animation: fadeUp 0.6s ease both; }
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--lime); border-radius: 50%; animation: pulse 2s infinite; }
h1                  { font-family: 'Sora', sans-serif; font-size: clamp(2.5rem,5vw,4rem); font-weight: 800; line-height: 1.1; letter-spacing: -1px; color: var(--forest); animation: fadeUp 0.6s 0.1s ease both; opacity: 0; }
h1 .accent          { color: var(--leaf); position: relative; }
h1 .accent::after   { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 3px; background: var(--gold); border-radius: 2px; }
.hero-sub           { font-size: 1.1rem; color: var(--muted); line-height: 1.7; margin: 1.5rem 0 2rem; max-width: 480px; animation: fadeUp 0.6s 0.2s ease both; opacity: 0; }
.hero-btns          { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp 0.6s 0.3s ease both; opacity: 0; }
.hero-stats         { display: flex; gap: 2rem; margin-top: 3rem; animation: fadeUp 0.6s 0.4s ease both; opacity: 0; }
.hero-visual        { display: flex; justify-content: center; align-items: center; animation: fadeRight 0.8s 0.2s ease both; opacity: 0; }
.stat               { text-align: center; }
.stat-n             { font-family: 'Sora', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--forest); }
.stat-l             { font-size: 0.8rem; color: var(--muted); font-weight: 500; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn-primary              { background: var(--forest); color: var(--white); border: none; padding: 0.9rem 2rem; border-radius: 100px; font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.25s; }
.btn-primary:hover        { background: var(--leaf); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,106,79,0.3); }
.btn-secondary            { background: transparent; color: var(--forest); border: 2px solid var(--forest); padding: 0.9rem 2rem; border-radius: 100px; font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.25s; }
.btn-secondary:hover      { background: var(--forest); color: var(--white); }

/* ─── APP MOCKUP ─────────────────────────────────────────────────────────────── */
.app-mockup         { background: var(--white); border-radius: 24px; padding: 1.5rem; box-shadow: 0 32px 80px rgba(26,58,42,0.15); width: 100%; max-width: 420px; border: 1px solid rgba(45,106,79,0.1); }
.app-bar            { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.dot                { width: 10px; height: 10px; border-radius: 50%; }
.dot-r              { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.app-header         { background: var(--forest); color: var(--white); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; }
.app-header-title   { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1rem; }
.app-header-sub     { font-size: 0.75rem; opacity: 0.7; }
.app-tag            { background: var(--gold); color: var(--forest); font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 100px; }
.app-row            { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
.app-card           { background: var(--cream); border-radius: 12px; padding: 0.9rem; border: 1px solid rgba(45,106,79,0.08); }
.app-card-icon      { font-size: 1.2rem; margin-bottom: 0.4rem; }
.app-card-label     { font-size: 0.7rem; color: var(--muted); font-weight: 500; }
.app-card-value     { font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--forest); }
.app-list-item      { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(45,106,79,0.06); }
.app-list-item:last-child { border: none; }
.avatar             { width: 32px; height: 32px; border-radius: 50%; background: var(--mint); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--forest); flex-shrink: 0; }
.app-name           { font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.app-role           { font-size: 0.7rem; color: var(--muted); }
.badge-paid         { background: #e8f5e9; color: #2e7d32; font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; margin-left: auto; }
.badge-pend         { background: #fff3e0; color: #e65100; font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; margin-left: auto; }

/* ─── SECTIONS (shared) ──────────────────────────────────────────────────────── */
.section          { padding: 6rem 4rem; }
.section-label    { font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--leaf); margin-bottom: 1rem; }
.section-title    { font-family: 'Sora', sans-serif; font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 800; color: var(--forest); line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 1rem; }
.section-sub      { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 560px; }

/* ─── FEATURES ───────────────────────────────────────────────────────────────── */
.features-grid          { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.feature-card           { background: var(--white); border-radius: 20px; padding: 1.8rem; border: 1px solid rgba(45,106,79,0.1); transition: all 0.3s; cursor: default; }
.feature-card:hover     { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26,58,42,0.12); border-color: rgba(45,106,79,0.25); }
.feature-icon           { width: 48px; height: 48px; background: rgba(116,198,157,0.2); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1.2rem; }
.feature-title          { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1rem; color: var(--forest); margin-bottom: 0.5rem; }
.feature-desc           { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ─── PRICING ────────────────────────────────────────────────────────────────── */
.pricing-section                   { background: var(--forest); padding: 6rem 4rem; position: relative; overflow: hidden; }
.pricing-section::before           { content: ''; position: absolute; top: -40%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(116,198,157,0.15) 0%, transparent 60%); }
.pricing-section .section-label    { color: var(--lime); }
.pricing-section .section-title    { color: var(--white); }
.pricing-section .section-sub      { color: rgba(255,255,255,0.6); }
.pricing-grid      { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; max-width: 800px; }
.plan-card         { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 2rem; position: relative; }
.plan-card.featured{ background: var(--leaf); border-color: var(--lime); }
.plan-badge        { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--forest); font-size: 0.7rem; font-weight: 800; padding: 4px 14px; border-radius: 100px; white-space: nowrap; }
.plan-name         { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1rem; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.plan-price        { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2.5rem; color: var(--white); line-height: 1; }
.plan-period       { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 0.3rem; margin-bottom: 1.5rem; }
.plan-feature      { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: rgba(255,255,255,0.8); margin-bottom: 0.7rem; }
.plan-check        { color: var(--lime); font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.plan-btn          { width: 100%; background: var(--white); color: var(--forest); border: none; padding: 0.8rem; border-radius: 100px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.9rem; cursor: pointer; margin-top: 1.5rem; transition: all 0.2s; }
.plan-btn:hover             { background: var(--mint); }
.plan-btn.secondary         { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.plan-btn.secondary:hover   { background: rgba(255,255,255,0.1); }

/* ─── TESTIMONIALS ───────────────────────────────────────────────────────────── */
.testimonial-section  { padding: 6rem 4rem; background: var(--white); }
.testimonials-grid    { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.testi-card           { background: var(--cream); border-radius: 20px; padding: 1.8rem; border: 1px solid rgba(45,106,79,0.08); }
.testi-text           { font-size: 0.95rem; color: var(--ink); line-height: 1.7; font-style: italic; margin-bottom: 1.2rem; }
.testi-author         { display: flex; align-items: center; gap: 0.75rem; }
.testi-avatar         { width: 40px; height: 40px; border-radius: 50%; background: var(--mint); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--forest); font-size: 0.85rem; }
.testi-name           { font-weight: 600; font-size: 0.875rem; color: var(--forest); }
.testi-role           { font-size: 0.75rem; color: var(--muted); }
.stars                { color: var(--gold); font-size: 0.85rem; margin-bottom: 1rem; }

/* ─── CHATBOT ────────────────────────────────────────────────────────────────── */
.chat-section     { padding: 6rem 4rem; background: var(--cream); }
.chat-container   { max-width: 720px; margin: 3rem auto 0; background: var(--white); border-radius: 24px; border: 1px solid rgba(45,106,79,0.12); overflow: hidden; box-shadow: 0 24px 60px rgba(26,58,42,0.1); }
.chat-header      { background: var(--forest); padding: 1.2rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.chat-avatar      { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.chat-title       { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--white); font-size: 0.95rem; }
.chat-status      { font-size: 0.75rem; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 4px; }
.online-dot       { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.chat-settings-btn{ margin-left: auto; background: none; border: none; font-size: 1.1rem; cursor: pointer; opacity: 0.6; transition: opacity 0.2s; padding: 0.3rem; }
.chat-settings-btn:hover { opacity: 1; }
.api-key-panel    { padding: 0.8rem 1.5rem; background: rgba(45,106,79,0.05); border-bottom: 1px solid rgba(45,106,79,0.1); }
.chat-messages    { height: 380px; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; background: var(--chat-bg); }

/* Messages */
.msg              { max-width: 80%; padding: 0.85rem 1.1rem; border-radius: 18px; font-size: 0.9rem; line-height: 1.6; animation: msgIn 0.3s ease; }
.msg-bot          { background: var(--white); color: var(--ink); border-radius: 4px 18px 18px 18px; border: 1px solid rgba(45,106,79,0.1); align-self: flex-start; }
.msg-user         { background: var(--forest); color: var(--white); border-radius: 18px 18px 4px 18px; align-self: flex-end; }
.msg-label        { font-size: 0.7rem; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
.msg-label-right  { text-align: right; }

/* Typing indicator */
.typing           { display: flex; gap: 4px; align-items: center; padding: 0.85rem 1.1rem; background: var(--white); border-radius: 4px 18px 18px 18px; align-self: flex-start; border: 1px solid rgba(45,106,79,0.1); }
.typing-dot       { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typingAnim 1.4s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Suggestions */
.chat-suggestions { display: flex; gap: 0.5rem; padding: 0.75rem 1.5rem; flex-wrap: wrap; background: var(--white); border-top: 1px solid rgba(45,106,79,0.08); }
.suggestion-btn   { background: rgba(45,106,79,0.08); border: 1px solid rgba(45,106,79,0.15); color: var(--leaf); font-size: 0.8rem; font-weight: 500; padding: 0.4rem 0.9rem; border-radius: 100px; cursor: pointer; transition: all 0.2s; font-family: 'DM Sans', sans-serif; }
.suggestion-btn:hover { background: var(--leaf); color: var(--white); }

/* Mic hint */
.mic-hint         { font-size: 0.72rem; color: var(--muted); text-align: center; padding: 0 1.5rem 0.6rem; background: var(--white); }

/* Input area */
.chat-input-area  { display: flex; gap: 0.75rem; padding: 1rem 1.5rem; background: var(--white); border-top: 1px solid rgba(45,106,79,0.08); align-items: center; }
.chat-input       { flex: 1; border: 1px solid rgba(45,106,79,0.2); border-radius: 100px; padding: 0.75rem 1.2rem; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; outline: none; color: var(--ink); background: var(--cream); }
.chat-input:focus { border-color: var(--leaf); }

/* Send button */
.chat-send        { background: var(--forest); border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.chat-send:hover  { background: var(--leaf); transform: scale(1.05); }
.chat-send svg    { width: 18px; height: 18px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Mic button */
.chat-mic               { background: transparent; border: 1.5px solid rgba(45,106,79,0.3); width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; color: var(--leaf); }
.chat-mic:hover         { background: rgba(45,106,79,0.08); border-color: var(--leaf); }
.chat-mic svg           { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-mic.recording     { background: rgba(231,111,81,0.12); border-color: var(--rust); color: var(--rust); animation: micPulse 1s ease-in-out infinite; }

/* Voice badge (in-chat listening indicator) */
.voice-badge        { display: inline-flex; align-items: center; gap: 5px; background: rgba(231,111,81,0.1); color: var(--rust); border-radius: 100px; padding: 0.35rem 0.9rem; font-size: 0.8rem; font-weight: 600; animation: fadeUp 0.3s ease; }
.voice-badge::before{ content: ''; width: 7px; height: 7px; background: var(--rust); border-radius: 50%; animation: micPulse 1s ease-in-out infinite; }

/* ─── CTA ────────────────────────────────────────────────────────────────────── */
.cta-section          { padding: 6rem 4rem; text-align: center; background: var(--white); }
.cta-box              { background: var(--forest); border-radius: 28px; padding: 4rem; max-width: 800px; margin: 0 auto; position: relative; overflow: hidden; }
.cta-box::before      { content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(116,198,157,0.2) 0%, transparent 60%); }
.cta-title            { font-family: 'Sora', sans-serif; font-size: clamp(1.8rem,3vw,2.5rem); font-weight: 800; color: var(--white); margin-bottom: 1rem; letter-spacing: -0.5px; }
.cta-sub              { color: rgba(255,255,255,0.65); font-size: 1rem; margin-bottom: 2rem; }
.cta-btns             { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-btn-primary      { background: var(--gold); color: var(--forest); border: none; padding: 1rem 2.5rem; border-radius: 100px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.25s; }
.cta-btn-primary:hover{ background: #f0d060; transform: translateY(-2px); }
.cta-btn-secondary      { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); padding: 1rem 2.5rem; border-radius: 100px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.25s; }
.cta-btn-secondary:hover{ background: rgba(255,255,255,0.1); }

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
footer              { background: var(--forest); padding: 3rem 4rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo        { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--white); }
.footer-logo span   { color: var(--lime); }
.footer-links       { display: flex; gap: 1.5rem; }
.footer-links a     { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover{ color: var(--white); }
.footer-copy        { color: rgba(255,255,255,0.3); font-size: 0.8rem; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero                 { grid-template-columns: 1fr; padding: 7rem 2rem 3rem; text-align: center; }
  .hero-visual          { order: -1; }
  .hero-btns,
  .hero-stats           { justify-content: center; }
  .features-grid,
  .testimonials-grid,
  .pricing-grid         { grid-template-columns: 1fr; }
  .section,
  .pricing-section,
  .testimonial-section,
  .chat-section,
  .cta-section          { padding: 4rem 1.5rem; }
  nav                   { padding: 1rem 1.5rem; }
  .nav-links            { display: none; }
}
