/* ============================================================
   Aneslee — Shared Stylesheet
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --navy-900: #081B33;
  --navy-800: #0F2847;
  --navy-700: #163560;
  --navy-600: #1E4579;
  --navy-500: #2A5A9A;
  --ice-100:  #EDF2F9;
  --ice-200:  #D4E0F0;
  --ice-300:  #A8BFE0;
  --ice-400:  #7A9ED0;
  --accent-700: #1D4ED8;
  --accent-600: #2563EB;
  --accent-500: #3B82F6;
  --accent-400: #60A5FA;
  --n50:  #FAFBFC;
  --n100: #F1F3F5;
  --n200: #E2E5E9;
  --n300: #C8CDD3;
  --n400: #9BA3AE;
  --n500: #6B7583;
  --n600: #4A5362;
  --n700: #343B47;
  --n800: #1F242D;
  --n900: #111419;
  --font-d: 'Sora', sans-serif;
  --font-b: 'DM Sans', sans-serif;
  --font-ko: 'Pretendard Variable', 'Pretendard', sans-serif;
  --font-jp: 'Zen Kaku Gothic New', sans-serif;
  --body-font: var(--font-b);
}
[data-lang="ko"] { --body-font: var(--font-ko); }
[data-lang="ja"] { --body-font: var(--font-jp); }

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body-font);
  color: var(--n700);
  background: var(--n50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-d); }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(8,27,51,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; gap: 12px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo img { height: 28px; width: auto; }
.nav-logo span {
  font-family: var(--font-d); font-size: 15px;
  font-weight: 600; color: #fff; letter-spacing: 2px;
}
.nav-links {
  display: flex; gap: 4px;
  margin-left: auto; align-items: center;
}
.nav-link {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  color: var(--ice-300); text-decoration: none;
  border-radius: 8px; transition: all .2s;
  font-family: var(--body-font);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-link.active { color: #fff; background: rgba(59,130,246,0.15); }
.lang-sw {
  display: flex; gap: 2px; margin-left: 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px; padding: 3px;
}
.lang-btn {
  padding: 4px 10px; font-size: 11px; font-weight: 600;
  color: var(--ice-400); background: none; border: none;
  border-radius: 6px; cursor: pointer;
  transition: all .15s; letter-spacing: .5px;
  font-family: var(--font-d);
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--accent-500); color: #fff; }
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; margin-left: auto;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: #fff; margin: 4px 0; border-radius: 2px;
  transition: all .2s;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy-900); padding: 16px; gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { display: flex; }
  .lang-sw { margin-left: 0; margin-top: 8px; align-self: flex-start; }
}

/* ── Page wrapper ───────────────────────────────────────── */
.page-body { padding-top: 64px; min-height: 100vh; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all .2s;
  cursor: pointer; border: none;
  font-family: var(--body-font);
}
.btn-primary { background: var(--accent-500); color: #fff; }
.btn-primary:hover {
  background: var(--accent-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.25);
}
.btn-outline {
  background: transparent; color: var(--ice-300);
  border: 1.5px solid rgba(255,255,255,0.15);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.3); color: #fff;
}
.btn-dark {
  background: var(--navy-700); color: #fff;
}
.btn-dark:hover {
  background: var(--navy-600);
  transform: translateY(-1px);
}

/* ── Section helpers ────────────────────────────────────── */
.section { padding: 88px 32px; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-tag {
  font-family: var(--font-d); font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-500); margin-bottom: 8px;
}
.section-title {
  font-size: clamp(28px,3.5vw,40px); font-weight: 700;
  color: var(--navy-800); letter-spacing: -0.8px;
  margin-bottom: 12px; line-height: 1.2;
}
.section-desc {
  font-size: 16px; color: var(--n500);
  max-width: 500px; line-height: 1.7; margin-bottom: 48px;
}
.section-dark { background: var(--navy-900); }
.section-dark .section-title { color: #fff; }
.section-dark .section-desc { color: var(--ice-300); }
.section-dark .section-tag { color: var(--accent-400); }
.section-alt { background: var(--ice-100); }

/* ── Page hero ──────────────────────────────────────────── */
.page-hero {
  background: var(--navy-800);
  padding: 72px 32px 60px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -30%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.07) 0%, transparent 70%);
}
.page-hero-inner {
  max-width: 1120px; margin: 0 auto;
  position: relative; z-index: 1;
}
.page-hero-tag {
  font-family: var(--font-d); font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-400); margin-bottom: 14px;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  color: #fff; letter-spacing: -1px; line-height: 1.15;
  margin-bottom: 14px; max-width: 640px;
}
.page-hero p {
  font-size: 16px; color: var(--ice-300);
  line-height: 1.8; max-width: 480px; font-weight: 300;
}

/* ── Divider ────────────────────────────────────────────── */
.divider {
  width: 40px; height: 3px;
  background: var(--accent-500);
  border-radius: 2px; margin-bottom: 32px;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 32px 32px;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 12px;
}
.footer-logo img { height: 24px; width: auto; }
.footer-logo span {
  font-family: var(--font-d); font-size: 14px;
  font-weight: 600; color: #fff; letter-spacing: 2px;
}
.footer-tagline {
  font-size: 13px; color: var(--ice-300);
  line-height: 1.7; max-width: 260px;
}
.footer-col h4 {
  font-family: var(--font-d); font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--ice-400); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 13px; color: var(--n400);
  text-decoration: none; transition: color .15s;
}
.footer-links a:hover { color: #fff; }
.footer-contact-item {
  font-size: 13px; color: var(--n400);
  margin-bottom: 8px; line-height: 1.5;
}
.footer-contact-item a {
  color: var(--accent-400); text-decoration: none;
}
.footer-contact-item a:hover { color: var(--accent-300); }
.footer-bottom {
  max-width: 1120px; margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.footer-copy { font-size: 12px; color: var(--n500); }
.footer-made { font-size: 12px; color: var(--n500); }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-up { opacity: 0; animation: fadeUp .6s ease forwards; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }
.delay-6 { animation-delay: .6s; }

/* ── Cards ──────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--n200);
  border-radius: 16px; padding: 32px 28px;
  transition: all .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--accent-500);
}
.card-dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}
.card-dark:hover { border-color: rgba(59,130,246,0.4); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-title {
  font-family: var(--font-d); font-size: 17px; font-weight: 600;
  color: var(--navy-800); margin-bottom: 10px;
}
.card-dark .card-title { color: #fff; }
.card-desc { font-size: 14px; color: var(--n500); line-height: 1.7; }
.card-dark .card-desc { color: var(--ice-300); }
