/* ========================================
   sergio.dev — Landing Page / Portfolio
   ======================================== */

/* ---- Nav ---- */
.lp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 16px 0;
}
.lp-nav--transparent { background: transparent; }
.lp-nav--solid {
  background: rgba(6,6,15,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}
.lp-nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
}
.lp-nav__logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  color: #fff;
}
.lp-nav__links {
  display: flex;
  gap: 32px;
}
.lp-nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}
.lp-nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-normal);
}
.lp-nav__link:hover { color: #fff; }
.lp-nav__link:hover::after { width: 100%; }
.lp-nav__actions { display: flex; align-items: center; gap: 16px; }
.lp-nav__btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-normal);
}
.lp-nav__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,102,255,0.4);
}
.lp-nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.lp-nav__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---- Hero ---- */
.lp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.lp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lp-hero__bg canvas {
  width: 100%;
  height: 100%;
}
.lp-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,102,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(123,97,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0,212,255,0.04) 0%, transparent 60%);
}
.lp-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0 24px;
}
.lp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0,102,255,0.1);
  border: 1px solid rgba(0,102,255,0.2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 32px;
  animation: heroFadeUp 0.8s ease 0.2s both;
}
.lp-hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.lp-hero__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: heroFadeUp 0.8s ease 0.4s both;
}
.lp-hero__title-highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lp-hero__subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--color-text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 20px;
  animation: heroFadeUp 0.8s ease 0.6s both;
}
.lp-hero__marquee-wrapper {
  margin-bottom: 40px;
  animation: heroFadeUp 0.8s ease 0.7s both;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.lp-hero__marquee {
  overflow: hidden;
  width: 100%;
}
.lp-hero__marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.lp-hero__marquee-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(0, 102, 255, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(0, 102, 255, 0.2);
  transition: background 0.3s, border-color 0.3s;
}
.lp-hero__marquee-tag:hover {
  background: rgba(0, 102, 255, 0.2);
  border-color: rgba(0, 102, 255, 0.4);
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.lp-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: heroFadeUp 0.8s ease 0.8s both;
}
.lp-hero__btn-primary {
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 16px;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 30px rgba(0,102,255,0.35);
}
.lp-hero__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(0,102,255,0.5);
}
.lp-hero__btn-ghost {
  padding: 16px 36px;
  background: transparent;
  color: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 16px;
  transition: all var(--transition-normal);
}
.lp-hero__btn-ghost:hover {
  background: var(--color-bg-elevated);
  border-color: var(--color-primary);
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Stats ---- */
.lp-stats {
  position: relative;
  padding: 60px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(0,102,255,0.03) 0%, transparent 100%);
}
.lp-stats__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.lp-stats__item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lp-stats__number {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lp-stats__label {
  font-size: 15px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ---- Section (shared) ---- */
.lp-section {
  padding: 120px 0;
  position: relative;
}
.lp-section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}
.lp-section__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.lp-section__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.lp-section__subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ---- About ---- */
.lp-about__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.lp-about__photo {
  position: relative;
}
.lp-about__photo-frame {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, rgba(0,102,255,0.12), rgba(123,97,255,0.08));
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.lp-about__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.lp-about__photo-initials {
  font-size: 120px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
}
.lp-about__photo-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-purple));
  z-index: -1;
  opacity: 0.3;
}
.lp-about__info h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.lp-about__role {
  font-size: 18px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 24px;
}
.lp-about__bio {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}
.lp-about__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.lp-about__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lp-about__detail-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}
.lp-about__detail-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}
.lp-about__social {
  display: flex;
  gap: 12px;
}
.lp-about__social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: all var(--transition-normal);
}
.lp-about__social-link:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ---- Skills ---- */
.lp-skills {
  background: linear-gradient(180deg, transparent, rgba(0,102,255,0.04) 30%, rgba(123,97,255,0.04) 70%, transparent);
}
.lp-skills__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lp-skill-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.lp-skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.lp-skill-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.lp-skill-card:hover::before { opacity: 1; }
.lp-skill-card__icon {
  font-size: 32px;
  margin-bottom: 20px;
}
.lp-skill-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.lp-skill-card__desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.lp-skill-card__techs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lp-skill-card__tech {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: rgba(0,102,255,0.08);
  color: var(--color-accent);
  border: 1px solid rgba(0,102,255,0.15);
}

