/* A-OK Landing Page - Matching official app color system + Noto Sans */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap");

:root {
  /* Brand Colors from design system */
  --primary: #1467db;
  --secondary: #17b0ef;
  --tertiary: #46b49c;
  --alternate: #dda244;

  /* Utility */
  --primary-text: #242424;
  --secondary-text: #616161;
  --primary-bg: #ffffff;
  --secondary-bg: #f7f3f0;

  /* Accents */
  --accent-1: #d3e2f2;
  --accent-2: #d8e9f0;
  --accent-3: #e2efed;
  --accent-4: #f9f7d6;

  /* Semantic */
  --success: #00845f;
  --error: #d31a2f;
  --warning: #f9cf58;
  --info: #ffffff;

  /* Derived */
  --primary-dark: #0f4fa8;
  --primary-light: #d3e2f2;
  --dark: #242424;
  --gray-700: #3a3a3a;
  --gray-600: #616161;
  --gray-500: #7a7a7a;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f7f3f0;
  --white: #ffffff;
  --radius: 16px;
  --shadow:
    0 10px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 25px 50px -12px rgb(0 0 0 / 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Noto Sans",
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--primary-text);
  line-height: 1.6;
  background: var(--primary-bg);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: "Noto Sans", "Noto Sans KR", sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
  display: flex;
  background: var(--accent-1);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Noto Sans", "Noto Sans KR", sans-serif;
  color: var(--secondary-text);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(20, 103, 219, 0.3);
}

/* Language content switching - FIXED */
.lang-en,
.lang-kr {
  display: none !important;
}

html[lang="en"] .lang-en,
html[lang="kr"] .lang-kr {
  display: block !important;
}

/* Inline elements need special handling */
html[lang="en"] span.lang-en,
html[lang="kr"] span.lang-kr,
html[lang="en"] .lang-en.inline,
html[lang="kr"] .lang-kr.inline {
  display: inline !important;
}

/* For flex containers that contain lang spans */
html[lang="en"] .activity-pill .lang-en,
html[lang="kr"] .activity-pill .lang-kr {
  display: inline !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 80vw);
  height: min(100vh);
  background: white;
  padding: 90px 28px 40px;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
  gap: 8px;
  z-index: 105;
  animation: slideIn 0.25s ease;
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
.nav-links.mobile-open a {
  font-size: 1.1rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
  width: 100%;
}
.nav-links.mobile-open .lang-toggle {
  margin-top: 20px;
  align-self: flex-start;
}
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  z-index: 104;
}
.mobile-overlay.active {
  display: block;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(211, 226, 242, 0);
  transition: all 0.3s ease;
}

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

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

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

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

.nav-links a {
  text-decoration: none;
  color: var(--secondary-text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  font-family: "Noto Sans", "Noto Sans KR", sans-serif;
}

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

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, #e8f4fc 0%, #f7f3f0 60%, #ffffff 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/mountain-bg.jpg");
  background-size: cover;
  background-position: center bottom;
  opacity: 0.22;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(232, 244, 252, 0.15) 0%,
    rgba(247, 243, 240, 0.25) 50%,
    rgba(255, 255, 255, 1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 32px;
  border-radius: 32px;
  box-shadow: 0 20px 40px -10px rgba(20, 103, 219, 0.35);
  background: white;
  padding: 5px;
  object-fit: contain;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: var(--primary-text);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--secondary-text);
  max-width: 560px;
  margin: 0 auto 36px;
  font-weight: 600;
  line-height: 1.65;
}

/* Store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary-text);
  color: white;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(36, 36, 36, 0.2);
  min-width: 200px;
  justify-content: center;
  font-family: "Noto Sans", "Noto Sans KR", sans-serif;
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(36, 36, 36, 0.25);
  background: #1a1a1a;
}

.store-btn svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.store-btn .text {
  text-align: left;
  line-height: 1.15;
}

.store-btn .label {
  font-size: 0.68rem;
  opacity: 0.8;
  font-weight: 400;
  display: block;
  letter-spacing: 0.02em;
}

.store-btn .name {
  font-size: 1.05rem;
  font-weight: 700;
}

/* Trust line */
.trust {
  font-size: 0.9rem;
  color: var(--secondary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===== SECTIONS ===== */
section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  margin-bottom: 14px;
  color: var(--primary-text);
}

.section-header p {
  font-size: 1.12rem;
  color: var(--secondary-text);
}

/* Features */
.features {
  background: var(--secondary-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  border: 1px solid rgba(211, 226, 242, 0.5);
}

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

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--accent-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 18px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-text);
}

