:root {
  --violet: #126c4b;
  --fuchsia: #1d7f54;
  --cyan: #c5a04b;
  --pink: #67b785;
  --bg-void: #f4f8f4;
  --glass: rgba(255, 255, 255, .82);
  --glass-border: rgba(18, 108, 75, .17);
  --glow-v: rgba(18, 108, 75, .3);
  --glow-f: rgba(197, 160, 75, .28);
  --text: #183b2c;
  --text-muted: rgba(24, 59, 44, .7);
  --bg-card: #fff;
  --accent: #126c4b;
  --border: rgba(18, 108, 75, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg-void);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 18% 7%, rgba(56, 153, 103, .2) 0%, transparent 52%),
    radial-gradient(ellipse 70% 90% at 86% 84%, rgba(197, 160, 75, .15) 0%, transparent 54%),
    radial-gradient(ellipse 80% 55% at 50% 48%, rgba(122, 190, 145, .11) 0%, transparent 62%);
  animation: aurora-shift 12s ease-in-out infinite alternate;
}
@keyframes aurora-shift {
  0% { opacity: .9; transform: scale(1) rotate(0); }
  100% { opacity: 1; transform: scale(1.05) rotate(1deg); }
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 108, 75, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 108, 75, .035) 1px, transparent 1px);
  background-size: 60px 60px;
}

#particle-bg { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
#particle-bg canvas { width: 100%; height: 100%; display: block; }

.site-header {
  position: relative;
  z-index: 10;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(249, 252, 249, .88);
  backdrop-filter: blur(12px);
}
.header-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: .5rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.3rem; }
.logo-img { height: 1.8rem; width: auto; display: block; object-fit: contain; filter: hue-rotate(220deg) saturate(.78); }
.logo-badge {
  font-size: .6rem;
  padding: .2rem .5rem;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(18, 108, 75, .1), rgba(197, 160, 75, .14));
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  font-weight: 600;
}
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: .9rem; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }

.hero { position: relative; z-index: 2; min-height: calc(100vh - 160px); display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem 4rem; }
.hero-inner { max-width: 640px; width: 100%; text-align: center; }
.hero-badge-wrap { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-bottom: 1.5rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem 1rem;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: .8rem;
  color: var(--fuchsia);
  box-shadow: 0 6px 20px rgba(22, 76, 50, .06);
  backdrop-filter: blur(8px);
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(18, 108, 75, .28); }
  50% { box-shadow: 0 0 0 10px rgba(18, 108, 75, 0); }
}
.hero-robot { width: 44px; height: 44px; flex-shrink: 0; position: relative; display: flex; align-items: center; justify-content: center; }
.robot-bg {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, #126c4b, #269461);
  animation: robot-ripple 2s ease-out infinite;
}
.robot-bg::before, .robot-bg::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #269461; opacity: 0;
  animation: robot-ripple-ring 2s ease-out infinite;
}
.robot-bg::after { border-color: #c5a04b; animation-delay: .6s; }
.robot-icon { position: relative; z-index: 1; width: 1.25rem; height: 1.25rem; color: #fff; animation: robot-float 2.5s ease-in-out infinite; }
@keyframes robot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes robot-ripple { 0%, 100% { opacity: .9; } 50% { opacity: 1; } }
@keyframes robot-ripple-ring { 0% { transform: scale(.8); opacity: .5; } 100% { transform: scale(1.4); opacity: 0; } }

.pulse-dot {
  width: 6px; height: 6px; background: var(--cyan); border-radius: 50%;
  animation: dot-blink 1s ease-in-out infinite;
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--cyan); }
  50% { opacity: .5; transform: scale(1.3); box-shadow: 0 0 20px var(--cyan); }
}

