/* ============================================================
   GASPOL UNESA - Landing Page v3 (index3.html)
   Referensi tampilan: AIDERA (aidera.sbs) - hero carousel,
   search box AI, bento foto, mitra marquee, feature cards,
   flowchart, CTA besar. Konten: GASPOL v3.
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --bg-color: #eff6ff;
  --text-dark: #1e3a8a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --accent-gold: #ffcc00;
  --font-display: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bg-color);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.25; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--primary-light); color: var(--primary); }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.section { padding: 90px 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 300;
}
.skip-link:focus { left: 0; }

/* ---------- Reveal (IntersectionObserver) ---------- */
[data-sr] { opacity: 0; transition: opacity 0.9s ease, transform 0.9s ease; }
[data-sr="scale"] { transform: scale(0.85); }
[data-sr="left"] { transform: translateX(-60px); }
[data-sr="right"] { transform: translateX(60px); }
[data-sr="bottom"] { transform: translateY(60px); }
[data-sr].sr-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-sr] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none !important; }
}

/* ---------- Navbar ---------- */
.navbar {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.1);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo-unesa { height: 32px; width: auto; }
.brand .logo-gaspol { height: 36px; width: auto; }
.brand-sep { width: 1px; height: 24px; background: var(--border); }

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

.nav-links { display: flex; gap: 4px; list-style: none; margin-inline: auto; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }

