/* ============================================
   EnorOne — Main Stylesheet
   Brand: Blue #2563EB, Navy #0F172A, White
   Font: Inter
============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0F172A;
  --blue:    #2563EB;
  --blue-h:  #1D4ED8;
  --blue-l:  #EFF6FF;
  --green:   #10B981;
  --bg:      #F8FAFC;
  --surface: #FFFFFF;
  --border:  #E2E8F0;
  --text:    #1E293B;
  --muted:   #64748B;
  --radius:  10px;
  --shadow:  0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04);
  --shadow-h:0 4px 24px rgba(37,99,235,.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ======= TYPOGRAPHY ======= */
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.1rem; font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-l);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.section-header {
  margin-bottom: 40px;
}
.section-header p {
  color: var(--muted);
  margin-top: 8px;
  font-size: .95rem;
}

/* ======= BUTTONS ======= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: background .15s, transform .1s;
  border: 2px solid transparent;
}
.btn-primary:hover { background: var(--blue-h); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: .9rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  transition: border-color .15s, background .15s;
}
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-l); color: var(--blue); }

/* ======= NAV ======= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  flex-shrink: 0;
}
.logo--light .logo-mark { background: rgba(255,255,255,.15); color: #fff; }
.logo--light .logo-text { color: #fff; }

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s;
}
.nav-links a:hover { color: var(--blue); }

.nav-cta {
  font-size: .875rem;
  font-weight: 600;
  background: var(--blue);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background .15s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--blue-h); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .2s;
}

/* ======= MOBILE MENU ======= */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text);
  transition: background .1s;
}
.mobile-menu a:hover { background: var(--bg); }
.mobile-cta { background: var(--blue) !important; color: #fff !important; text-align: center; }

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

/* Subtle grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-size: .78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
  letter-spacing: .04em;
}

.hero-title {
  color: #fff;
  margin-bottom: 20px;
}

.hero-highlight {
  background: linear-gradient(135deg, #60A5FA, #3B82F6, #818CF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* FLOATING TOOL CARDS */
.hero-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 0;
  opacity: .9;
}

.hcard {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.85);
  font-size: .83rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  animation: floatCard 6s ease-in-out infinite;
}
.hcard-icon { font-size: 1.1rem; }
.hcard-1 { animation-delay: 0s; }
.hcard-2 { animation-delay: .4s; }
.hcard-3 { animation-delay: .8s; }
.hcard-4 { animation-delay: 1.2s; }
.hcard-5 { animation-delay: 1.6s; }
.hcard-6 { animation-delay: 2s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* STATS BAR */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  margin-top: 48px;
  padding: 24px 40px;
  position: relative;
  z-index: 1;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 2px;
}
.stat strong {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat span {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.1);
}

/* ======= CATEGORIES ======= */
.categories {
  padding: 80px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-h);
  transform: translateY(-2px);
}
.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.cat-card strong { font-size: .9rem; font-weight: 700; color: var(--text); }
.cat-card span { font-size: .78rem; color: var(--muted); }

/* ======= TOOLS SECTION ======= */
.tools-section {
  padding: 80px 0 100px;
}

.tools-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tools-header .section-header { margin-bottom: 0; }

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0 16px;
  min-width: 260px;
  transition: border-color .15s;
}
.search-wrap:focus-within { border-color: var(--blue); }
.search-icon { font-size: .9rem; }
.search-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: .9rem;
  padding: 12px 0;
  width: 100%;
  color: var(--text);
}
.search-input::placeholder { color: var(--muted); }

/* TOOL GROUPS */
.tool-group {
  margin-bottom: 56px;
}

.group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 16px;
}
.group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, transform .1s;
  position: relative;
  overflow: hidden;
}
.tool-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-h);
  transform: translateY(-1px);
}
.tool-card:hover .tool-arrow {
  color: var(--blue);
  transform: translateX(3px);
}

.tool-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 8px;
  flex-shrink: 0;
  font-size: .95rem;
  font-weight: 700;
}

.tool-info {
  flex: 1;
  min-width: 0;
}
.tool-info strong {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text);
}
.tool-info span {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-arrow {
  font-size: 1.1rem;
  color: var(--border);
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}

.tool-card--soon {
  opacity: .65;
  cursor: not-allowed;
  pointer-events: none;
}
.tool-badge {
  background: var(--border);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
  flex-shrink: 0;
}

/* Hidden in search */
.tool-card.hidden { display: none; }
.tool-group.all-hidden { display: none; }

/* ======= WHY SECTION ======= */
.why-section {
  background: var(--navy);
  padding: 80px 0;
}

.why-section .section-header .eyebrow {
  background: rgba(37,99,235,.3);
  color: #93C5FD;
}
.why-section h2 { color: #fff; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.why-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 28px;
}
.why-icon { font-size: 2rem; margin-bottom: 12px; }
.why-card strong {
  display: block;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.why-card p { color: rgba(255,255,255,.55); font-size: .85rem; line-height: 1.65; }

/* ======= FOOTER ======= */
.footer {
  background: #060C18;
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.footer-brand p {
  color: rgba(255,255,255,.4);
  font-size: .83rem;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col strong {
  display: block;
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  color: rgba(255,255,255,.35);
  font-size: .83rem;
  transition: color .15s;
}
.footer-col a:hover { color: rgba(255,255,255,.7); }

.footer-bottom {
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: rgba(255,255,255,.25);
}

/* ======= RESPONSIVE ======= */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }

  .stats-bar { padding: 20px 20px; gap: 0; }
  .stat strong { font-size: 1.4rem; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 16px 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .stats-bar { flex-wrap: wrap; gap: 16px 0; border-radius: 10px 10px 0 0; }
  .stat-divider { display: none; }
  .stat { flex-basis: 50%; }

  .tools-header { flex-direction: column; }
  .search-wrap { min-width: unset; width: 100%; }

  .tool-grid { grid-template-columns: 1fr; }

  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 4px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hcard { animation: none; }
}
