@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.min.css');

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

:root {
  --color-primary: #3A4F3F;
  --color-primary-container: #D4E4D8;
  --color-on-primary: #ffffff;
  --color-bg: #FAF8F4;
  --color-surface: #EFECE6;
  --color-surface-high: #E8E2D6;
  --color-text: #1C1B1A;
  --color-text-light: #5C6B5E;
  --color-border: #DDD9D0;
  --color-outline: #B0AFA5;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 720px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

/* --- Nav --- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.15rem;
}

nav .logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.9rem;
}

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

/* --- Hamburger --- */
.nav-toggle {
  display: none;
}

.nav-hamburger {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 10;
}

.nav-hamburger span,
.nav-hamburger span::before,
.nav-hamburger span::after {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  position: absolute;
  transition: all 0.3s;
}

.nav-hamburger span {
  top: 9px;
}

.nav-hamburger span::before {
  content: '';
  top: -7px;
}

.nav-hamburger span::after {
  content: '';
  top: 7px;
}

.nav-toggle:checked + .nav-hamburger span {
  background: transparent;
}

.nav-toggle:checked + .nav-hamburger span::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--color-text);
}

.nav-toggle:checked + .nav-hamburger span::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--color-text);
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero .icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(58, 79, 63, 0.15);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.hero p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.store-badges a {
  display: inline-block;
  transition: opacity 0.2s;
}

.store-badges a:hover {
  opacity: 0.8;
}

.store-badges img {
  height: 48px;
}

/* --- Screenshots --- */
.screenshots {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  text-align: center;
}

.screenshot-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.screenshot-row img {
  width: 200px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* --- Features --- */
.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.features h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.feature-grid .feature {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 1.25rem;
}

.feature h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
}

.feature p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- Page content (legal, support) --- */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.page-content h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.page-content .subtitle {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.page-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.page-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.35rem;
}

.page-content p,
.page-content ul {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.page-content ul {
  padding-left: 1.5rem;
}

.page-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content a:hover {
  opacity: 0.8;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--color-border);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-outline);
}

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

footer a:hover {
  color: var(--color-primary);
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .hero .icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-row img {
    width: 160px;
  }

  .nav-hamburger {
    display: block;
  }

  nav {
    flex-wrap: wrap;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 0.75rem;
  }

  nav ul li a {
    display: block;
    padding: 0.6rem 0;
  }

  .nav-toggle:checked ~ ul {
    display: flex;
  }
}
