/* ===========================================
   Nexus InfraGuard | Style.css
   =========================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; color: #111827; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Utility --- */
.page { overflow: hidden; }
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; border-radius: 8px; cursor: pointer; transition: all .2s; border: none; font-size: .875rem; padding: .5rem 1rem; }
.btn-sm { font-size: .8125rem; padding: .5rem 1rem; }
.btn-lg { font-size: 1rem; padding: .75rem 1.75rem; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-accent { background: #f97316; color: #fff; }
.btn-accent:hover { background: #ea580c; }
.btn-outline { background: transparent; border: 2px solid #d1d5db; color: #374151; }
.btn-outline:hover { background: #f9fafb; border-color: #9ca3af; }
.center-btn { text-align: center; margin-top: 2rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: #f0fdfa; color: #0d9488; padding: .375rem .75rem; border-radius: 999px; margin-bottom: 1.5rem; }

/* --- Section Shared --- */
.section { padding: 5rem 0; }
.section-gray { background: #f9fafb; }
.section-dark { background: #111827; }
.section-title { font-family: 'Sora', sans-serif; font-size: 1.875rem; font-weight: 700; text-align: center; margin-bottom: .75rem; letter-spacing: -.025em; }
.section-sub { font-size: 1.125rem; color: #6b7280; text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-title-light { color: #fff; }
.section-sub-light { color: #9ca3af; }

/* --- Nav --- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid #e5e7eb; }
.nav-inner { display: flex; align-items: center; height: 64px; gap: 2rem; }
.nav-brand { display: flex; align-items: center; gap: .5rem; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.125rem; }
.logo-icon { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg,#2563eb,#0d9488); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-links a { font-size: .875rem; font-weight: 500; color: #6b7280; transition: color .2s; }
.nav-links a:hover { color: #111827; }
.nav-cta { margin-left: 1rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: #374151; margin-left: auto; }

/* --- Hero --- */
.hero { position: relative; padding: 5rem 0 4rem; overflow: hidden; }
.hero-bg-decor { position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(13,148,136,.08) 0%, rgba(37,99,235,.06) 50%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-heading { font-family: 'Sora', sans-serif; font-size: 2.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.125rem; color: #6b7280; max-width: 540px; margin-bottom: 2rem; line-height: 1.625; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.stat { display: flex; align-items: baseline; gap: .375rem; }
.stat-num { font-family: 'Sora', sans-serif; font-size: 1.25rem; font-weight: 700; color: #2563eb; }
.stat-label { font-size: .875rem; color: #6b7280; }
.hero-visual { position: relative; }
.hero-glow { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,148,136,.15), rgba(37,99,235,.15)); border-radius: 1rem; filter: blur(40px); }
.hero-img { position: relative; border-radius: 1rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }

/* --- Fade-in animations --- */
.fade-in { opacity: 0; transform: translateY(12px); animation: fadeInUp .8s ease forwards; }
.fade-in-delayed { opacity: 0; transform: translateY(12px); animation: fadeInUp .8s .2s ease forwards; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { to { opacity: 1; transform: scale(1); } }

/* --- Features --- */
.features-grid { display: grid; gap: 1.5rem; }
.feature-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.5rem; transition: all .3s; opacity: 0; transform: translateY(8px); animation: fadeInUp .5s ease forwards; }
.feature-card:hover { border-color: #5eead4; box-shadow: 0 10px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.05); transform: scale(1.03); }
.feat-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg,#2dd4bf,#2563eb); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.feat-title { font-family: 'Sora', sans-serif; font-size: 1.125rem; font-weight: 600; margin-bottom: .5rem; }
.feat-desc { font-size: .9375rem; color: #6b7280; line-height: 1.625; }

/* --- Use Cases --- */
.use-case-card { display: grid; gap: 2rem; align-items: center; margin-bottom: 2rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 2rem; }
.use-case-card.reverse .uc-image { order: -1; }
.uc-title { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 1.25rem; }
.uc-list li { display: flex; align-items: flex-start; gap: .625rem; font-size: .9375rem; color: #374151; margin-bottom: .75rem; line-height: 1.5; }
.uc-list li svg { flex-shrink: 0; color: #0d9488; margin-top: 3px; }
.uc-image img { border-radius: .75rem; width: 100%; }
.uc-mini-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
.uc-mini { background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.5rem; }
.uc-mini-icon { width: 40px; height: 40px; border-radius: 10px; background: #f0fdfa; color: #0d9488; display: flex; align-items: center; justify-content: center; margin-bottom: .75rem; }
.uc-mini h4 { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: .75rem; }
.uc-mini li { font-size: .875rem; color: #6b7280; padding: .25rem 0; position: relative; padding-left: 1rem; }
.uc-mini li::before { content: ''; position: absolute; left: 0; top: .625rem; width: 4px; height: 4px; border-radius: 50%; background: #0d9488; }

/* --- ROI --- */
.roi-section { background: linear-gradient(135deg, #2563eb, #0d9488); }
.roi-grid { display: grid; gap: 1.5rem; }
.roi-card { background: rgba(255,255,255,.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 1rem; padding: 2rem; text-align: center; color: #fff; border: 1px solid rgba(255,255,255,.1); }
.roi-num { font-family: 'Sora', sans-serif; font-size: 2.5rem; font-weight: 700; margin-bottom: .25rem; }
.roi-metric { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.roi-desc { font-size: .875rem; color: rgba(255,255,255,.7); }

/* --- Comparison Table --- */
.table-wrap { overflow-x: auto; border: 1px solid #e5e7eb; border-radius: 1rem; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.compare-table th, .compare-table td { padding: .875rem 1rem; text-align: left; font-size: .875rem; border-bottom: 1px solid #e5e7eb; }
.compare-table thead th { background: #f9fafb; font-weight: 600; font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.compare-table tbody tr:hover { background: #f9fafb; }
.compare-table tbody td:first-child { font-weight: 500; }
.col-highlight { color: #0d9488; }
.compare-table thead .col-highlight { color: #0d9488; }

/* --- Code Block --- */
.code-block { background: #1e293b; border-radius: 1rem; overflow: hidden; margin: 2rem 0; }
.code-header { background: #334155; padding: .75rem 1rem; font-size: .75rem; color: #94a3b8; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.code-block pre { padding: 1.25rem; overflow-x: auto; font-family: 'Fira Code', monospace; font-size: .8125rem; line-height: 1.7; color: #e2e8f0; white-space: pre; }
.code-block code { font-family: inherit; }
.code-block .c { color: #64748b; font-style: italic; }
.code-block .p { color: #2dd4bf; }
.timing-row { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.timing { font-family: 'Sora', sans-serif; font-size: 1.25rem; font-weight: 700; color: #2dd4bf; text-align: center; }
.timing span { display: block; font-family: 'Inter', sans-serif; font-size: .8125rem; font-weight: 400; color: #94a3b8; margin-top: .25rem; }

/* --- CTA --- */
.section-cta { background: linear-gradient(135deg, #f0fdfa, #eff6ff); text-align: center; }
.cta-heading { font-family: 'Sora', sans-serif; font-size: 1.875rem; font-weight: 700; margin-bottom: .75rem; letter-spacing: -.025em; }
.cta-sub { font-size: 1.125rem; color: #6b7280; margin-bottom: 2rem; }
.cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* --- Footer --- */
.footer { background: #111827; color: #d1d5db; padding: 4rem 0 2rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand .nav-brand { color: #fff; margin-bottom: .5rem; }
.footer-tagline { font-size: .875rem; color: #6b7280; }
.footer-col h4 { font-family: 'Sora', sans-serif; font-size: .875rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: .875rem; color: #9ca3af; margin-bottom: .5rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; margin-top: 2rem; padding-top: 2rem; text-align: center; font-size: .8125rem; color: #6b7280; }

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

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 6rem 0; }
  .hero-heading { font-size: 3.5rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .use-case-card { grid-template-columns: 1fr 1fr; }
  .uc-mini-grid { grid-template-columns: repeat(3, 1fr); }
  .roi-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .section-title { font-size: 2.25rem; }
  .cta-heading { font-size: 2.25rem; }
  .roi-num { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero-heading { font-size: 4rem; }
  .section { padding: 6rem 0; }
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .hero-heading { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .use-case-card.reverse .uc-image { order: 0; }
  .roi-grid { grid-template-columns: repeat(2, 1fr); }
  .roi-card { padding: 1.5rem; }
  .roi-num { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.5rem; }
  .cta-heading { font-size: 1.5rem; }
  .timing-row { gap: 1rem; }
}

