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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #0A0A0A;
  color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 60px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── CSS Variables ── */
:root {
  --bg-base: #0A0A0A;
  --bg-surface: #111111;
  --bg-elevated: #161616;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.6);
  --text-muted: rgba(255,255,255,0.35);
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;
  --gradient: linear-gradient(135deg, #3B82F6, #8B5CF6);
  --radius-card: 14px;
  --radius-btn: 8px;
  --transition: all 0.2s ease;
  --max-width: 1100px;
}

/* ── Navbar ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

.btn-nav {
  background: var(--text-primary);
  color: var(--bg-base);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-nav:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Section Base ── */
section {
  padding: 7rem 2rem;
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

/* ── Hero ── */
#hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 4rem;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.07) 0%, transparent 70%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: 20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 1.25rem;
  display: block;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gradient);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}

/* ── Hero Cards (right side) ── */
.hero-cards {
  position: relative;
  height: 360px;
}

.hero-card {
  position: absolute;
  background: #161616;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: 1.2rem 1.4rem;
  width: 230px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hero-card:nth-child(1) {
  top: 20px;
  right: 20px;
  z-index: 1;
  transform: rotate(3deg);
}

.hero-card:nth-child(2) {
  top: 100px;
  left: 10px;
  z-index: 2;
  transform: rotate(-4deg);
}

.hero-card:nth-child(3) {
  bottom: 30px;
  right: 10px;
  z-index: 3;
  transform: rotate(2deg);
}

.hero-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(59,130,246,0.4);
  z-index: 10;
}

.hero-card .hero-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.hero-card .hero-card-desc {
  font-size: 0.775rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}

/* ── Products Section ── */
#products {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.products-header { margin-bottom: 3rem; }

.products-meta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-blue);
  letter-spacing: 0.03em;
  margin-top: 0.6rem;
  display: block;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 0;
}

.product-card {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card:hover {
  border-color: rgba(59,130,246,0.35);
  background: #161616;
  transform: translateY(-3px);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.3),
    0 0 0 1px rgba(59,130,246,0.15),
    0 4px 24px rgba(59,130,246,0.08);
}

.product-icon {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  width: 20px;
  height: 20px;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.product-desc {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  flex: 1;
}

.product-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-blue);
  margin-top: 0.5rem;
  display: inline-block;
  transition: var(--transition);
}

.product-link:hover {
  color: var(--accent-purple);
  letter-spacing: 0.01em;
}

/* ── Why Section ── */
#why {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.why-card {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  transition: var(--transition);
}

.why-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.25),
    0 0 0 1px rgba(59,130,246,0.12),
    0 4px 16px rgba(59,130,246,0.07);
}

.why-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 1rem;
  display: block;
  color: var(--accent-blue);
}

.why-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.why-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Vision Section ── */
#vision {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  text-align: center;
}

.vision-inner {
  max-width: 680px;
  margin: 0 auto;
}

.vision-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.vision-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── How We Build ── */
#how-we-build {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
}

.step-card {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  transition: var(--transition);
}

.step-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.25),
    0 0 0 1px rgba(59,130,246,0.12);
}

.product-card--anchor {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  border-color: rgba(59,130,246,0.25);
  background: #141414;
  padding: 2rem 2.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.product-card--anchor::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle,
    rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.product-card--anchor:hover {
  border-color: rgba(59,130,246,0.45);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.35),
    0 0 0 1px rgba(59,130,246,0.2),
    0 8px 32px rgba(59,130,246,0.1);
}

.product-card--anchor .product-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-card--anchor .product-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.product-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3B82F6;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 0.6rem;
  display: block;
  width: fit-content;
}

.product-badge--live {
  color: #10B981;
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.3);
}

/* ── ERP Featured Card ── */
.products-erp {
  margin-bottom: 1.25rem;
}

.product-card--erp {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  border-color: rgba(16,185,129,0.35);
  background: #141414;
  padding: 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.product-card--erp::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle,
    rgba(16,185,129,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.product-card--erp::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle,
    rgba(16,185,129,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.product-card--erp:hover {
  border-color: rgba(16,185,129,0.55);
  background: #161616;
  transform: translateY(-3px);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.35),
    0 0 0 1px rgba(16,185,129,0.25),
    0 8px 32px rgba(16,185,129,0.12);
}

.product-card--erp .product-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.erp-tagline {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.product-card--erp .product-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.erp-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-trust {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
}

/* nav ERP highlight */
.nav-link-erp {
  color: #10B981 !important;
  font-weight: 600;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(59,130,246,0.6);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ── CTA Section ── */
#cta {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.15;
  white-space: nowrap;
  max-width: 600px;
  margin: 0 auto 1rem;
}

.cta-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

#how-we-build .section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.products-grid-last {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.products-grid-last .product-card {
  flex: 0 0 calc(33.333% - 0.85rem);
  max-width: calc(33.333% - 0.85rem);
  margin-top: 0;
}

/* ── Footer ── */
footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.footer-email {
  font-size: 0.825rem;
  color: var(--accent-blue);
  margin-top: 0.35rem;
  display: block;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.825rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

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

.footer-legal {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-cards { height: 280px; }
  .hero-card { width: 180px; }
  .products-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
  section { padding: 5rem 1.25rem; }

  .product-card--anchor {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .products-grid-last { flex-direction: column; }
  .products-grid-last { margin-top: 1.25rem; }
  .products-grid-last .product-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .cta-title { white-space: normal; font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-card { width: 160px; }
  .nav-links { display: none; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary { width: 100%; text-align: center; }
}
