/* ============================================================
   MIKOMI JAPANESE LANGUAGE INSTITUTE — style.css
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --red: #E60012;
  --red-dark: #b3000e;
  --red-soft: #fff1f2;
  --black: #14110f;
  --ink: #2b2724;
  --muted: #6b6763;
  --white: #ffffff;
  --grey: #f5f5f7;
  --grey-2: #ececef;
  --line: #e6e6ea;
  --blossom: #fb7185;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 6px 20px rgba(20,17,15,.06);
  --shadow-md: 0 14px 40px rgba(20,17,15,.10);
  --shadow-lg: 0 26px 70px rgba(20,17,15,.14);
  --shadow-red: 0 12px 30px rgba(230,0,18,.28);

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-jp: 'Noto Serif JP', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

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

h1, h2, h3, h4 { line-height: 1.15; color: var(--black); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.2rem; }

.container { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.text-accent { color: var(--red); }
.link-accent { color: var(--red); font-weight: 600; }
.link-accent:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font); font-weight: 600; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 16px 40px rgba(230,0,18,.36); }
.btn-outline { background: #fff; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red-soft); }
.btn-ghost { background: rgba(230,0,18,.06); color: var(--red); }
.btn-ghost:hover { background: rgba(230,0,18,.12); }
.btn-white { background: #fff; color: var(--red); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.14); }
.wa-icon { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  background: #fff; transition: opacity .7s var(--ease), visibility .7s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: loaderPulse 1.6s var(--ease) infinite;
  box-shadow: var(--shadow-md);
  position: relative;
}
.loader-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.loader-logo::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  border: 3px solid var(--red); opacity: .3;
  animation: loaderRing 1.6s var(--ease) infinite;
}
.loader-text { font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-size: .72rem; }
@keyframes loaderPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(.86); } }
@keyframes loaderRing { 0% { transform: scale(.8); opacity: .5; } 100% { transform: scale(1.4); opacity: 0; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--red), var(--blossom));
  z-index: 1200; transition: width .1s linear;
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(255,255,255,.9); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.35rem; color: var(--black); letter-spacing: -.02em; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--red); color: #fff;
  display: grid; place-items: center; font-family: var(--font-jp); font-size: 1.2rem;
  box-shadow: var(--shadow-red);
}
.logo-img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.nav-menu { display: flex; align-items: center; gap: 1.7rem; }
.nav-menu a { font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; transition: color .2s; }
.nav-menu a:not(.btn):hover { color: var(--red); }
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--red); transition: width .3s var(--ease);
}
.nav-menu a:not(.btn):hover::after { width: 100%; }
.nav-cta { margin-left: .5rem; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--black); border-radius: 3px; transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 148px 0 90px;
  background: radial-gradient(1200px 600px at 80% -10%, var(--red-soft), transparent 60%),
              linear-gradient(180deg, #fff, var(--grey));
  overflow: hidden;
}
.wave-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 Q15 4 30 20 T60 20 T90 20 T120 20' fill='none' stroke='%23fecdd3' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 120px 40px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.wave-bg.dark {
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 Q15 4 30 20 T60 20 T90 20 T120 20' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  color: var(--red); background: #fff; border: 1px solid var(--line);
  padding: .45rem 1rem; border-radius: 100px; box-shadow: var(--shadow-sm); margin-bottom: 1.3rem;
}
.hero-copy h1 { margin-bottom: 1.1rem; }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin-bottom: 1.9rem; }
.hero-sub strong { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.2rem; }
.center-ctas { justify-content: center; }
.hero-mini-trust { display: flex; gap: 2.2rem; }
.hero-mini-trust .stat { display: flex; flex-direction: column; }
.hero-mini-trust .counter { font-size: 1.9rem; font-weight: 800; color: var(--black); line-height: 1; }
.hero-mini-trust small { color: var(--muted); font-size: .82rem; margin-top: .2rem; }

/* Hero art */
.hero-art { position: relative; display: grid; place-items: center; }
.art-float { animation: floatY 6s ease-in-out infinite; filter: drop-shadow(var(--shadow-lg)); }
.scene { width: min(440px, 90%); height: auto; border-radius: 50%; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.art-badge {
  position: absolute; font-weight: 600; font-size: .85rem; padding: .6rem 1rem; border-radius: 100px;
  box-shadow: var(--shadow-md);
}
.badge-1 { top: 8%; left: -2%; animation: floatY 5s ease-in-out infinite; }
.badge-2 { bottom: 10%; right: -2%; animation: floatY 7s ease-in-out infinite; }
.glass {
  background: rgba(255,255,255,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.7);
}

/* Falling petals */
.petal-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -30px; width: 14px; height: 14px;
  background: radial-gradient(circle at 30% 30%, #fecdd3, var(--blossom));
  border-radius: 80% 0 80% 0; opacity: .8;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-30px) rotate(0deg); opacity: 0; }
  10% { opacity: .8; }
  100% { transform: translateY(105vh) rotate(420deg); opacity: 0; }
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--black); color: #fff; padding: .9rem 0; overflow: hidden; }
.trust-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 2.4rem; font-size: .92rem; font-weight: 500; }
.trust-track span { opacity: .92; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--grey); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-tag {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); background: var(--red-soft); padding: .4rem .9rem; border-radius: 100px; margin-bottom: .9rem;
}
.section-lead { color: var(--muted); font-size: 1.06rem; margin-top: .7rem; }

