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

:root {
  --navy-900: #0a1628;
  --navy-800: #111d33;
  --navy-700: #1a2940;
  --navy-600: #243650;
  --navy-500: #3a5068;
  --navy-400: #6b8299;
  --navy-300: #94a8bd;
  --navy-200: #c4d3e0;
  --navy-100: #e8eef4;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-400: #fb923c;
  --orange-100: #fff7ed;
  --white: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--navy-900);
  color: var(--navy-200);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ─── Utilities ───────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 160ms var(--ease-out);
  border: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-primary:hover {
  background: var(--orange-600);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--navy-600);
}

.btn-outline:hover {
  background: var(--navy-800);
  border-color: var(--navy-500);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-200);
}

.btn-ghost:hover {
  color: var(--white);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius);
}

.btn-full {
  width: 100%;
}

/* ─── Navigation ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 41, 64, 0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-brand-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-300);
  transition: color 150ms;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 200ms;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--navy-900);
  border-bottom: 1px solid var(--navy-700);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--navy-200);
  padding: 8px 0;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--navy-700);
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--orange-400);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--orange-500);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--navy-300);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
}

.stat-label {
  font-size: 13px;
  color: var(--navy-400);
  margin-top: 2px;
}

/* Dashboard Preview */
.hero-visual {
  position: relative;
}

.dashboard-preview {
  background: var(--navy-800);
  border: 1px solid var(--navy-600);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--navy-700);
  border-bottom: 1px solid var(--navy-600);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy-500);
}

.preview-dots span:first-child { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #eab308; }
.preview-dots span:last-child { background: #22c55e; }

.preview-title {
  font-size: 12px;
  color: var(--navy-400);
}

.preview-content {
  padding: 20px;
}

.preview-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.preview-kpi {
  background: var(--navy-700);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.kpi-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

.kpi-label {
  display: block;
  font-size: 11px;
  color: var(--navy-400);
  margin-top: 4px;
}

.preview-table {
  border-radius: 8px;
  overflow: hidden;
}

.preview-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 0.8fr;
  padding: 10px 14px;
  font-size: 12px;
  border-bottom: 1px solid var(--navy-700);
}

.preview-row.header {
  background: var(--navy-700);
  font-weight: 600;
  color: var(--navy-300);
}

.preview-row:not(.header) {
  color: var(--navy-200);
}

.status-confirmed {
  color: #22c55e;
  font-weight: 500;
}

.status-pending {
  color: #eab308;
  font-weight: 500;
}

/* ─── Problem Section ─────────────────────────────────────────────────────── */
.problem {
  padding: 100px 0;
  background: var(--navy-800);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-description {
  font-size: 16px;
  color: var(--navy-300);
  max-width: 600px;
  margin: 0 auto;
}

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

.problem-card {
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 200ms;
}

.problem-card:hover {
  border-color: var(--navy-500);
}

.problem-icon {
  width: 48px;
  height: 48px;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.problem-card p {
  font-size: 14px;
  color: var(--navy-300);
  line-height: 1.6;
}

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

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

.feature-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 200ms var(--ease-out);
}

.feature-card:hover {
  border-color: var(--navy-500);
  transform: translateY(-2px);
}

.feature-card.featured {
  grid-row: span 2;
  background: linear-gradient(135deg, var(--navy-800), rgba(249, 115, 22, 0.05));
  border-color: rgba(249, 115, 22, 0.2);
}

.feature-icon, .feature-icon-large {
  width: 44px;
  height: 44px;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--orange-400);
}

.feature-icon-large {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--navy-300);
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
}

.feature-list li {
  font-size: 13px;
  color: var(--navy-300);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--orange-500);
  border-radius: 50%;
}

/* ─── How It Works ────────────────────────────────────────────────────────── */
.how-it-works {
  padding: 100px 0;
  background: var(--navy-800);
}

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

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--orange-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--navy-300);
  line-height: 1.6;
}

/* ─── Roles Section ───────────────────────────────────────────────────────── */
.roles {
  padding: 100px 0;
}

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

.role-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 28px;
}

.role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.role-badge.admin { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.role-badge.pm { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.role-badge.accounting { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.role-badge.staff { background: rgba(249, 115, 22, 0.15); color: var(--orange-400); }

.role-card p {
  font-size: 14px;
  color: var(--navy-300);
  line-height: 1.6;
}

/* ─── Pricing Section ─────────────────────────────────────────────────────── */
.pricing {
  padding: 100px 0;
  background: var(--navy-800);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--orange-500);
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.1);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange-500);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
}

.pricing-tier {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.pricing-price {
  margin-bottom: 12px;
}

.price-amount {
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
}

.price-period {
  font-size: 16px;
  color: var(--navy-400);
}

.pricing-description {
  font-size: 14px;
  color: var(--navy-400);
  margin-bottom: 24px;
}

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

.pricing-features li {
  font-size: 14px;
  color: var(--navy-200);
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange-500);
  font-weight: 700;
}

/* ─── CTA Section ─────────────────────────────────────────────────────────── */
.cta {
  padding: 100px 0;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 16px;
  color: var(--navy-300);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Contact Section ─────────────────────────────────────────────────────── */
.contact {
  padding: 100px 0;
  background: var(--navy-800);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-item strong {
  display: block;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 14px;
  color: var(--navy-300);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-200);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--navy-900);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 150ms;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange-500);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--navy-500);
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--navy-700);
}

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

.footer-description {
  font-size: 14px;
  color: var(--navy-400);
  margin-top: 12px;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 13px;
  color: var(--navy-400);
  transition: color 150ms;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--navy-700);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--navy-500);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-visual {
    max-width: 600px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card.featured {
    grid-row: auto;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu.active {
    display: flex;
  }

  .hero {
    padding: 110px 0 60px;
  }

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

  .hero-description {
    font-size: 16px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 22px;
  }

  .section-title {
    font-size: 28px;
  }

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

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

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

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

  .hero-cta .btn {
    width: 100%;
  }

  .preview-kpi-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .preview-row {
    font-size: 11px;
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }

  .stat {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .preview-kpi-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Additional Mobile Fixes ===== */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  /* Dashboard preview scales down on mobile */
  .dashboard-preview {
    font-size: 11px;
  }
  .preview-content {
    padding: 12px;
  }
  .preview-row {
    font-size: 10px;
    padding: 6px 8px;
  }
  /* Hero section padding */
  .hero {
    padding-top: 100px;
    padding-bottom: 48px;
  }
  /* Section padding */
  section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  /* Pricing cards full width */
  .pricing-card {
    max-width: 100%;
  }
  /* Contact form */
  .contact-info, .contact-form-container {
    padding: 24px 20px;
  }
  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  /* Nav brand text wrapping */
  .nav-brand-text {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  /* Smaller headings */
  .section-title {
    font-size: 24px;
  }
  .section-subtitle {
    font-size: 15px;
  }
  /* Feature cards */
  .feature-card {
    padding: 20px 16px;
  }
  /* Pricing */
  .pricing-price {
    font-size: 36px;
  }
  /* CTA section */
  .cta-title {
    font-size: 24px;
  }
  /* Roles grid */
  .role-card {
    padding: 20px 16px;
  }
}
