/* ============================================================
   Variables & Fonts
   ============================================================ */
:root {
  /* Design Tokens - Withly Monochrome */
  --primary-color: #000000;
  --primary-hover: #333333;
  --background-color: #FFFFFF;
  --section-bg-alt: #FAFAFA;
  --text-main: #111111;
  --text-sub: #555555;
  --white: #FFFFFF;
  --border-radius: 8px;
  --border-color: #E3E3E3;
  --font-main: 'NanumSquareRound', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-pixel: 'GalmuriSilver', monospace;
  --max-width: 1080px;
  --banner-label-color: #5C4A32;
}

@font-face {
  font-family: 'GalmuriSilver';
  src: url('assets/fonts/GalmuriSilver.ttf') format('truetype');
}

/*
   REMOVED Regular (400) weight as per user request.
   Only Bold (700) and Extra Bold (800) are used.
*/

@font-face {
  font-family: 'NanumSquareRound';
  font-weight: 700;
  src: url('assets/fonts/NanumSquareRoundB.ttf') format('truetype');
}

@font-face {
  font-family: 'NanumSquareRound';
  font-weight: 800;
  src: url('assets/fonts/NanumSquareRoundEB.ttf') format('truetype');
}


/* ============================================================
   Reset & Base
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--background-color);
  color: var(--text-main);
  line-height: 1.7;
  font-weight: 700;
  /* Default to Bold as requested (No Regular) */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

/* Font switching for different languages */
body.font-ubuntu,
body.font-ubuntu * {
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  font-weight: 500;
}

body.font-ubuntu h1,
body.font-ubuntu h2,
body.font-ubuntu h3,
body.font-ubuntu .btn-download,
body.font-ubuntu .btn-header-download {
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Headings */
h1,
h2,
h3 {
  font-weight: 800;
  /* Extra Bold */
  letter-spacing: -0.02em;
  /* Tighter letter spacing for bold fonts */
}


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


/* ============================================================
   Header
   ============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 40px;
}

.logo {
  font-family: var(--font-pixel);
  font-size: 20px;
  color: var(--text-main);
  font-weight: 700;
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
}

.logo img {
  height: 28px;
  width: auto;
  margin-right: 8px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-sub);
  font-weight: 700;
}

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

.btn-header-download {
  background-color: var(--primary-color);
  color: var(--white) !important;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  transition: opacity 0.2s;
}

.btn-header-download:hover {
  opacity: 0.8;
  color: var(--white);
}


/* ============================================================
   Buttons
   ============================================================ */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: var(--border-radius);
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.2s, background-color 0.2s;
}

.btn-download:hover {
  transform: translateY(-2px);
  background-color: var(--primary-hover);
}

.btn-download i {
  margin-right: 10px;
  font-size: 1.3rem;
}

.cta-buttons--left {
  justify-content: flex-start;
  margin-top: 32px;
  margin-bottom: 0;
}

/* ============================================================
   Top Banner
   ============================================================ */
