/* =============================================
   eKitwi Tools – landing.css
   Same visual language as eKitwi Home's landing page, scoped to Tools.
   ============================================= */

:root {
  --clr-bg:         #0f0f13;
  --clr-surface:    #1a1a22;
  --clr-surface-2:  #141418;
  --clr-accent:     rgb(135, 40, 190);
  --clr-text:       #e5e5ef;
  --clr-muted:      rgba(229, 229, 239, 0.52);
  --clr-card:       rgba(255, 255, 255, 0.04);
  --clr-card-hover: rgba(255, 255, 255, 0.08);
  --clr-border:     rgba(255, 255, 255, 0.08);
  --nav-height:     68px;
  --font-heading:   'Montserrat', sans-serif;
}

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

html, body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

/* --- Navbar ----------------------------------- */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

#main-nav.scrolled {
  background: rgba(15, 15, 19, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--clr-border);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo { height: 28px; width: auto; }

.nav-brand .brand-name {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.nav-link.nav-cta {
  background: var(--clr-accent);
  color: #fff;
  font-weight: 700;
  margin-left: 0.5rem;
}
.nav-link.nav-cta:hover { background: #4f0467; }

.nav-toggler {
  display: none;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 0.5rem;
  margin-right: auto;
  font-size: 1.3rem;
}

/* Mobile sidebar */
#mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--clr-surface);
  border-right: 1px solid var(--clr-border);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
#mobile-sidebar.open { transform: translateX(0); }
#mobile-sidebar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.7rem 0.6rem;
  border-radius: 6px;
  font-size: 0.95rem;
}
#mobile-sidebar a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

#sidebar-overlay-landing {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1050;
}
#sidebar-overlay-landing.visible { display: block; }

/* --- HERO -------------------------------------- */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
  background: var(--clr-bg);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at 80% 15%, rgba(83, 12, 86, 0.36) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(66, 8, 71, 0.12);
  border: 1px solid rgba(213, 73, 241, 0.22);
  color: #d8b7ed;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.6rem;
  letter-spacing: 0.04em;
}

.hero-typing-row {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--clr-muted);
  margin-bottom: 0.8rem;
  min-height: 1.5em;
}
.typing-text { color: #d8b7ed; }
.typing-cursor { color: #d8b7ed; animation: blink 0.8s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-headline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 auto 1.3rem;
  max-width: 820px;
  color: #fff;
}
.hero-accent { display: block; color: #d8b7ed; }

.hero-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--clr-muted);
  max-width: 620px;
  margin: 0 auto 2.2rem;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--clr-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn-primary:hover { background: #4f0467; transform: translateY(-2px); text-decoration: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: #d8b7ed; color: #d8b7ed; transform: translateY(-2px); text-decoration: none; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: center;
  color: var(--clr-muted);
  font-size: 0.85rem;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-trust svg { width: 15px; height: 15px; color: #10b981; flex-shrink: 0; }

/* --- SHARED SECTION HELPERS -------------------- */
.section {
  padding: 5rem 0;
}
.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.badge-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.65rem, 3.8vw, 2.5rem);
  line-height: 1.2;
  color: #fff;
  margin: 0 0 0.75rem;
}
.title-accent { color: #d8b7ed; }
.section-sub {
  color: var(--clr-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- FEATURES (tool cards) --------------------- */
.tools-section { background: var(--clr-surface); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  padding: 1.6rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.25s, transform 0.2s, box-shadow 0.2s;
}
.tool-card:hover {
  background: var(--clr-card-hover);
  border-color: rgba(213, 73, 241, 0.22);
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.32);
  text-decoration: none;
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tool-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(66, 8, 71, 0.14);
  border: 1px solid rgba(213, 73, 241, 0.22);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d8b7ed;
}
.tool-card-icon svg { width: 20px; height: 20px; }

.tool-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
}
.tool-card-badge.badge-freemium {
  background: rgba(96, 165, 250, 0.14);
  color: #60a5fa;
}

.tool-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
}

.tool-card-desc {
  color: var(--clr-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.tools-more-note {
  text-align: center;
  color: var(--clr-muted);
  font-size: 0.85rem;
  margin-top: 2.2rem;
}

/* --- FREEMIUM / IDENTITY PROMO ------------------ */
.identity-section { background: var(--clr-bg); }

.identity-banner {
  background: linear-gradient(135deg, rgba(135, 40, 190, 0.16), rgba(66, 8, 71, 0.08));
  border: 1px solid rgba(213, 73, 241, 0.28);
  border-radius: 18px;
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.identity-banner-text h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  margin: 0.75rem 0 0.5rem;
}

.identity-banner-text p {
  color: var(--clr-muted);
  font-size: 0.95rem;
  margin: 0;
  max-width: 480px;
  line-height: 1.65;
}

.identity-banner-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- HOME PROMO (link back to ekitwi.com) ------- */
.home-promo-section { background: var(--clr-surface); border-top: 1px solid var(--clr-border); }

.home-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 2rem 2.25rem;
}

.home-promo-text h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 0.35rem;
}

.home-promo-text p {
  color: var(--clr-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* --- FOOTER ------------------------------------- */
.site-footer {
  background: var(--clr-surface-2);
  border-top: 1px solid var(--clr-border);
  padding: 2.5rem 0 1.5rem;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-logo { height: 26px; width: auto; }
.footer-brand .brand-name {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}
.footer-tagline { color: var(--clr-muted); font-size: 0.88rem; margin: 0; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--clr-muted); text-decoration: none; font-size: 0.87rem; transition: color 0.2s; }
.footer-links a:hover { color: #d8b7ed; }
.footer-bottom { text-align: center; border-top: 1px solid var(--clr-border); padding-top: 1.25rem; }
.footer-bottom p { color: rgba(255, 255, 255, 0.35); font-size: 0.8rem; margin: 0; }

/* --- RESPONSIVE --------------------------------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggler { display: inline-flex; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary { width: 100%; max-width: 300px; justify-content: center; }
  .identity-banner { flex-direction: column; text-align: center; }
  .identity-banner-text p { margin-left: auto; margin-right: auto; }
  .identity-banner-ctas { justify-content: center; }
  .home-promo { flex-direction: column; text-align: center; }
}
