@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap");

:root {
  --page: #f7f4ed;
  --paper: #ffffff;
  --ink: #29231c;
  --muted: #756b5d;
  --body-copy: #403b34;
  --accent: #a87a24;
  --accent-dark: #805716;
  --accent-soft: #fbf4e5;
  --gold: #c99b3b;
  --line: #e8dfcc;
  --crimson-start: #c51e2b;
  --crimson-end: #92121d;
  --crimson-border: #8f111b;
  --crimson-hover: #79101a;
  --heading-font: "Outfit", "Segoe UI", sans-serif;
  --body-font: "DM Sans", "Segoe UI", sans-serif;
  --shadow-header: 0 4px 18px rgb(66 48 20 / 7%);
  --shadow-box: 0 12px 30px rgb(88 63 20 / 10%);
  --shadow-card: 0 6px 24px rgb(66 48 20 / 5%);
  --shadow-btn: 0 5px 14px rgb(146 18 29 / 18%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.005em;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #a30f1c;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px max(20px, calc((100% - 1160px) / 2));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-header);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  border: 1px solid #d7b76d;
  object-fit: cover;
  background: #160b08;
}

.brand-title {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--accent-dark);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 22px);
}

.nav-menu a {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.3;
  color: var(--ink);
  padding: 6px 2px;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #a30f1c;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.nav-toggle:hover {
  border-color: var(--gold);
  color: var(--accent-dark);
}

/* Hero Section */
.hero {
  background: radial-gradient(ellipse at 50% 0, #fff8e9, #ffffff 72%);
  border-bottom: 1px solid #e9d8ad;
  padding: 42px 20px 38px;
  text-align: center;
}

.hero-inner {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 20px rgb(88 63 20 / 12%);
  margin-bottom: 18px;
  background: #160b08;
}

.hero h1 {
  margin: 0 0 12px;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: #6d4b14;
  max-width: 900px;
}

.hero-subtitle {
  margin: 0 auto 24px;
  max-width: 760px;
  color: #62584b;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Download Box */
.download-box {
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  border: 1px solid #e2cf9e;
  border-radius: 15px;
  padding: 22px 24px;
  box-shadow: var(--shadow-box);
}

.apk-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 15px;
  margin-bottom: 16px;
  border-bottom: 1px dashed #eadfc5;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

.apk-info strong {
  color: #6f4e17;
  font-weight: 700;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 9px;
  border: 1px solid var(--crimson-border);
  background: linear-gradient(135deg, var(--crimson-start), var(--crimson-end));
  color: #ffffff;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  box-shadow: var(--shadow-btn);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.download-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #b51925, var(--crimson-hover));
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgb(146 18 29 / 24%);
}

.download-btn:active {
  transform: translateY(0);
}

.safe-text {
  margin: 13px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #765817;
}

/* App Screenshot Carousel */
.home-slider {
  width: min(calc(100% - 28px), 420px);
  margin: 22px auto 10px;
  position: relative;
}

.slider-viewport {
  position: relative;
  height: min(620px, 70vh);
  background: #160b08;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d7c39a;
  box-shadow: 0 14px 32px rgb(34 22 8 / 16%);
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background: #160b08;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 44px;
  border: 1px solid rgb(232 223 204 / 65%);
  border-radius: 9px;
  background: rgb(255 255 255 / 90%);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgb(0 0 0 / 18%);
  transition: background 0.2s ease, transform 0.15s ease;
}

.slider-arrow:hover {
  background: #ffffff;
  color: var(--accent-dark);
}

.slider-arrow.prev {
  left: 10px;
}

.slider-arrow.next {
  right: 10px;
}

.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #cbb78b;
  background: #e9dec7;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-dot.active {
  background: var(--accent);
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px #f3e6c5;
  transform: scale(1.08);
}

/* Main Content Area */
main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.table-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.table-section h2,
.card h2 {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee4d1;
  font-family: var(--heading-font);
  font-weight: 650;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #7f5b1c;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 320px;
}

.info-table th,
.info-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee5d4;
  font-size: 0.96rem;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.info-table thead th {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: var(--heading-font);
  font-weight: 700;
}

.info-table th:first-child,
.info-table td:first-child {
  width: 34%;
}

.info-table tbody th {
  background: #fffdf8;
  font-weight: 600;
  color: #6f4e17;
}

.info-table tbody td {
  color: var(--body-copy);
}

/* Two-Column Guide Layout */
.layout {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 88px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
}

.toc h2 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee4d1;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.35;
  color: var(--accent-dark);
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.toc a {
  display: block;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.toc a:hover,
.toc a.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px 27px;
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin: 18px 0 8px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.35;
  color: #8f1720;
}

.card p {
  margin: 0 0 13px;
  color: var(--body-copy);
  line-height: 1.72;
}

.card p:last-child {
  margin-bottom: 0;
}

.card strong {
  color: #6f4e17;
}

.card ul,
.card ol {
  margin: 10px 0 14px;
  padding-left: 22px;
  color: var(--body-copy);
}

.card li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.card li:last-child {
  margin-bottom: 0;
}

.feature-list li::marker {
  color: var(--accent);
}

.notice {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fff9eb;
  border: 1px solid #ead9ae;
  border-left: 4px solid var(--gold);
  border-radius: 9px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #55472f;
}

.notice strong {
  color: #7c5412;
}

/* FAQ Accordion */
details.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  background: #fffdf8;
  margin-bottom: 10px;
}

