/* =====================================================
   EDUROID AI — Premium Landing Page
   Dark Slate + AI Gradient + Apple-Style Animations
   ===================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #1A1F2C;
  --bg2: #10131C;
  --card: #252B3D;
  --card2: #1E293B;
  --primary: #7B89F4;
  --accent: #FF5A5F;
  --green: #34D399;
  --amber: #F59E0B;
  --text: #FFFFFF;
  --subtext: #94A3B8;
  --border: rgba(255, 255, 255, 0.07);
  --border-med: rgba(255, 255, 255, 0.12);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --g1: #4285F4;
  --g2: #9B72CB;
  --g3: #D96570;
  --ai-grad: linear-gradient(135deg, var(--g1) 0%, var(--g2) 50%, var(--g3) 100%);

  --container: 1140px;
  --pad-x: clamp(20px, 5vw, 48px);
  --radius: 12px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 0.18s;
  --med: 0.3s;
  --slow: 0.55s;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(123, 137, 244, 0.25);
  border-radius: 5px;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

strong {
  font-weight: 600;
  color: var(--text);
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ===== UTILS ===== */
.gradient-text,
.grad-text {
  background: var(--ai-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(123, 137, 244, 0.14);
  border: 1px solid rgba(123, 137, 244, 0.32);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--ai-grad);
  color: #fff;
  box-shadow: 0 8px 28px rgba(66, 133, 244, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 44px rgba(66, 133, 244, 0.55);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-nav {
  padding: 10px 24px;
  font-size: 13px;
  background: var(--ai-grad);
  color: #fff;
  box-shadow: 0 8px 28px rgba(66, 133, 244, 0.35);
}

.btn-nav:hover {
  box-shadow: 0 14px 44px rgba(66, 133, 244, 0.55);
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-med);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  border-radius: 999px;
  padding: 5px 10px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: var(--subtext);
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.lang-active {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 640px) {
  .lang-switcher {
    display: none;
  }
}

.btn-large {
  padding: 16px 36px;
  font-size: 1rem;
}

.plan-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Danger buttons (delete.html) */
.btn-danger {
  width: 100%;
  justify-content: center;
  padding: 14px;
  background: linear-gradient(135deg, #e05252, #b52828);
  color: #fff;
  font-size: 0.95rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(224, 82, 82, 0.25);
}

.btn-danger:hover {
  box-shadow: 0 8px 28px rgba(224, 82, 82, 0.35);
}

.btn-danger:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ===== APPLE-STYLE REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

/* Scale-in reveal for cards */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92) translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Slide from left/right */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  border-bottom: 1px solid transparent;
  transition: background var(--med) var(--ease), border-color var(--med) var(--ease);
}

.navbar.scrolled {
  background: rgba(26, 31, 44, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo-text em {
  font-style: normal;
  color: var(--primary);
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--subtext);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
  padding: 7px 0;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--subtext);
  border-radius: 2px;
  transition: all var(--med) var(--ease);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(26, 31, 44, 0.98);
  border-top: 1px solid var(--border);
  padding: 12px var(--pad-x) 20px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--subtext);
  border-radius: 8px;
  transition: all var(--fast);
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

/* ===== HERO ===== */
.hero {
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(123, 137, 244, 0.11) 0%, transparent 68%);
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hero-text h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -1.5px;
}

.hero-text p {
  font-size: 17px;
  color: var(--subtext);
  max-width: 490px;
  line-height: 1.72;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 4px;
}

.stat-val {
  font-size: 28px;
  font-weight: 800;
  display: block;
}

.stat-lbl {
  font-size: 12px;
  color: var(--subtext);
  font-weight: 500;
  margin-top: 2px;
}

/* ===== PHONE SHELL ===== */
.phones {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
}

