/* ═══════════════════════════════════════════════
   AiseraLab — Main Stylesheet
   Aisera Technologies Private Limited
   Light theme · Fraunces + Plus Jakarta Sans
   ═══════════════════════════════════════════════ */

:root {
  /* Palette */
  --white:      #ffffff;
  --bg:         #f7f5f2;
  --bg2:        #ede9e3;
  --surface:    #ffffff;
  --border:     #e4dfd8;
  --border2:    #cdc8c0;

  /* Ink */
  --ink:        #1a1814;
  --ink2:       #3d3930;
  --muted:      #8c8680;
  --subtle:     #bbb6b0;

  /* Accent */
  --accent:     #2d5be3;
  --accent-h:   #1f46c0;
  --accent2:    #f05a7e;
  --accent3:    #00b894;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* Radii */
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  36px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.05);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── CONTAINER ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 70px;
  background: rgba(247, 245, 242, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.logo-name em {
  font-style: italic;
  color: var(--accent);
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  color: var(--ink2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover { background: var(--bg2); color: var(--ink); }
.btn-nav {
  background: var(--ink) !important;
  color: var(--white) !important;
  border-radius: var(--r-sm) !important;
  font-weight: 600 !important;
}
.btn-nav:hover { background: var(--ink2) !important; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: 0.2s;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Wavy background blob */
.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(45,91,227,0.08) 0%,
    rgba(240,90,126,0.05) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.5s ease both;
}
.hero-eyebrow .pip {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent3);
  animation: pipPulse 2s ease infinite;
}
@keyframes pipPulse {
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:0.5;transform:scale(1.5)}
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
  animation: fadeUp 0.55s 0.08s ease both;
}

.hero h1 .italic-accent {
  font-style: italic;
  color: var(--accent);
  font-weight: 700;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 44px;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink2);
  line-height: 1.7;
  animation: fadeUp 0.55s 0.16s ease both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.55s 0.24s ease both;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--r-md);
  text-decoration: none;
  border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 14px rgba(26,24,20,0.2);
}
.btn-primary:hover {
  background: var(--ink2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,24,20,0.22);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink2);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--r-md);
  text-decoration: none;
  border: 1.5px solid var(--border2);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.btn-outline:hover {
  background: var(--white);
  border-color: var(--ink);
  transform: translateY(-2px);
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(22px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── HERO SCROLL HINT ── */
.scroll-hint {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--subtle);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeUp 0.6s 0.5s ease both;
}
.scroll-hint .line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--border2), transparent);
  animation: scrollLine 1.8s ease infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ══════════════════════════════
   STATS BAR
══════════════════════════════ */
.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
}
.stats-inner {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 8vw, 100px);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-num sup { font-size: 18px; color: var(--accent); font-weight: 700; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; font-weight: 500; }

/* ══════════════════════════════
   SECTION COMMONS
══════════════════════════════ */
.section { padding: 96px 0; }
.section-alt { background: var(--white); }

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.5vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--accent); }

.section-desc {
  font-size: 17px;
  color: var(--ink2);
  max-width: 480px;
}
.section-header-center { text-align: center; }
.section-header-center .section-desc { margin: 0 auto; }

/* ══════════════════════════════
   TOOLS GRID
══════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.28s ease,
              border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border2);
}

/* Coloured top bar */
.tool-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  transition: height 0.3s;
}
.tool-card:hover::after { height: 6px; }