.card-grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Feature cards */
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem;
  background: var(--red-soft); margin-bottom: 1.1rem;
}
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .95rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.about-copy h2 { margin: .3rem 0 1rem; }
.about-copy > p { color: var(--muted); margin-bottom: 1.6rem; font-size: 1.05rem; }
.mv-cards { display: grid; gap: 1rem; margin-bottom: 1.7rem; }
.mv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm); }
.mv-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.mv-card p { color: var(--muted); font-size: .95rem; }
.founder-card { border-radius: var(--radius); padding: 2.4rem 2rem; text-align: center; box-shadow: var(--shadow-md); background: #fff; border: 1px solid var(--line); }
.founder-avatar {
  width: 108px; height: 108px; margin: 0 auto 1.2rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--blossom)); color: #fff;
  display: grid; place-items: center; font-size: 3rem; font-weight: 800; box-shadow: var(--shadow-red);
}
.founder-role { color: var(--red); font-weight: 600; margin-bottom: 1.1rem; }
.founder-points { text-align: left; display: grid; gap: .6rem; max-width: 300px; margin: 0 auto 1.3rem; }
.founder-points li { font-size: .95rem; color: var(--ink); }
.founder-quote { font-family: var(--font-jp); font-style: italic; color: var(--muted); font-size: .98rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }

/* ---------- Why Mikomi mini cards ---------- */
.mini-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.5rem 1rem;
  text-align: center; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.mini-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mini-card span { font-size: 1.9rem; display: block; margin-bottom: .55rem; }
.mini-card p { font-size: .9rem; font-weight: 500; color: var(--ink); }

