/* NGIE: Gaming Ai Assistant – Landing Page */

:root {
  --color-bg: #1A1A25;
  --color-accent: #2525F4;
  --color-text: #FFFFFF;
  --color-text-muted: #E0E0E0;
  --color-card-bg: rgba(37, 37, 244, 0.08);
  --color-border: rgba(37, 37, 244, 0.2);
  --font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1100px;
  --section-padding: 4rem 1.5rem;
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 37, 0.95);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  color: var(--color-text-muted);
  font-weight: 500;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.lang-switcher a {
  color: var(--color-text-muted);
}

.lang-switcher a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.lang-switcher .lang-active {
  color: var(--color-accent);
  cursor: default;
  pointer-events: none;
}

.lang-sep {
  color: var(--color-text-muted);
  opacity: 0.6;
  user-select: none;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--section-padding);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 140%;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 280px;
  gap: 1rem;
  opacity: 0.15;
  transform: rotate(-4deg);
  pointer-events: none;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-inner {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.hero-tagline {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 480px;
}

.hero-cta {
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-icon {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
}

/* Section title */
.section-title {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
}

/* Scroll reveal (script.js ile .is-visible eklenir) */
.features,
.ai-section,
.cta-section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.features.is-visible,
.ai-section.is-visible,
.cta-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Features */
.features {
  padding: 0 1.5rem 4rem;
  /* Removed top padding */
  margin-top: -6rem;
  /* Pulled up into hero space */
  background: transparent;
  position: relative;
  z-index: 10;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-row:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(37, 37, 244, 0.15);
}

.feature-with-bg {
  position: relative;
  overflow: hidden;
}

.feature-with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.feature-with-bg.bg-1::before {
  background-image: url('assets/features/onboarding_first_image.png');
}

.feature-with-bg.bg-2::before {
  background-image: url('assets/features/onboarding_second_image.png');
}

.feature-with-bg.bg-3::before {
  background-image: url('assets/features/onboarding_third_image.png');
}

.feature-with-bg.bg-ai::before {
  background-image: url('assets/avatar.png');
  /* Make the avatar strictly cover from the center, perhaps different opacity if needed, sticking with default 0.1 */
}

.feature-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.feature-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.interactive-mockups {
  position: relative;
  width: 100%;
  height: 480px;
  perspective: 1000px;
}

.mockup-img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-height: 100%;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  transform-origin: center center;
}

.mockup-img-single {
  max-height: 480px;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  cursor: default;
}

/* Default state: Empty screen in front, Full screen in back */
.mockup-front {
  z-index: 2;
  transform: translate(-65%, -45%) scale(1);
}

.mockup-back {
  z-index: 1;
  transform: translate(-35%, -55%) scale(0.9);
  opacity: 0.5;
  filter: blur(2px);
}

.mockup-back:hover {
  opacity: 0.8;
  filter: blur(0px);
}

/* Flipped state: Full screen in front, Empty screen in back */
.interactive-mockups.flipped .mockup-front {
  z-index: 1;
  transform: translate(-35%, -55%) scale(0.9);
  opacity: 0.5;
  filter: blur(2px);
}

.interactive-mockups.flipped .mockup-back {
  z-index: 2;
  transform: translate(-65%, -45%) scale(1);
  opacity: 1;
  filter: blur(0px);
}

.interactive-mockups.flipped .mockup-front:hover {
  opacity: 0.8;
  filter: blur(0px);
}

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

.feature-row h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.feature-row p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* AI section */
.ai-section {
  padding: var(--section-padding);
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(37, 37, 244, 0.05) 100%);
}

.ai-content .section-title {
  text-align: left;
  margin-bottom: 1rem;
}

.ai-content p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.ai-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.ai-list li {
  margin-bottom: 0.5rem;
}

/* CTA / Store */
.cta-section {
  padding: var(--section-padding);
}

.cta-text {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 180px;
  min-height: 56px;
  padding: 0.75rem 1.5rem;
  background: var(--color-card-bg);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s;
}

.store-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.store-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  text-decoration: none;
  color: var(--color-text);
}

.store-label {
  pointer-events: none;
}

/* Footer */
.site-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

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

.footer-brand {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.footer-copy {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

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

/* Legal / Gizlilik sayfası */
.legal-page {
  padding: 2rem 0 4rem;
  min-height: 60vh;
}

.legal-content {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.legal-content h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
}

.legal-content .legal-meta {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.legal-content p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.legal-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}

.legal-content h2:first-of-type {
  margin-top: 1.5rem;
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-content a {
  color: var(--color-accent);
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  .features {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text .hero-tagline {
    max-width: none;
  }

  .hero-visual {
    order: -1;
  }

  .hero-icon {
    width: 160px;
    height: 160px;
  }

  .feature-row {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }

  .feature-content,
  .feature-visual {
    flex: none;
    width: 100%;
  }

  .interactive-mockups {
    height: 380px;
    min-height: 380px;
    max-width: 100%;
  }

  .mockup-front {
    transform: translate(-60%, -45%) scale(1);
  }

  .mockup-back {
    transform: translate(-30%, -55%) scale(0.85);
  }

  .interactive-mockups.flipped .mockup-front {
    transform: translate(-30%, -55%) scale(0.85);
    opacity: 0.5;
    filter: blur(2px);
  }

  .interactive-mockups.flipped .mockup-back {
    transform: translate(-60%, -45%) scale(1);
    opacity: 1;
    filter: blur(0px);
  }

  .store-buttons {
    flex-direction: column;
  }

  .store-btn {
    width: 100%;
    max-width: 280px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 99;
  }

  nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  nav a {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 3rem 1rem;
  }

  .header-inner {
    padding: 0.75rem 1rem;
  }

  .logo span {
    font-size: 1.1rem;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }
}
/* Support Form */
.support-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  background: var(--color-card-bg);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(37, 37, 244, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.submit-btn {
  margin-top: 0.5rem;
  align-self: flex-start;
}

@media (max-width: 768px) {
  .support-form {
    padding: 1.5rem;
  }
}
