/* --- GLOBAL VARIABLES & RESET --- */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
}

:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --secondary: #0F172A;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --bg-main: #F8FAFC;
  --bg-card: rgba(255, 255, 255, 0.85);
  --card-border: rgba(255, 255, 255, 0.5);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dyzo-landing-page {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  overflow-x: hidden;
  line-height: 1.6;
}

.dyzo-landing-page * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- UTILITY CLASSES --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-primary.large {
  padding: 16px 40px;
  font-size: 18px;
}

.btn-primary.full-width {
  width: 100%;
}

/* --- NAVIGATION --- */
.navbar {
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(12px);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.5px;
}

.nav-cta {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--primary);
  color: #fff;
}

/* --- HERO SECTION --- */
.hero {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--secondary);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.trust-indicator {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
  font-weight: 500;
}

/* Mockup Graphic */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.mockup-card {
  width: 100%;
  max-width: 500px;
  height: 400px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.mockup-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
  height: 32px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  border-bottom: 1px solid #E2E8F0;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.bg-red {
  background: #FF5F56;
}

.bg-yellow {
  background: #FFBD2E;
}

.bg-green {
  background: #27C93F;
}

.mockup-body {
  display: flex;
  flex: 1;
}

.mockup-sidebar {
  width: 80px;
  background: #F8FAFC;
  border-right: 1px solid #E2E8F0;
}

.mockup-main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mockup-box {
  background: #F1F5F9;
  border-radius: 8px;
  height: 100px;
}

.mockup-box.min {
  height: 160px;
  flex: 1;
}

.mockup-row {
  display: flex;
  gap: 16px;
}

@keyframes pulseMock {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulseMock 3s ease-in-out infinite;
  background: linear-gradient(90deg, #F1F5F9 0%, #E2E8F0 50%, #F1F5F9 100%);
  background-size: 200% 100%;
}

/* --- FEATURES SECTION --- */
.features {
  padding: 100px 0;
  background: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 40px;
  background: var(--bg-main);
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid transparent;
}

.feature-card:hover {
  background: #fff;
  border-color: #E2E8F0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  transform: translateY(-5px);
}

.icon-wrapper {
  width: 56px;
  height: 56px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.icon-wrapper.bg-purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8B5CF6;
}

.icon-wrapper.bg-orange {
  background: rgba(249, 115, 22, 0.1);
  color: #F97316;
}

.icon-wrapper.bg-green {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--secondary);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 16px;
}

/* --- SOCIAL PROOF --- */
.social-proof {
  padding: 100px 0;
  text-align: center;
  background: #F8FAFC;
}

.social-proof h2 {
  font-size: 32px;
  color: var(--secondary);
  margin-bottom: 24px;
}

.metric-highlight {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  color: #065F46;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 60px;
}

.testimonials {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.testimonial {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  padding: 40px;
  text-align: left;
}

.stars {
  color: #F59E0B;
  font-size: 20px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.quote {
  font-size: 18px;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 30px;
  line-height: 1.7;
}

.author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.avatar.bg-alt {
  background: #8B5CF6;
}

.author strong {
  display: block;
  color: var(--secondary);
  font-size: 16px;
}

.author span {
  color: var(--text-muted);
  font-size: 14px;
}

/* --- SIGNUP FORM SECTION --- */
.signup-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #fff 0%, #F8FAFC 100%);
}

.flex-center {
  display: flex;
  justify-content: center;
}

.form-wrapper {
  width: 100%;
  max-width: 520px;
  padding: 50px;
  background: #fff;
}

.form-wrapper h2 {
  text-align: center;
  font-size: 28px;
  color: var(--secondary);
  margin-bottom: 30px;
}

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #E2E8F0;
  color: var(--text-main);
  font-weight: 600;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.google-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 30px 0;
  color: #94A3B8;
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E2E8F0;
}