.phone {
  width: 230px;
  background: var(--card);
  border-radius: 40px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.phone-a {
  z-index: 2;
}

.phone-b {
  width: 230px;
  transform: translateX(-40px) translateY(20px);
  z-index: 1;
  opacity: 0.85;
}

.notch {
  width: 80px;
  height: 8px;
  background: #080c14;
  border-radius: 999px;
  margin: 13px auto 0;
}

/* ===== HOME SCREEN ===== */
.s-home {
  padding: 10px 13px 14px;
}

.sh-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.sh-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(123, 137, 244, 0.18);
  border: 2px solid rgba(123, 137, 244, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.sh-name {
  flex: 1;
  min-width: 0;
}

.sh-name-sub {
  font-size: 8px;
  color: var(--subtext);
}

.sh-name-main {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-top: 1px;
}

.sh-ai-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--ai-grad);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.s-label {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 7px;
}

.sh-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.sh-gc {
  background: var(--card2);
  border-radius: 12px;
  border: 1px solid var(--border);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.sh-gc:hover {
  border-color: rgba(123, 137, 244, 0.4);
  background: rgba(123, 137, 244, 0.08);
}

.sh-gc-icon {
  font-size: 17px;
}

.sh-gc-label {
  font-size: 7px;
  font-weight: 600;
  color: var(--subtext);
  text-align: center;
  line-height: 1.2;
}

.sh-quick-wrap {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 12px;
}

.sh-quick-wrap::-webkit-scrollbar {
  display: none;
}

.sh-qc {
  background: var(--card2);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 10px;
  flex-shrink: 0;
  width: 96px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: border-color .2s;
}

.sh-qc:hover {
  border-color: rgba(123, 137, 244, 0.35);
}

.sh-qc-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.sh-qc-title {
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.sh-qc-sub {
  font-size: 7px;
  color: var(--subtext);
  line-height: 1.3;
}

.sh-chips {
  margin-bottom: 11px;
}

.sh-chips-row {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.sh-chip {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 7px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  white-space: nowrap;
  overflow: hidden;
}

.sh-chip:hover {
  border-color: rgba(123, 137, 244, 0.3);
  background: rgba(123, 137, 244, 0.06);
}

.sh-chip-em {
  font-size: 9px;
}

.sh-input {
  background: var(--card2);
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.13);
  padding: 7px 7px 7px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  margin-top: auto;
}

.sh-input-spark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(123, 137, 244, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  cursor: pointer;
}

.sh-input-text {
  flex: 1;
  font-size: 7.5px;
  color: var(--subtext);
}

.sh-input-mic {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
}

.sh-input-send {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(123, 137, 244, 0.4);
}

.sh-input input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 8px;
  color: var(--subtext);
  font-family: var(--font);
}

/* ===== CHAT SCREEN ===== */
.s-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* AppBar — matches Flutter ChatScreen AppBar */
.sc-appbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 8px;
  background: var(--card);
  flex-shrink: 0;
}

.sc-back {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 14px;
  border-radius: 50%;
  transition: background .15s;
}

.sc-back:hover {
  background: rgba(255, 255, 255, 0.07);
}

.sc-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex: 1;
  letter-spacing: -0.2px;
}

.sc-clear {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--subtext);
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s, color .15s;
}

.sc-clear:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

/* Message area */
.sc-msgs {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 11px;
  scrollbar-width: none;
  background: var(--bg);
}

.sc-msgs::-webkit-scrollbar {
  display: none;
}

