:root {
  --bg-light: #ffffff;
  --bg-sub: #f8f9fa;
  --accent-green: #00ca72;
  --accent-green-strong: #00cf62;
  --accent-blue: #4cec1b;
  --text-primary: #1a1a1c;
  --text-secondary: #666666;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  --gradient-main: linear-gradient(135deg, #00ca72 0%, #2bdf0f 100%);
  --tab-border: #dfdfdf;
  --tab-text: #364153;
}

#safeean-anuga-root,
#safeean-anuga-root * {
  box-sizing: border-box;
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-light);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* background */
.bg-glow {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 202, 114, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(76, 236, 27, 0.05) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

.data-stream {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

/* language */
.anuga-lang__menu {
  display: none;
}

.anuga-lang__menu.active {
  display: block;
}

.anuga-lang__item {
  border: 0;
  background: none;
  cursor: pointer;
  transition: 0.2s;
}

.anuga-lang__item:hover {
  background: var(--accent-green);
  color: #fff;
}

.anuga-lang__toggle,
.anuga-lang__toggle:hover,
.anuga-lang__toggle:focus,
.anuga-lang__toggle:active,
.anuga-lang__toggle:visited {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #1a1a1c !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  outline: none !important;
  text-decoration: none !important;
}

.anuga-lang__toggle:focus-visible {
  outline: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.anuga-lang__toggle .anuga-lang__icon,
.anuga-lang__toggle .anuga-lang__current,
.anuga-lang__toggle .anuga-lang__caret {
  color: #1a1a1c !important;
}

/* live */
.live-dot {
  animation: pulse-green 1.5s infinite;
}

.live-monitor {
  position: fixed;
  overflow: hidden;
}

#live-progress-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(to right, #10b981, #34d399, #6ee7b7);
  z-index: 1;
  pointer-events: none;
  transition: width 0.1s ease-out;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(0, 202, 114, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 202, 114, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 202, 114, 0); }
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards 0.8s;
}

.float-in {
  opacity: 0;
  transform: translateY(0);
}

.float-in.is-active {
  animation: floatIn 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  50% {
    opacity: 1;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* misc effects */
.shine-effect {
  background: linear-gradient(90deg, #1a1a1c 20%, var(--accent-green) 50%, #1a1a1c 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  box-shadow: var(--card-shadow);
  transition: all 0.4s ease;
}

/* hero */
.tech-rings div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  border: 1px dashed rgba(102, 255, 0, 0.553) !important;
}

.ring-1 {
  width: 160px;
  height: 160px;
  border-color: rgba(66, 175, 56, 0.308) !important;
  animation: rotate-cw 12s linear infinite;
}

.ring-2 {
  width: 200px;
  height: 200px;
  border-style: dotted;
  border-color: rgba(0, 255, 98, 0.321) !important;
  animation: rotate-ccw 18s linear infinite;
}

.ring-3 {
  width: 240px;
  height: 240px;
  border-color: rgba(38, 255, 4, 0.601) !important;
  animation: rotate-cw 25s linear infinite;
}

.tech-rings,
.tech-rings::before,
.tech-rings::after,
.tech-rings div {
  box-shadow: 0 0 6px rgba(110, 223, 84, 0.779) !important;
  outline: none !important;
  background-image: none !important;
}

.brand-core {
  background: rgba(0, 202, 114, 0.05);
  box-shadow: 0 0 40px rgba(0, 202, 114, 0.2);
  border-color: rgba(0, 202, 114, 0.12);
  animation: float-diamond 6s ease-in-out infinite;
}

.brand-core::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent-green), transparent);
  opacity: 0.3;
  animation: scan 3s ease-in-out infinite;
}

.brand-icon {
  filter: drop-shadow(0 0 8px rgba(0, 202, 114, 0.4));
  transform: rotate(-45deg);
  animation: icon-pulse 3s ease-in-out infinite;
}

