/* ─────────────────────────────────────────────
   Elinno Agent — coming soon
   Restyled to match elinnovation.net design system
   Dark hero · purple #6234fc accent · Clash Grotesk
   ───────────────────────────────────────────── */

:root {
  /* Backgrounds */
  --color-bg-dark: #121215;
  --color-bg-light: #fff;
  --color-bg-soft: #f7f7f7;
  --color-bg-wash: #f0ebff;

  /* Brand */
  --color-brand: #6234fc;
  --color-brand-tint: rgba(98, 52, 252, 0.1);

  /* Text */
  --color-text-dark: #000;
  --color-text-body: #4f4f4f;
  --color-text-muted: #888;
  --color-text-inverse: #fff;

  /* Borders / fields */
  --color-border: #e0e0e0;

  /* Glass */
  --glass-nav: rgba(0, 0, 0, 0.3);
  --glass-blur-nav: blur(3.5px);
  --glass-button: hsla(0, 0%, 100%, 0.27);
  --glass-blur-button: blur(4.5px);

  /* Type — Clash Grotesk via Fontshare with Space Grotesk fallback */
  --font-light:    'Clash Grotesk', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-regular:  'Clash Grotesk', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-medium:   'Clash Grotesk', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-semibold: 'Clash Grotesk', 'Space Grotesk', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container-max: 1230px;
  --section-pad-y: 70px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 15px;
  --radius-xl: 20px;
  --radius-pill: 50px;

  /* Motion */
  --t-fast: 0.1s ease-out;
  --t-form: 0.3s linear;
  --t-card: 0.7s;
}

/* ── Base ─────────────────────────────────── */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  font-family: var(--font-regular);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; overflow-x: hidden; }

