/* Ruraq Website Styles */

:root {
  --primary: #ef4444;
  --primary-dark: #dc2626;
  --primary-light: #fef2f2;
  --dark: #111827;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3, h4 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
}

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

.btn-white:hover {
  background: var(--gray-100);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
}

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

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

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

.nav-links a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  display: flex;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

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

.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 32px;
  max-width: 540px;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
}

.stat-label {
  font-size: 14px;
  color: var(--gray-500);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-300);
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.email-preview {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.email-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.email-avatar {
  width: 44px;
  height: 44px;
  background: var(--gray-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--gray-600);
}

.email-meta {
  flex: 1;
}

.email-sender {
  font-weight: 600;
  color: var(--dark);
  font-size: 14px;
}

.email-subject {
  color: var(--gray-500);
  font-size: 13px;
}

.ai-badge {
  background: var(--primary);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.email-body {
  padding: 20px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
}

.email-body p {
  margin-bottom: 12px;
}

.detection-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 500;
}

/* Logos Section */
.logos-section {
  padding: 60px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.logos-title {
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 32px;
}

.logos {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 500;
}

/* Why It Matters */
.why-it-matters {
  padding: 100px 0;
  background: var(--dark);
  color: var(--white);
}

.why-it-matters .section-header h2 {
  color: var(--white);
}

.why-it-matters .section-header p {
  color: var(--gray-400);
}

.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.problem-stat {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.problem-stat.highlight-stat {
  background: var(--primary);
  border-color: var(--primary);
}

.problem-stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 12px;
}

.problem-stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.highlight-stat .problem-stat-label {
  color: rgba(255, 255, 255, 0.9);
}

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

.why-matters-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.why-icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
}

.why-matters-card h3 {
  color: var(--white);
  margin-bottom: 12px;
}

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

@media (max-width: 1024px) {
  .problem-stats {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto 60px;
  }

  .why-matters-content {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}


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

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

.section-header p {
  color: var(--gray-500);
  font-size: 1.125rem;
  margin-top: 12px;
}

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

.step {
  text-align: center;
  padding: 40px 30px;
  background: var(--gray-50);
  border-radius: 16px;
  position: relative;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.step-icon {
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step h3 {
  margin-bottom: 12px;
}

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

/* Features */
.features {
  padding: 100px 0;
  background: var(--gray-50);
}

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

.feature-card {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 12px;
}

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

/* Pricing */
.pricing {
  padding: 100px 0;
  background: var(--white);
}

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

.pricing-card {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  border: 2px solid var(--gray-200);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:first-child {
  border-color: var(--primary);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  text-align: center;
}

.pricing-amount {
  text-align: center;
  margin-bottom: 8px;
}

.pricing-amount .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
}

.pricing-amount .period {
  font-size: 1rem;
  color: var(--gray-500);
}

.pricing-billing {
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 32px;
}

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

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--gray-700);
  font-size: 15px;
}

.pricing-features svg {
  color: var(--primary);
  flex-shrink: 0;
}

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

.pricing-card-secondary {
  background: var(--gray-50);
}

.pricing-note {
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
  margin-top: 40px;
}

.pricing-note a {
  color: var(--primary);
  text-decoration: none;
}

.pricing-note a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* Platforms */
.platforms {
  padding: 100px 0;
  background: var(--white);
}

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

.platform-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--gray-50);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.platform-card:hover {
  border-color: var(--primary);
  background: var(--white);
}

.platform-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-card h3 {
  margin-bottom: 12px;
}

.platform-card p {
  color: var(--gray-600);
  font-size: 15px;
  margin-bottom: 20px;
}

.platform-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.platform-link:hover {
  text-decoration: underline;
}

/* Enterprise */
.enterprise {
  padding: 100px 0;
  background: var(--gray-50);
}

.enterprise-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.enterprise-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.enterprise-text h2 {
  margin-bottom: 20px;
}

.enterprise-text > p {
  color: var(--gray-600);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

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

.enterprise-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--gray-700);
  font-size: 15px;
}

.enterprise-features svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Dashboard Preview */
.dashboard-preview {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600;
  color: var(--dark);
}

.dashboard-period {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 400;
}

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

.dashboard-stat {
  text-align: center;
}

.dashboard-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
}

.dashboard-stat-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

.dashboard-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 24px;
  height: 160px;
}

.chart-bar {
  flex: 1;
  background: var(--primary);
  border-radius: 4px 4px 0 0;
  opacity: 0.8;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: var(--gradient);
}

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

.cta-content h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

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

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: var(--dark);
  color: var(--gray-400);
}

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

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 14px;
}

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

.footer-links a {
  display: block;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--gray-700);
  text-align: center;
  font-size: 14px;
}

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

  .hero-subtitle {
    margin: 0 auto 32px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 500px;
    margin: 40px auto 0;
  }

  .steps,
  .features-grid,
  .platforms-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .enterprise-content {
    grid-template-columns: 1fr;
  }

  .enterprise-visual {
    max-width: 500px;
    margin: 0 auto;
  }

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

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

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

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

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

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .logos {
    gap: 40px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
