:root {
  /* Duolingo-inspired palette */
  --green: #58CC02;
  --green-dark: #46A302;
  --green-light: #89E219;
  --blue: #1CB0F6;
  --blue-dark: #0E8FCC;
  --orange: #FF9600;
  --purple: #CE82FF;
  --red: #FF4B4B;
  --yellow: #FFC800;

  --bg: #FFFFFF;
  --bg-soft: #F7F7F7;
  --bg-muted: #EEF1F5;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;

  --text: #3C3C3C;
  --text-soft: #6B7280;
  --text-muted: #9CA3AF;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.12);

  /* Duolingo-style "depth" buttons */
  --btn-depth: 4px;

  --font: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; margin: 0; color: var(--text); }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

p { line-height: 1.55; color: var(--text); }

.muted { color: var(--text-soft); }

/* Layout */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.navbar-bl {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-bl .brand {
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-bl .brand .parrot { font-size: 1.6rem; }

.navbar-bl .nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
  align-items: center;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  font-size: 0.95rem;
}
.nav-link:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.nav-link.active { color: var(--green); background: #E8F8D6; }

.main-content {
  flex: 1;
  padding: 32px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* Full loader */
.full-loader {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--text-soft);
  font-weight: 700;
}
.parrot-loader {
  font-size: 4rem;
  animation: bounce 1s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ──────────────── Landing (B2B / Business) ──────────────── */
.landing { min-height: 100vh; background: #FAFCFF; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #F0FBE3 0%, #E3F4FF 100%);
  padding: 64px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(88,204,2,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text h1 {
  font-size: 3.4rem;
  line-height: 1.1;
  margin: 18px 0 18px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-accent {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 2px solid var(--green);
  color: var(--green-dark);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(88,204,2,0.18);
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 540px;
}
.hero-sub strong { color: var(--text); font-weight: 800; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}
.hero-trust > div { display: flex; align-items: center; gap: 7px; }

/* HERO MOCKUP */
.hero-visual { position: relative; }
.hero-mockup {
  background: white;
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(28, 176, 246, 0.35), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.hero-mockup:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(0); }
.hero-mockup-bar {
  background: #F4F6FA;
  padding: 12px 16px;
  display: flex;
  gap: 7px;
  border-bottom: 1px solid #E5EAF0;
}
.hero-mockup-bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #D9DEE5;
}
.hero-mockup-bar span:first-child { background: #FF6B6B; }
.hero-mockup-bar span:nth-child(2) { background: #FFC93C; }
.hero-mockup-bar span:nth-child(3) { background: #6BCB77; }
.hero-mockup-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #FAFCFF;
  min-height: 320px;
}
.mockup-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 88%;
}
.mockup-msg.right { margin-left: auto; flex-direction: row-reverse; }
.mockup-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800;
  flex-shrink: 0;
}
.mockup-bubble {
  background: white;
  border: 2px solid #E5EAF0;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.mockup-bubble.own {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: white;
  border-color: transparent;
}
.mockup-name {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.mockup-translated {
  font-weight: 600;
  line-height: 1.3;
}
.mockup-original {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(0,0,0,0.12);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-soft);
}
.mockup-tag {
  display: inline-block;
  background: var(--blue);
  color: white;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.62rem;
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 5px;
}
.hero-float-badge {
  position: absolute;
  bottom: -20px; left: -20px;
  background: white;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--green);
}
.hero-float-badge i {
  font-size: 1.6rem;
  color: var(--green);
}
.hero-float-badge strong { display: block; font-size: 0.9rem; }
.hero-float-badge span { font-size: 0.75rem; color: var(--text-soft); }

/* LOGOS STRIP */
.logos-strip {
  background: white;
  padding: 36px 24px;
  text-align: center;
  border-bottom: 1px solid #EDF1F5;
}
.logos-strip p {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.logos-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}
.logos-row span {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}
.logos-row i { font-size: 1.2rem; color: var(--blue); }

/* SECTION HEADS */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-eyebrow {
  display: inline-block;
  background: #E3F4FF;
  color: var(--blue);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text);
}
.section-head p {
  font-size: 1.1rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* FEATURES */
.features { padding: 80px 24px; max-width: 1200px; margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: white;
  border-radius: 18px;
  padding: 28px;
  border: 2px solid #EDF1F5;
  transition: all 0.25s ease;
  text-align: left;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 16px 32px -10px rgba(88,204,2,0.18);
}
.feature-card h3 { font-size: 1.2rem; margin: 14px 0 8px; font-weight: 800; }
.feature-card p { color: var(--text-soft); line-height: 1.55; font-size: 0.95rem; margin: 0; }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: white;
}
.feature-icon.green  { background: linear-gradient(135deg, #58CC02 0%, #46A302 100%); }
.feature-icon.blue   { background: linear-gradient(135deg, #1CB0F6 0%, #0E8FCC 100%); }
.feature-icon.orange { background: linear-gradient(135deg, #FF9F1C 0%, #E08200 100%); }
.feature-icon.purple { background: linear-gradient(135deg, #A560E8 0%, #7B3FBF 100%); }
.feature-icon.yellow { background: linear-gradient(135deg, #FFD93D 0%, #E5B800 100%); color: #6B4F00; }
.feature-icon.red    { background: linear-gradient(135deg, #FF6B6B 0%, #D94545 100%); }

/* HOW IT WORKS */
.how-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, #FAFCFF 0%, #F0FBE3 100%);
}
.steps-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card {
  background: white;
  border-radius: 18px;
  padding: 28px 22px;
  border: 2px solid #EDF1F5;
  position: relative;
  transition: all 0.25s ease;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.step-num {
  position: absolute;
  top: -16px; left: 22px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 6px 14px rgba(28,176,246,0.3);
}
.step-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 10px 0 8px;
  display: flex; align-items: center; gap: 8px;
}
.step-card h3 i { color: var(--green); }
.step-card p { color: var(--text-soft); line-height: 1.5; font-size: 0.92rem; margin: 0; }

/* SECURITY & PRIVACY */
.security-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 20% 0%, rgba(88,204,2,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(28,176,246,0.05) 0%, transparent 50%);
}
.security-section .section-eyebrow {
  background: #E8F8D6;
  color: var(--green-dark) !important;
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.security-card {
  background: white;
  border-radius: 18px;
  padding: 28px 24px;
  border: 2px solid #EDF1F5;
  transition: all 0.25s ease;
  position: relative;
  text-align: left;
}
.security-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 16px 32px -10px rgba(88,204,2,0.20);
}
.security-card .security-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  margin-bottom: 16px;
  box-shadow: 0 6px 14px rgba(88,204,2,0.25);
}
.security-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text);
}
.security-card p {
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0;
}
.security-card p strong { color: var(--text); font-weight: 800; }
.security-card p code {
  background: #F0FBE3;
  color: var(--green-dark);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'SFMono-Regular', Consolas, Monaco, monospace;
}
.security-footnote {
  max-width: 760px;
  margin: 40px auto 0;
  text-align: center;
  background: white;
  border: 2px dashed var(--green);
  border-radius: 14px;
  padding: 16px 22px;
  font-size: 0.92rem;
  color: var(--text-soft);
  font-weight: 600;
}
.security-footnote i {
  color: var(--green);
  margin-right: 6px;
}

@media (max-width: 900px) {
  .security-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .security-grid { grid-template-columns: 1fr; }
}

/* USE CASES */
.usecases { padding: 80px 24px; max-width: 1200px; margin: 0 auto; }
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.usecase-card {
  background: white;
  border-radius: 18px;
  padding: 28px 22px;
  border: 2px solid #EDF1F5;
  text-align: center;
  transition: all 0.25s ease;
}
.usecase-card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 12px 28px -10px rgba(0,0,0,0.1); }
.usecase-ic {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 12px;
  display: block;
}
.usecase-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.usecase-card p { color: var(--text-soft); font-size: 0.9rem; line-height: 1.5; margin: 0; }

/* CTA */
.cta-section { padding: 60px 24px 80px; }

.listen-promo { padding: 8px 24px 48px; }
.listen-promo-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border: 2px solid var(--green);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(88, 204, 2, 0.12);
}
.listen-promo-card h2 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.listen-promo-card p {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin: 0 auto 24px;
  max-width: 36rem;
}
.cta-card {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  border-radius: 24px;
  padding: 60px 32px;
  text-align: center;
  color: white;
  box-shadow: 0 30px 60px -20px rgba(28,176,246,0.4);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta-card h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  position: relative;
  color: white;
}
.cta-card p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 28px;
  position: relative;
  color: white;
}
.cta-card .btn-bl {
  background: white !important;
  color: var(--green-dark) !important;
  border-bottom-color: #D5D5D5 !important;
  position: relative;
}

/* FOOTER */
.landing-footer {
  background: #1A1F2E;
  color: white;
  padding: 36px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-inner .brand { font-size: 1.3rem; font-weight: 900; color: white; }
.footer-inner .muted { color: #9AA3B5; font-size: 0.9rem; }

/* RESPONSIVE LANDING */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-text h1 { font-size: 2.4rem; }
  .features-grid, .steps-grid, .usecases-grid { grid-template-columns: 1fr 1fr; }
  .section-head h2 { font-size: 1.8rem; }
}
@media (max-width: 560px) {
  .features-grid, .steps-grid, .usecases-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2rem; }
  .hero { padding: 40px 16px 60px; }
}

/* Forms section */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #E8F8D6 0%, #D6F2FB 100%);
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--border);
}
.auth-card h2 {
  text-align: center;
  margin-bottom: 8px;
}
.auth-card .auth-sub {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.auth-card .auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Dashboard */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}
.page-header h2 { margin-bottom: 4px; }
.page-header .subtitle { color: var(--text-soft); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  flex-shrink: 0;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 900; color: var(--text); line-height: 1; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

.bg-green { background: var(--green); }
.bg-blue { background: var(--blue); }
.bg-orange { background: var(--orange); }
.bg-purple { background: var(--purple); }
.bg-red { background: var(--red); }
.bg-yellow { background: var(--yellow); }

/* Two-column dashboard */
.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
@media (max-width: 920px) { .dash-grid { grid-template-columns: 1fr; } }

/* Footer */
.app-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