.hero-text--modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title-modern {
  margin: 0 0 20px;
  font-size: clamp(34px, 8vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: #111827;
}

.hero-desc-modern {
  max-width: 600px;
  margin: 0 0 40px;
  padding: 0 20px;
  font-size: 18px;
  line-height: 1.7;
  color: #4b5563;
}

.typing-word {
  position: relative;
  display: inline-block;
  min-width: 2.8em;
  text-align: center;
  color: #059669;
}

.typing-word::after {
  content: '|';
  margin-left: 2px;
  color: #059669;
  animation: blink-caret 0.7s infinite;
}

.anuga-cta-btn {
  color: inherit;
  text-decoration: none !important;
  text-decoration-line: none !important;
}

@keyframes float-diamond {
  0%, 100% { transform: translate(-50%, -50%) rotate(45deg); }
  50% { transform: translate(-50%, -65%) rotate(45deg); }
}

@keyframes icon-pulse {
  0%, 100% {
    transform: rotate(-45deg) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: rotate(-45deg) scale(1.1);
    opacity: 1;
  }
}

@keyframes rotate-cw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate-ccw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes scan {
  0% { top: -100%; }
  100% { top: 100%; }
}

@keyframes blink-caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* titles */
.intro-question {
  margin-bottom: 14px;
  color: #00a34d;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.anuga-title {
  color: #000;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.product-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.product-logo img {
  height: 18px !important;
}

/* modal */
#detail-overlay {
  visibility: hidden;
  transition: 0.3s;
}

#detail-overlay.active {
  visibility: visible;
}

.modal-bg {
  opacity: 0;
  transition: 0.3s;
}

#detail-overlay.active .modal-bg {
  opacity: 1;
}

.modal-content {
  transform: scale(0.9);
  opacity: 0;
  transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

#detail-overlay.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* partner */
.partner-marquee {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.partner-row {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.partner-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  padding: 6px 0;
  will-change: transform;
}

.partner-row--right .partner-track {
  animation: partnerMarqueeRight 28s linear infinite;
}

.partner-row--left .partner-track {
  animation: partnerMarqueeLeft 28s linear infinite;
}

.partner-row--slow .partner-track {
  animation-duration: 34s;
}

.partner-chip {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 320px;
  max-width: 320px;
  padding: 22px 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.partner-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 202, 114, 0.35);
}

.partner-chip__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--gradient-main);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 202, 114, 0.22);
}

.partner-chip__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.partner-chip__text strong {
  margin-bottom: 6px;
  color: #111;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.partner-chip__text span {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  word-break: keep-all;
}

@keyframes partnerMarqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 9px)); }
}

@keyframes partnerMarqueeRight {
  from { transform: translateX(calc(-50% - 9px)); }
  to { transform: translateX(0); }
}

/* inquiry */
.intro-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 120px;
}

.intro-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: 40px 48px;
  border-radius: 32px;
  overflow: hidden;
  background: #00cf62;
}

.intro-left h1 {
  position: relative;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
}

.intro-left p {
  position: relative;
  margin: 0;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.7;
}

.intro-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-form {
  width: 100%;
  padding: 38px 34px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.intro-form label {
  display: block;
  margin-bottom: 8px;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.intro-form input[type="text"],
.intro-form input[type="email"] {
  width: 100%;
  height: 52px;
  margin-bottom: 18px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: #fff;
  color: #111;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.intro-form input[type="text"]:focus,
.intro-form input[type="email"]:focus {
  border-color: rgba(0, 202, 114, 0.65);
  box-shadow: 0 0 0 4px rgba(0, 202, 114, 0.12);
}

.required-text {
  color: #00a34d;
  font-size: 12px;
  font-weight: 800;
}

.submit-btn {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 16px;
  background: #06cd64;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.2px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 202, 114, 0.28);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

#form-result {
  min-height: 24px;
  margin-top: 14px;
  color: #00a34d;
  font-size: 14px;
  font-weight: 700;
}

#form-result.is-error {
  color: #e14b4b;
}

/* problem cards */
.anuga-problem-box {
  width: 320px;
  height: 320px;
  margin-inline: auto;
  background-image: url('https://safeean.club/wordpress/anuga/back.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.anuga-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 840px;
  margin: 10px auto;
  padding-top: 20px;
}

.anuga-problem-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid rgba(80, 140, 60, 0.12);
  border-radius: 24px;
  background-color: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
  transition: transform .25s ease, box-shadow .25s ease;
}

.problem-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-card__icon img {
  display: block;
  width: 95px;
  height: auto;
  object-fit: contain;
}

.problem-card__title {
  color: #202320;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.4px;
  text-align: center;
  word-break: keep-all;
}


.view-video-wrapper,
.school-video-wrapper {
  position: relative;
  width: min(100%, 320px);
  margin: 2rem auto 0;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 5 / 7;
  background: #fff;
}

.view-video,
.school-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* 또는 cover */
  display: block;
}

.view-description,
.school-description {
  margin: 20px 20px 0;
  text-align: center;
}

.view-tab-container,
.school-tab-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 900px;
  margin: 2rem auto 0;
}