.btn-login-nav {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 24px;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-login-nav:hover { background: var(--primary-hover); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  align-items: center;
  justify-content: center;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero Carousel ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.carousel { position: absolute; inset: 0; z-index: 0; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background: #000;
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
}

.hero-title {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.hero-title span { color: #93c5fd; }

.hero-tagline {
  font-weight: 600;
  font-size: 1.15rem;
  color: #93c5fd;
  margin-bottom: 8px;
}
.hero-tagline-2 {
  font-weight: 600;
  font-size: 1.05rem;
  color: #f8fafc;
  font-style: italic;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 26px;
  line-height: 1.6;
  max-width: 42rem;
  margin-inline: auto;
}

/* AI Search Box */
.ai-search-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  padding: 8px 10px 8px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 650px;
  margin: 0 auto 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.ai-search-box .search-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
  font-size: 1.05rem;
  text-align: left;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.ai-search-box .search-text svg { color: var(--primary); flex-shrink: 0; }
.ai-search-box .search-text .typing-text { color: var(--text-muted); font-weight: 500; }
.cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--primary);
  margin-left: 3px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.ai-search-box .search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.ai-search-box .search-btn:hover { background: var(--primary-hover); transform: scale(1.05); }

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-badges .badge {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid #64748b;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-badges .badge svg { color: var(--accent-gold); }

.btn-hero-primary {
  background: #fff;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #fff;
  transition: var(--transition);
}
.btn-hero-primary:hover { background: #f8fafc; transform: translateY(-2px); }
.btn-hero-primary img { width: 20px; height: 20px; }

/* ---------- Info & Bento Foto ---------- */
.info-section { background: #fff; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 190px;
  gap: 15px;
}

.bento-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
}
.bento-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease; }
.bento-item:hover img { transform: scale(1.08); }
.bento-item.bento-large { grid-row: span 2; }

.info-title {
  font-size: clamp(1.9rem, 3.4vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.info-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.stats-wrap { display: flex; flex-wrap: wrap; gap: 34px; }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: 1.9rem; font-weight: 800; color: var(--primary); font-family: var(--font-display); }
.stat-label { font-size: 0.85rem; color: var(--text-dark); font-weight: 700; text-transform: uppercase; }

/* ---------- Mitra Marquee ---------- */
.trust-section {
  padding: 44px 0 64px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.trust-title {
  text-align: center;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 26px;
}

.marquee { overflow: hidden; position: relative; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 64px;
  margin: 0 40px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: var(--transition);
}
.marquee-track img:hover { filter: grayscale(0%) opacity(1); }

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Section Head ---------- */
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.2rem); font-weight: 800; color: var(--text-dark); }
.section-head p { color: var(--text-muted); margin-top: 10px; font-size: 1.0625rem; }

/* ---------- Empathy (Role Cards) ---------- */
.empathy { background: var(--bg-color); }

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

.role-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.role-card:hover {
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.18);
  transform: translateY(-8px);
  border-color: var(--primary-light);
}

.role-img-box { position: relative; height: 210px; }
.role-img-box img { width: 100%; height: 100%; object-fit: cover; }

.role-badge {
  position: absolute;
  bottom: -15px;
  left: 25px;
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}
.role-badge.amber { background: #f59e0b; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4); }
.role-badge.teal { background: #14b8a6; box-shadow: 0 4px 10px rgba(20, 184, 166, 0.4); }

.role-content { padding: 38px 25px 30px; flex: 1; display: flex; flex-direction: column; }
.role-content h4 { font-size: 1.22rem; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; }
.role-content p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.6; }

.role-features { list-style: none; display: grid; gap: 8px; }
.role-features li { font-size: 0.9rem; color: var(--text-dark); font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.role-features li svg { color: var(--primary); flex-shrink: 0; margin-top: 3px; }

/* ---------- Cara Kerja (Flowchart) ---------- */
.how {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.flow {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 1100px;
  margin: 60px auto 0;
}

.flow::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12%;
  right: 12%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #93c5fd 100%);
  border-radius: 2px;
  opacity: 0.5;
  z-index: 0;
}

.flow-step {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  padding: 52px 20px 26px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  margin: 0 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}
.flow-step:hover {
  transform: translateY(-8px);
  border-color: var(--primary-light);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.18);
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid #93c5fd;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  z-index: 2;
  opacity: 0.7;
}

.flow-num {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  box-shadow: 0 0 0 8px #f8fafc, 0 4px 10px rgba(0, 0, 0, 0.1);
}

.flow-step h3 { font-size: 1.15rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.flow-step p { font-size: 0.9rem; color: var(--text-muted); }

.how-cta { text-align: center; margin-top: 52px; }

.btn-navy {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 30px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-navy:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* ---------- Ranah + Manfaat (Feature Cards) ---------- */
.features { background: #fff; }

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

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover {
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
  border-color: var(--primary-light);
  transform: translateY(-5px);
}

.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.icon-blue { background: #eff6ff; color: #3b82f6; }
.icon-green { background: #f0fdf4; color: #22c55e; }
.icon-purple { background: #faf5ff; color: #a855f7; }
.icon-orange { background: #fff7ed; color: #f97316; }
.icon-pink { background: #fdf2f8; color: #ec4899; }
.icon-teal { background: #f0fdfa; color: #14b8a6; }
.icon-amber { background: #fffbeb; color: #f59e0b; }

.feature-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.feature-card p { font-size: 0.9375rem; color: var(--text-muted); }

.feature-card .pill {
  display: inline-block;
  margin-top: 14px;
  background: #fffbeb;
  color: #b45309;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- Testimoni ---------- */
.testi { background: #fff; }

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

.testi-card {
  background: var(--bg-color);
  border-radius: 16px;
  padding: 34px;
  border: 1px solid var(--primary-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.testi-card:hover {
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
  transform: translateY(-5px);
}

.testi-text {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.6;
  flex: 1;
}

.testi-user { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.testi-user h4 { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.testi-user p { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-color); }

.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item.open { border-color: var(--primary-light); box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 1.0313rem;
  color: var(--text-dark);
}
.faq-q .chev { flex-shrink: 0; color: var(--text-muted); transition: transform var(--transition); }
.faq-item.open .chev { transform: rotate(180deg); color: var(--primary); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--text-muted); }

/* ---------- Profil Pengembang ---------- */
.developer {
  padding: 60px 0;
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  text-align: center;
}
.developer .dev-label {
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.developer h4 { color: var(--text-dark); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 12px; }
.developer h4 img { height: 40px; }
.developer p { color: var(--text-muted); margin: 14px auto 0; max-width: 700px; }

/* ---------- Final CTA ---------- */
.cta-wrapper { background: #fff; padding: 60px 0 84px; }

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  padding: 72px 40px;
  text-align: center;
  color: #fff;
  border-radius: 30px;
  margin: 0 auto;
  max-width: 1100px;
  width: 92%;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.35);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 50%;
  height: 200%;
  background: rgba(255, 255, 255, 0.06);
  transform: rotate(30deg);
}

.cta-section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}
.cta-section p { position: relative; z-index: 2; font-size: 1.1rem; margin-bottom: 30px; opacity: 0.92; }

.btn-cta-white {
  background: #fff;
  color: var(--primary);
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.btn-cta-white::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.15), transparent);
  transition: all 0.6s ease;
}
.btn-cta-white:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); }
.btn-cta-white:hover::before { left: 100%; }
.btn-cta-white img { width: 24px; height: 24px; position: relative; z-index: 2; }

/* ---------- Footer ---------- */
.footer { background: #172554; color: rgba(255, 255, 255, 0.75); padding: 64px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 20rem; font-size: 0.9375rem; }

.footer h4 { color: #fff; font-size: 0.9688rem; margin-bottom: 16px; letter-spacing: 0.04em; }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: 0.9375rem; }
.footer a { color: rgba(255, 255, 255, 0.75); transition: color var(--transition); }
.footer a:hover { color: #93c5fd; }
.footer address { font-style: normal; display: grid; gap: 10px; font-size: 0.9375rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  transition: background var(--transition), transform var(--transition);
}
.socials a:hover { background: var(--primary); transform: translateY(-2px); }

/* ---------- Login Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: #fff;
  border-radius: 20px;
  width: min(430px, 100%);
  padding: 38px 34px 34px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
  position: relative;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal { transform: none; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg-color);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--primary-light); color: var(--primary); }

.modal-logo { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; }
.modal-logo img { height: 42px; width: auto; }

.modal h2 { font-size: 1.7rem; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.modal > p { color: var(--text-muted); margin-bottom: 26px; }

.btn-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: var(--transition);
}
.btn-google:hover { box-shadow: 0 6px 18px rgba(37, 99, 235, 0.15); background: #f8fafc; transform: translateY(-1px); }
.btn-google img { width: 22px; height: 22px; }

.modal-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.8438rem;
  margin: 24px 0;
}
.modal-divider::before,
.modal-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.modal-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--bg-color);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  line-height: 1.5;
}
.modal-note strong { color: var(--text-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
    padding: 12px 20px 20px;
    gap: 2px;
  }
  .nav-links.mobile-open a { padding: 12px 8px; }

  .info-grid { grid-template-columns: 1fr; gap: 40px; }
  .info-text-wrap { text-align: center; }
  .stats-wrap { justify-content: center; }

  .flow::before { display: none; }
  .flow { flex-direction: column; gap: 56px; }
  .flow-step:not(:last-child)::after {
    top: auto;
    bottom: -34px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(90deg);
  }

  .role-grid, .testi-grid, .feature-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .hero { min-height: 78vh; }
  .ai-search-box { padding: 6px 8px 6px 15px; }
  .ai-search-box .search-text { font-size: 0.9rem; }
  .ai-search-box .search-btn { width: 40px; height: 40px; }
  .bento-grid { grid-auto-rows: 150px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .cta-section { padding: 56px 24px; }
}

@media (max-width: 480px) {
  .brand .logo-unesa { display: none; }
  .brand-sep { display: none; }
  .hero-badges .badge { font-size: 0.78rem; padding: 6px 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
