/* ---------- RESET ---------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  position: relative;
  background:
    radial-gradient(circle at top left, 
	    white,
    white
	 ),
    url("../assets/pattern.svg");
  color: #1f2937;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-repeat: no-repeat, repeat;
  background-size: cover, 200px;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}
/* ---------- SAKURA LAYER ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../assets/sakura.png") no-repeat center center;
  background-size: cover;
  opacity: 0.95; /* bisa kamu adjust */
  pointer-events: none;
  z-index: 0;
}

/* Pastikan semua konten di atas sakura */
.wrapper,
header,
.hero,
.basics-page,
.quiz-container,
footer {
  position: relative;
  z-index: 1;
}

/* ---------- CONTAINER ---------- */

.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---------- HEADER ---------- */

header {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 18px;
  text-decoration: none;
  color: black;
}

.logo span {
  background: transparent;
  border: 1px solid #2a3142;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: 'Noto Serif JP', serif;
}

.logo:hover {
  opacity: 0.8;
}

/* ---------- NAV ---------- */

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-btn {
  background: #1f2937;
  padding: 8px 16px;
  border-radius: 999px;
  color: black;
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
}

.nav-btn.active {
  background: #2a3142;
  color: white;
}

.nav-link {
  font-size: 13px;
  color: black;
  text-decoration: none;
  transition: 0.2s ease;
}

.nav-link:hover {
  color: grey;
}

/* ---------- HERO ---------- */

.hero {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 100px;
}

.hero-content {
  max-width: 520px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero h1 span {
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
}

.hero p {
  color: grey;
  line-height: 1.8;
  margin-bottom: 36px;
}

/* ---------- CTA ---------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta a {
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s ease;
}

.cta a.primary {
  background: #2a3142;
  border: 1px solid #2a3142;
  color: white;
}

.cta a.primary:hover {
  background: #1f2937;
  color: white;
}

.cta a.secondary {
  background: transparent;
  border: 1px solid #2a3142;
  color: black;
}

.cta a.secondary:hover {
  background: #1f2937;
  color: white;
  
}

/* ---------- MOCKUP ---------- */

.mockup {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f2f4f8);
  border-radius: 36px;
  padding: 32px;
  color: #0b0e14;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  z-index: 1;
}

.row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.char {
  background: #f5f7fb;
  border-radius: 14px;
  padding: 16px 0 12px;
  text-align: center;
}

.char .jp {
  font-family: 'Noto Serif JP', serif;
  font-size: 32px;
  font-weight: bold;
}

.char .romaji {
  font-size: 12px;
  margin-top: 6px;
  color: #6b7280;
}

/* ---------- FOOTER ---------- */

footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 13px;
  color: #7d8599;
   margin-top: auto;
}

/* ---------- BASICS PAGE ---------- */

.basics-page {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}

/* PAGE TITLE */

.page-title {
  margin-bottom: 40px;
}

.page-title h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.page-title p {
  color: #aab1c3;
}

/* TOC */

.toc {
  background: white;
  padding: 20px;
  border: 1px solid #2a3142;
  border-radius: 16px;
  margin-bottom: 60px;
}

.toc h3 {
  margin-bottom: 14px;
}

.toc ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.toc a {
  text-decoration: none;
  color: black;
  font-size: 14px;
}

/* SECTION */

.section {
  margin-bottom: 70px;
}

.section h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

/* TABLE */

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e7ddd2;
  box-shadow: 0 10px 30px rgba(90, 74, 58, 0.08);
}

th, td {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  color: #3b312b;
}

th {
  background: #f6f1eb;
  font-weight: 600;
  color: #2f2a26;
}

tr {
  background: #ffffff;
}

tr:nth-child(even) {
  background: #fcfaf7;
}

tr:hover {
  background: #f9f4ee;
  transition: 0.2s ease;
}

.jp {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
}

/* QUIZ */

.quiz-container {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
}

.quiz-card {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  margin-top: 40px;
  padding: 40px 20px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e7ddd2;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(90, 74, 58, 0.10);
  backdrop-filter: blur(8px);
}

.question {
  font-size: 64px;
  margin-bottom: 30px;
  color: #2f2a26;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.choice-btn {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ddd2c3;
  background: #fffdfb;
  color: #3b312b;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.choice-btn:hover {
  background: #f8f1e8;
  border-color: #c9b39a;
}

.primary-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: #2f4858;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-btn:hover {
  background: #3b5a6d;
  transform: translateY(-1px);
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6f6258;
}

.quiz-finished {
  width: 100%;
  text-align: center;
  overflow-wrap: break-word;
  font-size: clamp(26px, 8vw, 48px);
  color: #2f2a26;
}

/* RESPONSIVE */

@media (max-width: 768px) {

  .basics-page {
    padding: 40px 20px 80px;
  }

  table {
    font-size: 13px;
  }

  th, td {
    padding: 10px;
  }
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {
  .hero {
    gap: 60px;
  }

  .hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .cta {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
  }

  nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero {
    padding: 60px 20px;
  }

  .mockup {
    padding: 24px;
  }
}