/* User bubble — right-aligned, primary tinted */
.msg-user {
  align-self: flex-end;
  max-width: 80%;
  background: rgba(123, 137, 244, 0.22);
  border: 1px solid rgba(123, 137, 244, 0.32);
  border-radius: 16px 16px 3px 16px;
  padding: 8px 11px;
  font-size: 7.5px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

/* AI bubble — left-aligned, dark card */
.msg-ai {
  align-self: flex-start;
  max-width: 88%;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px 16px 16px 3px;
  padding: 8px 11px;
  font-size: 7.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

.msg-ai-label {
  font-size: 6.5px;
  font-weight: 700;
  background: var(--ai-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.2px;
}

/* Bottom input area — matches Flutter _buildBottomInputArea */
.sc-bottom {
  padding: 8px 10px 10px;
  background: var(--card);
  flex-shrink: 0;
}

/* Pill-shaped input container — exact replica */
.sc-input {
  background: var(--card2);
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  padding: 5px 5px 5px 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

/* Sparkle icon circle — left of input */
.sc-input-spark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(123, 137, 244, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}

.sc-input-spark:hover {
  background: rgba(123, 137, 244, 0.28);
}

/* Text input */
.sc-input input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 8px;
  color: #fff;
  font-family: var(--font);
  font-weight: 500;
  caret-color: var(--primary);
}

.sc-input input::placeholder {
  color: var(--subtext);
  font-weight: 400;
}

/* Mic icon */
.sc-input-mic {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--subtext);
  cursor: pointer;
  flex-shrink: 0;
  transition: color .2s;
}

.sc-input-mic:hover {
  color: #fff;
}

/* Send button — primary circle matching Flutter send button */
.sc-input-send {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(123, 137, 244, 0.45);
  transition: background .2s, transform .15s;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.sc-input-send:hover {
  background: #6b79e8;
  transform: scale(1.08);
}

/* AI thinking animation */
.ai-thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.ai-sparkle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 13px;
  animation: pulse-ai 1.8s ease-in-out infinite;
}

.ai-sparkle svg {
  width: 16px;
  height: 16px;
}

.ai-shimmer-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, #fff 0%, var(--g1) 20%, var(--g2) 50%, var(--g3) 70%, #fff 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 1.8s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 150% center;
  }

  100% {
    background-position: -150% center;
  }
}

@keyframes pulse-ai {

  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* ===== SECTION HEADER ===== */
.section-header,
.s-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2,
.s-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 14px 0 14px;
}

.section-header p,
.s-head p {
  font-size: 16px;
  color: var(--subtext);
  max-width: 540px;
  margin: 0 auto;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.feat-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feat-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.feat-grid-3 .feat-card p {
  font-size: 14px;
  line-height: 1.72;
}

.feat-card,
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.feat-card::after,
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  background: linear-gradient(135deg, rgba(123, 137, 244, 0.08), transparent);
  transition: opacity .3s;
}

.feat-card:hover,
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(123, 137, 244, 0.32);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

.feat-card:hover::after,
.feature-card:hover::after {
  opacity: 1;
}

.feat-icon,
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.feat-card h3,
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feat-card p,
.feature-card p {
  font-size: 14px;
  color: var(--subtext);
  line-height: 1.65;
}

.feat-tag,
.feature-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(123, 137, 244, 0.12);
  padding: 3px 11px;
  border-radius: 999px;
}

/* ===== INTERACTIVE DEMO ===== */
.demo-section {
  padding: 100px 0;
}

/* Empty state — matches Flutter _buildEmptyState widget */
.demo-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
  text-align: center;
  padding: 20px;
}

.demo-empty-icon {
  margin-bottom: 4px;
  color: var(--subtext);
}

.demo-empty-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--subtext);
  letter-spacing: -0.1px;
}

.demo-empty-sub {
  font-size: 9px;
  color: var(--subtext);
  max-width: 150px;
  line-height: 1.5;
  opacity: 0.7;
}

.demo-wrap {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 60px;
}

.demo-phone {
  width: 260px;
  background: var(--card);
  border-radius: 44px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.demo-notch {
  width: 80px;
  height: 8px;
  background: #080c14;
  border-radius: 999px;
  margin: 13px auto 0;
}

.demo-home-body {
  padding: 10px 14px 14px;
}

/* Chat demo body — matches Flutter Scaffold layout */
.demo-chat-body {
  display: flex;
  flex-direction: column;
  height: 480px;
  background: var(--bg);
}

.demo-label {
  text-align: center;
  font-size: 13px;
  color: var(--subtext);
  margin-bottom: 16px;
  font-weight: 600;
}

/* ===== HOW IT WORKS ===== */
.how {
  padding: 90px 0;
  background: var(--bg2);
}

.steps-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.step {
  text-align: center;
  padding: 0 6px;
}

.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ai-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(66, 133, 244, 0.3);
}

.step h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 13px;
  color: var(--subtext);
  line-height: 1.65;
}

/* ===== PRICING ===== */
.pricing {
  padding: 100px 0;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 56px auto 0;
}

.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 32px;
  transition: transform .25s;
}

.plan:hover {
  transform: translateY(-4px);
}

