/* ============================================
   JAIFORE — style.css
   Colors: Purple var(--purple) | Blue var(--blue) | Green var(--green)
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
  border-radius:100%;

}

/* Nav + footer: see shell.css */

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple-tint) 0%, var(--bg-soft) 50%, var(--bg-tint) 100%);
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(138, 31, 168, 0.14), transparent 70%);
  top: -100px;
  right: -80px;
  animation-delay: 0s;
}

.blob2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(74, 159, 212, 0.12), transparent 70%);
  bottom: -60px;
  left: 80px;
  animation-delay: -3s;
}

.blob3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(126, 200, 160, 0.12), transparent 70%);
  top: 40%;
  left: 30%;
  animation-delay: -5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.03); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid rgba(138, 31, 168, 0.2);
  border-radius: 40px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 1.4rem;
  box-shadow: 0 2px 16px rgba(138, 31, 168, 0.1);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.htitle {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}

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

.grad {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hdesc {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 2rem;
  max-width: 340px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

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

.hbtns {
  display: flex;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

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

.hbtn1 {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hbtn1:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(138, 31, 168, 0.3);
}

.hbtn2 {
  background: white;
  color: var(--purple);
  border: 1.5px solid rgba(138, 31, 168, 0.3);
  border-radius: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.hbtn2:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}

.hero-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.hero-img-wrap.visible {
  opacity: 1;
  transform: scale(1);
}

.logo-ring {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 50px rgba(138, 31, 168, 0.18),
    0 0 0 16px rgba(138, 31, 168, 0.06),
    0 0 0 32px rgba(61, 220, 46, 0.05);
  animation: ringPulse 4s ease-in-out infinite;
}

.logo-ring img {
  width: 300px;
  height: 300px;
  object-fit: contain;
}

@keyframes ringPulse {
  0%, 100% { box-shadow: 0 12px 50px rgba(138, 31, 168,0.18), 0 0 0 16px rgba(138, 31, 168,0.06), 0 0 0 32px rgba(61,220,46,0.05); }
  50% { box-shadow: 0 16px 60px rgba(138, 31, 168,0.25), 0 0 0 20px rgba(138, 31, 168,0.09), 0 0 0 40px rgba(61,220,46,0.08); }
}

/* ---------- FEATURES ---------- */
.features {
  padding: 5rem 2rem;
  background: var(--bg-tint);
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--purple-soft);
  font-weight: 500;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fcard {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid var(--purple-tint);
  box-shadow: 0 2px 20px rgba(138, 31, 168, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

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

.fcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(138, 31, 168, 0.12);
}

.fcard-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ficon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ficon-purple { background: var(--purple-tint); }
.ficon-blue   { background: #e0f4ff; }
.ficon-green  { background: #e0f7ee; }

.fcard-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.fcard-text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.75;
  font-weight: 300;
}

/* ---------- ABOUT ---------- */
.about {
  padding: 6rem 2rem;
  background: white;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-wrap {
  display: flex;
  justify-content: center;
}

.about-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-tint), var(--bg-soft), var(--bg-tint));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 40px rgba(138, 31, 168, 0.15);
}

.about-ring img {
  width: 240px;
  height: 240px;
  object-fit: contain;
}

.about-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 1.2rem;
}

.about-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--purple-tint);
}

.astat-val {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.astat-lbl {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted2);
  margin-top: 3px;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  padding: 2rem;
  background: var(--bg-tint);
}

.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--footer-bg);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-title {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}

.cta-sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(200, 200, 255, 0.5);
  font-weight: 300;
}

.cta-btn {
  background: linear-gradient(135deg, var(--purple-soft), var(--green));
  color: white;
  border: none;
  border-radius: 40px;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(126, 207, 237, 0.3);
}

.fcopy {
  font-family: var(--font-body);
  font-size: 11px;
  color: #ccc;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 16px;
    border-top: 1px solid var(--purple-tint);
    box-shadow: 0 8px 24px rgba(138, 31, 168, 0.08);
  }

  .nav-links.open { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }

  .htitle { font-size: 42px; }

  .hdesc { max-width: 100%; margin: 0 auto 1.5rem; }

  .hbtns { justify-content: center; }

  .logo-ring { width: 240px; height: 240px; }
  .logo-ring img { width: 180px; height: 180px; }

  .features-grid { grid-template-columns: 1fr; }

  .about-inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }

  .about-stats { justify-content: center; }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .footer-inner { flex-direction: column; text-align: center; }

  .footer-links { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .htitle { font-size: 34px; }
  .nav-inner { padding: 0.8rem 1.2rem; }
  .features { padding: 3rem 1.2rem; }
  .about { padding: 3rem 1.2rem; }
}
/* Headings use the display font (tokens.css); body copy uses the body font */
h1, h2, h3,
.htitle, .fcard-title, .about-title, .astat-val, .cta-title { font-family: var(--font-display); }

/* Home contact links (rendered from window.JAIFORE_CONTACT, see jaifore.js) */
.cta-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  color: var(--footer-ink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-decoration: none;
  transition: border-color var(--speed-fast), color var(--speed-fast);
}
.cta-link:hover { border-color: var(--purple-soft); color: #fff; }
