/* ============================================================
   You쌤 Portfolio Design System - style.css
   ============================================================ */

/* ── 1. CSS Variables ── */
:root {
  --primary: #1A56DB;
  --primary-dark: #1245B8;
  --primary-light: #EBF5FF;
  --primary-50: rgba(26, 86, 219, 0.06);

  --secondary: #4338CA;
  --accent-cyan: #0891B2;
  --accent-green: #059669;
  --accent-purple: #7C3AED;
  --accent-orange: #D97706;

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  --white: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-focus: #1A56DB;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-blue: 0 8px 30px rgba(26, 86, 219, 0.22);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --header-h: 68px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans KR', 'Inter', -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.d-none-mobile { display: block; }

/* ── 3. HEADER ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo__you { color: var(--primary); }
.logo__define { color: var(--gray-900); }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* Header Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Google Login Button */
.btn--google {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.btn--google:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* User Menu */
.user-menu { position: relative; }

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color var(--transition);
}

.user-avatar:hover { border-color: var(--primary); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 1001;
}

.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown__info {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-dropdown__info strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-dropdown__info span {
  font-size: 12px;
  color: var(--text-muted);
}

.dropdown-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--gray-50);
  color: var(--text-primary);
}

.dropdown-item--danger { color: var(--danger); }
.dropdown-item--danger:hover { background: #FEF2F2; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── 4. BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.3);
}
.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn--outline:hover {
  background: var(--primary-light);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn--lg { padding: 14px 28px; font-size: 15px; }
.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn--full { width: 100%; }

/* ── 5. HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  overflow: hidden;
  background: linear-gradient(160deg, #F0F6FF 0%, #FFFFFF 50%, #F8F4FF 100%);
}

.hero__bg-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hero__blob--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #BFDBFE, #C7D2FE);
  top: -150px; right: -100px;
  animation: blobFloat 8s ease-in-out infinite;
}

.hero__blob--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #DDD6FE, #BAE6FD);
  bottom: -80px; left: -60px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 86, 219, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 86, 219, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.04); }
  66% { transform: translate(-15px, 10px) scale(0.97); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  border: 1px solid rgba(26, 86, 219, 0.2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero__title--accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-item span {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator {
  width: 24px; height: 38px;
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  width: 4px; height: 8px;
  background: var(--primary);
  border-radius: 2px;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 22px; }
}

/* ── 6. DASHBOARD ── */
.dashboard {
  background: var(--gray-50);
  padding: 60px 0;
  animation: fadeSlideIn 0.5s ease forwards;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.dashboard__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.dashboard__title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.dashboard__subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: var(--shadow-sm);
}

.stats-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.stats-bar__num {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stats-bar__num--blue { color: var(--primary); }
.stats-bar__num--orange { color: var(--accent-orange); }
.stats-bar__num--green { color: var(--accent-green); }

.stats-bar__label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Tab Nav */
.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 6px 6px 0;
  border-bottom: none;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
  background: transparent;
  border: none;
}

.tab-btn:hover { color: var(--primary); background: var(--primary-50); }

.tab-btn.active {
  color: var(--primary);
  background: var(--gray-50);
  border-bottom: 2px solid var(--primary);
}

.tab-btn__icon { font-size: 16px; }

/* Tab Panel */
.tab-panel {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 24px;
}

.tab-panel.active { display: block; }

/* Panel Toolbar */
.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.panel-toolbar__left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Search Box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  padding: 8px 12px 8px 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--gray-50);
  transition: all var(--transition);
  width: 220px;
  outline: none;
}

.search-input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Filter Group */
.filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 4px;
}

.filter-btn {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
  background: transparent;
  border: none;
}

.filter-btn:hover { color: var(--text-primary); }