/* ---------- Pricing ---------- */
.price-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.price-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.price-card.popular { border-color: var(--red); box-shadow: var(--shadow-md); }
.ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: .35rem .9rem; border-radius: 100px; box-shadow: var(--shadow-red); text-transform: uppercase;
}
.price-head { text-align: center; margin-bottom: 1.3rem; }
.level-badge {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: var(--black); color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: .7rem;
}
.price-card.popular .level-badge { background: var(--red); }
.price-head h3 { font-size: 1rem; color: var(--muted); font-weight: 500; margin-bottom: .4rem; }
.price { font-size: 2rem; font-weight: 800; color: var(--black); }
.price-list { display: grid; gap: .55rem; margin: 0 0 1.5rem; flex: 1; }
.price-list li { font-size: .92rem; color: var(--ink); padding-left: 1.6rem; position: relative; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
.courses-note { text-align: center; margin-top: 2rem; color: var(--muted); }

/* ---------- Roadmap ---------- */
.roadmap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.road-node {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem;
  text-align: center; box-shadow: var(--shadow-sm); min-width: 130px; transition: transform .35s var(--ease), box-shadow .35s;
}
.road-node:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.road-dot {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--red-soft); color: var(--red); font-weight: 800; margin-bottom: .5rem;
}
.road-dot.goal { background: var(--red); color: #fff; font-size: 1.4rem; }
.road-node p { font-size: .85rem; color: var(--muted); font-weight: 500; }
.road-goal { min-width: 220px; background: var(--black); color: #fff; }
.road-goal p { color: rgba(255,255,255,.85); }
.road-arrow { color: var(--red); font-size: 1.6rem; font-weight: 700; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 2.6rem; }
.step-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem 1.7rem; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
  position: absolute; top: -18px; left: 1.6rem;
  width: 42px; height: 42px; border-radius: 12px; background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow-red);
}
.step-card h3 { margin: .6rem 0 .4rem; }
.step-card p { color: var(--muted); font-size: .93rem; }

/* ---------- Careers ---------- */
.career-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.career-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: .8rem 1.4rem;
  font-weight: 500; font-size: .95rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.career-chip:hover { transform: translateY(-4px); background: var(--red); color: #fff; box-shadow: var(--shadow-red); }

/* ---------- Testimonials ---------- */
.carousel { max-width: 780px; margin: 0 auto; overflow: hidden; }
.carousel-track { display: flex; transition: transform .6s var(--ease); }
.t-card {
  min-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.4rem 2.2rem; box-shadow: var(--shadow-md); text-align: center;
}
.stars { color: #f5b301; font-size: 1.2rem; letter-spacing: .1em; margin-bottom: 1rem; }
.t-card p { font-size: 1.1rem; color: var(--ink); font-style: italic; margin-bottom: 1.5rem; }
.t-card footer { display: flex; align-items: center; justify-content: center; gap: .8rem; }
.t-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,var(--red),var(--blossom));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem;
}
.t-card footer span:last-child { text-align: left; display: flex; flex-direction: column; }
.t-card footer small { color: var(--muted); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1.3rem; margin-top: 1.7rem; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 1.5rem; color: var(--red); cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.carousel-btn:hover { background: var(--red); color: #fff; transform: scale(1.08); }
.carousel-dots { display: flex; gap: .5rem; }
.carousel-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--grey-2); cursor: pointer; transition: .3s;
}
.carousel-dots button.active { background: var(--red); width: 26px; border-radius: 100px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .9rem; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 1.4rem; box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .3s;
}
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none; cursor: pointer; font-weight: 600; padding: 1.2rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--black);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--red); font-weight: 400; transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding-bottom: 1.3rem; font-size: .96rem; }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative; overflow: hidden; padding: 92px 0; text-align: center;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
}
.final-cta h2 { color: #fff; margin-bottom: .9rem; }
.final-cta p { color: rgba(255,255,255,.92); font-size: 1.12rem; max-width: 560px; margin: 0 auto 2rem; }
.final-cta p strong { color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-content: start; }
.contact-card {
  display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.c-icon { font-size: 1.5rem; width: 46px; height: 46px; display: grid; place-items: center; background: var(--red-soft); border-radius: 12px; flex-shrink: 0; }
.contact-card strong { display: block; font-size: .95rem; }
.contact-card p { font-size: .85rem; color: var(--muted); word-break: break-word; }
.contact-map { border-radius: var(--radius); padding: 2rem; display: grid; place-items: center; text-align: center; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-placeholder span { font-size: 2.4rem; }
.map-placeholder p { font-weight: 600; margin: .5rem 0 .2rem; color: var(--black); }
.map-placeholder small { color: var(--muted); display: block; margin-bottom: 1.2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #fff; padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.6rem; }
.logo-light { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.7); margin-top: .8rem; font-size: .95rem; }
.footer-muted { color: rgba(255,255,255,.45) !important; font-size: .85rem !important; }
.footer-links h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer-links ul { display: grid; gap: .6rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .93rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: .7rem; margin-bottom: 1.2rem; font-size: 1.4rem; }
.footer-social a { transition: transform .3s; }
.footer-social a:hover { transform: translateY(-3px); }
.footer-cta { font-size: .88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem 0; }
.footer-bottom p { color: rgba(255,255,255,.55); font-size: .85rem; text-align: center; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 900;
  width: 62px; height: 62px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.5);
  animation: waPulse 2.2s infinite; transition: transform .3s var(--ease);
}
.wa-float svg { width: 34px; height: 34px; fill: #fff; }
.wa-float:hover { transform: scale(1.1); }
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Back to top ---------- */
.back-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 850;
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--black); color: #fff;
  font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: .35s var(--ease); box-shadow: var(--shadow-md);
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); bottom: 100px; }
.back-top:hover { background: var(--red); }

