/* ============================================================
   360MARTECH — styles.css
   Palette: Off-white bg · Deep navy text · Electric blue accent
   Fonts:   Instrument Serif (display) · Manrope (body)
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --navy:      #0A0F1E;
  --navy2:     #111827;
  --navy3:     #1C2636;
  --blue:      #1A6BF5;
  --blue-light:#3D83FF;
  --blue-dim:  rgba(26,107,245,0.12);
  --cream:     #F8F6F1;
  --cream2:    #EEECe7;
  --white:     #FFFFFF;
  --text:      #0A0F1E;
  --text2:     #374151;
  --text3:     #6B7280;
  --border:    rgba(10,15,30,0.1);
  --border-inv:rgba(255,255,255,0.1);
  --shadow:    0 2px 20px rgba(10,15,30,0.08);
  --shadow-lg: 0 8px 48px rgba(10,15,30,0.14);
  --r:         12px;
  --r-lg:      20px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 16px;
}

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

/* ── LAYOUT ── */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: 'Instrument Serif', serif;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
h3 { font-size: 1.25rem; font-weight: 400; }

em { font-style: italic; color: var(--blue); }

p { color: var(--text2); line-height: 1.75; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem;
}
.eyebrow.light { color: rgba(255,255,255,0.6); }

.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); display: inline-block;
  animation: pulse 2s infinite;
}

.lead-text {
  font-size: 1.1rem; color: var(--text2); line-height: 1.75;
  font-weight: 500;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff; font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 0.9rem;
  padding: 0.85rem 2rem; border-radius: 100px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(26,107,245,0.3);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(26,107,245,0.4);
}

.btn-primary-dark {
  display: inline-block;
  background: var(--white);
  color: var(--navy); font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 0.9rem;
  padding: 0.85rem 2rem; border-radius: 100px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-primary-dark:hover { background: var(--cream); transform: translateY(-1px); }

.btn-text {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: 'Manrope', sans-serif; font-weight: 600;
  font-size: 0.9rem; color: var(--blue);
  transition: gap 0.2s;
}
.btn-text:hover { gap: 0.6rem; }

/* ── SECTION SHARED ── */
.section-hd {
  margin-bottom: 4rem;
  max-width: 640px;
}
.section-hd.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-hd.center .eyebrow { justify-content: center; }
.section-sub {
  color: var(--text3); font-size: 1rem;
  margin-top: 0.8rem; line-height: 1.7;
}

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

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248,246,241,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(248,246,241,0.97);
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 1.3rem; color: var(--navy); letter-spacing: -0.02em;
}
.logo span { color: var(--blue); }

.nav-links {
  display: flex; align-items: center; gap: 2.2rem;
}
.nav-links a {
  font-size: 0.88rem; font-weight: 600; color: var(--text2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }

.nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: 100px;
  font-size: 0.85rem !important; font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--blue) !important; color: #fff !important; }

/* Hamburger */
.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(--navy); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  background: var(--navy);
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle grid background */
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: end;
}

.hero-content .eyebrow { color: rgba(255,255,255,0.5); }

