/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

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

:root {
  --primary: #00BB74;
  /* Stepping green */
  --primary-dark: #111111;
  --dark-bg: #111111;
  --light-bg: #FFFFFF;
  --card-bg: #F9FAFB;
  --text-primary: #111111;
  --text-secondary: #4B5563;
  --danger: #FF3B30;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--light-bg);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #E5E7EB;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-cta {
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  font-family: inherit;
}

.nav-cta:hover {
  background: var(--primary-dark);
}

/* ===== HERO SECTION ===== */
.hero {
  /* Reduced height */
  padding: 140px 24px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--light-bg);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  background: #FFF0F0;
  border: 1px solid #FFD6D6;
  color: var(--danger);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 24px;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  word-break: keep-all;
}

.hero-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-input {
  flex: 1;
  min-width: 240px;
  padding: 16px 24px;
  border-radius: 50px;
  border: 1px solid #D1D5DB;
  background: #fff;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.hero-input::placeholder {
  color: #9CA3AF;
}

.hero-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.2);
}

.hero-btn {
  padding: 16px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: var(--dark-bg);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
}

.hero-btn:hover {
  background: #333333;
  transform: translateY(-2px);
}

.hero-micro {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.hero-micro strong {
  color: var(--primary);
}

/* ===== TOOLBOX CARD SECTION ===== */
.toolbox-section {
  padding: 120px 0 100px;
  background: #F3F4F6; /* Distinct light gray background, separates from white hero */
}

.toolbox-header {
  text-align: center;
  margin-bottom: 60px;
}

.toolbox-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 16px;
}

.toolbox-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.toolbox-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  word-break: keep-all;
}

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

/* Rank badge for popular tools */
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  background: linear-gradient(135deg, #FFF8E1, #FFF3C4);
  border: 1px solid #FFD54F;
  font-size: 0.8rem;
  font-weight: 700;
  color: #B8860B;
  margin-bottom: 16px;
}

.rank-medal {
  font-size: 1rem;
  line-height: 1;
}

.rank-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rank-count {
  font-weight: 500;
  color: #9A7B2E;
  font-size: 0.75rem;
}

/* Base card */
.tool-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Featured card (green, like Moida's Pro card) */
.tool-card-featured {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tool-card-featured .tool-card-title,
.tool-card-featured .tool-card-desc {
  color: #fff;
}

.tool-card-featured .tool-card-list li {
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.tool-card-icon {
  font-size: 2rem;
  line-height: 1;
}

.tool-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 50px;
  background: #F3F4F6;
  color: var(--text-secondary);
}

.tool-card-badge-featured {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 50px;
  background: var(--dark-bg);
  color: #fff;
}

.tool-card-title {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.3;
}

.tool-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  word-break: keep-all;
}

.tool-card-list {
  list-style: none;
  flex: 1;
  margin-bottom: 32px;
}

.tool-card-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-card-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.tool-card-featured .tool-card-list li::before {
  color: var(--dark-bg);
}

/* Card buttons */
.tool-card-btn {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border-radius: 50px;
  background: #F3F4F6;
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  margin-top: auto;
}

.tool-card-btn:hover {
  background: #E5E7EB;
}

.tool-card-btn-dark {
  background: var(--dark-bg);
  color: #fff;
}

.tool-card-btn-dark:hover {
  background: #333;
}

/* ===== BOTTOM CTA ===== */
.bottom-cta {
  padding: 80px 24px;
  text-align: center;
  background: var(--dark-bg);
  color: #fff;
}

.cta-main {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 20px;
  word-break: keep-all;
  color: #fff;
}

.cta-sub {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  word-break: keep-all;
}

.cta-btn {
  display: inline-block;
  padding: 18px 40px;
  border-radius: 50px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.cta-micro {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== FOOTER ===== */
.footer {
  padding: 30px 24px;
  text-align: center;
  background: var(--dark-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .toolbox-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 100px 16px 40px;
  }

  .hero-form {
    flex-direction: column;
  }

  .hero-input {
    min-width: 100%;
  }

  .toolbox-section {
    padding: 60px 0;
  }

  .bottom-cta {
    padding: 60px 16px;
  }
}

/* ===== EXTERNAL USER INQUIRY MODAL ===== */
.ext-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.ext-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.ext-box {
  position: relative;
  background: #131928;
  border: 1px solid #253045;
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 460px;
  z-index: 1;
  color: #e2e8f0;
}

.ext-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ext-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
}

.ext-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
}

.ext-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 20px;
}

.ext-desc strong {
  color: #60a5fa;
}

.ext-err {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: #f87171;
  font-size: 13px;
  margin-bottom: 16px;
}

.ext-field {
  margin-bottom: 16px;
}

.ext-field label {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 600;
}

.ext-field input,
.ext-field textarea {
  width: 100%;
  background: #1a2235;
  border: 1px solid #253045;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.ext-field input:focus,
.ext-field textarea:focus {
  border-color: #3b82f6;
}

.ext-field textarea {
  resize: vertical;
  min-height: 72px;
}

.ext-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  font-family: inherit;
  transition: opacity 0.2s ease;
}

.ext-submit:hover {
  opacity: 0.9;
}

.ext-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ext-success {
  text-align: center;
  padding: 24px 0;
}

.ext-success-main {
  font-size: 1.3rem;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.ext-success-sub {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.7;
}