/* ═══════════════════════════════════════════════════
   JMK-Web — index.css (page-specific)
   ═══════════════════════════════════════════════════ */

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center;
  padding: 8rem 0 5rem;
  position: relative; overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    linear-gradient(var(--accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-glow {
  position: absolute;
  top: -120px; right: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(61,133,212,0.18) 0%, transparent 70%);
  pointer-events: none;
  will-change: transform;
  contain: layout style;
  overflow: hidden;
}
.hero-glow-warm {
  position: absolute;
  bottom: -80px; left: 20%;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(250,150,60,0.07) 0%, transparent 70%);
  pointer-events: none;
  will-change: transform;
  contain: layout style;
  overflow: hidden;
}
.hero-line {
  position: absolute; top: 0; left: calc(5% + 100px);
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(61,133,212,0.25) 40%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; margin-bottom: 2.2rem;
  border: 1px solid rgba(61,133,212,0.4); border-radius: 3px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em;
  color: var(--accent-light); text-transform: uppercase;
}
.hero-badge i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 800; line-height: 1.06;
  color: var(--white); letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}
.hero-title em { font-style: normal; color: var(--accent-light); }
.hero-sub {
  font-size: 1.05rem; font-weight: 400; color: #b0c8e0;
  max-width: 480px; line-height: 1.8; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── PROOF ── */
.hero-proof {
  display: flex; gap: 3rem; margin-top: 4.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(61,133,212,0.2);
}
.proof-item {
  display: flex; flex-direction: column; align-items: flex-start;
}
.proof-num {
  font-family: 'Syne', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.03em;
}
.proof-num span { color: var(--accent-light); }
.proof-label {
  font-size: 0.78rem; color: #7a96b0;
  text-transform: uppercase; letter-spacing: 0.09em; margin-top: 6px;
  font-weight: 500;
}

/* ── WHY ── */
#why { padding: 6rem 0; background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.why-card {
  padding: 2.5rem 2rem;
  border-radius: 12px;
  border: 1px solid #e2eaf4;
  background: #fff;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity 0.25s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(26,58,107,0.1); }
.why-card:hover::before { opacity: 1; }

.why-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.why-icon-time { background: #fff3e0; }
.why-icon-money { background: #e8f5e9; }
.why-icon-tech { background: #e3f2fd; }
.why-icon svg { width: 24px; height: 24px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-icon-time svg { stroke: #f57c00; }
.why-icon-money svg { stroke: #2e7d32; }
.why-icon-tech svg { stroke: #1565c0; }

.why-pain {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #5e7a96;
  margin-bottom: 0.6rem;
}
.why-title {
  font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.8rem;
}
.why-desc { font-size: 0.9rem; color: #3d5a78; line-height: 1.75; font-weight: 400; }

/* ── SERVICES PREVIEW ── */
#services-preview { background: var(--navy); padding: 6rem 0; }
#services-preview .section-title { color: var(--white); }
#services-preview .section-sub { color: #8aa8c4; }
.sp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border: 1px solid rgba(61,133,212,0.18);
  gap: 1px; background: rgba(61,133,212,0.18);
}
.sp-card {
  background: var(--navy-mid); padding: 2.2rem;
  position: relative; overflow: hidden;
  transition: background 0.25s;
}
.sp-card:hover { background: #162d50; }
.sp-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s;
}
.sp-card:hover::after { width: 100%; }

.sp-num {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.15em;
  color: #6aaee8; text-transform: uppercase; margin-bottom: 1.4rem;
  display: block;
}
.sp-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(61,133,212,0.13);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
}
.sp-icon svg { width: 20px; height: 20px; stroke: var(--accent-light); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sp-name { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 0.7rem; }
.sp-desc { font-size: 0.88rem; color: #8aa8c4; line-height: 1.75; font-weight: 400; }
.sp-desc-email { margin-top: 0.5rem; font-size: 0.78rem; color: var(--accent-light); }
.sp-price {
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(61,133,212,0.15);
  font-family: 'Syne', sans-serif; font-size: 1.1rem;
  font-weight: 600; color: var(--accent-light);
}
.sp-price small { font-family: 'Inter', sans-serif; font-size: 0.73rem; color: #7a96b0; font-weight: 400; }
.sp-cta-wrap { margin-top: 2.5rem; text-align: center; }

/* ── PROCESS ── */
#process { padding: 6rem 0; background: #f4f7fa; }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.process-step { padding: 2rem 1.8rem; position: relative; border-right: 1px solid #d8e4f0; }
.process-step:last-child { border-right: none; }

.step-num {
  font-family: 'Syne', sans-serif; font-size: 2.8rem; font-weight: 800;
  color: #b0bfcc; line-height: 1; margin-bottom: 1rem;
}
.step-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.step-desc { font-size: 0.88rem; color: #3d5a78; line-height: 1.7; font-weight: 400; }

.process-slogan {
  margin-top: 3rem; padding: 2rem 2.5rem;
  background: linear-gradient(135deg, #0b1929 0%, #112038 100%);
  border-radius: 12px;
  display: flex; align-items: center; gap: 1.5rem;
  border: 1px solid rgba(61,133,212,0.2);
}
.process-slogan-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(61,133,212,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.process-slogan-icon svg { width: 24px; height: 24px; stroke: #6aaee8; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.process-slogan-text { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: #ffffff; }
.process-slogan-text span { color: var(--accent-light); }

/* ── PORTFOLIO PREVIEW ── */
#portfolio-preview { padding: 6rem 0; background: var(--white); }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.pp-card {
  border: 1px solid #e2eaf4; border-radius: 12px;
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none; display: block;
}
.pp-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(26,58,107,0.12); }
.pp-thumb { height: 200px; position: relative; overflow: hidden; background: #0b1929; max-width: 100%; }
.pp-thumb iframe {
  width: 200%; height: 200%;
  transform: scale(0.5); transform-origin: top left;
  pointer-events: none; border: none;
  position: absolute; top: 0; left: 0;
}
.pp-thumb img, .pp-thumb picture {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block;
}
.pp-thumb-overlay { position: absolute; inset: 0; background: transparent; transition: background 0.25s; }
.pp-card:hover .pp-thumb-overlay { background: rgba(61,133,212,0.08); }
.pp-label {
  position: absolute; top: 12px; right: 12px;
  padding: 3px 10px; border-radius: 3px;
  background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.9);
  font-size: 0.67rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; backdrop-filter: blur(4px);
}
.pp-visit {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  padding: 5px 16px; border-radius: 20px;
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em;
  opacity: 0; transition: opacity 0.25s; white-space: nowrap;
}
.pp-card:hover .pp-visit { opacity: 1; }
.pp-info { padding: 1.4rem 1.5rem; }
.pp-sector { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: #2d6eb8; margin-bottom: 0.3rem; font-weight: 700; }
.pp-name { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.45rem; }
.pp-desc { font-size: 0.86rem; color: #3d5a78; font-weight: 400; line-height: 1.65; }
.pp-cta-wrap { margin-top: 2.5rem; text-align: center; }

/* ── CTA BANNER ── */
#cta-banner { background: var(--navy); padding: 5rem 0; position: relative; overflow: hidden; }
.cta-grid-bg {
  position: absolute; inset: 0; opacity: 0.025;
  background-image: linear-gradient(var(--accent) 1px, transparent 1px), linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 64px 64px;
}
.cta-content { position: relative; z-index: 1; text-align: center; max-width: 600px; margin: 0 auto; }
.cta-content .section-title { color: var(--white); margin-bottom: 1rem; }
.cta-sub { font-size: 0.98rem; font-weight: 400; color: #8aa8c4; line-height: 1.75; margin-bottom: 2.2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 1rem; }
  .process-step { border-right: none; border-bottom: 1px solid #d8e4f0; }
  .process-step:last-child { border-bottom: none; }
  .process-slogan { flex-direction: column; text-align: center; }
}
@media (max-width: 700px) {
  .hero-glow { width: 300px; height: 300px; right: -40px; }
  .hero-glow-warm { width: 250px; height: 250px; }
  .hero-proof { gap: 1rem; flex-wrap: wrap; }
  .proof-num { font-size: 2rem; }
}
