/* ============================================================
   Aegis Essential — Landing Page Styles
   ============================================================ */

:root {
  --navy-950: #020617;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --navy-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --red-50: #fef2f2;
  --orange-600: #ea580c;
  --orange-100: #ffedd5;
  --orange-50: #fff7ed;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --purple-600: #9333ea;
  --purple-100: #f3e8ff;
  --purple-50: #faf5ff;
  --teal-600: #0d9488;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;
  --font-kr: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --transition: 0.2s ease;
}

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

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

body {
  font-family: var(--font-kr);
  color: var(--navy-800);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body { font-family: var(--font-en); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Navigation ========== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: background var(--transition);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--green-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-wordmark {
  font-weight: 700;
  font-size: 17px;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-600);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--green-600); }

.nav-cta {
  background: var(--green-600) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}

.nav-cta:hover { background: #15803d !important; }

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

.lang-toggle {
  border: 1px solid var(--slate-300);
  background: var(--white);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-700);
  cursor: pointer;
  transition: all var(--transition);
}

.lang-toggle:hover {
  border-color: var(--green-600);
  color: var(--green-600);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--navy-700);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--green-600);
  color: var(--white);
}

.btn-primary:hover { background: #15803d; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--slate-300);
}

.btn-outline:hover { border-color: var(--green-600); color: var(--green-600); }

.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ========== Hero ========== */
.hero {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-600);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy-900);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.8;
  color: var(--slate-500);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Demo Window */
.demo-window {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.demo-dots { display: flex; gap: 6px; }
.demo-dots span { width: 10px; height: 10px; border-radius: 50%; }
.demo-dots span:nth-child(1) { background: #ef4444; }
.demo-dots span:nth-child(2) { background: #f59e0b; }
.demo-dots span:nth-child(3) { background: #22c55e; }

.demo-title { font-size: 12px; color: var(--slate-500); font-weight: 500; }

.demo-body { padding: 20px; }

.demo-message {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.7;
}

.demo-user { background: var(--slate-50); }

.demo-protected { background: var(--green-50); border: 1px solid var(--green-100); }

.pii-highlight {
  background: var(--red-100);
  color: var(--red-600);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
}

.pii-safe {
  background: var(--green-100);
  color: var(--green-600);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
}

.demo-shield {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.shield-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-shield span { font-size: 13px; font-weight: 500; color: var(--blue-600); }

/* ========== Stats ========== */
.stats {
  padding: 48px 0;
  border-bottom: 1px solid var(--slate-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.stat-item span {
  font-size: 14px;
  color: var(--slate-500);
  font-weight: 500;
}

/* ========== Sections ========== */
.section { padding: 96px 0; }
.section-alt { background: var(--slate-50); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  padding: 4px 14px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-600);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.section-desc {
  margin-top: 16px;
  font-size: 16px;
  color: var(--slate-500);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== Problem ========== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.problem-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.problem-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem-icon-red { background: var(--red-50); color: var(--red-600); }
.problem-icon-orange { background: var(--orange-50); color: var(--orange-600); }
.problem-icon-blue { background: var(--blue-50); color: var(--blue-600); }

.problem-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.problem-card p { font-size: 14px; color: var(--slate-500); line-height: 1.7; }

/* ========== Features ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-green { background: var(--green-50); color: var(--green-600); }
.feature-icon-red { background: var(--red-50); color: var(--red-600); }
.feature-icon-purple { background: var(--purple-50); color: var(--purple-600); }
.feature-icon-blue { background: var(--blue-50); color: var(--blue-600); }
.feature-icon-teal { background: var(--teal-50); color: var(--teal-600); }
.feature-icon-slate { background: var(--slate-100); color: var(--navy-700); }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.feature-card p { font-size: 14px; color: var(--slate-500); line-height: 1.7; }

/* ========== Steps ========== */
.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.step-card {
  flex: 1;
  max-width: 320px;
  padding: 36px 28px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}

.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.step-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--green-600);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 12px;
}

.step-card p { font-size: 14px; color: var(--slate-500); line-height: 1.7; }

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 56px;
  color: var(--slate-300);
}

/* ========== Dashboard ========== */
.dashboard-features {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.dashboard-mockup {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--navy-900);
  color: var(--slate-400);
  font-size: 11px;
}

.mockup-dots { display: flex; gap: 5px; }
.mockup-dots span { width: 8px; height: 8px; border-radius: 50%; }
.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #22c55e; }

.mockup-body { display: flex; min-height: 300px; }

.mockup-sidebar {
  width: 160px;
  padding: 16px 12px;
  background: var(--slate-50);
  border-right: 1px solid var(--slate-200);
}

.mockup-nav-item {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-500);
  border-radius: 6px;
  margin-bottom: 2px;
}

.mockup-nav-item.active {
  background: var(--green-50);
  color: var(--green-600);
  font-weight: 600;
}

.mockup-content { flex: 1; padding: 20px; }

.mockup-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }

.mockup-stat {
  padding: 12px;
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  text-align: center;
}

.mockup-stat-value {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
}

.mockup-stat-label { font-size: 10px; color: var(--slate-500); }

.mockup-chart {
  height: 100px;
  background: repeating-linear-gradient(
    90deg,
    var(--green-100) 0px,
    var(--green-100) 8px,
    transparent 8px,
    transparent 16px
  );
  border-radius: var(--radius-sm);
  opacity: .5;
}

.dashboard-highlights { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }

.highlight-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.highlight-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-600);
  margin-top: 6px;
  flex-shrink: 0;
}

.highlight-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.highlight-item p { font-size: 14px; color: var(--slate-500); line-height: 1.6; }

/* ========== Sites ========== */
.sites-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.site-featured-card {
  padding: 24px;
  background: var(--white);
  border: 2px solid var(--green-100);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
}

.site-featured-card:hover { border-color: var(--green-600); box-shadow: var(--shadow-md); }

.site-featured-card strong {
  display: block;
  font-size: 18px;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.site-featured-card span { font-size: 12px; color: var(--green-600); font-weight: 600; }

.sites-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.site-pill {
  padding: 8px 18px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-700);
  transition: all var(--transition);
}

.site-pill:hover { border-color: var(--green-600); color: var(--green-600); }

.sites-note {
  text-align: center;
  font-size: 14px;
  color: var(--slate-500);
}

/* ========== Specs ========== */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.spec-card {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
}

.spec-card:hover { box-shadow: var(--shadow-md); }

.spec-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--green-600);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.spec-label { font-size: 13px; color: var(--slate-500); font-weight: 500; }

