@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'HachiMaruPop';
  src: url('fonts/hachi/HachiMaruPop-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

:root {
  color-scheme: dark;
  --background: oklch(0.17 0.012 285);
  --foreground: oklch(0.97 0.005 285);
  --card: oklch(0.21 0.014 285);
  --card-foreground: oklch(0.97 0.005 285);
  --popover: oklch(0.21 0.014 285);
  --popover-foreground: oklch(0.97 0.005 285);
  --primary: oklch(0.72 0.19 52);
  --primary-foreground: oklch(0.18 0.02 50);
  --secondary: oklch(0.55 0.13 295);
  --secondary-foreground: oklch(0.98 0.005 285);
  --muted: oklch(0.26 0.015 285);
  --muted-foreground: oklch(0.7 0.02 285);
  --accent: oklch(0.55 0.13 295);
  --accent-foreground: oklch(0.98 0.005 285);
  --destructive: oklch(0.62 0.22 25);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 14%);
  --ring: oklch(0.72 0.19 52);
  --radius: 0.75rem;
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --font-sans: 'Poppins', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --font-brand: 'HachiMaruPop', cursive;
}

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

html {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

@media (min-width: 640px) {
  .header-inner { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .header-inner { padding: 0 2rem; }
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.header-logo img {
  height: 2rem;
  width: auto;
}

.header-logo span {
  font-family: var(--font-brand);
  font-size: 2rem;
  letter-spacing: -0.025em;
  line-height: 1;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.15s;
}

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

.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--foreground);
  padding: 0.5rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-nav-toggle { display: none; }
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
  padding: 0.75rem 1rem;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}

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

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: all 0.15s;
  cursor: pointer;
  outline: none;
  line-height: 1;
  text-decoration: none;
}

.btn:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn svg {
  pointer-events: none;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.btn-default {
  height: 2rem;
  padding: 0 0.625rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-default:hover {
  background-color: color-mix(in oklab, var(--primary) 80%, transparent);
}

.btn-lg {
  height: 3rem;
  padding: 0 1.5rem;
  gap: 0.625rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.btn-lg svg { width: 1.25rem; height: 1.25rem; }

.btn-outline {
  height: 2rem;
  padding: 0 0.625rem;
  border-color: var(--border);
  background-color: var(--background);
  color: var(--foreground);
}

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

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

.btn-primary:hover {
  background-color: color-mix(in oklab, var(--primary) 90%, transparent);
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--muted-foreground);
}

.btn-ghost:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

/* ========== Sections ========== */
.section {
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1rem;
}

@media (min-width: 640px) {
  .section-inner { padding: 7rem 1.5rem; }
}
@media (min-width: 1024px) {
  .section-inner { padding: 7rem 2rem; }
}

.section-label {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.section-title {
  margin-top: 0.75rem;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; }
}

.section-desc {
  margin-top: 1rem;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  text-wrap: pretty;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-glow-1 {
  position: absolute;
  top: -10rem;
  left: 50%;
  transform: translateX(-50%);
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background-color: color-mix(in oklab, var(--primary) 15%, transparent);
  filter: blur(120px);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -12rem;
  left: -8rem;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background-color: color-mix(in oklab, var(--secondary) 20%, transparent);
  filter: blur(130px);
  pointer-events: none;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1rem 3rem;
  position: relative;
}

@media (min-width: 640px) {
  .hero-content { padding: 6rem 1.5rem; }
}
@media (min-width: 1024px) {
  .hero-content { padding: 6rem 2rem; }
}

.hero-text {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background-color: color-mix(in oklab, #363640 60%, transparent);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 3.75rem; }
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero p {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
}

.hero-other-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* Screenshot mockup */
.screenshot-wrapper {
  max-width: 1152px;
  margin: 4rem auto 0;
  position: relative;
}

.screenshot-glow {
  position: absolute;
  inset: -1.5rem 2rem 0;
  border-radius: 1.5rem;
  background-color: color-mix(in oklab, var(--primary) 10%, transparent);
  filter: blur(24px);
}

.screenshot-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: #363640;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== Features ========== */
.features-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 3.5rem;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl, 1.35rem);
  border: 1px solid var(--border);
  background-color: #363640;
  padding: 1.5rem;
  transition: border-color 0.15s;
}

.feature-card:hover {
  border-color: color-mix(in oklab, var(--primary) 50%, transparent);
}

.feature-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  background-color: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
  transition: background-color 0.15s;
}

.feature-card:hover .feature-icon-box {
  background-color: color-mix(in oklab, var(--primary) 15%, transparent);
}

.feature-icon-box svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-card h3 {
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.feature-card p {
  margin-top: 0.5rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* ========== Platforms / Download ========== */
.platforms-grid {
  margin-top: 3.5rem;
  max-width: 896px;
  margin-left: auto;
  margin-right: auto;
}

.platforms-grid.two-cols {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .platforms-grid.two-cols { grid-template-columns: repeat(2, 1fr); }
}

.platforms-grid.one-card {
  display: flex;
  justify-content: center;
}

.platform-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-2xl, 1.35rem);
  border: 1px solid var(--border);
  background-color: #363640;
  padding: 2rem;
}

.platform-card.single {
  width: 100%;
  max-width: 28rem;
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.platform-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-lg);
  background-color: color-mix(in oklab, var(--secondary) 15%, transparent);
  color: var(--foreground);
}

.platform-icon-box svg {
  width: 1.75rem;
  height: 1.75rem;
}

.platform-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.platform-detail {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

.platform-points {
  list-style: none;
  margin-top: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.platform-points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.platform-points li svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--primary);
}

.platform-card .btn {
  margin-top: 2rem;
  width: 100%;
}

/* ========== Story ========== */
.story-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-3xl, 1.65rem);
  border: 1px solid var(--border);
  background-color: #363640;
  padding: 2rem;
}

