/* ============================================
   CanuSELab - canuselab.com
   심플/미니멀 디자인, 모바일 퍼스트
   ============================================ */

:root {
  --color-primary: #4A90D9;
  --color-primary-dark: #3A7BC8;
  --color-accent: #FF8C42;
  --color-text: #2D3436;
  --color-text-light: #636E72;
  --color-bg: #FFFFFF;
  --color-bg-light: #F8F9FA;
  --color-border: #E9ECEF;
  --max-width: 1080px;
  --header-height: 64px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo:hover {
  text-decoration: none;
}

.header-logo img {
  height: 32px;
  width: auto;
}

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

.nav a {
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.lang-switch {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  cursor: pointer;
  text-decoration: none;
}

.lang-switch:hover {
  background: var(--color-border);
  text-decoration: none;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---- Hero ---- */
.hero {
  padding: 60px 0 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--color-text);
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image {
  max-width: 280px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.cta-btn--apple {
  background: #000;
  color: #fff;
}

.cta-btn--google {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.cta-btn--coming-soon {
  background: var(--color-bg-light);
  color: var(--color-text-light);
  border: 1.5px solid var(--color-border);
  cursor: default;
}

.cta-btn--coming-soon:hover {
  transform: none;
  box-shadow: none;
}

/* ---- Features ---- */
.features {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ---- Screenshots ---- */
.screenshots {
  padding: 48px 0;
  background: var(--color-bg-light);
}

.screenshots-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 20px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshots-scroll img {
  flex-shrink: 0;
  width: 220px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  scroll-snap-align: center;
}

.screenshot-placeholder {
  flex-shrink: 0;
  width: 220px;
  height: 440px;
  border-radius: 16px;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.85rem;
}

/* ---- About (Company) ---- */
.about {
  padding: 64px 0;
}

.about-content {
  max-width: 640px;
  margin: 0 auto;
}

.about-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 24px;
}

.about-content h3:first-child {
  margin-top: 0;
}

.about-content p {
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.about-info {
  margin-top: 32px;
  padding: 24px;
  background: var(--color-bg-light);
  border-radius: 12px;
}

.about-info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 16px;
}

.about-info dt {
  font-weight: 600;
  font-size: 0.9rem;
}

.about-info dd {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-text);
  color: #B2BEC3;
  padding: 48px 0 32px;
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.footer-links a {
  color: #B2BEC3;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-company {
  line-height: 1.8;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-store-buttons {
  display: flex;
  gap: 8px;
}

.footer-store-btn {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #B2BEC3;
  font-size: 0.8rem;
}

.footer-store-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  text-decoration: none;
}

/* ---- Legal Pages (Privacy, Terms, Support) ---- */
.legal {
  padding: 48px 0 64px;
}

.legal h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal .last-updated {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal p, .legal li {
  color: var(--color-text-light);
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal ul, .legal ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

.legal th, .legal td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  text-align: left;
}

.legal th {
  background: var(--color-bg-light);
  font-weight: 600;
}

/* ---- Support Page ---- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.faq-question {
  font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--color-text-light);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.contact-box {
  margin-top: 32px;
  padding: 24px;
  background: var(--color-bg-light);
  border-radius: 12px;
}

.contact-box h3 {
  margin-top: 0;
}

/* ---- 404 Page ---- */
.error-page {
  padding: 120px 0;
  text-align: center;
}

.error-page h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-border);
}

.error-page p {
  color: var(--color-text-light);
  margin: 16px 0 32px;
}

.error-page a {
  display: inline-block;
  padding: 10px 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

.error-page a:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

/* ---- Responsive: Tablet ---- */
@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

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

/* ---- Responsive: Desktop ---- */
@media (min-width: 960px) {
  .hero {
    padding: 80px 0 64px;
  }

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

  .hero .subtitle {
    font-size: 1.2rem;
  }

  .hero-image {
    max-width: 320px;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .section-title {
    font-size: 1.75rem;
  }

  .about-info dl {
    grid-template-columns: 120px 1fr;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---- Responsive: Mobile Nav ---- */
@media (max-width: 639px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