/* ---- Experience Timeline ---- */
.lp-timeline {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.lp-timeline::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent), var(--color-purple));
}
.lp-timeline__item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 24px 0;
  position: relative;
}
.lp-timeline__dot-wrapper {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-timeline__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 4px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-primary);
  position: relative;
  z-index: 1;
}
.lp-timeline__dot--current {
  background: var(--color-success);
  box-shadow: 0 0 0 2px var(--color-success), 0 0 20px rgba(0,255,136,0.3);
}
.lp-timeline__content {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  flex: 1;
  transition: all var(--transition-slow);
}
.lp-timeline__content:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}
.lp-timeline__period {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(0,102,255,0.15), rgba(123,97,255,0.15));
  color: var(--color-accent);
  border: 1px solid rgba(0,102,255,0.2);
  margin-bottom: 12px;
}
.lp-timeline__role { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.lp-timeline__company {
  font-size: 15px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.lp-timeline__desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}
.lp-timeline__techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.lp-timeline__tech {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: var(--color-bg-elevated);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

/* ---- Projects ---- */
.lp-projects__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.lp-project-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.lp-project-card--featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: linear-gradient(135deg, rgba(0,102,255,0.05), rgba(0,212,255,0.03));
  border-color: rgba(0,102,255,0.2);
}
.lp-project-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.lp-project-card__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: rgba(0,102,255,0.1);
  color: var(--color-accent);
  margin-bottom: 16px;
}
.lp-project-card__title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}
.lp-project-card__desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.lp-project-card__techs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.lp-project-card__tech {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: var(--color-bg-elevated);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.lp-project-card__highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-project-card__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.lp-project-card__highlights li::before {
  content: '\2726';
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}
.lp-project-card__visual {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-project-card__visual-icon {
  font-size: 80px;
  opacity: 0.5;
}

/* ---- Contact ---- */
.lp-contact {
  background: linear-gradient(180deg, transparent, rgba(0,102,255,0.04) 50%, transparent);
}
.lp-contact__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.lp-contact__info h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}
.lp-contact__info p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}
.lp-contact__channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp-contact__channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}
.lp-contact__channel:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}
.lp-contact__channel-icon {
  font-size: 24px;
}
.lp-contact__channel-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}
.lp-contact__channel-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}
.lp-contact__form-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.lp-contact__form-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
}
.lp-contact__field {
  margin-bottom: 20px;
}
.lp-contact__field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}
.lp-contact__field input,
.lp-contact__field textarea,
.lp-contact__field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 15px;
  transition: all var(--transition-fast);
  outline: none;
}
.lp-contact__field input:focus,
.lp-contact__field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.15);
}
.lp-contact__field input::placeholder,
.lp-contact__field textarea::placeholder { color: var(--color-text-muted); }
.lp-contact__field textarea { resize: vertical; min-height: 120px; }
.lp-contact__submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
}
.lp-contact__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,102,255,0.4);
}

/* ---- CTA ---- */
.lp-cta {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.lp-cta__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,102,255,0.1), rgba(123,97,255,0.1));
  z-index: 0;
}
.lp-cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}
.lp-cta__title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}
.lp-cta__subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}
.lp-cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.lp-footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
  background: var(--color-bg);
}
.lp-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.lp-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}
.lp-footer__logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  color: #fff;
}
.lp-footer__links { display: flex; gap: 24px; }
.lp-footer__links a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.lp-footer__links a:hover { color: var(--color-text); }
.lp-footer__copy { font-size: 13px; color: var(--color-text-muted); }

