:root {
  /* Colors */
  --color-blue: #2563EB;
  --color-purple: #7C3AED;
  --color-pink: #DB2777;
  --color-green: #059669;
  --color-yellow: #FACC15;

  /* Solid Brand Colors */
  --color-primary: var(--color-blue);
  --color-secondary: var(--color-purple);
  --color-accent: var(--color-pink);

  /* Text Colors */
  --text-dark: #0F172A;
  --text-gray: #475569;
  --text-light: #94A3B8;

  /* Backgrounds */
  --bg-primary: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-light-purple: #F5F3FF;
  --bg-light-pink: #FDF2F8;
  --bg-light-blue: #EFF6FF;
  --bg-dark: #0F172A;

  /* Borders */
  --border-light: #E2E8F0;
  --border-input: #CBD5E1;

  /* Shadows */
  --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-header: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-button: 0 4px 12px rgba(219, 39, 119, 0.25);

  /* Sizes */
  --mobile-width: 390px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Fonts */
  --font-primary: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-number: 'Sora', var(--font-primary);

  /* Safe Area */
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: calc(88px + var(--safe-area-bottom));
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
  width: 100%;
  max-width: var(--mobile-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Reveal Animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-white);
  box-shadow: var(--shadow-header);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header__inner {
  width: 100%;
  max-width: var(--mobile-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-dark);
}

.header__logo img {
  height: 32px;
  width: auto;
}

.header__logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  line-height: 1;
}

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

.header__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.header__cta {
  background: var(--color-primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.header__cta:hover {
  background: var(--color-secondary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  background: var(--bg-white);
  overflow: hidden;
  min-height: 380px;
}

.hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-deco--top-right {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -90px;
  background: rgba(124, 58, 237, 0.08);
}

.hero-deco--bottom-left {
  width: 220px;
  height: 220px;
  bottom: -60px;
  left: -100px;
  background: rgba(37, 99, 235, 0.08);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 32px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Badges */
.badge-row {
  display: flex;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
}

.badge--purple { background: var(--bg-light-purple); color: var(--color-purple); }
.badge--pink { background: var(--bg-light-pink); color: var(--color-pink); }

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.badge__dot--pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Headline */
.headline-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.headline {
  font-weight: 800;
  line-height: 1.25;
}

.headline--dark { font-size: 26px; color: var(--text-dark); }
.headline--primary { font-size: 32px; color: var(--color-primary); }
.headline--accent { font-size: 32px; color: var(--color-accent); }

.subcopy {
  font-size: 15px;
  color: var(--text-gray);
  text-align: center;
  max-width: 320px;
  line-height: 1.6;
}

/* Trust Strip */
.trust-strip {
  display: flex;
  justify-content: space-around;
  width: 100%;
  padding-top: 24px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.trust-item__number {
  font-family: var(--font-number);
  font-size: 28px;
  font-weight: 800;
}

.trust-item__number--blue { color: var(--color-blue); }
.trust-item__number--purple { color: var(--color-purple); }
.trust-item__number--pink { color: var(--color-pink); }

.trust-item__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

/* ============================================
   Sections Common
   ============================================ */
.process, .live-feed, .benefits, .form-section {
  background: var(--bg-primary);
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-gray);
  margin-top: 8px;
  text-align: center;
}

/* ============================================
   Process (Benchmarked)
   ============================================ */
.process-header {
  text-align: center;
  margin-bottom: 8px;
}

.process-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary);
  background: var(--bg-light-blue);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

.process-card {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-header);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.process-card:hover { transform: translateY(-5px); }

.process-card__num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-number);
  font-weight: 800;
  font-size: 14px;
  border: 4px solid var(--bg-white);
}

.process-card__img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f1f5f9;
}

.process-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.process-card:hover .process-card__img img { transform: scale(1.1); }