a { text-decoration: none !important; color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* Global gentle transition (matches elinnovation.net global rule) */
a, button, div, h1, h2, h3, h4, h5, h6, p, span, ul {
  transition: background-color 1s ease-out;
}

/* ── Container ────────────────────────────── */
.custom-container {
  max-width: var(--container-max);
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin: 0 auto;
}

/* ── Hero / banner ────────────────────────── */
.mainbanner {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Layer 1: dark base with subtle radial gradient (stand-in for a hero video) */
.mainbanner .banner-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60% 80% at 20% 20%, #1d1838 0%, transparent 60%),
    radial-gradient(70% 90% at 80% 90%, #2a1559 0%, transparent 60%),
    radial-gradient(50% 70% at 50% 50%, #1a1530 0%, transparent 70%),
    linear-gradient(180deg, #0e0e14 0%, #121215 100%);
}

/* Layer 2: floating orbs */
.mainbanner .banner-orbs {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.mainbanner .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite;
}
.mainbanner .orb-1 {
  width: 480px; height: 480px;
  left: -120px; top: -100px;
  background: #6234fc;
}
.mainbanner .orb-2 {
  width: 400px; height: 400px;
  right: -100px; top: 30%;
  background: #3a1aa8;
  animation-delay: -6s;
}
.mainbanner .orb-3 {
  width: 360px; height: 360px;
  left: 35%; bottom: -120px;
  background: #8a5dff;
  animation-delay: -12s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 30px) scale(0.95); }
}

/* Layer 3: purple mix-blend wash — signature elinnovation move */
.mainbanner .thisdiv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #6234fc;
  mix-blend-mode: color;
  z-index: 9;
  opacity: 0.45;
  pointer-events: none;
}

/* ── v1.4 brand mark (Block 13.1) ─────────
   Half-circle glyph + uppercase wordmark. Mirrors the .brandmark /
   .wordmark CSS from auth.css so the un-authed entry page (login +
   footer) uses the same component as every authed surface, without
   pulling in all of auth.css. Uses the styles.css legacy --color-*
   tokens already defined above so no new tokens are introduced.
   ───────────────────────────────────────── */
.brandmark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.4px solid var(--color-brand);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.brandmark::after {
  content: "";
  position: absolute;
  inset: 2px 2px 2px 50%;
  background: var(--color-brand);
  border-radius: 0 50px 50px 0;
}
.brandmark--light { border-color: #fff; }
.brandmark--light::after { background: #fff; }

.wordmark {
  font-family: var(--font-medium);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Navbar (glass over hero) ────────────── */
.main-navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: var(--glass-nav);
  -webkit-backdrop-filter: var(--glass-blur-nav);
  backdrop-filter: var(--glass-blur-nav);
}
.main-navbar .navbar {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.navbar-brand svg { color: #fff; }
.brand-text {
  color: #fff;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Inner banner content ─────────────────── */
.innerbanner {
  position: relative;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: -15px;
}

.eyebrow {
  color: #fff;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  margin-bottom: 30px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.mainbannerhead {
  color: #fff;
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: 60px;
  line-height: 110%;
  text-transform: uppercase;
  margin-bottom: 30px;
  max-width: 770px;
  width: 100%;
  text-align: center;
  letter-spacing: -0.005em;
}
.mainbannerhead .dark {
  font-family: var(--font-semibold);
  font-weight: 600;
}

.mainbannerpara {
  color: #fff;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 18px;
  line-height: 130%;
  text-align: center;
  max-width: 770px;
  width: 100%;
  margin-bottom: 0;
  opacity: 0.92;
}

/* ── Reveal animation (replaces the warm version) ── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Footer ───────────────────────────────── */
.mainfooter {
  padding: 50px 0 0;
  background: var(--color-bg-soft);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--color-text-dark);
  position: relative;
  z-index: 10;
}

.mainfooter .innerfooter {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  gap: 40px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-dark);
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 18px;
  text-transform: uppercase;
}
.footer-brand svg { color: var(--color-brand); }

.footerleft .logopara {
  color: var(--color-text-dark);
  font-family: var(--font-regular);
  font-size: 16px;
  line-height: 140%;
  margin-top: 24px;
  max-width: 290px;
}

/* Bottom strip */
.bottom-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: var(--color-bg-soft);
}
.bottom-footer .meta {
  color: var(--color-text-muted);
  font-family: var(--font-regular);
  font-size: 14px;
  line-height: 120%;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 600px) {
  .main-navbar .navbar { padding: 13px 15px; }
  .brand-text { font-size: 14px; }

  .eyebrow { font-size: 14px; margin-bottom: 24px; }
  .mainbannerhead { font-size: 41px; }
  .mainbannerpara { font-size: 16px; margin-bottom: 40px; }

  .mainfooter .innerfooter {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }
  .footerleft {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footerleft .logopara { text-align: center; }

  .bottom-footer {
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
    text-align: center;
  }
}

@media (max-width: 425px) {
  .mainbannerhead { font-size: 34px; }
}

/* ── Reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .mainbanner .orb {
    animation: none;
  }
}

/* ── Hero login form ──────────────────────── */
.hero-login {
  width: 100%;
  max-width: 420px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.hero-msg {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-regular);
  font-size: 14px;
  line-height: 140%;
}
.hero-msg.error {
  display: block;
  background: rgba(255, 0, 131, 0.15);
  color: #ffd1e6;
  border: 1px solid rgba(255, 0, 131, 0.5);
}
.hero-msg.success {
  display: block;
  background: rgba(77, 211, 136, 0.15);
  color: #c8f5dd;
  border: 1px solid rgba(77, 211, 136, 0.4);
}

.hero-field { display: flex; flex-direction: column; gap: 8px; }
.hero-field label {
  color: #fff;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 12px;
  line-height: 100%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.hero-field input {
  width: 100%;
  padding: 16px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-regular);
  font-size: 14px;
  line-height: 100%;
  -webkit-backdrop-filter: blur(4.5px);
  backdrop-filter: blur(4.5px);
  transition: border-color var(--t-form), background var(--t-form);
}
.hero-field input::placeholder { color: rgba(255, 255, 255, 0.45); }
.hero-field input:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.hero-field input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px rgba(98, 52, 252, 0.5) inset;
  caret-color: #fff;
}

.hero-btn {
  margin-top: 6px;
  width: 100%;
  padding: 18px 0;
  background: var(--color-brand);
  color: #fff;
  border: none;
  outline: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: filter var(--t-form), background var(--t-form);
}
.hero-btn:hover:not(:disabled) { filter: brightness(1.12); }
.hero-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.hero-foot {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}
.hero-foot a {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-regular);
  font-size: 14px;
  text-decoration: underline !important;  /* override the global no-underline rule */
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.4) !important;
  transition: color var(--t-form), text-decoration-color var(--t-form);
}
.hero-foot a:hover {
  color: #fff;
  text-decoration-color: #fff !important;
}

@media (max-width: 600px) {
  .hero-login { margin-top: 32px; max-width: 100%; }
  .hero-field input { padding: 14px 14px; }
  .hero-btn { padding: 16px 0; }
}

/* ════════════════════════════════════════════════════════════════════
   MOBILE HARDENING — added 2026-05-31 (mobile + consistency pass)
   Login-hero page. body already sets overflow-x:hidden above; the hero
   button is already ≥44px. Only the input zoom-on-focus fix is needed.
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
  .hero-field input { font-size: 16px; } /* stop iOS focus auto-zoom (<16px) */
}