/* ---------- Popup ---------- */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(20,17,15,.45); backdrop-filter: blur(3px);
  z-index: 1400; opacity: 0; visibility: hidden; transition: .35s;
}
.popup-overlay.show { opacity: 1; visibility: visible; }
.popup {
  position: fixed; bottom: 28px; left: 28px; z-index: 1500; width: min(340px, calc(100vw - 40px));
  background: #fff; border-radius: var(--radius); padding: 1.8rem 1.6rem 1.6rem; box-shadow: var(--shadow-lg);
  text-align: center; opacity: 0; visibility: hidden; transform: translateY(24px) scale(.96);
  transition: .4s var(--ease); border: 1px solid var(--line);
}
.popup.show { opacity: 1; visibility: visible; transform: none; }
.popup.center-modal { bottom: auto; left: 50%; top: 50%; transform: translate(-50%,-46%) scale(.96); }
.popup.center-modal.show { transform: translate(-50%,-50%); }
.popup-emoji { font-size: 2.4rem; margin-bottom: .5rem; }
.popup h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.popup-text { color: var(--muted); font-size: .93rem; margin-bottom: 1.2rem; }
.popup-close {
  position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 1.6rem;
  color: var(--muted); cursor: pointer; line-height: 1;
}
.popup-close:hover { color: var(--red); }

/* ---------- Mobile bottom bar ---------- */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 950; display: none;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: .6rem .8rem; gap: .6rem;
  box-shadow: 0 -6px 20px rgba(20,17,15,.08);
}
.mobile-bar-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .8rem; border-radius: 14px; font-weight: 600; font-size: .92rem;
}
.mobile-bar-btn svg { width: 20px; height: 20px; fill: currentColor; }
.mobile-bar-btn.wa { background: #25D366; color: #fff; }
.mobile-bar-btn.demo { background: var(--red); color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas, .hero-mini-trust { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: block; }
  .nav-menu {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; padding: 1rem 1.4rem 1.6rem; box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .4s var(--ease); border-bottom: 1px solid var(--line);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { width: 100%; }
  .nav-menu a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta-mobile .btn { width: 100%; margin-top: .9rem; }

  .grid-3, .grid-4, .steps-grid, .contact-cards { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 70px; }
  .roadmap { flex-direction: column; }
  .road-arrow { transform: rotate(90deg); }
  .mobile-bar { display: flex; }
  .wa-float { bottom: 78px; right: 16px; width: 56px; height: 56px; }
  .wa-float svg { width: 30px; height: 30px; }
  .back-top.show { bottom: 150px; right: 16px; }
  .popup { left: 50%; transform: translateX(-50%) translateY(24px) scale(.96); bottom: 82px; }
  .popup.show { transform: translateX(-50%); }
  .hero-mini-trust { gap: 1.4rem; }
}

@media (max-width: 420px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-mini-trust .counter { font-size: 1.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