.divider span {
  padding: 0 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 16px;
  color: var(--text-main);
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.form-checkbox input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.form-checkbox label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

.error-alert {
  background: #FEF2F2;
  color: #DC2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  border: 1px solid #FECACA;
}

/* --- FAQ SECTION --- */
.faq {
  padding: 100px 0;
  background: #fff;
}

.faq h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  color: var(--secondary);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-card {
  padding: 30px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.faq-card:hover {
  border-color: #E2E8F0;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.faq-card h4 {
  font-size: 18px;
  color: var(--secondary);
  margin-bottom: 12px;
}

.faq-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* --- BOTTOM CTA --- */
.bottom-cta {
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
  color: #fff;
  text-align: center;
  padding: 80px 40px;
  border-radius: 24px;
}

.cta-box h2 {
  font-size: 40px;
  margin-bottom: 20px;
  font-weight: 800;
  color: #ffffff;
}

.cta-box p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.cta-box .btn-primary {
  background: #fff;
  color: var(--primary);
}

.cta-box .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    margin: 0 auto 30px;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .features-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .form-wrapper {
    padding: 30px;
  }

  .features {
    padding: 60px 0;
  }

  .social-proof {
    padding: 60px 0;
  }

  .signup-section {
    padding: 60px 0;
  }

  .faq {
    padding: 60px 0;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero {
    padding: 40px 0 60px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .mockup-card {
    height: 300px;
  }

  .mockup-sidebar {
    width: 60px;
  }

  .cta-box h2 {
    font-size: 28px;
  }

  .cta-box {
    padding: 40px 20px;
  }

  .form-wrapper {
    padding: 24px 16px;
    border-radius: 12px;
  }

  .form-wrapper h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .testimonials {
    gap: 20px;
  }

  .testimonial {
    min-width: 100%;
    padding: 24px;
  }

  .badge {
    margin-bottom: 16px;
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 28px;
  }

  .btn-primary.large {
    padding: 14px 24px;
    font-size: 16px;
  }
}

/* --- ACCOUNT SELECTION MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff; /* Reverting to white background like React's base */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

.modal-bg-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  height: 100%;
  width: 100%;
}

.wavy-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.dot-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  mix-blend-mode: overlay;
  background-image: radial-gradient(circle at 1px 1px, #6366f1 1px, transparent 1.2px);
  background-size: 16px 16px;
  animation: animate-dots 20s linear infinite;
}

@keyframes animate-dots {
  from { background-position: 0 0; }
  to { background-position: 100% 100%; }
}

.modal-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  padding: 32px; /* Increased padding */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 16px; /* rounder like the screenshot */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.3);
}


.modal-content h3 {
  font-size: 18px;
  /* text-lg */
  font-weight: 600;
  /* font-semibold */
  color: #1f2937;
  /* text-gray-800 */
  margin-bottom: 24px;
  /* mb-6 for better breathing room */
  text-align: center;
  line-height: 1.5;
}

.accounts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* space-y-4 */
}

.account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  /* px-4 py-3 */
  background: #3b82f6;
  /* bg-blue-500 */
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  /* rounded-lg */
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  /* shadow-md */
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  /* font-medium */
}

.account-item:hover {
  background: #2563eb;
  /* hover:bg-blue-600 */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.account-item h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  color: #ffffff;
}

.account-role {
  font-size: 14px;
  /* text-sm */
  font-style: italic;
  /* italic */
  opacity: 0.9;
  color: #ffffff;
  margin-left: 12px;
}

@media (max-width: 600px) {
  .modal-overlay {
    padding: 16px;
  }

  .modal-content {
    padding: 24px 16px;
  }
}

/* --- OTP SCREEN STYLES --- */
.otp-header {
  text-align: center;
  margin-bottom: 24px;
}

.otp-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.otp-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.otp-header span {
  font-weight: 600;
  color: var(--text-main);
}

.otp-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.otp-box {
  width: 48px;
  height: 56px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main);
  background: #fff;
  transition: var(--transition);
}

.otp-box:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.otp-box.error {
  border-color: #DC2626;
  background: #FEF2F2;
}

.resend-container {
  text-align: center;
  margin-top: 24px;
}

.resend-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.resend-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.resend-link.disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
}