.plan-popular,
.plan-hot {
  border-color: rgba(123, 137, 244, 0.5);
  position: relative;
  background: linear-gradient(135deg, rgba(123, 137, 244, 0.08), rgba(155, 114, 203, 0.06));
}

.plan-popular-badge,
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ai-grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--subtext);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.plan-price {
  font-size: 44px;
  font-weight: 800;
}

.plan-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--subtext);
}

.plan-period {
  font-size: 13px;
  color: var(--subtext);
  margin: 2px 0 24px;
}

.plan-features,
.plan-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.plan-features li,
.plan-feats li {
  font-size: 14px;
  color: var(--subtext);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before,
.plan-feats li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 90px 0;
  background: var(--bg2);
}

.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.t-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  transition: transform .25s;
}

.t-card:hover {
  transform: translateY(-4px);
}

.t-stars {
  color: #FBBF24;
  font-size: 14px;
  margin-bottom: 12px;
}

.t-text {
  font-size: 14px;
  color: var(--subtext);
  line-height: 1.65;
  margin-bottom: 16px;
  font-style: italic;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.t-avatar,
.t-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.t-name,
.t-nm {
  font-size: 13px;
  font-weight: 700;
}

.t-role,
.t-rl {
  font-size: 11px;
  color: var(--subtext);
}

/* ===== DOWNLOAD CTA ===== */
.download-cta,
.dl-cta {
  padding: 110px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-cta::before,
.dl-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(123, 137, 244, 0.12) 0%, transparent 66%);
  pointer-events: none;
}

.download-cta h2,
.dl-cta h2 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.download-cta p,
.dl-cta p {
  font-size: 17px;
  color: var(--subtext);
  max-width: 480px;
  margin: 0 auto 42px;
  line-height: 1.7;
}

.store-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 32px;
  min-width: 220px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.store-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(123, 137, 244, 0.22);
}

.store-svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.store-btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.store-text .top {
  font-size: 10px;
  color: var(--subtext);
}

.store-text .main {
  font-size: 17px;
  font-weight: 700;
}

/* ===== FOOTER ===== */
.footer,
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-inner,
.foot-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand,
.foot-about {
  max-width: 260px;
}

.footer-brand p,
.foot-about p,
.footer-tagline {
  font-size: 13px;
  color: var(--subtext);
  margin-top: 14px;
  line-height: 1.72;
  max-width: 250px;
}

.footer-col h4,
.footer-col h5,
.foot-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  color: var(--text);
}

.footer-col ul,
.foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a,
.foot-col ul li a {
  font-size: 13px;
  color: var(--subtext);
  text-decoration: none;
  transition: color .2s;
}

.footer-col a:hover,
.foot-col ul li a:hover {
  color: #fff;
}

.footer-bottom,
.foot-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--subtext);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--subtext);
}

.footer-data-link {
  font-size: 0.75rem;
  color: var(--subtext);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.1);
  transition: color var(--fast);
}

.footer-data-link:hover {
  color: var(--text);
}

/* ===== ANIMATIONS ===== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

.phone-a {
  animation: float 5.5s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(123, 137, 244, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(123, 137, 244, 0.6);
  }
}

.feature-icon.glow,
.feat-icon.glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1px solid var(--border-med);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.4;
  transition: opacity var(--fast);
}

.scroll-down:hover {
  opacity: 0.8;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--subtext);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  60% {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* Parallax background orbs */
.parallax-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.08;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--g1);
  top: 20%;
  left: -10%;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--g3);
  top: 60%;
  right: -5%;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: var(--g2);
  top: 40%;
  left: 30%;
}

/* ===== DELETE PAGE STYLES ===== */
.delete-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.delete-page .page-header {
  background: rgba(26, 31, 44, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px var(--pad-x);
}

.delete-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px var(--pad-x) 80px;
}

.delete-card {
  width: 100%;
  max-width: 580px;
  background: var(--card);
  border: 1px solid var(--border-med);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.delete-card-header {
  padding: 32px 36px 28px;
  border-bottom: 1px solid var(--border);
}

.delete-card-header .danger-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e05252;
  background: rgba(224, 82, 82, 0.1);
  border: 1px solid rgba(224, 82, 82, 0.2);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.delete-card-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.delete-card-header p {
  font-size: 0.88rem;
  color: var(--subtext);
  line-height: 1.65;
}

.delete-card-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.deletion-scope {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.deletion-scope h3 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--subtext);
  margin-bottom: 12px;
}

