/* ─── Shikaku Official Website Stylesheet ────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent-primary: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-light: #f5f3ff;
  --accent-border: #ddd6fe;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 30px -6px rgba(124, 58, 237, 0.12), 0 8px 12px -4px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 700;
}

/* Main Hero Section */
.hero {
  padding: 60px 0 48px;
  text-align: center;
}

.hero-icon-wrapper {
  margin-bottom: 24px;
  display: inline-block;
  position: relative;
}

.hero-app-icon {
  width: 110px;
  height: 110px;
  border-radius: 26px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-app-icon:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 38px -8px rgba(124, 58, 237, 0.2);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.pill-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 18px;
  line-height: 1.12;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* Store Download Buttons */
.store-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-md);
}

.btn-store:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

.btn-store svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-store-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
  line-height: 1;
}

.btn-store-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Interactive / Visual Preview Section */
.preview-section {
  padding: 20px 0 60px;
}

.puzzle-showcase {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.showcase-header {
  margin-bottom: 24px;
}

.showcase-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.showcase-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Interactive / CSS Grid Board */
.shikaku-board-container {
  display: inline-block;
  margin: 10px auto 20px;
  background: #131316;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.08);
}

.shikaku-grid {
  display: grid;
  grid-template-columns: repeat(4, 56px);
  grid-template-rows: repeat(4, 56px);
  gap: 8px;
  position: relative;
}

.grid-cell {
  background: #1c1d24;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #f0f2f8;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 1px 1px rgba(255,255,255,0.06);
  user-select: none;
  transition: all 0.2s ease;
}

/* Solved Rectangles Colors matching app palette */
.rect-blue {
  background: #8ba5d4 !important;
  color: #121520 !important;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 4px 8px rgba(0,0,0,0.3) !important;
}

.rect-teal {
  background: #7fcfc1 !important;
  color: #121520 !important;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 4px 8px rgba(0,0,0,0.3) !important;
}

.rect-gold {
  background: #e0ba79 !important;
  color: #121520 !important;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 4px 8px rgba(0,0,0,0.3) !important;
}

.rect-purple {
  background: #d894b7 !important;
  color: #121520 !important;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 4px 8px rgba(0,0,0,0.3) !important;
}

.rect-green {
  background: #9bc987 !important;
  color: #121520 !important;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 4px 8px rgba(0,0,0,0.3) !important;
}

.showcase-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toggle-solution-btn {
  background: var(--text-primary);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.toggle-solution-btn:hover {
  background: var(--accent-primary);
  transform: translateY(-1px);
}

.showcase-caption {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Features Section */
.features-section {
  padding: 70px 0 80px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-border);
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon-box svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Rules / How to Play Section */
.rules-section {
  padding: 80px 0;
}

.rules-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.rules-card h3 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text-primary);
  text-align: center;
}

.rules-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.rule-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #ffffff;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.rule-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-light);
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rule-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.rule-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--bg-main);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

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

/* ─── Privacy Policy Page Layout ────────────────────────────────────────── */
.privacy-header {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.privacy-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.privacy-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.privacy-body {
  padding: 50px 0 90px;
}

.privacy-article {
  max-width: 840px;
  margin: 0 auto;
}

.privacy-article section {
  margin-bottom: 44px;
}

.privacy-article h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.privacy-article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 10px;
}

.privacy-article p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.privacy-article ul, .privacy-article ol {
  margin: 12px 0 18px 24px;
  color: var(--text-secondary);
}

.privacy-article li {
  margin-bottom: 10px;
  line-height: 1.65;
  font-size: 1rem;
}

.privacy-callout {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-primary);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 22px 0;
  font-size: 0.96rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.privacy-badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent-primary);
  vertical-align: middle;
  margin-left: 6px;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.privacy-table th, .privacy-table td {
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}

.privacy-table th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 700;
}

.privacy-table td {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .rules-card {
    padding: 28px 20px;
  }
  .shikaku-grid {
    grid-template-columns: repeat(4, 46px);
    grid-template-rows: repeat(4, 46px);
    gap: 6px;
  }
  .grid-cell {
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 40px 0 32px;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .store-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn-store {
    width: 100%;
    justify-content: center;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .privacy-title {
    font-size: 2rem;
  }
  .privacy-table {
    display: block;
    overflow-x: auto;
  }
}
