/* ===========================================================
   Eastin Technology — Landing Page (Light Theme)
   Pure CSS, no external dependencies.
   =========================================================== */

:root {
  --bg:        #ffffff;
  --bg-2:      #f4f7fb;
  --surface:   #ffffff;
  --line:      rgba(15, 23, 42, 0.10);
  --text:      #0f172a;
  --muted:     #475569;
  --muted-2:   #94a3b8;

  --brand:     #4f46e5;
  --brand-2:   #6366f1;
  --brand-3:   #7c3aed;
  --brand-tint:rgba(79, 70, 229, 0.08);
  --grad:      linear-gradient(120deg, #0891b2 0%, #4f46e5 52%, #7c3aed 100%);

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1160px;
  --shadow:    0 24px 50px -26px rgba(15, 23, 42, 0.30);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

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

.glass {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 12px; --pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--lg { --pad-y: 15px; --pad-x: 30px; font-size: 1rem; }
.btn--sm { --pad-y: 9px;  --pad-x: 18px; font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--grad);
  color: #ffffff;
  box-shadow: 0 12px 28px -10px rgba(79, 70, 229, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(79, 70, 229, 0.7); }

.btn--ghost {
  background: rgba(15, 23, 42, 0.03);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(15, 23, 42, 0.25); }

/* ---------- Eyebrow / Badge / Titles ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px -8px rgba(15, 23, 42, 0.25);
  margin-bottom: 24px;
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.section__title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section__sub { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 120px) 0; position: relative; }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }

/* ===========================================================
   NAVBAR
   =========================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease, box-shadow .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px -16px rgba(15, 23, 42, 0.3);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: grid; place-items: center; }
.brand__name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand__accent { color: var(--brand); font-weight: 600; margin-left: 2px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { color: #ffffff !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
  background: linear-gradient(180deg, #eef2fb 0%, var(--bg) 70%);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: float 14s ease-in-out infinite;
}
.blob--1 { width: 520px; height: 520px; top: -140px; right: -80px; background: radial-gradient(circle, #818cf8, transparent 70%); }
.blob--2 { width: 460px; height: 460px; bottom: -160px; left: -100px; background: radial-gradient(circle, #67e8f9, transparent 70%); animation-delay: -7s; }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero__lead { color: var(--muted); font-size: 1.12rem; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Hero / section illustrations */
.hero__visual { position: relative; }
.hero-illustration,
.about-illustration,
.contact-illustration {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 55px rgba(15, 23, 42, 0.16));
}
.hero-illustration { animation: float 9s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ===========================================================
   TRUST BAR
   =========================================================== */
.trust { padding: 30px 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.trust__label { text-align: center; color: var(--muted-2); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.trust__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 44px; }
.trust__logos span {
  color: var(--muted);
  font-weight: 700;
  font-size: 1.15rem;
  opacity: 0.6;
  transition: opacity .2s, color .2s;
}
.trust__logos span:hover { opacity: 1; color: var(--text); }

/* ===========================================================
   ABOUT
   =========================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.about__content p { color: var(--muted); margin-top: 16px; }
.checklist { margin: 26px 0 30px; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 500; }
.checklist li::before {
  content: "✓";
  display: grid; place-items: center;
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.8rem; font-weight: 700;
}

/* ===========================================================
   SERVICES
   =========================================================== */
.services { background: var(--bg-2); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

.card--featured { border-color: rgba(79, 70, 229, 0.35); background: linear-gradient(180deg, rgba(79,70,229,0.06), var(--surface) 60%); }
.card__tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  background: var(--grad); color: #ffffff;
}

.card__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--brand-tint);
  border: 1px solid rgba(79, 70, 229, 0.18);
  color: var(--brand);
  margin-bottom: 22px;
}
.card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.card > p { color: var(--muted); font-size: 0.97rem; }

.card__list { margin: 20px 0 24px; display: grid; gap: 10px; }
.card__list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 0.92rem; }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad);
}
.card__link { color: var(--brand); font-weight: 600; font-size: 0.95rem; }
.card__link:hover { opacity: 0.8; }

/* ===========================================================
   PRODUCTS
   =========================================================== */
