/* ============================
   ERPBid Website Styles
   Matches BidGrid app theme
   ============================ */

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

:root {
  /* App-matching colors */
  --primary: #4a90d9;
  --primary-dark: #3a7bc8;
  --primary-light: #eaf4fb;
  --header-bg: #2c3e50;
  --text-primary: #2c3e50;
  --text-secondary: #666666;
  --text-muted: #888888;
  --success: #27ae60;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #3498db;

  /* Logo gradient colors */
  --logo-teal: #3a8a8c;
  --logo-green: #4caf50;

  /* Backgrounds */
  --bg-root: #f0f2f5;
  --bg-panel: #f7f9fc;
  --bg-card: #ffffff;
  --bg-bar: #ecf0f1;
  --white: #ffffff;

  /* Borders */
  --border-card: #e8e8e8;
  --border-light: #e0e0e0;

  /* Shadows (from app) */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-card-hover: 0 3px 8px rgba(0,0,0,0.12);
  --shadow-modal: 0 8px 32px rgba(0,0,0,0.2);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);

  /* Radius (from app) */
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

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

/* --- Typography --- */
h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 0.938rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-card);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-nav,
.nav-links a.btn-nav {
  background: var(--primary);
  color: var(--white);
  padding: 8px 20px;
  font-size: 0.875rem;
  border-radius: var(--radius);
}
.btn-nav:hover,
.nav-links a.btn-nav:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-card-hover);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-panel) 0%, var(--white) 50%, var(--bg-root) 100%);
}

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

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.813rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-top: 20px;
  line-height: 1.7;
  max-width: 520px;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-card);
}

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

.stat-label {
  font-size: 0.813rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

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

.hero-grid-graphic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  perspective: 1000px;
}

.grid-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card-hover);
  border: 1px solid var(--border-card);
  transition: transform 0.3s ease;
}
.grid-card:hover {
  transform: translateY(-4px);
}

.gc-icon {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  margin-bottom: 8px;
  color: var(--primary);
  overflow: hidden;
}

.gc-icon svg {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
}

.gc-label {
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.gc-bar {
  height: 6px;
  background: var(--bg-bar);
  border-radius: 3px;
  overflow: hidden;
}

.gc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--logo-teal), var(--logo-green));
  border-radius: 3px;
  transition: width 1s ease;
}

.gc-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--success);
}

.gc-status {
  display: inline-block;
  padding: 4px 12px;
  background: #e8f5e9;
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: radial-gradient(var(--primary-light) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-header p {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* --- Features --- */
.features {
  background: var(--bg-root);
}

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

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--border-card);
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

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

.feature-card p {
  font-size: 0.938rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- AI Section --- */
.ai-section {
  background: var(--header-bg);
  color: var(--white);
}

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

.ai-content .section-tag {
  background: rgba(74, 144, 217, 0.2);
  color: #a3cef1;
}

.ai-content h2 {
  color: var(--white);
}

.ai-content > p {
  color: #b0bec5;
  margin-top: 16px;
  font-size: 1.063rem;
}

.ai-features-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-features-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ai-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: rgba(39, 174, 96, 0.2);
  color: var(--success);
  border-radius: 50%;
}

.ai-check svg {
  width: 14px;
  height: 14px;
}

.ai-features-list strong {
  display: block;
  font-size: 0.938rem;
  color: var(--white);
  margin-bottom: 2px;
}

.ai-features-list span {
  font-size: 0.875rem;
  color: #b0bec5;
  line-height: 1.5;
}

/* AI Visual Cards */
.ai-card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}
.ai-card:hover {
  transform: translateX(8px);
}

.aic-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: #b0bec5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.aic-score {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--success);
}

.aic-range {
  font-size: 1.5rem;
  font-weight: 700;
  color: #a3cef1;
}

.aic-alert {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(39, 174, 96, 0.2);
  color: var(--success);
  font-weight: 600;
  font-size: 0.938rem;
  border-radius: 100px;
}

.aic-detail {
  font-size: 0.813rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* --- How It Works --- */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

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

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bg-bar);
  line-height: 1;
  margin-bottom: 16px;
}