.deletion-scope ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deletion-scope li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--subtext);
}

.scope-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e05252;
  opacity: 0.7;
  flex-shrink: 0;
}

.warn-notice {
  display: flex;
  gap: 10px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #f59e0b;
  line-height: 1.5;
}

.warn-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.delete-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--subtext);
}

.form-group input,
.form-group select {
  background: var(--bg2);
  border: 1px solid var(--border-med);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--fast), box-shadow var(--fast);
  width: 100%;
}

.form-group input::placeholder {
  color: var(--subtext);
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(123, 137, 244, 0.4);
  box-shadow: 0 0 0 3px rgba(123, 137, 244, 0.1);
}

.form-group input.is-error {
  border-color: rgba(224, 82, 82, 0.5);
}

.form-group input.is-error:focus {
  box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2352506a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group select option {
  background: var(--card);
  color: var(--text);
}

.form-hint {
  font-size: 0.72rem;
  color: var(--subtext);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 4px;
  border: 1px solid var(--border-med);
  background: var(--bg2);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  transition: all var(--fast);
}

.form-check input[type="checkbox"]:checked {
  background: #e05252;
  border-color: #e05252;
}

.form-check input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.form-check label {
  font-size: 0.82rem;
  color: var(--subtext);
  cursor: pointer;
  line-height: 1.55;
}

.form-success {
  text-align: center;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.form-success h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.form-success p {
  font-size: 0.86rem;
  color: var(--subtext);
  max-width: 300px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p,
  .hero-cta,
  .hero-stats {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .phones {
    margin-top: 52px;
  }

  .feat-grid,
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .t-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner,
  .foot-inner {
    grid-template-columns: 1fr 1fr;
  }

  .plans {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 32px;
    gap: 24px;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta .btn-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {

  .feat-grid,
  .features-grid,
  .t-grid {
    grid-template-columns: 1fr;
  }

  .phone-b {
    display: none;
  }

  .demo-wrap {
    gap: 20px;
  }

  .demo-phone {
    width: 230px;
  }

  .footer-inner,
  .foot-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 52px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .scroll-down {
    display: none;
  }

  .logo-img {
    width: 30px;
    height: 30px;
  }

  .store-btns {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 280px;
  }

  .footer-bottom,
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .delete-card-header,
  .delete-card-body {
    padding: 24px 20px;
  }
}

@media (max-width: 400px) {
  :root {
    --pad-x: 14px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .logo-text {
    font-size: 0.88rem;
  }

  .logo-img {
    width: 28px;
    height: 28px;
  }

  .delete-card-header,
  .delete-card-body {
    padding: 16px 14px;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =====================================================
   HERO SECTION LAYOUT
   ===================================================== */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: calc(100vh - 72px);
  padding: 80px 0 60px;
}

.hero-text {
  max-width: 560px;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 18px 0 22px;
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--subtext);
  line-height: 1.7;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ===== HERO PHONE MOCKUP ===== */
.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hp-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  transform: scale(1.15);
  /* Enlarge hero phone mockup on desktop */
  transform-origin: top center;
}

.hp-phone {
  width: 300px;
  background: var(--card);
  border-radius: 38px;
  border: 2px solid rgba(123, 137, 244, 0.25);
  box-shadow:
    0 40px 120px rgba(66, 133, 244, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.hp-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0a0d14;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.hp-screen {
  padding: 30px 14px 14px;
  min-height: 580px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hp-status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: var(--subtext);
  margin-bottom: 12px;
  padding: 0 4px;
}

.hp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.hp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ai-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.hp-welcome {
  font-size: 9px;
  color: var(--subtext);
}

.hp-name {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.hp-ai-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  background: rgba(123, 137, 244, 0.18);
  border: 1px solid rgba(123, 137, 244, 0.4);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--primary);
}

/* ===== INTERACTIVE DEMO SECTION ===== */
.demo-section {
  padding: 100px 0;
  background: var(--bg2);
}

.demo-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 60px;
}

.demo-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--subtext);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  text-align: center;
}

.demo-phone-scale {
  transform: scale(1.1);
  /* Enlarge demo phone slightly */
  transform-origin: top center;
}

.demo-phone {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 34px;
  border: 2px solid rgba(123, 137, 244, 0.2);
  box-shadow:
    0 30px 80px rgba(66, 133, 244, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
}

.demo-phone--chat {
  border-color: rgba(123, 137, 244, 0.35);
  box-shadow:
    0 30px 80px rgba(123, 137, 244, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.demo-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: #0a0d14;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

.demo-screen {
  padding: 28px 0 0;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.demo-status {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  color: var(--subtext);
  padding: 0 14px;
  margin-bottom: 8px;
}

.demo-home-body {
  flex: 1;
  padding: 0 12px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.demo-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ai-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.demo-welcome {
  font-size: 8px;
  color: var(--subtext);
}

.demo-name {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.demo-ai-badge {
  margin-left: auto;
  font-size: 8px;
  font-weight: 700;
  background: rgba(123, 137, 244, 0.18);
  border: 1px solid rgba(123, 137, 244, 0.4);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--primary);
}

/* Chat screen elements */
.demo-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.demo-chat-body::-webkit-scrollbar {
  width: 3px;
}

.demo-chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.demo-chat-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}

.demo-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
}

.demo-empty-icon {
  opacity: 0.25;
  margin-bottom: 4px;
}

.demo-empty-title {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.demo-empty-sub {
  font-size: 9px;
  color: var(--subtext);
  line-height: 1.5;
}

/* Chat appbar */
.sc-appbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 8px;
  background: var(--card);
  flex-shrink: 0;
}

.sc-appbar-back,
.sc-appbar-clear {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 50%;
  background: none;
  border: none;
  transition: background .15s;
}

.sc-appbar-back:hover,
.sc-appbar-clear:hover {
  background: rgba(255, 255, 255, 0.07);
}

.sc-appbar-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex: 1;
}

.sc-bottom {
  padding: 8px 10px 12px;
  flex-shrink: 0;
}

.sc-input {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 8px;
}

.sc-input-spark {
  font-size: 11px;
  flex-shrink: 0;
}

.sc-input input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 8px;
  color: #fff;
  font-family: var(--font);
  min-width: 0;
}

.sc-input-mic,
.sc-input-send {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.sc-input-mic {
  background: rgba(255, 255, 255, 0.07);
  color: var(--subtext);
}

.sc-input-send {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(123, 137, 244, 0.4);
}

/* Chat message bubbles */
.msg-user {
  background: var(--ai-grad);
  color: #fff;
  font-size: 8.5px;
  line-height: 1.55;
  padding: 7px 10px;
  border-radius: 14px 14px 2px 14px;
  align-self: flex-end;
  max-width: 80%;
  word-wrap: break-word;
}

.msg-ai {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 8.5px;
  line-height: 1.55;
  padding: 7px 10px;
  border-radius: 14px 14px 14px 2px;
  align-self: flex-start;
  max-width: 88%;
  word-wrap: break-word;
}

.msg-ai-label {
  font-size: 7px;
  font-weight: 700;
  background: var(--ai-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  display: block;
}

.ai-thinking {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-sparkle {
  width: 14px;
  height: 14px;
  animation: spin 1.5s linear infinite;
  flex-shrink: 0;
}

.ai-shimmer-text {
  font-size: 8px;
  color: var(--subtext);
}

/* ===== RESPONSIVE: hero 2-col → single col on mobile ===== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    min-height: unset;
    padding: 60px 0 40px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-phone {
    display: none;
  }

  .demo-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* =====================================================
   LANGUAGE DROPDOWN
   ===================================================== */
.lang-dropdown {
  position: relative;
  display: inline-block;
  font-family: var(--font);
}

.lang-dropdown-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.lang-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.lang-dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  overflow: hidden;
}

.lang-dropdown:hover .lang-dropdown-content,
.lang-dropdown:focus-within .lang-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--subtext);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}