details.faq-item:last-child {
  margin-bottom: 0;
}

details.faq-item summary {
  font-family: var(--heading-font);
  font-weight: 600;
  color: #6f4e17;
  cursor: pointer;
  list-style-position: outside;
}

details.faq-item p {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Blog / Guide Link Cards & Subpage Helpers */
.page-banner {
  background: radial-gradient(ellipse at 50% 0, #fff8e9, #ffffff 78%);
  border-bottom: 1px solid #e9d8ad;
  padding: 36px 20px 30px;
  text-align: center;
}

.page-banner h1 {
  margin: 0 0 8px;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.18;
  color: #6d4b14;
}

.page-banner p {
  margin: 0 auto;
  max-width: 680px;
  color: #62584b;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.guide-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.guide-link h2 {
  margin: 0 0 10px;
  font-family: var(--heading-font);
  font-size: 1.24rem;
  color: #7f5b1c;
}

.guide-link p {
  margin: 0 0 18px;
  color: var(--body-copy);
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--crimson-border);
  background: linear-gradient(135deg, var(--crimson-start), var(--crimson-end));
  color: #ffffff;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.92rem;
}

.read-more-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #b51925, var(--crimson-hover));
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.contact-item {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.contact-item span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-item strong {
  color: #6f4e17;
  word-break: break-word;
}

/* Footer */
.site-footer {
  margin-top: 30px;
  padding: 28px 18px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-brand {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 14px 28px rgb(66 48 20 / 12%);
    padding: 6px 20px 10px;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 4px;
    border-bottom: 1px solid #f1eadb;
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15.5px;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
  }

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

  .toc ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .slider-viewport {
    height: 58svh;
  }
}

@media (max-width: 600px) {
  .card,
  .table-section {
    padding: 20px 17px;
  }

  .download-box {
    padding: 18px 16px;
  }

  .apk-info {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .card,
  .table-section {
    padding: 17px 14px;
  }

  .toc ul {
    grid-template-columns: 1fr;
  }

  .apk-info {
    font-size: 0.72rem;
  }

  .slider-viewport {
    height: 56svh;
  }
}

@media (max-width: 360px) {
  .apk-info {
    font-size: 0.67rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .slider-track,
  .download-btn,
  .toc a,
  a {
    transition: none;
  }
}
