/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* hidden 속성이 CSS display 값에 덮어씌워지지 않도록 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0F172A;
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================
   HEADER
============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.3s;
}

.header--scrolled { background: rgba(15, 23, 42, 0.96); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo__icon { flex-shrink: 0; }

.logo__text {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #93C5FD;
  padding: 5px 12px;
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-radius: 100px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #34D399;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

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

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: #2563EB;
  color: #FFFFFF;
}
.btn--primary:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}
.btn--primary:active { transform: translateY(0); box-shadow: none; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn--white {
  background: #FFFFFF;
  color: #2563EB;
  font-weight: 700;
}
.btn--white:hover {
  background: #EFF6FF;
  transform: translateY(-1px);
}

.btn--sm { padding: 9px 18px; font-size: 14px; }

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(140deg, #0F172A 0%, #1E3A5F 60%, #0F172A 100%);
  overflow: hidden;
  padding: 120px 0 100px;
}

/* Background decoration */
.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
}
.hero__orb--1 {
  width: 700px; height: 700px;
  background: #2563EB;
  top: -250px; right: -200px;
  animation: float 9s ease-in-out infinite;
}
.hero__orb--2 {
  width: 500px; height: 500px;
  background: #6D28D9;
  bottom: -150px; left: -150px;
  animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(24px, -24px) scale(1.04); }
}

/* Subtle dot grid */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Hero content */
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.hero__launch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #93C5FD;
  margin-bottom: 32px;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: #34D399;
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero__title {
  font-size: clamp(38px, 6.5vw, 72px);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, #60A5FA, #818CF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 48px;
  font-weight: 400;
}

/* Form */
.hero__form-wrap { max-width: 500px; margin: 0 auto; }

#heroForm .form-row {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 7px;
}

.form-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  color: #FFFFFF;
  min-width: 0;
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.38); }

.form-note {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* CTA dark form */
.form-row--dark {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.2);
}
.form-input--dark { color: #FFFFFF; }
.form-input--dark::placeholder { color: rgba(255, 255, 255, 0.45); }

/* Success message */
.success-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  color: #34D399;
  font-size: 15px;
  font-weight: 500;
}
.success-msg--light {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: #FFFFFF;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2.5s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   FEATURE SECTIONS
============================================ */
.feature { padding: 110px 0; background: #FFFFFF; }
.feature--alt { background: #F8FAFF; }

.feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature__grid--rev > :first-child { order: 1; }
.feature__grid--rev > :last-child  { order: 2; }

/* Feature content */
.feature__num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #2563EB;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.feature__title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1px;
  color: #0F172A;
  margin-bottom: 20px;
}

.feature__desc {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 32px;
}

.feature__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
}
.feature__list li::before {
  content: '';
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: #EEF2FF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none'%3E%3Cpolyline points='6 11 9.5 14.5 16 7.5' stroke='%232563EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/cover;
  border-radius: 50%;
}

/* ============================================
   MOCKUP CARDS
============================================ */
.feature__mockup {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__img {
  width: 100%;
  max-width: 340px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.06);
}

.mockup-card {
  width: 100%;
  max-width: 340px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 28px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.05),
    0 8px 24px rgba(0,0,0,0.07),
    0 32px 64px rgba(0,0,0,0.06);
}

.mockup-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.mockup-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: #EEF2FF;
  color: #2563EB;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
}
.mockup-chip--green {
  background: #DCFCE7;
  color: #16A34A;
}

.mockup-date {
  font-size: 11px;
  color: #94A3B8;
}

/* Score section */
.mockup-card__score {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 20px;
}

.score-ring { flex-shrink: 0; }

.score-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-label { font-size: 12px; color: #94A3B8; }
.stat-value  { font-size: 13px; font-weight: 700; color: #0F172A; }

/* Risk rows */
.mockup-card__risks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.risk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #F8FAFC;
}

.risk-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.risk-dot--low { background: #10B981; }
.risk-dot--med { background: #F59E0B; }

.risk-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
}

.risk-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
}
.risk-badge--low { background: #DCFCE7; color: #16A34A; }
.risk-badge--med { background: #FEF3C7; color: #D97706; }

/* Recommendation rows */
.mockup-card__recs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.rec-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
}
.rec-row--ok   { background: #F0FDF4; }
.rec-row--warn { background: #FFFBEB; }

.rec-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rec-icon--ok   { background: #DCFCE7; }
.rec-icon--warn { background: #FEF3C7; }

.rec-name   { font-size: 13px; font-weight: 600; color: #0F172A; }
.rec-status { font-size: 11px; margin-top: 2px; }
.rec-status--ok   { color: #16A34A; }
.rec-status--warn { color: #D97706; }

/* Saving strip */
.mockup-card__saving {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
  border-radius: 12px;
}
.saving-label  { font-size: 12px; color: #6366F1; font-weight: 500; }
.saving-amount { font-size: 13px; color: #4338CA; }
.saving-amount strong { font-size: 18px; font-weight: 800; }

/* ============================================
   CTA SECTION
============================================ */
.cta-section {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  padding: 110px 0;
}

.cta__inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.cta__inner h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
}

.cta__inner p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 40px;
}

.cta__form .form-row { max-width: 440px; margin: 0 auto; border-radius: 14px; padding: 7px; }

/* ============================================
   FOOTER
============================================ */
.footer {
  background: #0F172A;
  padding: 52px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__logo {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.footer__company { font-size: 13px; color: #475569; margin-bottom: 6px; }
.footer__meta    { font-size: 12px; color: #475569; margin-bottom: 3px; }
.footer__copy    { font-size: 12px; color: #334155; margin-top: 6px; }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.footer__links a {
  font-size: 13px;
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s;
}
.footer__links a:hover { color: #CBD5E1; }
.footer__privacy { font-weight: 600; }

/* ============================================
   SCROLL ANIMATIONS
============================================ */
.animate {
  opacity: 0;
  transition:
    opacity  0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Initial states per animation type */
.animate[data-anim="fade-up"]    { transform: translateY(44px); }
.animate[data-anim="fade-left"]  { transform: translateX(-52px); }
.animate[data-anim="fade-right"] { transform: translateX(52px); }
.animate[data-anim="zoom-in"]    { transform: scale(0.93); }

/* Visible state (added by JS) */
.animate.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
  .feature__grid,
  .feature__grid--rev {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  /* on mobile, always show content before mockup */
  .feature__grid--rev > :first-child { order: 2; }
  .feature__grid--rev > :last-child  { order: 1; }

  #heroForm .form-row {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 12px;
  }
  #heroForm .form-input {
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 14px 16px;
  }
  #heroForm .btn { width: 100%; padding: 14px; }

  .cta__form .form-row {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 12px;
  }
  .cta__form .form-input--dark {
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 14px 16px;
  }
  .cta__form .btn { width: 100%; padding: 14px; }

  .header__badge { display: none; }

  .footer__inner { flex-direction: column; }
  .footer__links { align-items: flex-start; }

  .hero__scroll-hint { display: none; }
}