.filter-btn.active {
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

/* ── 7. CERTIFICATION CARDS ── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.cert-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  animation: cardAppear 0.3s ease forwards;
}

@keyframes cardAppear {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.cert-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.cert-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cert-card__icon {
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.cert-card__actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--transition);
}

.cert-card:hover .cert-card__actions { opacity: 1; }

.icon-btn {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  background: transparent;
  border: none;
  cursor: pointer;
}

.icon-btn:hover { background: var(--gray-100); color: var(--text-primary); }
.icon-btn--danger:hover { background: #FEF2F2; color: var(--danger); }

.cert-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cert-card__issuer {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.cert-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.cert-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.cert-meta-row svg { flex-shrink: 0; color: var(--text-muted); }

.cert-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

/* Status Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge--valid { background: #D1FAE5; color: #065F46; }
.badge--expiring { background: #FEF3C7; color: #92400E; }
.badge--expired { background: #FEE2E2; color: #991B1B; }
.badge--permanent { background: var(--primary-light); color: var(--primary); }

.cert-card__bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
}

.cert-card__bar--valid { background: var(--success); }
.cert-card__bar--expiring { background: var(--warning); }
.cert-card__bar--expired { background: var(--danger); }
.cert-card__bar--permanent { background: var(--primary); }

/* ── 8. TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--gray-200));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  animation: cardAppear 0.3s ease forwards;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -22px;
  top: 18px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
  z-index: 1;
}

.timeline-dot--work { background: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.timeline-dot--education { background: var(--accent-green); box-shadow: 0 0 0 2px var(--accent-green); }
.timeline-dot--project { background: var(--accent-cyan); box-shadow: 0 0 0 2px var(--accent-cyan); }
.timeline-dot--award { background: var(--accent-orange); box-shadow: 0 0 0 2px var(--accent-orange); }

.timeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: all var(--transition);
}

.timeline-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
  transform: translateX(4px);
}

.timeline-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.timeline-card__left { flex: 1; }

.timeline-card__type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.type-badge--work { background: var(--primary-light); color: var(--primary); }
.type-badge--education { background: #D1FAE5; color: #065F46; }
.type-badge--project { background: #CFFAFE; color: #0E7490; }
.type-badge--award { background: #FEF3C7; color: #92400E; }

.timeline-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.timeline-card__org {
  font-size: 14px;
  color: var(--text-secondary);
}

.timeline-card__period {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.timeline-card__actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--transition);
}

.timeline-card:hover .timeline-card__actions { opacity: 1; }

.timeline-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--gray-100);
}

/* ── 9. EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state__icon {
  font-size: 52px;
  margin-bottom: 16px;
  filter: grayscale(0.4);
}

.empty-state h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  margin-bottom: 24px;
}

/* ── 10. FEATURES SECTION ── */
.features {
  padding: 100px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--primary-light);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition-slow);
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: transparent;
  transform: translateY(-6px);
}

.feature-card__icon {
  width: 56px; height: 56px;
  background: color-mix(in srgb, var(--icon-color) 10%, transparent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--icon-color);
  transition: all var(--transition);
}

.feature-card:hover .feature-card__icon {
  transform: scale(1.1);
}

.feature-card__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}

.feature-card__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.feature-card__list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.feature-card__list li::before {
  content: '';
  position: absolute;
  left: 4px; top: 7px;
  width: 5px; height: 5px;
  background: var(--icon-color);
  border-radius: 50%;
}

/* ── 11. CONTACT SECTION ── */
.contact-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.contact-card {
  background: linear-gradient(135deg, #EBF5FF 0%, #F0EEFF 100%);
  border: 1px solid rgba(26, 86, 219, 0.15);
  border-radius: var(--radius-xl);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.contact-card__content { flex: 1; max-width: 500px; }

.contact-card__title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.contact-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}

.contact-btn__icon { width: 22px; height: 22px; }

.contact-btn--kakao {
  background: #FEE500;
  color: #3B1E1E;
}

.contact-btn--kakao:hover {
  background: #F5DB00;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(254, 229, 0, 0.4);
}

.contact-btn--telegram {
  background: #0088CC;
  color: white;
}

.contact-btn--telegram:hover {
  background: #0077B5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.35);
}

.contact-card__graphic {
  width: 160px; height: 160px;
  position: relative;
  flex-shrink: 0;
}

.contact-graphic-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.contact-graphic-circle--1 {
  width: 140px; height: 140px;
  background: rgba(26, 86, 219, 0.08);
  border: 1px solid rgba(26, 86, 219, 0.15);
  top: 10px; left: 10px;
  animation: ripple 3s ease-in-out infinite;
}

.contact-graphic-circle--2 {
  width: 100px; height: 100px;
  background: rgba(26, 86, 219, 0.08);
  border: 1px solid rgba(26, 86, 219, 0.2);
  top: 30px; left: 30px;
  animation: ripple 3s ease-in-out infinite 0.5s;
}

.contact-graphic-circle--3 {
  width: 60px; height: 60px;
  background: rgba(26, 86, 219, 0.12);
  top: 50px; left: 50px;
  animation: ripple 3s ease-in-out infinite 1s;
}

.contact-graphic-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
}