.products { background: var(--bg); }
.product {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow);
}
.product__visual { display: grid; place-items: center; }
.product-illustration {
  width: 100%;
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 24px 45px rgba(15, 23, 42, 0.18));
}
.product__tag { position: static; display: inline-block; margin-bottom: 14px; }
.product__name { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.product__tagline { color: var(--muted); font-size: 1.05rem; max-width: 520px; }

.product__stats {
  display: flex; gap: 36px; flex-wrap: wrap;
  margin: 24px 0;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}
.product__stats li { display: flex; flex-direction: column; }
.product__stats strong {
  font-size: 1.6rem; font-weight: 700; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.product__stats span { color: var(--muted-2); font-size: 0.82rem; margin-top: 5px; }

.product__features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
  margin-bottom: 28px;
}
.product__features li { position: relative; padding-left: 22px; color: var(--muted); font-size: 0.92rem; }
.product__features li strong { color: var(--text); font-weight: 600; }
.product__features li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad);
}
.product__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product__more { text-align: center; color: var(--muted-2); margin-top: 32px; font-size: 0.95rem; }

/* ===========================================================
   CONTACT
   =========================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.contact__intro p { color: var(--muted); margin-top: 16px; max-width: 460px; }

.contact__info { margin: 32px 0 30px; display: grid; gap: 16px; }
.contact__info li { display: flex; align-items: center; gap: 14px; }
.contact__info a, .contact__info span:not(.ci-ico) { color: var(--text); }
.contact__info a:hover { color: var(--brand); }
.ci-ico {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--brand-tint);
  border: 1px solid rgba(79, 70, 229, 0.16);
  color: var(--brand); font-size: 1.05rem;
}
.contact__media { display: grid; place-items: center; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { border-top: 1px solid var(--line); padding-top: 56px; background: var(--bg); }
.footer__inner {
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding-bottom: 36px;
}
.footer__brand p { color: var(--muted); margin-top: 10px; max-width: 280px; font-size: 0.92rem; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.footer__links a { color: var(--muted); font-weight: 500; transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.footer__col a { color: var(--muted); font-weight: 500; font-size: 0.92rem; transition: color .2s; }
.footer__col a:hover { color: var(--brand); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.85rem;
}

/* ===========================================================
   PRODUCT DETAIL PAGE
   =========================================================== */
.pd-hero { padding-top: 130px; background: linear-gradient(180deg, #eef2fb 0%, var(--bg) 70%); }
.pd-hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.pd-back { display: inline-block; color: var(--muted); font-weight: 500; font-size: 0.9rem; margin-bottom: 18px; }
.pd-back:hover { color: var(--brand); }
.pd-hero__content .badge { margin-top: 4px; }
.pd-hero__visual { display: grid; place-items: center; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 880px; margin-inline: auto; }
.steps__track {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.steps__track h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 22px; }
.steps__list { display: grid; gap: 16px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step__num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 0.95rem;
}
.step__b strong { display: block; font-size: 0.98rem; }
.step__b span { color: var(--muted); font-size: 0.9rem; }

.benefit-highlights { display: flex; gap: 16px 32px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.benefit-highlights span { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.benefit-highlights strong { color: var(--text); }

.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 20px;
  transition: border-color .2s;
}
.faq details[open] { border-color: rgba(79, 70, 229, 0.35); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 18px 0; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--muted); padding: 0 0 18px; margin: 0; font-size: 0.95rem; }

.pd-download { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Legal pages */
.legal-hero { padding-top: 130px; padding-bottom: 0; }
.legal-hero .pd-back { display: inline-block; margin-bottom: 18px; }
.legal-hero .eyebrow { display: block; }
.legal__lead { color: var(--muted); font-size: 1.08rem; max-width: 680px; margin-top: 16px; }
.legal { max-width: 720px; margin-inline: auto; display: grid; gap: 26px; }
.legal__block h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.legal__block p { color: var(--muted); }
.legal__block a { color: var(--brand); font-weight: 600; }
.legal__block a:hover { opacity: 0.8; }

/* ===========================================================
   SCROLL REVEAL
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .hero-illustration { animation: none; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 460px; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { order: 2; max-width: 460px; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__media { max-width: 440px; }
  .services__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .product { grid-template-columns: 1fr; gap: 36px; padding: 32px; }
  .product__visual { order: 2; }
  .pd-hero .container { grid-template-columns: 1fr; gap: 40px; }
  .pd-hero__visual { order: -1; max-width: 320px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; gap: 20px; }

  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px 28px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 30px -16px rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateY(-130%);
    transition: transform .35s ease;
    align-items: stretch;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 12px 4px; }
  .nav__cta { margin-top: 8px; text-align: center; }
  .nav__toggle { display: flex; }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .hero { padding-top: 120px; }
  .contact__intro .btn { width: 100%; }
  .product { padding: 24px; }
  .product__features { grid-template-columns: 1fr; }
  .product__actions .btn { width: 100%; }
}