.top-banner {
  margin-top: 65px;
  width: 100%;
}
.banner-composition {
  width: 100%;
  height: 280px;
  background-color: #F3F1ED;
  /* Adjusted to match top.png sky/grey tone */
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.banner-content-wrapper {
  width: 100%;
  max-width: var(--max-width);
  position: relative;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  position: absolute;
  top: 40px;
  left: 30%;
  transform: translateX(-50%);
}

.banner-label {
  display: block;
  font-size: 1.3rem;
  color: var(--banner-label-color);
  margin-bottom: 12px;
  font-weight: 800;
}

.banner-logo {
  width: 200px;
  /* Adjust based on 942x304 ratio */
  height: auto;
  display: block;
}

.banner-grass {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background-image: url('assets/images/grass.png');
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: auto 100%;
  image-rendering: pixelated;
  z-index: 1;
}

.character {
  --banner-scale: 0.4;
  position: absolute;
  bottom: 73px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(481px * var(--banner-scale));
  height: auto;
  z-index: 2;
}


/* ============================================================
   Feature Sections
   ============================================================ */
.features-container {
  display: flex;
  flex-direction: column;
}

.feature-section {
  padding: 120px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-section:nth-child(even) {
  background-color: var(--section-bg-alt);
}

.feature-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.feature-section:nth-child(even) .feature-content {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
  max-width: 480px;
}

.feature-label {
  margin-bottom: 16px;
  display: block;
}

.feature-label img {
  height: 32px;
  width: auto;
  image-rendering: pixelated;
}

.feature-text h2 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.feature-text p {
  color: var(--text-sub);
  font-size: 1.1rem;
  line-height: 1.7;
  word-break: keep-all;
}

.feature-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-mockup {
  width: 100%;
  max-width: 250px;
  /* Reduced size as requested */
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 4px solid var(--border-color);
  display: block;
}


/* ============================================================
   Footer
   ============================================================ */
footer {
  padding: 80px 0;
  background-color: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

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

.footer-links a {
  color: var(--text-sub);
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--text-main);
}

.copyright {
  color: #999;
  font-size: 13px;
  margin-top: 16px;
}


/* ============================================================
   Responsive - Tablet / Mobile (max-width: 900px)
   ============================================================ */
@media (max-width: 900px) {

  /* Header Adjustments */
  header {
    padding: 12px 0;
  }

  .header-content {
    justify-content: space-between;
    padding: 0 16px;
  }

  .logo {
    font-size: 18px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .btn-download {
    padding: 12px 20px;
    /* Reduced padding for mobile */
    font-size: 0.9rem;
  }

  .btn-download i {
    font-size: 1.1rem;
    margin-right: 8px;
  }

  /* Banner */
  .top-banner {
    margin-top: 52px;
  }

  .banner-composition {
    height: 200px;
  }

  .banner-center {
    top: 24px;
    gap: 4px;
  }

  .banner-logo {
    width: 160px;
  }

  .banner-label {
    font-size: 0.75rem;
  }

  .banner-grass {
    height: 70px;
  }

  .character {
    --banner-scale: 0.28;
    bottom: 55px;
  }

  /* Feature Section Stacking */
  .feature-section {
    padding: 60px 0;
  }

  .feature-content,
  .feature-section:nth-child(even) .feature-content {
    flex-direction: column;
    /* Always stack vertically */
    text-align: center;
    gap: 40px;
  }

  .feature-text {
    max-width: 100%;
    padding: 0 16px;
  }

  .feature-label {
    display: inline-block;
    /* Ensure it centers with text-align */
    margin-bottom: 16px;
  }

  .feature-text h2 {
    font-size: 1.6rem;
    /* Smaller headings */
  }

  .feature-text p {
    font-size: 1rem;
  }

  .feature-visual {
    width: 100%;
    padding: 0 16px;
  }

  .feature-visual img {
    max-width: 200px !important;
    /* Limit image width on mobile (reduced as requested) */
  }

  /* Footer Adjustments */
  footer {
    padding: 60px 0;
  }

  .footer-links {
    flex-wrap: wrap;
    /* Allow wrapping if needed */
    justify-content: center;
    gap: 20px;
  }
}


/* ============================================================
   Responsive - Small Mobile (max-width: 380px)
   ============================================================ */
@media (max-width: 380px) {

  /* Extra adjustments for very small screens (iPhone SE etc) */
  .hero h1 {
    font-size: 2rem;
  }

  .nav-links {
    display: none;
  }
}


/* ============================================================
   Terms & Privacy Pages
   ============================================================ */
.terms-body {
  background-color: #fff;
  color: #292929;
  font-family: 'NanumSquareRound', sans-serif;
  line-height: 1.6;
  margin: 0;
}

.terms-container {
  max-width: 720px;
  /* Wider for PC as requested */
  margin: 0 auto;
  padding: 0 24px;
}

.terms-content {
  padding: 100px 0 80px;
}

.terms-content h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #292929;
}

.terms-date {
  color: #888;
  font-size: 13px;
  margin-bottom: 40px;
}

.terms-content h2 {
  font-size: 18px;
  font-weight: 800;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #292929;
}

.terms-content p {
  font-size: 15px;
  /* Slightly larger for readability */
  color: #444;
  margin-bottom: 12px;
  word-break: keep-all;
  line-height: 1.7;
}

.terms-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
}

.terms-content li {
  font-size: 15px;
  color: #444;
  margin-bottom: 6px;
  padding-left: 14px;
  position: relative;
  line-height: 1.7;
}

.terms-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #888;
}

.terms-content strong {
  font-weight: 800;
  color: #292929;
}

@media (max-width: 500px) {
  .terms-content h1 {
    font-size: 20px;
  }

  .terms-content h2 {
    font-size: 16px;
  }

  .terms-content p,
  .terms-content li {
    font-size: 14px;
  }
}