.process-card__content { padding: 24px 20px; }
.process-card__title { font-size: 18px; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.process-card__desc { font-size: 14px; line-height: 1.6; color: var(--text-gray); }


.caution-header { display: flex; align-items: center; gap: 8px; }
.caution-title { font-size: 18px; font-weight: 800; color: var(--text-dark); }
.caution-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.caution-list li { font-size: 14px; color: var(--text-gray); padding-left: 20px; position: relative; }
.caution-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  font-weight: 900;
  font-size: 20px;
  line-height: 14px;
  color: var(--color-primary);
}

/* ============================================
   Live Feed
   ============================================ */
.live-feed { background: var(--bg-white); }
.feed-container {
  width: 100%;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-header);
}
.feed-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; }
.feed-title { display: flex; align-items: center; gap: 8px; }
.feed-title__text { font-size: 18px; font-weight: 800; color: var(--text-dark); }
.live-badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--color-accent); color: #fff; font-family: var(--font-number); font-size: 11px; font-weight: 700; }
.feed-list-wrap { position: relative; height: 280px; overflow: hidden; }
.feed-list { padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 6px; animation: feedScroll 15s linear infinite; }
@keyframes feedScroll { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
.feed-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-white); border-radius: var(--radius-md); }
.feed-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 600; flex-shrink: 0; }
.feed-avatar--blue { background: var(--color-blue); }
.feed-avatar--purple { background: var(--color-purple); }
.feed-avatar--pink { background: var(--color-pink); }
.feed-avatar--green { background: var(--color-green); }
.feed-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.feed-name { font-size: 14px; font-weight: 700; }
.feed-device { font-size: 13px; color: var(--text-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-status { padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.feed-status--complete { background: #ECFDF5; color: var(--color-green); }

/* ============================================
   Benefits
   ============================================ */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; }
.benefit-card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-header); }
.benefit-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.benefit-icon--blue { background: var(--bg-light-blue); }
.benefit-icon--purple { background: var(--bg-light-purple); }
.benefit-icon--pink { background: var(--bg-light-pink); }
.benefit-icon--cyan { background: #E0F2FE; }
.benefit-title { font-size: 16px; font-weight: 800; }
.benefit-desc { font-size: 13px; color: var(--text-gray); }

/* ============================================
   Ranking Section
   ============================================ */
.ranking-container {
  width: 100%;
  max-width: 800px; /* Same max-width as form bounds typically */
  margin: 0 auto 40px auto; 
}
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}
.ranking-card {
  background: var(--bg-light-blue);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(37, 99, 235, 0.05); /* very subtle blue border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}
.ranking-card:hover { transform: translateY(-3px); }
.ranking-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
.ranking-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  word-break: keep-all;
}
.ranking-highlight {
  font-size: 24px;
  font-weight: 900;
  color: #FA2033; /* Strong Red as requested from sample */
  letter-spacing: -0.5px;
  font-family: var(--font-number);
}

/* ============================================
   Form
   ============================================ */
.form-section { background: var(--bg-white); }
.form-header { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.form-title { font-size: 24px; font-weight: 800; }
.form-card { width: 100%; max-width: 480px; background: var(--bg-white); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--border-light); margin: 32px auto 0; }
.form-card__content { padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.input-group { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.input-label { font-size: 14px; font-weight: 600; }
.input-field { width: 100%; height: 56px; padding: 0 18px; background: #F9FAFB; border: 1px solid var(--border-input); border-radius: 14px; font-size: 15px; outline: none; transition: 0.2s; }
.input-field:focus { border-color: var(--color-primary); background: #fff; box-shadow: none; }
.submit-btn { width: 100%; height: 60px; background: var(--color-accent); color: #fff; border-radius: 14px; font-size: 18px; font-weight: 800; cursor: pointer; border: none; transition: 0.2s; box-shadow: var(--shadow-button); }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(219, 39, 119, 0.4); }

/* ============================================
   Footer
   ============================================ */
.footer { background: var(--bg-dark); padding: 48px 24px; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.footer-logo { font-size: 20px; font-weight: 800; }
.footer-phone { background: rgba(255, 255, 255, 0.1); padding: 16px 24px; border-radius: var(--radius-md); display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.footer-info { text-align: center; font-size: 13px; color: #94A3B8; display: flex; flex-direction: column; gap: 8px; }
.footer-copy { margin-top: 16px; color: #64748B; }

/* ============================================
   Floating CTA (Redesigned)
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
  background: #fff;
}

.cta-col {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
  min-height: calc(72px + var(--safe-area-bottom));
  padding-bottom: calc(10px + var(--safe-area-bottom));
  justify-content: center;
}

.cta-col--call {
  background: var(--color-primary);
  color: #fff;
}

.cta-col--kakao {
  background: var(--color-yellow);
  color: #3C1E1E;
}

.cta-kakao-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-col--call .cta-icon img { height: 32px; width: auto; }
.cta-col--kakao .cta-icon img { height: 32px; width: auto; }

.cta-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

/* Hide detailed elements by default (Mobile) */
.cta-subtitle, 
.cta-title,
.cta-desc { 
  display: none; 
}

.cta-value {
  font-family: var(--font-number);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.cta-btn--kakao-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #3C1E1E;
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.cta-btn--kakao-pill span { display: none; }

/* Desktop View (Detailed) */
@media (min-width: 768px) {
  .cta-col {
    gap: 16px;
    padding: 16px 24px;
    min-height: 90px;
  }

  .cta-col--call .cta-icon img { height: 56px; }
  .cta-col--kakao .cta-icon img { height: 50px; }

  .cta-subtitle, 
  .cta-title,
  .cta-desc { 
    display: block; 
  }

  .cta-subtitle {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 500;
    margin-bottom: 2px;
    letter-spacing: -0.2px;
  }

  .cta-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2px;
  }

  .cta-value {
    font-size: 24px;
    letter-spacing: -0.5px;
  }

  .cta-desc {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 8px;
    opacity: 0.85;
  }

  .cta-btn--kakao-pill {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .cta-btn--kakao-pill span { display: inline; }
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 768px) {
  .container, .header__inner, .hero, .process, .live-feed, .faq, .benefits, .form-section, .footer {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .header__inner { padding: 0 24px; }
  .header__logo { height: 48px; }
  .header__nav { gap: 48px; }
  .hero-content { padding: 64px 24px 40px; }
  .hero-image { max-width: 480px; }

  .headline--dark { font-size: 36px; }
  .headline--primary, .headline--accent { font-size: 48px; }
  .subcopy { max-width: 500px; font-size: 18px; }

  .process-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .benefits-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .ranking-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

@media (min-width: 1200px) {
  .container, .header__inner, .hero, .process, .live-feed, .faq, .benefits, .form-section, .footer {
    max-width: 1000px;
  }
  .hero-image { max-width: 600px; }
}

/* ============================================
   Warning Modal
   ============================================ */
.warning-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.warning-modal.show {
  display: flex;
}

.warning-modal__content {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.warning-modal__bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&q=80&w=800');
  background-size: cover;
  background-position: center;
  opacity: 0.2; /* lowered opacity to ensure text readability */
  z-index: 0;
}

.warning-modal__inner {
  position: relative;
  z-index: 1;
  padding: 40px 32px 32px;
  color: #ffffff;
  text-align: center;
}

.warning-modal__title {
  font-size: 32px;
  font-weight: 900;
  color: #FACC15; /* Warning yellow */
  margin-bottom: 28px;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  letter-spacing: -0.5px;
}

.warning-modal__title span {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.warning-modal__body {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  color: #F8FAFC;
  word-break: keep-all;
}

.warning-modal__body p {
  margin-bottom: 20px;
}

.warning-modal__body p:last-child {
  margin-bottom: 0;
}

.warning-modal__highlight {
  color: #FACC15 !important;
  font-weight: 700;
  margin-top: 28px !important;
  font-size: 15px;
}

.warning-modal__footer {
  position: relative;
  z-index: 1;
  background: rgba(15, 23, 42, 0.95);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.warning-modal__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94A3B8;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.warning-modal__checkbox:hover {
  color: #fff;
}

.warning-modal__checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.warning-modal__close {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 18px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}

.warning-modal__close:hover {
  background: rgba(255,255,255,0.2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
