/* ============================================================
   Edge4AssetIQ — Stylesheet
   Landing page: imports the shared EdgeWorks marketing design
   system and overrides the accent to Edge4ward blue.
   Tool pages (spcr.html, scr.html) use the SaaS night theme
   defined inline in their own <style> blocks.
   ============================================================ */

@import '/css/ew-design.css';

/* ── Edge4AssetIQ accent: Edge4ward enterprise blue ── */
:root {
  --ew-accent:        #3b82f6;
  --ew-accent-dim:    #2563eb;
  --ew-accent-glow:   rgba(59,130,246,.12);
  --ew-accent-border: rgba(59,130,246,.3);

  /* Local shorthand tokens */
  --bg:        var(--ew-bg);
  --bg2:       var(--ew-surface);
  --bg3:       var(--ew-card);
  --border:    var(--ew-border);
  --accent:    var(--ew-accent);
  --text:      var(--ew-text);
  --muted:     var(--ew-muted);
  --radius:    10px;
  --font-mono: var(--ew-mono);
  --font-body: var(--ew-font);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Page wrap ── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 72px 20px 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--ew-accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800; line-height: 1.15; letter-spacing: -1px;
  margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  font-size: 16px; color: var(--muted);
  max-width: 580px; margin: 0 auto 32px;
  line-height: 1.75;
}

/* ── Stats bar ── */
.stats-bar {
  display: flex; justify-content: center; flex-wrap: wrap;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.stat {
  flex: 1; min-width: 140px; max-width: 220px;
  padding: 22px 28px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700;
  color: var(--accent); line-height: 1; margin-bottom: 4px;
}
.stat-label {
  font-size: .68rem; color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase;
}

/* ── Tool grid ── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
  margin: 28px 0;
}
.tool-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  display: block; text-decoration: none !important;
  position: relative; overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--ew-accent-dim));
  opacity: 0; transition: opacity .25s;
}
.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 56px var(--ew-accent-glow);
}
.tool-card:hover::before { opacity: 1; }
.tool-icon { font-size: 2.4rem; margin-bottom: 18px; display: block; }
.tool-abbr {
  font-family: var(--font-mono); font-size: .65rem; color: var(--accent);
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--ew-accent-glow); border: 1px solid var(--ew-accent-border);
  padding: 2px 10px; border-radius: 100px;
  display: inline-block; margin-bottom: 12px;
}
.tool-name {
  font-size: 1.2rem; font-weight: 800; color: var(--text);
  margin-bottom: 10px; letter-spacing: -.01em;
}
.tool-desc {
  font-size: .85rem; color: var(--muted); line-height: 1.75; margin-bottom: 20px;
}
.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.tag {
  font-size: 11px; font-family: var(--font-mono);
  background: var(--ew-accent-glow); color: var(--accent);
  border: 1px solid var(--ew-accent-border);
  padding: 2px 9px; border-radius: 20px;
}
.tool-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 700; color: var(--accent);
}
.tool-link-arrow { transition: transform .2s; }
.tool-card:hover .tool-link-arrow { transform: translateX(4px); }

/* ── Feature panels ── */
.panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* ── Section headings ── */
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; letter-spacing: -.03em;
  margin-bottom: 8px; color: var(--text);
}
.section-sub { font-size: .88rem; color: var(--muted); margin-bottom: 28px; line-height: 1.65; }

/* ── Utilities ── */
.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-sm     { font-size: .82rem; }
.mono        { font-family: var(--font-mono); }
.flex        { display: flex; align-items: center; gap: 8px; }
.divider     { height: 1px; background: var(--border); margin: 40px 0; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp .45s ease both; }
.fade-up-2 { animation: fadeUp .45s .1s ease both; }
.fade-up-3 { animation: fadeUp .45s .2s ease both; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 48px 20px 36px; }
  .page-wrap { padding: 24px 16px 48px; }
  .tool-card { padding: 24px; }
  .tool-grid { grid-template-columns: 1fr; }
}
