/* ============================================================
   YAJNAS AI — LANDING PAGE STYLES
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #070b14;
  --bg-secondary: #0c1222;
  --bg-card: #0f1825;
  --accent-cyan: #00e676;
  --accent-cyan-dim: rgba(0, 230, 118, 0.12);
  --text-primary: #e8edf5;
  --text-secondary: #6b7b8d;
  --text-muted: #3d4f63;
  --border: rgba(0, 230, 118, 0.1);
  --border-hover: rgba(0, 230, 118, 0.32);
  --font-heading: 'Google Sans', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --nav-height: 72px;
  --section-pad: 100px;
  --container-max: 1200px;
  --radius: 12px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--text-primary);
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
}

p {
  color: var(--text-secondary);
  line-height: 1.75;
}

.accent {
  color: var(--accent-cyan);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
}

.section-alt {
  background: var(--bg-secondary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 6px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-cyan);
  color: #040810;
  border-color: var(--accent-cyan);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-cyan);
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.btn-outline:hover {
  background: var(--accent-cyan);
  color: #040810;
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-large {
  font-size: 0.9rem;
  padding: 16px 44px;
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent-cyan);
  opacity: 0.45;
}

.section-intro {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(7, 11, 20, 0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--border);
}

.nav-container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-cta {
  flex-shrink: 0;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(0, 230, 118, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 80% 75%, rgba(0, 80, 35, 0.07) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, #060d1a 100%);
  z-index: 0;
}

#hero-canvas,
#cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  background: rgba(0, 230, 118, 0.07);
  border: 1px solid rgba(0, 230, 118, 0.2);
  padding: 7px 20px;
  border-radius: 100px;
  margin-bottom: 36px;
  animation: fadeInDown 0.8s ease forwards;
}

.hero-headline {
  font-size: clamp(2.6rem, 7.5vw, 5.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  max-width: 940px;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-headline .accent-text {
  color: var(--accent-cyan);
}

.hero-subhead {
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 52px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  flex-shrink: 0;
  animation: pulse 2.2s ease infinite;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1s ease 0.8s both;
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(0, 230, 118, 0.7), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

/* ============================================================
   ABOUT
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(
    200px circle at var(--mx, -600px) var(--my, -600px),
    rgba(0, 230, 118, 0.16) 0%,
    rgba(0, 230, 118, 0.05) 40%,
    transparent 68%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover::after {
  opacity: 1;
}

.card-icon,
.card h3,
.card p {
  position: relative;
  z-index: 1;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 230, 118, 0.08);
}

.card-icon {
  width: 52px;
  height: 52px;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  padding: 11px;
  background: rgba(0, 230, 118, 0.07);
  border-radius: 10px;
  border: 1px solid rgba(0, 230, 118, 0.14);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.9rem;
}

/* ============================================================
   PLATFORM FLOWCHART
   ============================================================ */
.flowchart {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.flow-step {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.flow-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.flow-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--accent-cyan);
  background: rgba(0, 230, 118, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.flow-icon svg {
  width: 100%;
  height: 100%;
}

.flow-number {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.flow-step h4 {
  margin-bottom: 10px;
}

.flow-step p {
  font-size: 0.8rem;
  line-height: 1.65;
}

.flow-arrow {
  flex-shrink: 0;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 52px;
  color: var(--accent-cyan);
  opacity: 0.35;
  align-self: stretch;
}

.flow-arrow svg {
  width: 28px;
  height: 14px;
}

/* ============================================================
   USE CASES — FLIP CARDS
   ============================================================ */
.flip-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flip-card {
  height: 288px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.flip-card-front {
  background: var(--bg-card);
}

.flip-card-back {
  background: linear-gradient(145deg, #091a12, #0e2018);
  border-color: rgba(0, 230, 118, 0.22);
  transform: rotateY(180deg);
}

.flip-icon {
  width: 64px;
  height: 64px;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  padding: 14px;
  background: rgba(0, 230, 118, 0.07);
  border-radius: 50%;
  border: 1px solid rgba(0, 230, 118, 0.14);
}

.flip-icon svg {
  width: 100%;
  height: 100%;
}

.flip-card-front h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.flip-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.flip-card-back h3 {
  font-size: 1rem;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}

.flip-card-back p {
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.flip-tag {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  opacity: 0.75;
  background: rgba(0, 230, 118, 0.08);
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(0, 230, 118, 0.15);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.055) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-headline {
  margin: 18px 0 22px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.cta-sub {
  font-size: 1.05rem;
  margin-bottom: 44px;
}

.cta-note {
  margin-top: 22px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #040710;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 56px 24px 44px;
  gap: 32px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-email a {
  font-size: 0.875rem;
  color: var(--accent-cyan);
  transition: opacity 0.2s ease;
}

.footer-email a:hover {
  opacity: 0.7;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-nav a {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 20px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent-cyan); opacity: 1; }
  50%       { box-shadow: 0 0 2px var(--accent-cyan); opacity: 0.5; }
}

@keyframes scrollPulse {
  0%   { opacity: 0.7; transform: translateY(-6px); }
  50%  { opacity: 1; transform: translateY(4px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ============================================================
   MEDIA QUERIES
   ============================================================ */
@media (max-width: 1024px) {
  .flip-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flowchart {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .flow-arrow {
    display: none;
  }

  .flow-step {
    flex: 0 1 calc(33% - 12px);
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 72px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  .nav-links.open li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open a {
    display: block;
    padding: 16px 0;
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: flex;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .flip-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .flip-card {
    height: 260px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 32px;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .flip-cards-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .flow-step {
    flex: 0 1 100%;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-badge,
  .hero-headline,
  .hero-subhead,
  .hero-actions,
  .hero-trust,
  .hero-scroll-hint {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .flip-card-inner {
    transition: none;
  }

  .trust-dot,
  .scroll-line {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