/* ---- Scroll Reveal ---- */
.lp-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  animation: lpRevealFallback 0s ease 1.5s forwards;
}
.lp-reveal--visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
.lp-reveal--delay-1 { transition-delay: 0.1s; animation-delay: 1.6s; }
.lp-reveal--delay-2 { transition-delay: 0.2s; animation-delay: 1.7s; }
.lp-reveal--delay-3 { transition-delay: 0.3s; animation-delay: 1.8s; }
.lp-reveal--delay-4 { transition-delay: 0.4s; animation-delay: 1.9s; }
.lp-reveal--delay-5 { transition-delay: 0.5s; animation-delay: 2.0s; }
@keyframes lpRevealFallback {
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Responsive — Mobile-First Polish
   ======================================== */

/* Remove tap highlight / improve touch feedback on all tappable elements */
.lp-nav a, .lp-nav button,
.lp-hero__btn-primary, .lp-hero__btn-ghost,
.lp-about__social-link, .lp-contact__channel,
.lp-contact__submit, .lp-nav__btn, .lp-nav__lang-option,
.lp-nav__mobile-toggle, .lp-nav__lang-btn, .lp-nav__theme-btn,
.lp-mobile-cta__item {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  .lp-about__grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-skills__grid { grid-template-columns: repeat(2, 1fr); }
  .lp-projects__grid { grid-template-columns: 1fr; }
  .lp-project-card--featured { grid-column: span 1; grid-template-columns: 1fr; }
  .lp-contact__grid { grid-template-columns: 1fr; }
}

/* Drawer extras — hidden on desktop, shown inside mobile drawer */
.lp-nav__drawer-extras { display: none; }

/* ---- Tablet — collapse nav earlier so nothing gets cramped ---- */
@media (max-width: 960px) {
  .lp-nav__links { display: none; }
  .lp-nav__actions { display: none; }

  .lp-nav__container {
    padding: 0 16px;
    gap: 8px;
    justify-content: space-between;
  }

  .lp-nav__mobile-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--color-border);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    padding: 0;
    gap: 0;
  }
  .lp-nav__mobile-toggle:active { background: rgba(0,102,255,0.1); }
  .lp-nav__mobile-toggle span {
    position: absolute;
    left: 9px;
    right: 9px;
    width: auto;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
  }
  .lp-nav__mobile-toggle span:nth-child(1) { top: 13px; }
  .lp-nav__mobile-toggle span:nth-child(2) { top: 19px; }
  .lp-nav__mobile-toggle span:nth-child(3) { top: 25px; }
  .lp-nav__mobile-toggle--active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
  .lp-nav__mobile-toggle--active span:nth-child(2) { opacity: 0; }
  .lp-nav__mobile-toggle--active span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

  /* Drawer when open — works across tablet & phone */
  .lp-nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6,6,15,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    gap: 2px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: lpMobileNavSlide 0.28s ease;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lp-nav__links--open .lp-nav__link {
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    color: var(--color-text-secondary);
    border-left: 3px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }
  .lp-nav__links--open .lp-nav__link::after { display: none; }
  .lp-nav__links--open .lp-nav__link:active {
    background: rgba(0,102,255,0.12);
    color: #fff;
  }
  .lp-nav__links--open .lp-nav__link.is-active {
    background: rgba(0,102,255,0.14);
    color: #fff;
    border-left-color: var(--color-primary);
  }

  /* Theme + Language controls at the bottom of the drawer */
  .lp-nav__links--open .lp-nav__drawer-extras {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
  }

  @keyframes lpMobileNavSlide {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---- Tablet / Mobile ---- */
@media (max-width: 768px) {
  /* Section spacing */
  .lp-section { padding: 72px 0; }
  .lp-section__header { margin-bottom: 40px; padding: 0 20px; }

  /* Hero — tighter padding, visual-balance, respects notch/safe areas */
  .lp-hero {
    min-height: 100svh;
    padding: calc(96px + env(safe-area-inset-top)) 0 56px;
  }
  .lp-hero__content {
    padding: 0 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .lp-hero__badge { margin-bottom: 20px; font-size: 12px; padding: 6px 14px; }
  .lp-hero__title { margin-bottom: 16px; overflow-wrap: break-word; word-break: break-word; }
  .lp-hero__subtitle { margin-bottom: 20px; font-size: 16px; line-height: 1.6; }

  /* Marquee — reduced spacing, faster speed */
  .lp-hero__marquee-wrapper {
    margin-bottom: 28px;
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  }
  .lp-hero__marquee-track { gap: 8px; animation-duration: 22s; }
  .lp-hero__marquee-tag {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 16px;
  }

  /* Hero buttons — 2-column grid: primary spans full, ghosts fill 2 per row */
  .lp-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .lp-hero__btn-primary {
    grid-column: 1 / -1;
    min-height: 50px;
    padding: 13px 24px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lp-hero__btn-ghost {
    min-height: 44px;
    padding: 10px 8px;
    font-size: 12.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
  }
  .lp-cta__actions { grid-template-columns: 1fr; }
  .lp-cta__actions .lp-hero__btn-primary,
  .lp-cta__actions .lp-hero__btn-ghost { grid-column: 1 / -1; }

  /* Nav — mobile header layout refinements */
  .lp-nav { padding: 10px 0; padding-top: max(10px, env(safe-area-inset-top)); }
  .lp-nav__brand { font-size: 18px; gap: 8px; }
  .lp-nav__brand .lp-nav__logo { width: 32px; height: 32px; font-size: 12px; }

  /* Stats */
  .lp-stats { padding: 40px 0; }
  .lp-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; padding: 0 20px; }
  .lp-stats__number { font-size: 34px; }
  .lp-stats__label { font-size: 13px; }

  /* About */
  .lp-about__grid { padding: 0 20px; gap: 32px; }
  .lp-about__photo-frame { max-width: 280px; margin: 0 auto; }
  .lp-about__info h3 { font-size: 24px; }
  .lp-about__role { font-size: 16px; margin-bottom: 18px; }
  .lp-about__bio { font-size: 15px; margin-bottom: 20px; line-height: 1.7; }
  .lp-about__details { grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
  .lp-about__detail-label { font-size: 11px; }
  .lp-about__detail-value { font-size: 14px; }
  .lp-about__social-link { min-height: 44px; padding: 12px 18px; }

  /* Skills */
  .lp-skills__grid { grid-template-columns: 1fr; padding: 0 20px; gap: 16px; }
  .lp-skill-card { padding: 24px 20px; }
  .lp-skill-card__title { font-size: 18px; }
  .lp-skill-card__desc { font-size: 14px; }

  /* Timeline */
  .lp-timeline { padding: 0 16px; }
  .lp-timeline::before { left: 19px; }
  .lp-timeline__item { gap: 16px; padding: 14px 0; }
  .lp-timeline__dot-wrapper { width: 40px; }
  .lp-timeline__dot { width: 16px; height: 16px; border-width: 3px; }
  .lp-timeline__content { padding: 20px 18px; }
  .lp-timeline__role { font-size: 17px; }
  .lp-timeline__company { font-size: 14px; }
  .lp-timeline__desc { font-size: 14px; }

  /* Projects */
  .lp-projects__grid { padding: 0 20px; gap: 16px; }
  .lp-project-card { padding: 24px 20px; }
  .lp-project-card--featured { padding: 24px 20px; }
  .lp-project-card__visual { padding: 32px 20px; }
  .lp-project-card__visual-icon { font-size: 56px; }
  .lp-project-card__title { font-size: 20px; }

  /* Contact */
  .lp-contact__grid { padding: 0 20px; gap: 32px; }
  .lp-contact__info h3 { font-size: 22px; }
  .lp-contact__channel { padding: 14px 16px; min-height: 64px; }
  .lp-contact__form-card { padding: 28px 20px; }
  .lp-contact__form-title { font-size: 20px; margin-bottom: 20px; }
  .lp-contact__field input,
  .lp-contact__field textarea,
  .lp-contact__field select {
    font-size: 16px; /* prevents iOS Safari zoom on focus */
    padding: 14px 14px;
  }
  .lp-contact__submit { min-height: 52px; font-size: 16px; }

  /* CTA */
  .lp-cta { padding: 72px 0; }
  .lp-cta__content { padding: 0 20px; }
  .lp-cta__subtitle { font-size: 16px; margin-bottom: 28px; }
  .lp-cta__actions { flex-direction: column; align-items: stretch; }
  .lp-cta__actions .lp-hero__btn-primary,
  .lp-cta__actions .lp-hero__btn-ghost { width: 100%; }

  /* Footer */
  .lp-footer {
    padding: 32px 0 calc(100px + env(safe-area-inset-bottom));
  }
  .lp-footer__inner { flex-direction: column; text-align: center; gap: 16px; padding: 0 20px; }
  .lp-footer__links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* ---- Small phones (≤480px) ---- */
@media (max-width: 480px) {
  .lp-section { padding: 56px 0; }

  .lp-hero { padding: calc(88px + env(safe-area-inset-top)) 0 40px; }
  .lp-hero__title { font-size: clamp(32px, 9vw, 42px); }
  .lp-hero__subtitle { font-size: 15px; }
  .lp-hero__marquee-track { gap: 6px; animation-duration: 18s; }
  .lp-hero__marquee-tag { padding: 4px 10px; font-size: 11px; }

  .lp-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .lp-stats__number { font-size: 30px; }
  .lp-stats__label { font-size: 12px; }

  .lp-about__details { grid-template-columns: 1fr; }
  .lp-about__social { flex-direction: column; }
  .lp-about__social-link { justify-content: center; }

  .lp-section__title { font-size: clamp(26px, 7vw, 32px); }
  .lp-section__subtitle { font-size: 15px; }
}

/* ---- Tiny phones (≤360px, iPhone SE 1st gen) ---- */
@media (max-width: 360px) {
  .lp-hero__content { padding: 0 16px; }
  .lp-hero__actions { gap: 8px; }
  .lp-stats__number { font-size: 26px; }
  .lp-nav__brand { font-size: 18px; }
  .lp-nav__logo { width: 30px; height: 30px; font-size: 11px; }
}

/* ---- Landscape phones — shorter hero ---- */
@media (max-height: 500px) and (orientation: landscape) {
  .lp-hero { min-height: auto; padding: 96px 0 48px; }
  .lp-hero__marquee-wrapper { margin-bottom: 20px; }
}

/* ---- Accessibility: respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .lp-hero__marquee-track { animation: none; }
  .lp-hero__bg { display: none; }
  .lp-reveal { opacity: 1; transform: none; }
}

/* ========================================
   Mobile Bottom CTA Bar (FAB) — mobile only
   ======================================== */
.lp-mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  padding: 10px max(12px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
  background: rgba(6,6,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.lp-mobile-cta--visible {
  transform: translateY(0);
  pointer-events: auto;
}
.lp-mobile-cta__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: 480px;
  margin: 0 auto;
}
.lp-mobile-cta__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  min-height: 54px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  cursor: pointer;
}
.lp-mobile-cta__item:active {
  background: rgba(0,102,255,0.15);
  transform: scale(0.96);
}
.lp-mobile-cta__item--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  box-shadow: 0 4px 18px rgba(0,102,255,0.35);
}
.lp-mobile-cta__item--primary:active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
}
.lp-mobile-cta__icon {
  font-size: 18px;
  line-height: 1;
}
.lp-mobile-cta__label {
  font-size: 10.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .lp-mobile-cta { display: block; }
}

/* Light mode tweaks for mobile CTA */
[data-theme="light"] .lp-mobile-cta {
  background: rgba(255,255,255,0.9);
  border-top-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .lp-mobile-cta__item {
  color: #475569;
}

/* ---- Scroll progress indicator (mobile-focused) ---- */
.lp-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-purple));
  z-index: 1001;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* Language Switcher */
.lp-nav__lang {
  position: relative;
}

.lp-nav__lang-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary, #94a3b8);
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lp-nav__lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.lp-nav__lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.5rem;
  min-width: 160px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.lp-nav__lang-option {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.15s;
}

.lp-nav__lang-option:hover,
.lp-nav__lang-option.active {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.hidden {
  display: none !important;
}

/* ========== Light Mode ========== */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .lp-hero,
[data-theme="light"] .lp-nav,
[data-theme="light"] .lp-footer {
  background: var(--bg-primary);
}

[data-theme="light"] .lp-hero__gradient {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

[data-theme="light"] .lp-hero__title,
[data-theme="light"] .lp-section__title,
[data-theme="light"] .lp-timeline__role,
[data-theme="light"] .lp-project-card__title,
[data-theme="light"] .lp-contact h3,
[data-theme="light"] .lp-cta__title {
  color: var(--text-primary);
}

[data-theme="light"] .lp-hero__subtitle,
[data-theme="light"] .lp-section__subtitle,
[data-theme="light"] .lp-about__bio,
[data-theme="light"] .lp-timeline__desc,
[data-theme="light"] .lp-project-card__desc,
[data-theme="light"] .lp-skill-card__desc {
  color: var(--text-secondary);
}

[data-theme="light"] .lp-section {
  background: var(--bg-primary);
}

[data-theme="light"] .lp-skills {
  background: var(--bg-secondary);
}

[data-theme="light"] .lp-skill-card,
[data-theme="light"] .lp-project-card,
[data-theme="light"] .lp-contact__form-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="light"] .lp-nav__link,
[data-theme="light"] .lp-nav__name,
[data-theme="light"] .lp-footer__links a,
[data-theme="light"] .lp-footer span {
  color: var(--text-secondary);
}

[data-theme="light"] .lp-nav__link:hover {
  color: var(--text-primary);
}

[data-theme="light"] .lp-stats {
  background: var(--bg-secondary);
}

[data-theme="light"] .lp-stats__number {
  color: var(--text-primary);
}

[data-theme="light"] .lp-stats__label {
  color: var(--text-secondary);
}

[data-theme="light"] .lp-timeline__content {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="light"] .lp-timeline__period,
[data-theme="light"] .lp-timeline__company {
  color: var(--text-secondary);
}

[data-theme="light"] .lp-contact__info {
  color: var(--text-secondary);
}

[data-theme="light"] .lp-contact__channel {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="light"] .lp-cta {
  background: var(--bg-secondary);
}

[data-theme="light"] .lp-cta__bg {
  opacity: 0.03;
}

[data-theme="light"] .lp-nav__lang-btn {
  border-color: var(--border-color);
  color: var(--text-secondary);
}

[data-theme="light"] .lp-nav__lang-menu {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="light"] .lp-nav__lang-option {
  color: var(--text-secondary);
}

[data-theme="light"] .lp-about__detail-label {
  color: var(--text-secondary);
}

[data-theme="light"] .lp-about__detail-value {
  color: var(--text-primary);
}

[data-theme="light"] .lp-skill-card__tech,
[data-theme="light"] .lp-timeline__tech,
[data-theme="light"] .lp-project-card__tech {
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
}

[data-theme="light"] .lp-contact__field input,
[data-theme="light"] .lp-contact__field textarea {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

/* Theme toggle button */
.lp-nav__theme-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary, #94a3b8);
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  line-height: 1;
}

.lp-nav__theme-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

[data-theme="light"] .lp-nav__theme-btn {
  border-color: var(--border-color);
  color: var(--text-secondary);
}

[data-theme="light"] .lp-nav__theme-btn:hover {
  color: var(--text-primary);
}

/* ========================================
   Lead Capture Widget
   ======================================== */
.lc-wrapper { position: fixed; z-index: 1000; pointer-events: none; }

/* Desktop: chat bubble bottom-right */
@media (min-width: 769px) {
  .lc-wrapper { bottom: 24px; right: 24px; }
  .lc-widget {
    width: 380px;
    max-height: min(560px, calc(100vh - 48px));
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
  }
}

/* Mobile: bottom sheet (sits above mobile FAB when visible) */
@media (max-width: 768px) {
  .lc-wrapper { bottom: 0; left: 0; right: 0; }
  .lc-widget {
    width: 100%;
    max-height: 85svh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
  }
  /* Hide mobile FAB while widget is visible to avoid overlap */
  body:has(.lc-widget--visible) .lp-mobile-cta,
  body.lc-open .lp-mobile-cta { transform: translateY(110%); }
}

.lc-widget {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  display: flex;
  flex-direction: column;
}
.lc-widget--visible {
  transform: translateY(0);
  opacity: 1;
}
.lc-widget--minimized .lc-body,
.lc-widget--minimized .lc-steps { display: none; }
.lc-widget--minimized { max-height: 64px; }

/* Header */
.lc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.lc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}
.lc-header__info { flex: 1; }
.lc-header__name { font-size: 14px; font-weight: 700; color: #fff; }
.lc-header__status {
  font-size: 11px;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 4px;
}
.lc-header__status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.lc-header__actions { display: flex; gap: 4px; }
.lc-header__btn {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.lc-header__btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Body (scrolls when content exceeds widget height) */
.lc-body {
  padding: 20px;
  transition: opacity 0.2s ease;
  min-height: 120px;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Question text */
.lc-question {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Option buttons grid */
.lc-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lc-opts--compact {
  grid-template-columns: 1fr;
}
.lc-opts--multi {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 12px;
}
.lc-opt--toggle { position: relative; }
.lc-opt--toggle .lc-opt__check {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  transition: all 0.2s;
}
.lc-opt--toggle.lc-opt--selected .lc-opt__check {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.lc-hint {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
  font-style: italic;
}
.lc-submit--continue {
  margin-top: 0;
  position: sticky;
  bottom: -20px;
  z-index: 2;
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: -20px;
  width: calc(100% + 40px);
  border-radius: 0;
  padding: 16px;
}
.lc-submit--continue:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.lc-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-align: left;
}
.lc-opt:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: #fff;
  transform: translateY(-1px);
}
.lc-opt:active {
  transform: scale(0.97);
}
.lc-opt--selected {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--color-primary);
  color: #fff;
}
.lc-opt__icon { font-size: 18px; flex-shrink: 0; }
.lc-opt__label { line-height: 1.3; }

/* Text input */
.lc-input-group {
  display: flex;
  gap: 8px;
}
.lc-input {
  flex: 1;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.lc-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.lc-input::placeholder { color: #475569; }
.lc-submit-small {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.lc-submit-small:active { transform: scale(0.93); }

/* Contact form */
.lc-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lc-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  text-decoration: none;
  text-align: center;
  display: block;
  margin-top: 4px;
}
.lc-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5); }
.lc-submit:active { transform: scale(0.98); }
.lc-submit--download { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35); }

/* Thanks screen */
.lc-thanks {
  text-align: center;
  padding: 10px 0;
}
.lc-thanks__emoji {
  font-size: 48px;
  margin-bottom: 12px;
  animation: lcBounce 0.6s ease;
}
.lc-thanks__title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.lc-thanks__sub {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 20px;
}
.lc-close-final {
  background: none;
  border: none;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  margin-top: 12px;
  padding: 8px;
}
.lc-close-final:hover { color: #94a3b8; }

/* Step progress dots (pinned at bottom, respects safe-area) */
.lc-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(15, 23, 42, 0.5);
}
.lc-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s, transform 0.3s;
}
.lc-step-dot--active {
  background: var(--color-primary);
  transform: scale(1.3);
}
.lc-step-dot--done {
  background: var(--color-success);
}

@keyframes lcBounce {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* Light mode */
[data-theme="light"] .lc-widget {
  background: rgba(255,255,255,0.97);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .lc-question { color: #0f172a; }
[data-theme="light"] .lc-opt { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); color: #334155; }
[data-theme="light"] .lc-opt:hover { background: rgba(99,102,241,0.08); color: #0f172a; }
[data-theme="light"] .lc-input { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #0f172a; }
[data-theme="light"] .lc-header { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .lc-header__name { color: #0f172a; }
[data-theme="light"] .lc-header__btn { background: rgba(0,0,0,0.05); color: #64748b; }
[data-theme="light"] .lc-thanks__title { color: #0f172a; }