.hero-title { font-size: clamp(2.2rem, 6.5vw, 4rem); font-weight: 800; line-height: 1.15; margin: 0 0 1rem; }
.glitch {
  display: inline-block;
  background-image: linear-gradient(110deg, #126c4b 0%, #269461 28%, #c5a04b 50%, #269461 72%, #126c4b 100%);
  background-size: 220% 100%;
  background-position: 0% center;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-color-flow 3.6s ease-in-out infinite alternate;
}
@keyframes title-color-flow { from { background-position: 0% center; } to { background-position: 100% center; } }

.hero-desc { margin: 0 auto 1.5rem; max-width: 34rem; font-size: 1rem; line-height: 1.7; color: var(--text-muted); }

.process-cards { display: flex; flex-wrap: nowrap; justify-content: center; gap: .75rem; margin-bottom: 1.5rem; }
.process-card {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: .75rem 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: .5rem;
  box-shadow: 0 8px 22px rgba(22, 76, 50, .05);
  transition: border-color .3s, box-shadow .3s;
  flex: 1; min-width: 100px; max-width: 140px;
}
.process-card:hover { border-color: rgba(38, 148, 97, .42); box-shadow: 0 10px 26px rgba(18, 108, 75, .1); }
.process-icon { width: 1.2rem; height: 1.2rem; color: var(--violet); flex-shrink: 0; }
.process-title { font-size: .8rem; font-weight: 600; margin: 0; color: var(--text); text-align: center; line-height: 1.35; }

.analysis-cta { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.input-wrapper {
  position: relative; display: flex; align-items: stretch;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: box-shadow .3s ease;
}
.input-wrapper::before {
  content: ""; position: absolute; inset: -2px; border-radius: 18px; padding: 2px;
  background: linear-gradient(135deg, #126c4b, #1d7f54, #c5a04b, #126c4b);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: border-flow 3.4s linear infinite;
  opacity: .82;
  pointer-events: none;
}
@keyframes border-flow { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.input-wrapper:focus-within { box-shadow: 0 0 0 4px rgba(18, 108, 75, .1); }
.input-wrapper:focus-within::before { opacity: 1; }
.hero-input {
  flex: 1; width: 100%; padding: 1.1rem 1.3rem;
  font-size: 1.05rem; font-family: inherit;
  background: transparent; border: none;
  color: var(--text); text-align: left;
  position: relative; z-index: 1;
}
.hero-input::placeholder { color: rgba(24, 59, 44, .64); }
.hero-input:focus { outline: none; }
.hero-input:focus-visible { outline: 3px solid rgba(18, 108, 75, .3); outline-offset: -3px; }

.hero-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  padding: 1.1rem 1.75rem;
  font-size: 1.15rem; font-weight: 700; font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #126c4b, #1d7f54);
  border: none; border-radius: 16px; cursor: pointer;
  box-shadow: 0 12px 28px rgba(18, 108, 75, .2);
  overflow: hidden;
  transition: transform .2s, box-shadow .3s;
}
.hero-btn svg { width: 1.05rem; height: 1.05rem; position: relative; z-index: 1; }
.hero-btn span { position: relative; z-index: 1; }
.hero-btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #1d7f54, #126c4b); opacity: 0; transition: opacity .3s; }
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(18, 108, 75, .24); }
.hero-btn:hover::before { opacity: 1; }
.hero-btn:active { transform: scale(.98); }

.trust-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.trust-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: .85rem;
  color: var(--text-muted);
  transition: border-color .3s, color .3s, box-shadow .3s;
}
.trust-item:hover { border-color: rgba(38, 148, 97, .38); color: var(--text); box-shadow: 0 8px 22px rgba(18, 108, 75, .08); }
.trust-icon { width: 1rem; height: 1rem; color: var(--cyan); flex-shrink: 0; }

.education-note { max-width: 35rem; margin: 1.15rem auto 0; padding: .2rem .8rem; border-left: 2px solid var(--cyan); color: var(--text-muted); font-size: .78rem; line-height: 1.6; text-align: left; }

.analysis-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(13, 43, 30, .42);
  backdrop-filter: blur(20px);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.analysis-overlay.is-active { display: flex; }
.analysis-panel {
  max-width: 440px; width: 100%; padding: 2.5rem;
  background: linear-gradient(180deg, #fff, #f5faf6);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(18, 108, 75, .18);
  border-radius: 24px;
  box-shadow: 0 18px 70px rgba(10, 46, 29, .15), inset 0 1px rgba(255, 255, 255, .8);
}
.analysis-header { text-align: center; margin-bottom: 2rem; }
.scan-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #126c4b, #1d7f54, #c5a04b, transparent);
  background-size: 200% 100%;
  border-radius: 2px;
  margin-bottom: 1.25rem;
  animation: scan-sweep 1.2s linear infinite;
}
@keyframes scan-sweep { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.analysis-header h2 {
  font-size: 1.3rem; margin: 0 0 .35rem;
  background-image: linear-gradient(135deg, #183b2c, #269461);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.scan-symbol { margin: 0; font-size: 1.05rem; color: var(--accent); min-height: 1.3em; }

.analysis-visual { position: relative; height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; }
.radar-ring {
  position: absolute;
  border: 2px solid transparent;
  border-top-color: #126c4b;
  border-right-color: #c5a04b;
  border-radius: 50%;
  animation: radar-spin 3s linear infinite;
}
.radar-ring.ring-1 { width: 70px; height: 70px; animation-duration: 2s; }
.radar-ring.ring-2 { width: 110px; height: 110px; animation-duration: 2.5s; animation-direction: reverse; }
.radar-ring.ring-3 { width: 150px; height: 150px; animation-duration: 3s; }
@keyframes radar-spin { to { transform: rotate(360deg); } }
.radar-center { position: absolute; display: flex; align-items: center; justify-content: center; }
.pulse-core {
  width: 44px; height: 44px;
  background: radial-gradient(circle at 30% 30%, #1d7f54, #126c4b);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(29, 127, 84, .18), 0 0 54px rgba(18, 108, 75, .14), inset 0 0 18px rgba(255, 255, 255, .48);
  animation: core-breath 1.5s ease-in-out infinite;
}
@keyframes core-breath { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: .95; } }

.analysis-progress { /* progress */ }
.progress-bar-wrap { height: 8px; background: rgba(18, 59, 40, .1); border-radius: 4px; overflow: hidden; margin-bottom: .85rem; }
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #126c4b, #269461, #c5a04b);
  background-size: 200% 100%;
  border-radius: 4px;
  transition: width .2s ease;
  animation: progress-glow 2s linear infinite;
}
@keyframes progress-glow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.progress-status { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; font-size: .9rem; color: var(--text-muted); }
.status-text { flex: 1; min-width: 0; text-align: left; line-height: 1.4; }
.percentage { flex-shrink: 0; color: #765915; font-weight: 700; }

.result-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 1rem; }
.result-modal[aria-hidden="false"] { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(13, 43, 30, .52); backdrop-filter: blur(12px); }
.modal-box {
  position: relative;
  max-width: 460px; width: 100%; padding: 2.25rem;
  background: linear-gradient(180deg, #fff, #f4f8f4);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(18, 108, 75, .2);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(8, 40, 25, .18);
  text-align: center;
}
.modal-close {
  position: absolute; top: 1rem; left: 1rem;
  width: 38px; height: 38px;
  font-size: 1.5rem; line-height: 1;
  color: var(--text-muted);
  background: rgba(18, 108, 75, .06);
  border: 1px solid var(--glass-border);
  border-radius: 10px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.modal-close:hover { background: rgba(18, 108, 75, .12); color: var(--text); border-color: var(--fuchsia); }
.modal-icon { display: flex; justify-content: center; margin-bottom: 1rem; color: var(--cyan); }
.modal-icon svg { width: 3.5rem; height: 3.5rem; }
.modal-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 1rem; color: var(--text); }
.modal-message { font-size: 1.05rem; line-height: 1.75; color: var(--text-muted); margin: 0 0 1.5rem; }
.modal-wa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  max-width: 100%; padding: 1rem 1.35rem;
  font-size: 1rem; font-weight: 700; line-height: 1.35;
  color: #fff;
  background: linear-gradient(135deg, #126c4b, #1d7f54);
  border-radius: 14px;
  text-decoration: none; text-align: center;
  box-shadow: 0 12px 26px rgba(18, 108, 75, .2);
  transition: transform .2s, box-shadow .3s;
}
.modal-wa-btn svg { width: 1.7rem; height: 1.7rem; flex-shrink: 0; }
.modal-wa-btn:hover { transform: scale(1.04); box-shadow: 0 14px 28px rgba(18, 108, 75, .26); }
.modal-note { margin: 1rem 0 0; color: var(--text-muted); font-size: .78rem; line-height: 1.55; }

.site-footer {
  position: relative; z-index: 2;
  padding: 2rem 1.5rem;
  background: rgba(249, 252, 249, .9);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  text-align: center;
}
.footer-inner { max-width: 640px; margin: 0 auto; }
.footer-nav { margin-bottom: 1rem; font-size: .9rem; }
.footer-nav a { color: var(--accent); text-decoration: none; transition: text-shadow .2s; }
.footer-nav a:hover { text-decoration: underline; }
.footer-nav span { margin: 0 .5rem; color: var(--text-muted); }
.footer-risk { max-width: 40rem; margin: .85rem auto; color: var(--text-muted); font-size: .78rem; line-height: 1.5; }
.footer-copy { font-size: .8rem; color: var(--text-muted); margin: 0; }

.legal-page { position: relative; z-index: 2; padding: 2rem 1.5rem 4rem; min-height: calc(100vh - 180px); }
.legal-inner { max-width: 720px; margin: 0 auto; }
.nav-mini { display: flex; gap: 1rem; margin-bottom: 2rem; }
.nav-mini a { color: var(--text-muted); text-decoration: none; font-size: .9rem; }
.nav-mini a:hover { color: #269461; }
.legal-header { margin-bottom: 2rem; }
.legal-header h1 { font-size: 2rem; margin: 0 0 .5rem; color: var(--text); }
.legal-header p { color: var(--text-muted); margin: 0; }
.legal-content {
  background: rgba(255, 255, 255, .9);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 44px rgba(20, 73, 48, .06);
}
.legal-content h2 { font-size: 1.2rem; color: var(--accent); margin: 1.5rem 0 .75rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { line-height: 1.8; color: var(--text-muted); margin: 0 0 1rem; }
.legal-content p:last-child { margin-bottom: 0; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2rem; color: var(--accent); text-decoration: none; font-weight: 600; transition: opacity .2s; }
.back-link:hover { opacity: .8; }

@media (max-width: 767px) {
  .nav-links { display: none; }
  .hero { min-height: auto; padding: 2rem 1rem 3rem; }
  .process-cards { gap: .5rem; margin-bottom: 1.25rem; }
  .process-card { padding: .6rem .75rem; min-width: 85px; max-width: 120px; }
  .process-icon { width: 1rem; height: 1rem; }
  .process-title { font-size: .75rem; }
  .trust-strip { gap: .6rem; }
  .trust-item { font-size: .8rem; padding: .5rem .8rem; }
  .hero-btn, .modal-wa-btn { font-size: 1rem; }
  .legal-content { padding: 1.25rem; }
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/Inter-latin.woff2") format("woff2");
}
