/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #25D366;
  --primary-dark: #1da851;
  --dark: #1a1a2e;
  --dark-light: #16213e;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  border-color: var(--dark);
  color: var(--dark);
  background: transparent;
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 18px;
}

.btn-block {
  display: block;
  text-align: center;
  width: 100%;
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.logo span {
  color: var(--dark);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a:not(.btn) {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--dark);
}

.nav-links .btn {
  padding: 8px 20px;
  font-size: 14px;
}

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 24px;
}

.highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--gray);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 14px;
  color: var(--gray);
}

/* Phone Mockup */
.phone-mockup {
  background: var(--dark);
  border-radius: 36px;
  padding: 12px;
  max-width: 320px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  background: #e5ddd5;
  border-radius: 28px;
  overflow: hidden;
}

.chat-header {
  background: var(--primary-dark);
  color: white;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
}

.chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 360px;
}

.chat-msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 85%;
}

.chat-msg.bot {
  background: white;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: #dcf8c6;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 18px;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== How it works ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--gray-light);
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 260px;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.step p {
  color: var(--gray);
  font-size: 15px;
}

.step-arrow {
  font-size: 32px;
  color: var(--gray);
}

/* ===== Pricing ===== */
.pricing {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 750px;
  margin: 0 auto;
}

.pricing-card {
  padding: 40px;
  border-radius: var(--radius);
  border: 2px solid rgba(0,0,0,0.06);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.price {
  font-size: 48px;
  font-weight: 800;
}

.price-period {
  color: var(--gray);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 15px;
  color: var(--gray);
}

.pricing-features li::before {
  content: "\2713 ";
  color: var(--primary);
  font-weight: 700;
  margin-right: 8px;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
  font-size: 15px;
}

.footer-links h4 {
  margin-bottom: 16px;
  font-size: 16px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 4px 0;
  font-size: 15px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
}

/* ===== Auth Page ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
  padding: 24px;
}

.auth-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  width: 100%;
  max-width: 440px;
}

.auth-card .logo {
  display: block;
  text-align: center;
  font-size: 28px;
  margin-bottom: 8px;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
}

.auth-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

.auth-success {
  background: #f0fdf4;
  color: #16a34a;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

.auth-toggle {
  text-align: center;
  margin-top: 24px;
  font-size: 15px;
  color: var(--gray);
}

.auth-toggle a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* ===== Dashboard ===== */
.dashboard {
  padding-top: 80px;
  min-height: 100vh;
  background: var(--gray-light);
}

.dashboard-header {
  background: white;
  padding: 32px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-size: 28px;
}

.dashboard-header p {
  color: var(--gray);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.dash-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.dash-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.status-badge.active {
  background: #dcfce7;
  color: #16a34a;
}

.status-badge.inactive {
  background: #fee2e2;
  color: #dc2626;
}

.status-badge.trial {
  background: #fef3c7;
  color: #d97706;
}

.dash-info {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 8px;
}

.dash-value {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.logout-btn {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 15px;
  text-decoration: underline;
}

.logout-btn:hover {
  color: var(--dark);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    max-width: 280px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
