@import url('https://fonts.googleapis.com/css2?family=Agbalumo&family=Caveat:wght@400;700&family=Inter:wght@400;600&display=swap');

:root {
  --bg-color: #fcf9f2; /* parchment color */
  --text-color: #1a1a1a;
  --ink-color: #000000;
  --accent-color: #2b5cff; /* blue pen color */
  --card-bg: rgba(255, 255, 255, 0.7);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><g fill="rgba(0,0,0,0.02)"><circle cx="10" cy="10" r="1"/><circle cx="50" cy="50" r="2"/></g></svg>'); /* Subtle texture */
  overflow-x: hidden;
}

h1, h2, h3, .brand {
  font-family: 'Agbalumo', system-ui;
  color: var(--ink-color);
}

.handwritten {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--accent-color);
}

/* Header */
header {
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px dashed rgba(0,0,0,0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.logo-container:hover .logo-img {
  transform: rotate(-5deg) scale(1.1);
}

.brand {
  font-size: 1.8rem;
  margin: 0;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

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

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

nav a:hover::after {
  width: 100%;
}

/* Main Content */
main {
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  padding: 4rem 0;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.05);
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  opacity: 0.8;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  background-color: var(--accent-color);
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(43, 92, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 25px rgba(43, 92, 255, 0.4);
  background-color: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  border: 1px dashed rgba(0,0,0,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(5px);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: var(--accent-color);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Content Pages (Privacy, How to Play) */
.page-header {
  text-align: center;
  padding: 4rem 0 2rem;
}

.content-box {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 20px;
  border: 1px dashed rgba(0,0,0,0.1);
  box-shadow: 0 15px 35px rgba(0,0,0,0.03);
  max-width: 800px;
  margin: 0 auto;
}

.content-box h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.content-box p {
  margin-bottom: 1.5rem;
}

.content-box ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

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

/* Footer */
footer {
  text-align: center;
  padding: 3rem 5%;
  border-top: 2px dashed rgba(0,0,0,0.1);
  margin-top: 4rem;
  color: rgba(0,0,0,0.6);
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .content-box {
    padding: 1.5rem;
  }
}