.hero h1 {
  color: var(--white); margin-top: 1.2rem;
  max-width: 680px;
}
.hero h1 em { color: #6BA3FF; font-style: italic; }

.hero-sub {
  color: rgba(255,255,255,0.55); margin-top: 1.5rem;
  font-size: 1.05rem; max-width: 520px; line-height: 1.75;
}

.hero-actions {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 2.5rem; flex-wrap: wrap;
}
.hero .btn-text { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.hero .btn-text:hover { color: #fff; }

.hero-stats {
  display: flex; flex-direction: column; gap: 1.5rem;
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 2.5rem;
  padding-bottom: 0.5rem;
}
.hero-stat {}
.stat-n {
  font-family: 'Instrument Serif', serif;
  font-size: 2.8rem; color: var(--white); line-height: 1;
}
.stat-l {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-top: 0.2rem;
}

/* ── PROBLEM ── */
.problem {
  background: var(--white);
  padding: 7rem 0;
  border-bottom: 1px solid var(--border);
}
.problem-inner {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start;
}
.problem-left h2 { margin-top: 0.5rem; }
.problem-right { padding-top: 2.5rem; }

.problem-list {
  list-style: none; margin-top: 1.8rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.problem-list li {
  display: grid; grid-template-columns: 24px 1fr; gap: 1rem; align-items: start;
}
.dash {
  color: var(--blue); font-weight: 700; font-size: 1.1rem; padding-top: 1px;
}
.problem-list strong { display: block; color: var(--navy); font-weight: 700; margin-bottom: 0.2rem; }
.problem-list p { font-size: 0.9rem; margin: 0; }

/* ── SERVICES ── */
.services { background: var(--cream); padding: 7rem 0; }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}

.svc {
  background: var(--white); padding: 2.5rem 2rem;
  transition: background 0.2s;
  position: relative;
}
.svc:hover { background: #FAFAF8; }

.svc-num {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 0.7rem; letter-spacing: 0.12em;
  color: var(--blue); margin-bottom: 1.2rem; opacity: 0.7;
}
.svc h3 {
  color: var(--navy); margin-bottom: 0.7rem;
  font-size: 1.1rem; font-family: 'Manrope', sans-serif; font-weight: 700;
}
.svc p { font-size: 0.88rem; color: var(--text3); line-height: 1.7; }

/* ── WHY US ── */
.why-us { background: var(--white); padding: 7rem 0; }

.compare {
  display: grid; grid-template-columns: 1fr 60px 1fr; gap: 0;
  margin-top: 3.5rem;
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}

.compare-side { padding: 2.5rem; }
.old-side { background: #FAFAFA; }
.new-side { background: var(--navy); }

.compare-label {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 1.8rem;
}
.compare-label.accent { color: rgba(255,255,255,0.45); }

.compare-row { margin-bottom: 1.8rem; }
.compare-row:last-child { margin-bottom: 0; }

.cr-title {
  font-family: 'Manrope', sans-serif; font-weight: 700;
  font-size: 0.95rem; color: var(--navy); margin-bottom: 0.35rem;
}
.compare-row p { font-size: 0.86rem; color: var(--text3); line-height: 1.6; }

.new-side .cr-title { color: var(--white); }
.new-side .compare-row p { color: rgba(255,255,255,0.5); }

.compare-vs-col {
  background: var(--cream2);
  border-left: 1px solid var(--border);
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.vs-badge {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800; color: var(--text3); letter-spacing: 0.05em;
  box-shadow: var(--shadow);
}

/* ── RESULTS ── */
.results { background: var(--cream); padding: 7rem 0; }

.results-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem;
  grid-template-rows: auto auto;
}
.result-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 2.5rem; border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.result-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.featured-card {
  grid-row: span 2;
  background: var(--navy);
  border-color: transparent;
}

.result-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 1.2rem;
}
.featured-card .result-tag { color: rgba(255,255,255,0.4); }

blockquote {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem; color: var(--white); line-height: 1.4;
  font-style: italic; margin: 0;
}
.result-card p { font-size: 0.9rem; line-height: 1.7; }

.result-metric {
  display: inline-block; margin-top: 1.5rem;
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 0.82rem; letter-spacing: 0.06em;
  color: #6BA3FF; background: rgba(107,163,255,0.12);
  padding: 0.4rem 0.9rem; border-radius: 100px;
  border: 1px solid rgba(107,163,255,0.2);
}
.result-card .result-metric { color: var(--blue); background: var(--blue-dim); border-color: rgba(26,107,245,0.15); }

/* ── ABOUT ── */
.about { background: var(--white); padding: 7rem 0; }
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.about-left h2 { margin-top: 0.5rem; margin-bottom: 1.2rem; }
.about-left p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.5rem; }

.pillars {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem;
}
.pillar {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--cream);
}
.pillar strong { display: block; font-size: 0.88rem; color: var(--navy); font-weight: 700; }
.pillar span { font-size: 0.8rem; color: var(--text3); }

.about-card {
  background: var(--navy); border-radius: var(--r-lg);
  padding: 2.5rem; position: relative; overflow: hidden;
}
.about-card::before {
  content: ''; position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  top: -100px; right: -80px;
  background: radial-gradient(circle, rgba(26,107,245,0.2) 0%, transparent 70%);
}

.quote-mark {
  font-family: 'Instrument Serif', serif;
  font-size: 5rem; color: rgba(255,255,255,0.1);
  line-height: 0.6; margin-bottom: 1rem;
}
.quote-text {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-size: 1.2rem;
  color: rgba(255,255,255,0.8); line-height: 1.6; margin-bottom: 2rem;
}
.quote-author {
  display: flex; align-items: center; gap: 1rem; position: relative; z-index: 2;
}
.author-av {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.9rem; color: var(--white); }
.author-role { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

.yrs-badge {
  margin-top: 2rem; display: inline-block;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r); padding: 0.8rem 1.2rem;
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 1.6rem; color: var(--white); line-height: 1;
  position: relative; z-index: 2;
}
.yrs-badge small { display: block; font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,0.4); margin-top: 0.2rem; }

/* ── TECH ── */
.tech { background: var(--cream); padding: 7rem 0; }

.tech-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem;
  margin-top: 1rem;
}
.tcat-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 1rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips span {
  font-size: 0.82rem; font-weight: 600; color: var(--text2);
  background: var(--white); border: 1px solid var(--border);
  padding: 0.35rem 0.9rem; border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}