@media (min-width: 640px) {
  .story-card { padding: 3rem; }
}

.story-glow {
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background-color: color-mix(in oklab, var(--secondary) 20%, transparent);
  filter: blur(64px);
  pointer-events: none;
}

.story-content {
  position: relative;
  display: grid;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .story-content { grid-template-columns: auto 1fr; }
}

.story-mascot-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 11rem;
  height: 11rem;
  margin: 0 auto;
  border-radius: var(--radius-2xl, 1.35rem);
  background-color: color-mix(in oklab, var(--secondary) 15%, transparent);
}

@media (min-width: 768px) {
  .story-mascot-box { width: 13rem; height: 13rem; }
}

.story-mascot-box img {
  width: 8rem;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
}

@media (min-width: 768px) {
  .story-mascot-box img { width: 9rem; }
}

.story-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.story-label .brand-name {
  font-family: var(--font-brand);
}

.story-heading {
  margin-top: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .story-heading { font-size: 1.875rem; }
}

.story-text {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.story-text .highlight {
  font-weight: 500;
  color: var(--foreground);
}

/* ========== Footer ========== */
.site-footer {
  background-color: var(--background);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1rem;
}

@media (min-width: 640px) {
  .footer-inner { padding: 3.5rem 1.5rem; }
}
@media (min-width: 1024px) {
  .footer-inner { padding: 3.5rem 2rem; }
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr auto auto;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-brand img {
  height: 2rem;
  width: auto;
}

.footer-brand span {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}

.footer-desc {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.footer-nav h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .footer-nav { text-align: right; }
}

.footer-nav ul {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.15s;
}

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

.footer-bottom {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; }
}

/* ========== Privacy Page ========== */
.privacy-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 5rem 1rem;
}

@media (min-width: 640px) {
  .privacy-content { padding: 7rem 1.5rem; }
}

.privacy-content h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.privacy-date {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.privacy-body {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.privacy-body h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

/* ========== Contact Page ========== */
.contact-content {
  max-width: 42rem;
  margin: 0 auto;
  padding: 5rem 1rem;
}

@media (min-width: 640px) {
  .contact-content { padding: 7rem 1.5rem; }
}

.contact-content h1 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.contact-desc {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.contact-form-wrapper {
  margin-top: 3rem;
  border-radius: var(--radius-2xl, 1.35rem);
  border: 1px solid var(--border);
  background-color: #363640;
  padding: 2rem;
}

@media (min-width: 640px) {
  .contact-form-wrapper { padding: 3rem; }
}

/* ========== Contact Form ========== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group input,
.form-group textarea {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--input);
  background-color: var(--background);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  font-family: var(--font-sans);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}

.form-group textarea {
  resize: vertical;
  min-height: 7rem;
}

.form-status {
  text-align: center;
  font-size: 0.875rem;
}

.form-status.success { color: #4ade80; }
.form-status.error { color: var(--destructive); }

/* ========== Page wrapper ========== */
.page-wrap {
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
}

/* ========== Utility ========== */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--muted-foreground); }
.mt-4 { margin-top: 1rem; }
.block { display: block; }
