/* ============================================================
   MasterProd – Main Stylesheet
   ============================================================ */

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

:root {
  --blue:    #1A4FD6;
  --blue-dk: #1340B0;
  --blue-lt: #EEF2FC;
  --blue-md: #D1DDFB;
  --bg:      #ffffff;
  --bg2:     #F7F8FC;
  --line2:   rgba(0,0,0,0.07);
  --text:    #0D1526;
  --muted:   #6B7A99;
  --ff-head: 'Barlow Condensed', sans-serif;
  --ff-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 80px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line2);
  box-shadow: 0 1px 24px rgba(26,79,214,.06);
}

.nav-logo img {
  height: 52px;
  display: block;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue);
  color: #fff;
  font-family: var(--ff-head);
  font-size: 14px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 3px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--blue-dk); }

/* ── Hero ──────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 5vw 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero-office.jpg'), url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?w=1920&q=80');
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255,255,255,.96) 0%,
    rgba(240,244,255,.92) 40%,
    rgba(220,233,255,.70) 70%,
    rgba(180,210,255,.40) 100%
  );
}

.hero-content { position: relative; z-index: 1; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(26,79,214,.08);
  border: 1px solid rgba(26,79,214,.2);
  color: var(--blue);
  font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  width: fit-content;
}
.hero-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--ff-head);
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-title span { color: var(--blue); }

.hero-sub {
  max-width: 520px;
  font-size: 17px; font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 48px; flex-wrap: wrap;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(26,79,214,.15);
}
.stat-num {
  font-family: var(--ff-head);
  font-size: 48px; font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.stat-num span { color: var(--blue); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue);
  color: #fff;
  font-family: var(--ff-head);
  font-size: 15px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 3px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(26,79,214,.25);
}
.btn-primary:hover { background: var(--blue-dk); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,79,214,.3); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(26,79,214,.3);
  color: var(--blue);
  font-family: var(--ff-head);
  font-size: 15px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 3px;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-lt); }

.btn-white {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff;
  color: var(--blue);
  font-family: var(--ff-head);
  font-size: 15px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  padding: 18px 36px;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  transition: opacity .2s, transform .15s;
}
.btn-white:hover { opacity: .95; transform: translateY(-2px); }

/* ── Shared Section Styles ─────────────────────────────── */
section { padding: 100px 5vw; }

.section-tag {
  font-family: var(--ff-head);
  font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--ff-head);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 20px;
}

.section-desc {
  max-width: 540px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.section-head { margin-bottom: 60px; }

/* ── Services ──────────────────────────────────────────── */
#services { background: var(--bg2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}

.service-card {
  background: #fff;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  border: 1px solid var(--line2);
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--blue);
  transition: height .35s ease;
}
.service-card:hover { box-shadow: 0 8px 40px rgba(26,79,214,.1); transform: translateY(-3px); }
.service-card:hover::before { height: 100%; }

.service-icon {
  width: 48px; height: 48px;
  background: var(--blue-lt);
  border: 1px solid var(--blue-md);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.5; }

.service-title {
  font-family: var(--ff-head);
  font-size: 22px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text);
  margin-bottom: 12px;
}

.service-text { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ── Features ──────────────────────────────────────────── */
#features { background: var(--bg); }

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

.feature-list { display: flex; flex-direction: column; }

.feature-item {
  display: flex; gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line2);
}
.feature-item:first-child { padding-top: 0; }

.feature-num {
  font-family: var(--ff-head);
  font-size: 13px; font-weight: 700;
  color: var(--blue);
  letter-spacing: .1em;
  min-width: 28px;
  padding-top: 4px;
}

.feature-title {
  font-family: var(--ff-head);
  font-size: 20px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-text { color: var(--muted); font-size: 14px; line-height: 1.7; }

.features-visual {
  background: linear-gradient(135deg, var(--blue-lt) 0%, #dce7fd 100%);
  border: 1px solid var(--blue-md);
  border-radius: 8px;
  padding: 48px;
}

.checkmark-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.checkmark-list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 15px; color: var(--text);
}
.checkmark-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px; margin-top: 2px;
  background: #fff;
  border: 1.5px solid var(--blue-md);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%231A4FD6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

/* ── Advantages ────────────────────────────────────────── */
#advantages { background: var(--bg2); }

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

.adv-card {
  background: #fff;
  padding: 48px 40px;
  border-radius: 6px;
  border: 1px solid var(--line2);
  transition: box-shadow .2s;
}
.adv-card:hover { box-shadow: 0 6px 32px rgba(26,79,214,.09); }

.adv-num {
  font-family: var(--ff-head);
  font-size: 80px; font-weight: 800;
  color: rgba(26,79,214,.1);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.adv-title {
  font-family: var(--ff-head);
  font-size: 24px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text);
  margin-bottom: 14px;
}

.adv-text { color: var(--muted); font-size: 14px; line-height: 1.8; }

/* ── CTA Band ──────────────────────────────────────────── */
#cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, #2D6AE0 100%);
  padding: 80px 5vw;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}

.cta-band-title {
  font-family: var(--ff-head);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  max-width: 560px;
}

/* ── Contact ───────────────────────────────────────────── */
#contact { background: var(--bg2); }

.contact-simple {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.contact-simple .section-title {
  font-size: clamp(20px, 3vw, 32px);
}

.contact-simple .section-desc {
  margin: 0 auto 24px;
}

.contact-email {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  padding: 12px 28px;
  background: var(--blue-lt);
  border: 1px solid var(--blue-md);
  border-radius: 4px;
  transition: background .2s, transform .15s;
}
.contact-email:hover {
  background: var(--blue-md);
  transform: translateY(-2px);
}

/* ── Products ─────────────────────────────────────────── */
#products { background: var(--bg); padding-bottom: 60px; }

#products .section-head { margin-bottom: 32px; text-align: center; }

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

.product-card {
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover {
  box-shadow: 0 6px 32px rgba(26,79,214,.09);
  transform: translateY(-3px);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.product-title {
  font-family: var(--ff-head);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text);
  padding: 20px 24px 8px;
}

.product-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  padding: 0 24px 24px;
}

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

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: var(--text);
  padding: 32px 5vw;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: var(--ff-head);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
}

.footer-info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

.footer-info a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}
.footer-info a:hover { color: #fff; }

/* ── Animations ────────────────────────────────────────── */
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .adv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .features-layout { grid-template-columns: 1fr; gap: 48px; }
}
