/* ============================================================
   OHNAAI — Landing Page Styles
   ============================================================ */

:root {
  --bg: #070b14;
  --bg-soft: #0c1220;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8ecf4;
  --muted: #97a3ba;
  --accent-1: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --gradient: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  --radius: 18px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.2; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(124, 92, 255, 0.45); }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

section { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ============ Header / Nav ============ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a:not(.btn) {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(124, 92, 255, 0.5); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-small { padding: 0.55rem 1.3rem; font-size: 0.88rem; }
.btn-large { padding: 1rem 2.4rem; font-size: 1.1rem; }

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.28), transparent);
  filter: blur(40px);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  margin-bottom: 1.6rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 2.2rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.4rem;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.meta-item { display: flex; flex-direction: column; gap: 0.15rem; }
.meta-item strong { font-size: 0.98rem; font-weight: 700; }
.meta-item span { font-size: 0.8rem; color: var(--muted); }

/* ============ Sections ============ */

.section { padding: 6.5rem 0; }

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.8rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.section-sub { color: var(--muted); font-size: 1.02rem; }

/* ============ About ============ */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  background: var(--card-hover);
  border-color: rgba(124, 92, 255, 0.45);
}

.feature-icon {
  font-size: 2rem;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.3);
  margin-bottom: 1.2rem;
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ============ Games ============ */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.game-cover {
  position: relative;
  height: 160px;
  display: grid;
  place-items: center;
}

.cover-1 { background: linear-gradient(135deg, #2b1e66, #7c5cff); }
.cover-2 { background: linear-gradient(135deg, #0e3a4a, #22d3ee); }
.cover-3 { background: linear-gradient(135deg, #4a1030, #f472b6); }

.game-emoji {
  font-size: 3.4rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.pill {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
}

.game-body { padding: 1.4rem 1.5rem 1.6rem; }

.game-body h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }

.game-genre {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.7rem;
}

.game-body p:last-child { color: var(--muted); font-size: 0.94rem; }

/* ============ Company ============ */

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.info-card:hover { border-color: rgba(124, 92, 255, 0.45); background: var(--card-hover); }

.info-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.info-value { font-size: 1.2rem; font-weight: 700; font-family: 'Sora', sans-serif; }

.address-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.12), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
}

.address-text {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.address-map { font-size: 3rem; }

/* ============ Privacy Policy ============ */

.policy {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 3rem);
}

.policy p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.policy p strong { color: var(--text); }

.policy h3 {
  font-size: 1.05rem;
  margin: 1.8rem 0 0.6rem;
}
.policy h3:first-of-type { margin-top: 1.6rem; }

/* ============ Contact ============ */

.contact { text-align: center; }

.contact-inner { max-width: 640px; }

.contact-inner .section-tag { margin-bottom: 0.6rem; }

.contact-inner h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-inner .section-sub { margin-bottom: 2.2rem; }

.contact-address {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ============ Footer ============ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0;
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner p { color: var(--muted); font-size: 0.85rem; }

.logo-footer { font-size: 1.2rem; }

/* ============ Reveal animation ============ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ============ Responsive ============ */

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 1rem 4% 1.4rem;
    background: rgba(7, 11, 20, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links a:not(.btn) {
    display: block;
    padding: 0.7rem 0.6rem;
    font-size: 1rem;
  }

  .nav-links .btn { margin-top: 0.6rem; justify-content: center; }

  .hero-meta { gap: 1.8rem; }

  .section { padding: 5rem 0; }

  .footer-inner { justify-content: center; text-align: center; }
}