@keyframes ripple {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.7; }
}

/* ── 12. FOOTER ── */
.footer {
  background: var(--gray-900);
  padding: 36px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer .logo__you { color: #60A5FA; }
.footer .logo__define { color: var(--white); }

.footer__tagline {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

.footer__copy {
  font-size: 13px;
  color: var(--gray-500);
}

/* ── 13. FLOATING BUTTONS ── */
.floating-btns {
  position: fixed;
  bottom: 28px; right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 900;
}

.float-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
}

.float-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-lg);
}

.float-btn svg { width: 22px; height: 22px; }

.float-btn--kakao {
  background: #FEE500;
  color: #3B1E1E;
}

.float-btn--kakao:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 25px rgba(254, 229, 0, 0.5);
}

.float-btn--telegram {
  background: #0088CC;
  color: white;
}

.float-btn--telegram:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.45);
}

/* ── 14. MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.94) translateY(10px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.modal__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.modal__close {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent; border: none;
  transition: all var(--transition);
}

.modal__close:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

.modal__body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  background: var(--gray-50);
}

/* ── 15. FORM ── */
.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.required { color: var(--danger); margin-left: 2px; }

.form-hint {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input.error { border-color: var(--danger); }

.form-textarea { resize: vertical; min-height: 80px; }

/* Type Selector */
.type-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.type-btn {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}

.type-btn:hover { border-color: var(--primary); color: var(--primary); }

.type-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* File Upload */
.file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
  text-align: center;
}

.file-upload:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.file-upload p { font-size: 13px; }
.file-upload span { text-decoration: underline; cursor: pointer; }

.file-name {
  font-size: 12px;
  color: var(--primary);
  margin-top: 8px;
  font-weight: 500;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  cursor: pointer;
}

/* ── 16. GOOGLE LOGIN MODAL ── */
.modal--google {
  max-width: 420px;
}

.google-login-modal {
  padding: 36px 32px;
  text-align: center;
}

.google-login-modal__logo {
  margin: 0 auto 20px;
  width: 64px; height: 64px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}

.google-login-modal__title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.google-login-modal__sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.google-accounts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.google-account-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.google-account-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.google-account-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 17px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.google-account-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.google-account-info strong { font-size: 14px; font-weight: 600; }
.google-account-info span { font-size: 13px; color: var(--text-muted); }

.google-login-modal__note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.5;
}

/* ── 17. TOAST ── */
.toast-container {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-900);
  color: white;
  padding: 13px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  animation: toastIn 0.3s ease;
  white-space: nowrap;
  pointer-events: auto;
}

.toast--success::before { content: '✓'; color: #34D399; font-weight: 700; }
.toast--error::before { content: '✗'; color: #F87171; font-weight: 700; }
.toast--info::before { content: 'ℹ'; color: #60A5FA; font-weight: 700; }

.toast.removing { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(16px) scale(0.95); }
}

/* ── 18. SCROLL ANIMATIONS ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.5s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 19. RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 999;
    gap: 4px;
  }

  .nav.mobile-open .nav__link {
    padding: 12px 16px;
    border-radius: var(--radius);
  }

  .hero__title { letter-spacing: -0.8px; }
  .d-none-mobile { display: none; }

  .hero__cta { flex-direction: column; align-items: flex-start; }

  .contact-card {
    flex-direction: column;
    padding: 36px 28px;
    text-align: center;
  }

  .contact-btns { justify-content: center; }
  .contact-card__graphic { display: none; }

  .form-row { grid-template-columns: 1fr; }

  .stats-bar { flex-wrap: wrap; justify-content: center; }

  .panel-toolbar { flex-direction: column; align-items: flex-start; }

  .footer__inner { flex-direction: column; text-align: center; }

  .cert-grid { grid-template-columns: 1fr; }

  .features-grid { grid-template-columns: 1fr; }

  .dashboard__header { flex-direction: column; }
}

@media (max-width: 480px) {
  .btn--lg { padding: 12px 20px; font-size: 14px; }
  .modal { border-radius: var(--radius-lg); }
  .hero__stats { flex-wrap: wrap; gap: 16px; }
}
