/* =============================================================
   EasyAc landing — colourful, minimal.
   Background palette mirrors the in-app Contact Us page:
   blue-50 → purple-50 → pink-50 with blurred coloured blobs.
   ============================================================= */

:root {
  /* Pastel background trio — same as Tailwind blue-50 / purple-50 / pink-50 */
  --bg-1:        #eff6ff;
  --bg-2:        #faf5ff;
  --bg-3:        #fdf2f8;

  /* Blob colours (Tailwind 200) */
  --blob-blue:   #bfdbfe;
  --blob-purple: #e9d5ff;
  --blob-pink:   #fbcfe8;

  /* Brand gradient (matches the app: blue-600 → purple-600 → pink-600) */
  --brand-1:     #2563eb;
  --brand-2:     #9333ea;
  --brand-3:     #db2777;
  --brand-grad:  linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3));

  /* Text */
  --fg:          #0f172a;          /* slate-900 */
  --fg-soft:     #475569;          /* slate-600 */
  --fg-mute:     #64748b;          /* slate-500 */

  /* Primary CTA — vibrant blue */
  --primary:     #2563eb;          /* blue-600 */
  --primary-hov: #1d4ed8;          /* blue-700 */
  --primary-fg:  #ffffff;

  --border:      #e2e8f0;          /* slate-200 */
  --card-bg:     rgba(255, 255, 255, 0.85);

  --shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md:   0 10px 28px -10px rgba(15, 23, 42, 0.18);
  --shadow-lg:   0 22px 48px -16px rgba(15, 23, 42, 0.25);
  --shadow-blue: 0 14px 30px -10px rgba(37, 99, 235, 0.45);

  --radius-card: 18px;
  --radius-pill: 999px;
  --max-w:       1100px;
  --ease:        cubic-bezier(0.2, 0.8, 0.2, 1);

  --font-body:    "Inter", system-ui, Avenir, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

/* =============================================================
   Reset / base
   ============================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
}

img { max-width: 100%; display: block; }
a { color: var(--fg); text-decoration: none; }
button { font: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.02em; color: var(--fg); margin: 0; }
p { margin: 0; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 8px 12px;
  border-radius: 8px;
  transition: top 150ms var(--ease);
  z-index: 100;
}
.skip-link:focus { top: 16px; }

/* =============================================================
   Decorative coloured blobs (page-wide)
   Same idea as the contact-us page: large soft circles blurred.
   ============================================================= */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.blob-1 {
  width: 380px; height: 380px;
  background: var(--blob-blue);
  top: -60px; left: -80px;
  animation: drift-1 20s ease-in-out infinite alternate;
}

.blob-2 {
  width: 420px; height: 420px;
  background: var(--blob-purple);
  top: 30%; right: -120px;
  animation: drift-2 24s ease-in-out infinite alternate;
}

.blob-3 {
  width: 360px; height: 360px;
  background: var(--blob-pink);
  bottom: -100px; left: 25%;
  animation: drift-3 26s ease-in-out infinite alternate;
}

@keyframes drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, 80px) scale(1.05); }
}
@keyframes drift-3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, -50px) scale(1.08); }
}

/* =============================================================
   Layout helpers
   ============================================================= */

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 28px);
}

/* =============================================================
   Header
   ============================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.brand img {
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-login {
  color: var(--fg-soft);
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  padding: 8px 4px;
  transition: color 150ms var(--ease);
}
.nav-login:hover { color: var(--brand-2); }

/* =============================================================
   Buttons
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease),
              background 200ms var(--ease), color 200ms var(--ease);
  will-change: transform;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn-sm { padding: 9px 14px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 14px; }

.btn-primary {
  background: var(--brand-grad);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: var(--primary-fg);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(147, 51, 234, 0.55);
}
.btn-primary:active { transform: translateY(0); }

/* CTA pulse — fires once on viewport entry via main.js */
@keyframes pulse-once {
  0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45), var(--shadow-blue); }
  60%  { box-shadow: 0 0 0 18px rgba(37, 99, 235, 0), var(--shadow-blue); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0),     var(--shadow-blue); }
}
.pulse-once.is-pulsing { animation: pulse-once 1.4s var(--ease) 1 both; }

/* =============================================================
   Hero
   ============================================================= */

.hero {
  padding-block: clamp(36px, 6vw, 56px) clamp(48px, 8vw, 80px);
}

.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  max-width: 820px;
  margin-top: 36px;
}

.hero-sub {
  margin-top: 14px;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 600px;
}

.hero-cta {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-foot {
  font-size: 13px;
  color: var(--fg-mute);
}

/* Video — the focal element, at the top of the hero */

.video-wrap {
  width: min(100%, 920px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lang-toggle {
  position: relative;
  display: inline-flex;
  padding: 4px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  isolation: isolate;
}

.lang-btn {
  position: relative;
  z-index: 1;
  background: transparent;
  border: 0;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-soft);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color 200ms var(--ease);
}
.lang-btn.is-active { color: var(--primary-fg); }
.lang-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.lang-indicator {
  position: absolute;
  z-index: 0;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  background: var(--brand-grad);
  border-radius: var(--radius-pill);
  transition: transform 280ms var(--ease);
  will-change: transform;
}
.lang-toggle[data-lang="hi"] .lang-indicator { transform: translateX(100%); }

.video-frame {
  width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: box-shadow 280ms var(--ease), transform 280ms var(--ease);
}
.video-frame:hover {
  box-shadow: 0 28px 60px -16px rgba(15, 23, 42, 0.35);
  transform: translateY(-2px);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =============================================================
   Gradient text — used on brand name + hero headline accent
   ============================================================= */

.gradient-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* =============================================================
   Footer
   ============================================================= */

.site-footer {
  margin-top: auto;
  padding-block: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--fg-mute);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a {
  color: var(--fg-soft);
  transition: color 150ms var(--ease);
}
.footer-links a:hover { color: var(--brand-2); }

/* =============================================================
   Reveal animations
   ============================================================= */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 540ms var(--ease), transform 540ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.body-loaded .reveal { opacity: 1; transform: none; }

/* =============================================================
   Reduced motion — kill animations cleanly
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .blob { animation: none !important; }
  .pulse-once.is-pulsing { animation: none !important; }
}