.chips span:hover { border-color: var(--blue); color: var(--blue); }

/* ── CTA ── */
.cta {
  background: var(--navy);
  padding: 7rem 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(26,107,245,0.15) 0%, transparent 65%);
}
.cta-inner { position: relative; z-index: 2; }
.cta h2 { color: var(--white); max-width: 600px; margin: 0 auto 1.2rem; }
.cta h2 em { color: #6BA3FF; }
.cta p { color: rgba(255,255,255,0.5); max-width: 460px; margin: 0 auto; font-size: 1rem; }

.cta-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.cta-note {
  font-size: 0.82rem; color: rgba(255,255,255,0.35); font-weight: 500;
}

/* ── FOOTER ── */
.footer {
  background: var(--navy2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem;
}
.footer-logo {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 1.1rem; color: var(--white);
}
.footer-logo span { color: var(--blue); }
.footer-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.82rem; color: rgba(255,255,255,0.35); font-weight: 500; transition: color 0.2s; }
.footer-nav a:hover { color: rgba(255,255,255,0.75); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.2); }

/* ── ANIMATIONS ── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 100px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet (max 1024px) ── */
@media (max-width: 1024px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .hero-stats {
    flex-direction: row; border-left: none;
    padding-left: 0; border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem; gap: 2.5rem;
  }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .problem-right { padding-top: 0; }
  .results-grid { grid-template-columns: 1fr; }
  .featured-card { grid-row: auto; }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .tech-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Mobile (max 768px) ── */
@media (max-width: 768px) {
  .wrap { padding: 0 1.25rem; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(248,246,241,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.75rem 0; border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta {
    margin-top: 0.5rem; text-align: center;
    padding: 0.75rem 1rem !important;
  }

  /* Hero */
  .hero { padding: 100px 0 60px; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .hero-stat { min-width: 120px; }

  /* Sections */
  .problem, .services, .why-us, .results, .about, .tech, .cta { padding: 5rem 0; }
  .section-hd { margin-bottom: 2.5rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; border-radius: var(--r); }
  .svc { padding: 2rem 1.5rem; }

  /* Compare */
  .compare { grid-template-columns: 1fr; }
  .compare-vs-col { display: none; }
  .old-side { border-radius: var(--r) var(--r) 0 0; }
  .new-side { border-radius: 0 0 var(--r) var(--r); }

  /* Results */
  blockquote { font-size: 1.25rem; }

  /* About */
  .pillars { grid-template-columns: 1fr 1fr; }
  .about-card { padding: 2rem 1.5rem; }

  /* CTA */
  .cta h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .cta-actions { flex-direction: column; gap: 1rem; align-items: center; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-nav { gap: 1.2rem; }
}

/* ── Small mobile (max 480px) ── */
@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .pillars { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.2rem; }
}