.step-content h3 {
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.938rem;
  color: var(--text-secondary);
}

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--border-card);
  margin-top: 32px;
  flex-shrink: 0;
}

/* --- Solutions --- */
.solutions {
  background: var(--bg-root);
}

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

.solution-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--border-card);
  text-align: center;
  transition: all 0.3s ease;
}
.solution-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.solution-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius);
  color: var(--primary);
  overflow: hidden;
}

.solution-icon svg {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  max-width: 26px;
  max-height: 26px;
  flex-shrink: 0;
}

.solution-card h3 {
  margin-bottom: 8px;
}

.solution-card p {
  font-size: 0.938rem;
  color: var(--text-secondary);
}

/* --- Integrations --- */
.integrations-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.integrations-content .section-tag {
  margin-bottom: 16px;
}

.integrations-content > p {
  margin-top: 16px;
  font-size: 1.063rem;
  color: var(--text-secondary);
}

.integration-points {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.int-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.int-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  max-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  color: var(--primary);
  overflow: hidden;
}

.int-icon svg {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  flex-shrink: 0;
}

.int-point strong {
  display: block;
  margin-bottom: 2px;
}

.int-point p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Integration Hub Visual */
.int-hub {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}

.int-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--logo-teal), var(--logo-green));
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(74, 144, 217, 0.1), 0 0 0 16px rgba(74, 144, 217, 0.05);
  z-index: 2;
}

.int-node {
  position: absolute;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: 100px;
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: var(--shadow-card);
}

.in-1 { top: 10px; left: 50%; transform: translateX(-50%); }
.in-2 { top: 35%; right: -10px; }
.in-3 { bottom: 35%; right: -10px; }
.in-4 { bottom: 10px; left: 50%; transform: translateX(-50%); }
.in-5 { top: 50%; left: -10px; transform: translateY(-50%); }

/* --- Deployment --- */
.deploy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.deploy-card {
  text-align: center;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}
.deploy-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card-hover);
}

.deploy-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.deploy-icon svg {
  width: 28px;
  height: 28px;
}

.deploy-card h3 {
  margin-bottom: 8px;
}

.deploy-card p {
  font-size: 0.938rem;
  color: var(--text-secondary);
}

/* --- Contact --- */
.contact {
  background: var(--bg-root);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.contact-info .section-tag {
  margin-bottom: 16px;
}

.contact-info > p {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 1.063rem;
}

.contact-details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.938rem;
  color: var(--text-secondary);
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--primary);
  font-weight: 500;
}
.contact-item a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card-hover);
  border: 1px solid var(--border-card);
}

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

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.938rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.form-group textarea {
  resize: vertical;
}

.form-note {
  text-align: center;
  font-size: 0.813rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Form Success */
.form-success {
  text-align: center;
  padding: 48px 24px;
}

.success-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f5e9;
  color: var(--success);
  border-radius: 50%;
  margin: 0 auto 20px;
}

.success-icon svg {
  width: 28px;
  height: 28px;
}

.form-success h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.form-success p {
  color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
  background: var(--header-bg);
  color: #b0bec5;
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.footer-brand p {
  font-size: 0.938rem;
  max-width: 300px;
}

.footer-about {
  margin-top: 8px;
}

.footer-about a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
}

.footer-about a:hover {
  text-decoration-color: var(--white);
}

.footer-links {
  display: flex;
  gap: 64px;
  justify-content: flex-end;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: #b0bec5;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.813rem;
}

/* ============================
   Responsive
   ============================ */

@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

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

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

  .ai-layout,
  .integrations-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .section { padding: 64px 0; }

  /* Mobile Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-card);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

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

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

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

  .stat-divider {
    display: none;
  }

  .features-grid,
  .solutions-grid,
  .deploy-cards {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .step-connector {
    width: 2px;
    height: 32px;
    margin: 0;
  }

  .step {
    max-width: 100%;
  }

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

  .contact-form-wrapper {
    padding: 24px;
  }

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

  .footer-links {
    justify-content: flex-start;
    gap: 40px;
  }

  .hero-grid-graphic {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .int-hub {
    width: 260px;
    height: 260px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.875rem; }

  .container { padding: 0 16px; }

  .hero-grid-graphic {
    grid-template-columns: 1fr;
  }
}
