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

:root {
  --background: hsl(40, 12%, 95%);
  --foreground: hsl(24, 10%, 15%);
  --primary: hsl(24, 10%, 20%);
  --primary-foreground: hsl(40, 12%, 98%);
  --secondary: hsl(35, 15%, 88%);
  --secondary-foreground: hsl(24, 10%, 25%);
  --accent: hsl(75, 15%, 40%);
  --accent-foreground: hsl(40, 12%, 98%);
  --muted: hsl(35, 10%, 90%);
  --muted-foreground: hsl(24, 5%, 45%);
  --card: hsl(40, 12%, 96%);
  --card-foreground: hsl(24, 10%, 15%);
  --border: hsl(35, 10%, 85%);
  --ring: hsl(24, 10%, 20%);
  --destructive: hsl(10, 30%, 45%);
  --radius: 0.25rem;
  --shadow: 0px 2px 4px 0px hsl(24 10% 10% / 0.04);
  --shadow-sm: 0px 1px 2px 0px hsl(24 10% 10% / 0.02);
  --tracking-normal: 0.05em;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  letter-spacing: var(--tracking-normal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Serif SC", serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

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

/* ===== HEADER & NAVIGATION ===== */
.header {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Noto Serif SC", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

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

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  padding: 6rem 2rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

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

.hero p {
  font-size: 1.2rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title p {
  color: var(--muted-foreground);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px hsl(24 10% 10% / 0.08);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.card h3 {
  color: var(--card-foreground);
}

.card p {
  color: var(--muted-foreground);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.card-tag {
  display: inline-block;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  margin-top: 1rem;
  font-weight: 500;
}

/* ===== RATING ===== */
.rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

.rating-star {
  color: var(--accent);
  font-size: 1.1rem;
}

.rating-value {
  margin-left: 0.5rem;
  font-weight: 500;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--secondary);
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 4rem 2rem;
  text-align: center;
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--muted-foreground);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== PLATFORM DETAIL ===== */
.platform-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.platform-detail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

.platform-info h3 {
  margin-bottom: 0.5rem;
}

.platform-info p {
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.platform-features {
  list-style: none;
  margin-top: 1rem;
}

.platform-features li {
  padding: 0.4rem 0;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.platform-features li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

/* ===== FORM ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ring);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== FOOTER ===== */
.footer {
  margin-top: auto;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer h4 {
  color: var(--primary-foreground);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer p {
  color: hsl(40, 12%, 75%);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: hsl(40, 12%, 75%);
  font-size: 0.9rem;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid hsl(24, 10%, 30%);
  text-align: center;
  color: hsl(40, 12%, 60%);
  font-size: 0.85rem;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
  font-size: 1.05rem;
}

/* ===== PRIVACY PAGE ===== */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.privacy-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.privacy-content p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

.privacy-content ul {
  margin: 1rem 0 1rem 2rem;
  color: var(--muted-foreground);
}

.privacy-content li {
  margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero {
    padding: 4rem 1.5rem;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-list.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

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

  .platform-detail {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.75rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}