.card-1::after { background: #5b6bff; }
.card-2::after { background: #f05a7e; }
.card-3::after { background: #00b894; }

/* Icon blob */
.tool-icon-wrap {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  transition: transform 0.3s;
}
.tool-card:hover .tool-icon-wrap { transform: scale(1.1) rotate(-4deg); }
.card-1 .tool-icon-wrap { background: #eef0ff; }
.card-2 .tool-icon-wrap { background: #fff0f3; }
.card-3 .tool-icon-wrap { background: #e8faf5; }

.tool-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.tool-desc {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.75;
  margin-bottom: 24px;
  flex: 1;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
}
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.card-1 .tag { background: #eef0ff; color: #5b6bff; }
.card-2 .tag { background: #fff0f3; color: #f05a7e; }
.card-3 .tag { background: #e8faf5; color: #00a67e; }

.tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: gap 0.2s;
}
.card-1 .tool-cta { color: #5b6bff; }
.card-2 .tool-cta { color: #f05a7e; }
.card-3 .tool-cta { color: #00b894; }
.tool-card:hover .tool-cta { gap: 14px; }

/* ══════════════════════════════
   FEATURES
══════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
  margin-top: 56px;
}
.feature-item { text-align: center; }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-item:hover .feature-icon {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ══════════════════════════════
   HOW IT WORKS
══════════════════════════════ */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.steps-row::before {
  content: '';
  position: absolute;
  top: 28px; left: 17%; right: 17%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg, var(--border) 0px, var(--border) 6px, transparent 6px, transparent 14px
  );
}
.step-item { text-align: center; padding: 0 24px; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  position: relative; z-index: 1;
  transition: background 0.25s, color 0.25s;
}
.step-item:hover .step-num { background: var(--ink); color: var(--white); }
.step-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-desc { font-size: 13px; color: var(--muted); }

/* ══════════════════════════════
   CTA BAND
══════════════════════════════ */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(45,91,227,0.3), transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(240,90,126,0.2), transparent 60%);
  pointer-events: none;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  position: relative;
}
.cta-band h2 em { font-style: italic; color: #7c94ff; }
.cta-band p { color: rgba(255,255,255,0.65); font-size: 17px; margin-bottom: 40px; position: relative; }
.cta-band .hero-actions { position: relative; }
.cta-band .btn-primary {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(255,255,255,0.15);
}
.cta-band .btn-primary:hover {
  background: #f0ede8;
  box-shadow: 0 8px 28px rgba(255,255,255,0.2);
}
.cta-band .btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
}
.cta-band .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-tagline { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.65; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ink2); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
.footer-legal { display: flex; gap: 16px; }

/* ══════════════════════════════
   INNER PAGE (tools / legal)
══════════════════════════════ */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.page-hero .breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.page-hero .breadcrumb a { color: var(--accent); text-decoration: none; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 12px;
}
.page-hero p { font-size: 17px; color: var(--ink2); }

.prose-content {
  max-width: 760px;
  margin: 56px auto;
  padding: 0 24px;
}
.prose-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
  color: var(--ink);
}
.prose-content p { color: var(--ink2); margin-bottom: 16px; font-size: 15px; line-height: 1.8; }
.prose-content a { color: var(--accent); text-decoration: underline; }

/* ══════════════════════════════
   COMING SOON / PLACEHOLDER
══════════════════════════════ */
.tool-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 60px 24px;
}
.placeholder-icon { font-size: 72px; margin-bottom: 24px; }
.placeholder-badge {
  display: inline-block;
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #b8860b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.tool-placeholder h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.tool-placeholder p { color: var(--ink2); margin-bottom: 32px; font-size: 17px; max-width: 460px; }
.placeholder-dir {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 24px;
  font-family: monospace;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ══════════════════════════════
   404
══════════════════════════════ */
.page-404 {
  min-height: 80vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px;
}
.num-404 {
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 180px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--bg2);
  margin-bottom: 16px;
}
.page-404 h2 { font-family: var(--font-display); font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.page-404 p  { color: var(--muted); margin-bottom: 32px; }

/* ══════════════════════════════
   REVEAL ANIMATIONS
══════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px; box-shadow: var(--shadow-md); gap: 2px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .steps-row { grid-template-columns: 1fr; }
  .steps-row::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 40px; }
  .hero-actions { flex-direction: column; align-items: center; }
}