/* ========== CTA ========== */
.section-cta {
  background: var(--navy-900);
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.35;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-content p { color: var(--slate-400); font-size: 16px; margin-bottom: 32px; }

.cta-actions { margin-bottom: 20px; }

.section-cta .btn-primary { background: var(--green-500); font-size: 16px; padding: 16px 36px; }
.section-cta .btn-primary:hover { background: var(--green-600); }

.cta-contact { color: var(--slate-400); font-size: 14px; }

/* ========== Footer ========== */
footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--slate-200);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-brand { flex: 1; min-width: 200px; }

.footer-tagline { font-size: 13px; color: var(--slate-500); margin-top: 12px; }

.footer-links { display: flex; gap: 48px; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col strong { font-size: 13px; font-weight: 700; color: var(--navy-900); margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--slate-500); transition: color var(--transition); }
.footer-col a:hover { color: var(--green-600); }

.footer-bottom {
  width: 100%;
  padding-top: 32px;
  margin-top: 16px;
  border-top: 1px solid var(--slate-200);
  font-size: 12px;
  color: var(--slate-400);
}

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

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

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-features { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 16px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-cta { text-align: center; }
  .mobile-menu-btn { display: flex; }
  .hero { padding: 96px 0 48px; }
  .hero-content h1 { font-size: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-item strong { font-size: 28px; }
  .section { padding: 64px 0; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-connector { transform: rotate(90deg); padding: 0; }
  .sites-featured { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .mockup-sidebar { display: none; }
  .mockup-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .specs-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}