.feature-card p {
  color: var(--secondary-text);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* Screenshots showcase */
.showcase {
  background: white;
}

.phone-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: flex-end;
}

.phone-frame {
  position: relative;
  width: 320px;
  max-width: 100%;
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.phone-label {
  text-align: center;
  margin-top: 16px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-text);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 22px;
  box-shadow: 0 8px 20px rgba(20, 103, 219, 0.3);
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.step p {
  color: var(--secondary-text);
  font-size: 0.97rem;
}

/* ===== ACTIVITIES with full mountain image ===== */
.activities {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #e8f4fc;
}

.activities-bg {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  /* We will put the image as <img> for full visibility */
}

.activities-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding: 60px 24px 80px;
  background: linear-gradient(
    180deg,
    rgba(232, 244, 252, 0.88) 0%,
    rgba(232, 244, 252, 0.7) 45%,
    rgba(232, 244, 252, 0.55) 100%
  );
}

.activities .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.activities-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 32px;
}

.activity-pill {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  color: white;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-family: "Noto Sans", "Noto Sans KR", sans-serif;
}

.activity-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--accent-1);
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #0f4fa8 0%, #1467db 50%, #17b0ef 100%);
  color: white;
  text-align: center;
  padding: 90px 0;
}

.cta h2 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  margin-bottom: 14px;
}

.cta p {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 500px;
  margin: 0 auto 36px;
}

.cta .store-badges {
  margin-bottom: 0;
}

.cta .store-btn {
  background: white;
  color: var(--primary-text);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta .store-btn:hover {
  background: #f8fafc;
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary-text);
  color: #a1a1aa;
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.footer-brand img {
  height: 40px;
  width: auto;
  display: block;
}

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

.footer-links a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  font-family: "Noto Sans", "Noto Sans KR", sans-serif;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.875rem;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  background: var(--secondary-bg);
  min-height: 100vh;
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: var(--shadow);
}

.legal-container h1 {
  font-size: 2.1rem;
  margin-bottom: 8px;
  color: var(--primary-text);
}

.legal-meta {
  color: var(--secondary-text);
  font-size: 0.95rem;
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gray-200);
}

.legal-container h2 {
  font-size: 1.35rem;
  margin: 36px 0 14px;
  color: var(--primary-text);
}

.legal-container h3 {
  font-size: 1.12rem;
  margin: 26px 0 10px;
  color: var(--gray-700);
}

.legal-container p,
.legal-container li {
  color: var(--secondary-text);
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-container ul {
  padding-left: 24px;
  margin-bottom: 18px;
}

.legal-container li {
  margin-bottom: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
  }

  section {
    padding: 70px 0;
  }

  .phone-frame {
    width: 320px;
  }

  .legal-container {
    padding: 32px 22px;
    margin: 0 16px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .activities-content {
    padding: 50px 20px 70px;
  }
  .activities .section-header h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    height: 64px;
  }

  .logo img {
    height: 32px;
  }

  .lang-toggle {
    transform: scale(1);
  }
}

/* Full mountain image activities section */
.activities {
  position: relative;
  padding: 0;
  overflow: hidden;
  line-height: 0; /* remove gap under img */
}

.activities-bg-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.activities-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding: 60px 24px 80px;
  background: linear-gradient(
    180deg,
    rgba(232, 244, 252, 0.88) 100%,
    rgba(232, 244, 252, 0.7) 25%,
    rgba(232, 244, 252, 0.55) 0%
  );
  line-height: 1.6;
}

.activities .container {
  width: 100%;
  max-width: 1120px;
}

.activities .section-header {
  margin-bottom: 40px;
}

.activities .section-header h2 {
  color: var(--primary-text);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.activities .section-header p {
  color: var(--secondary-text);
}

@media (max-width: 768px) {
  .activities-content {
    padding: 40px 16px 60px;
  }
  .activities .section-header h2 {
    font-size: 1.55rem;
  }
  .activities .section-header p {
    font-size: 0.95rem;
  }
}

/* Language toggle as real links */
.lang-toggle a.lang-btn {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  font-family: "Noto Sans", "Noto Sans KR", sans-serif;
}
.lang-toggle a.lang-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(20, 103, 219, 0.3);
}
.lang-toggle a.lang-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.6);
}