.view-tab-btn,
.school-tab-btn {
  padding: 0.3rem 1.5rem;
  border: 2px solid var(--tab-border);
  border-radius: 9999px;
  background-color: #fff;
  color: var(--tab-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-tab-btn:focus,
.view-tab-btn:focus-visible,
.view-tab-btn:active,
.school-tab-btn:focus,
.school-tab-btn:focus-visible,
.school-tab-btn:active {
  outline: none !important;
  box-shadow: none !important;
}

.view-tab-btn.active,
.school-tab-btn.active {
  border-color: var(--accent-green-strong);
  background-color: #fff;
  color: var(--tab-text);
  box-shadow: 0 4px 4px #0093473b;
}

/* impact */
.impact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 20px #00804228;
  transition: all 0.25s ease;
}

.impact-img {
  width: 174px;
  height: auto;
}

.impact-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  height: 100%;
}

.impact-card__title {
  color: #364153;
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}

.impact-value-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.impact-card__value {
  font-size: 38px;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -1.4px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: transform, opacity;
}

.impact-card__value.js-ready {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
}

.impact-card__value.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.impact-card__label {
  font-size: 34px;
  font-weight: 700;
}

.problec-img-box {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-box {
  margin: 20px;
}

/* responsive */
@media (max-width: 900px) {
  .intro-wrapper {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 72px 20px 96px;
  }

  .intro-left {
    min-height: auto;
    padding: 38px 26px;
    border-radius: 24px;
  }

  .intro-left h1 {
    font-size: 32px;
  }

  .intro-left p {
    font-size: 14px;
  }

  .intro-form {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .intro-form input[type="text"],
  .intro-form input[type="email"] {
    height: 48px;
    font-size: 14px;
  }

  .submit-btn {
    height: 52px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .live-monitor {
    gap: 15px !important;
    padding: 10px !important;
    font-size: 10px !important;
  }

  .mobile-hide {
    display: none !important;
  }

  #hero .hero-text h1 {
    font-size: 40px !important;
  }

  .modal-content {
    padding: 40px 24px !important;
  }

  .school-row {
    padding: 20px 24px !important;
  }

  .partner-marquee {
    gap: 14px;
  }

  .partner-track {
    gap: 14px;
  }

  .partner-chip {
    min-width: 270px;
    max-width: 270px;
    padding: 18px;
    border-radius: 20px;
  }

  .partner-chip__logo {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    font-size: 20px;
  }

  .partner-chip__text strong {
    font-size: 17px;
  }

  .partner-chip__text span {
    font-size: 12px;
  }

  .anuga-problem-grid {
    gap: 12px;
  }

  .anuga-problem-card {
    padding: 10px;
    border-radius: 18px;
  }

  .problem-card__icon {
    margin: 5px 0;
  }

  .problem-card__icon img {
    width: 95px;
  }

  .problem-card__title {
    font-size: 13px;
  }

  .hero-title-modern {
    font-size: clamp(30px, 10vw, 46px);
    line-height: 1.2;
    letter-spacing: -1px;
  }

  .hero-desc-modern {
    margin-bottom: 28px;
    padding: 0 12px;
    font-size: 15px;
  }
}


.pulse-container {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
}

.pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1.5px solid #00ca72;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: ripple 6s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* 시간차 */
.pulse-1 { animation-delay: 0s; }
.pulse-2 { animation-delay: 2s; border-color: #4ef021; }
.pulse-3 { animation-delay: 4s; border-color: #5DCAA5; }

/* 핵심 애니메이션 */
@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.2;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}