/* ═══════════════════════════════════════════════════
   SyncERP Marketing — style.css
   Industrial Precision Design System
   ═══════════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  --blue: #3B82F6;
  --blue-dark: #2563EB;
  --blue-light: #60A5FA;
  --slate-950: #0f172a;
  --slate-900: #1e293b;
  --slate-800: #334155;
  --slate-700: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --text-dark: #0f172a;
  --text-body: #475569;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --green: #22c55e;

  --radius: 4px;
  --nav-h: 64px;
  --section-py: 96px;
  --max-w: 1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; color: var(--text-dark); }
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
.mono { font-family: 'JetBrains Mono', monospace; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
}
.section-subtitle {
  font-size: 18px;
  color: var(--text-body);
  max-width: 640px;
  margin: 16px auto 0;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Sections ── */
.section { padding: var(--section-py) 0; }
.section-dark { background: var(--slate-950); color: var(--text-light); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--text-light); }
.section-dark .section-subtitle { color: var(--slate-400); }
.section-alt { background: var(--slate-100); }
.section-header { text-align: center; margin-bottom: 64px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--white); }
.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--slate-200);
}
.btn-outline-dark:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ══════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--slate-950);
  transition: box-shadow 0.3s;
}
.nav-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--blue);
}
.nav-brand svg { width: 24px; height: 24px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-400);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-actions a.login-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-400);
  transition: color 0.2s;
}
.nav-actions a.login-link:hover { color: var(--white); }
.nav-actions .btn { padding: 10px 20px; font-size: 14px; }
.hamburger {
  display: none;
  color: var(--white);
  padding: 4px;
}
.hamburger svg { width: 24px; height: 24px; }

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--slate-900);
  padding: 24px;
  z-index: 99;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  color: var(--slate-400);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav a:hover { color: var(--white); }
.mobile-nav .btn {
  width: 100%;
  margin-top: 16px;
  text-align: center;
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  background: var(--slate-950);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
  align-items: center;
}
.hero-text { color: var(--text-light); }
.hero-text .eyebrow { margin-bottom: 20px; }
.hero-text h1 { margin-bottom: 20px; }
.hero-text .subtitle {
  font-size: 19px;
  color: var(--slate-400);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.hero-trust {
  font-size: 13px;
  color: var(--slate-400);
}
.hero-image {
  position: relative;
}
.browser-frame {
  background: var(--slate-800);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
  transition: transform 0.4s;
}
.browser-frame:hover {
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--slate-900);
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.browser-dot:nth-child(1) { background: #ef4444; }
.browser-dot:nth-child(2) { background: #eab308; }
.browser-dot:nth-child(3) { background: #22c55e; }
.browser-url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--slate-400);
  font-family: 'JetBrains Mono', monospace;
}
.browser-frame img {
  display: block;
  width: 100%;
}

/* ══════════════════════════════════════════
   SOCIAL PROOF BAR
   ══════════════════════════════════════════ */
.proof-bar {
  padding: 48px 0;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.proof-stat .number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}
.proof-stat .label {
  font-size: 14px;
  color: var(--text-body);
  margin-top: 6px;
}

/* ══════════════════════════════════════════
   FEATURE TABS
   ══════════════════════════════════════════ */
.tab-nav {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  border-radius: var(--radius);
  transition: all 0.2s;
  background: transparent;
}
.tab-btn:hover { color: var(--blue); background: rgba(59,130,246,0.08); }
.tab-btn.active {
  background: var(--blue);
  color: var(--white);
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-panel {
  max-width: 720px;
  margin: 0 auto;
}
.tab-panel p {
  font-size: 17px;
  color: var(--text-body);
  margin-bottom: 28px;
}
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}
.feature-item svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ══════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 3px;
  background: var(--blue);
  opacity: 0.3;
}
.step { text-align: center; position: relative; }
.step-number {
  width: 56px;
  height: 56px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--slate-400); }

/* ══════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: 8px;
  padding: 48px 40px;
}
.pricing-card .plan-name {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 8px;
}
.pricing-card .price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.pricing-card .price-sub {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 32px;
}
.pricing-features {
  margin-bottom: 32px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--slate-100);
}
.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
}
.pricing-card .btn { width: 100%; }
.pricing-faq h3 { margin-bottom: 24px; }
.pricing-faq-item { margin-bottom: 20px; }
.pricing-faq-item h4 {
  font-size: 15px;
  margin-bottom: 4px;
}
.pricing-faq-item p {
  font-size: 14px;
  color: var(--text-body);
}

/* ══════════════════════════════════════════
   INDUSTRIES
   ══════════════════════════════════════════ */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.industry-card {
  background: var(--slate-100);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.industry-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--blue);
}
.industry-card h3 { font-size: 18px; margin-bottom: 12px; }
.industry-card ul {
  text-align: left;
}
.industry-card li {
  font-size: 14px;
  color: var(--text-body);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.industry-card li svg {
  width: 14px;
  height: 14px;
  color: var(--green);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════════════ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--slate-200);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
}
.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--text-body);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-question .rotated { transform: rotate(180deg); }
.faq-answer {
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   FINAL CTA
   ══════════════════════════════════════════ */
.cta-section {
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 { margin-bottom: 12px; }
.cta-section p {
  font-size: 18px;
  color: var(--slate-400);
  margin-bottom: 36px;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--blue);
  margin-bottom: 12px;
}
.footer-brand svg { width: 22px; height: 22px; }
.footer-tagline {
  font-size: 14px;
  margin-bottom: 20px;
}
.footer-contact p {
  font-size: 14px;
  margin-bottom: 4px;
}
.footer-contact a { color: var(--blue-light); }
.footer-contact a:hover { text-decoration: underline; }
.footer h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-size: 14px;
  color: var(--slate-400);
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  font-size: 13px;
  text-align: center;
}

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  :root { --section-py: 72px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text .subtitle { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-trust { text-align: center; }
  .hero-image { max-width: 600px; margin: 0 auto; }
  .browser-frame { transform: perspective(1200px) rotateY(0) rotateX(3deg); }
  .browser-frame:hover { transform: perspective(1200px) rotateY(0) rotateX(1deg); }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --section-py: 56px; --nav-h: 56px; }
  .container { padding: 0 16px; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: block; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 48px); padding-bottom: 48px; }
  .hero-text h1 { font-size: 32px; }
  .hero-text .subtitle { font-size: 16px; }
  .proof-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .proof-stat .number { font-size: 28px; }
  .tab-nav { gap: 2px; }
  .tab-btn { padding: 8px 14px; font-size: 12px; }
  .feature-list { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .industry-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-card { padding: 32px 24px; }
  .section-header { margin-bottom: 40px; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
}
