/* Nexus Forge Interactive — Premium gaming studio landing */

:root {
  --bg-deep: #0a0f14;
  --bg-elevated: #121b24;
  --bg-card: #16202c;
  --text-primary: #f4f6f8;
  --text-muted: #9aabbc;
  --accent: #10b981;
  --accent-deep: #059669;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --radius: 14px;
  --transition: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(10, 15, 20, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.logo span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-primary);
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #02120c;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

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

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: clamp(1.25rem, 4vw, 3rem);
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1rem;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition);
  }

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

main {
  overflow-x: clip;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  align-items: stretch;
  padding-top: 88px;
}

.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-copy .eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
  animation: fadeUp 0.9s ease both;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.8vw, 4.25rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 1.25rem;
  animation: fadeUp 0.9s ease 0.08s both;
}

.hero-copy .lead {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 32rem;
  margin: 0 0 2rem;
  animation: fadeUp 0.9s ease 0.16s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp 0.9s ease 0.22s both;
}

.hero-metrics {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  animation: fadeUp 0.9s ease 0.28s both;
}

.metric strong {
  display: block;
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.metric span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  animation: fadeUp 1s ease 0.25s both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(16, 185, 129, 0.18),
    transparent 55%
  );
  z-index: -1;
  pointer-events: none;
}

.hero-visual img {
  border-radius: 24px;
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.hero-badge {
  position: absolute;
  bottom: 8%;
  left: -4%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.hero-badge p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-badge strong {
  font-size: 1rem;
  color: var(--text-primary);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-metrics {
    justify-content: center;
    flex-wrap: wrap;
    text-align: left;
  }

  .hero-visual img {
    aspect-ratio: 16 / 10;
    max-height: 420px;
  }

  .hero-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: 4%;
    width: min(340px, 90%);
    text-align: center;
  }
}

/* Sections */
.section {
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.section-light {
  background: #f8fafb;
  color: #0f172a;
}

.section-light .eyebrow {
  color: var(--accent-deep);
}

.section-light h2 {
  color: #0f172a;
}

.section-light p,
.section-light .muted {
  color: #475569;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head .eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.85rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.section-head .lead-text {
  font-size: 1.075rem;
  margin: 0;
  color: var(--text-muted);
}

.section-light .section-head .lead-text {
  color: #64748b;
}

/* Animations reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--transition), transform 0.85s var(--transition);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.about-image-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-copy .muted {
  color: var(--text-muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.pill {
  font-size: 0.82rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.section-light .pill {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-deep);
  border-color: rgba(16, 185, 129, 0.2);
}

/* Services grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-service {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.85rem;
  transition: transform 0.35s var(--transition), border-color 0.35s ease;
}

.card-service:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.35);
}

.card-service img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.35rem;
  border: 1px solid var(--border-subtle);
}

.section-light .card-service {
  background: #ffffff;
  box-shadow: 0 14px 50px rgba(15, 23, 42, 0.06);
}

.section-light .card-service h3 {
  color: #0f172a;
}

.section-light .card-service p {
  color: #64748b;
  margin: 0;
  font-size: 0.98rem;
}

.card-service h3 {
  margin: 0 0 0.75rem;
  font-size: 1.22rem;
}

.card-service .icon-num {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item.span-8 {
  grid-column: span 8;
}

.gallery-item.span-4 {
  grid-column: span 4;
}

.gallery-item.span-6 {
  grid-column: span 6;
}

.gallery-item.span-12 {
  grid-column: span 12;
}

.gallery-item.span-row-2 {
  grid-row: span 2;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
  }

  .gallery-item.span-8,
  .gallery-item.span-4,
  .gallery-item.span-6,
  .gallery-item.span-12 {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* Testimonials */
.testimonials {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.quote-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.quote-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  position: absolute;
  top: 0.75rem;
  right: 1.5rem;
  color: rgba(16, 185, 129, 0.2);
  line-height: 1;
}

.quote-card blockquote {
  margin: 0 0 1.5rem;
  font-size: 1.045rem;
  color: var(--text-muted);
  font-style: italic;
}

.quote-card footer strong {
  color: var(--text-primary);
  display: block;
}

.quote-card footer span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.section-light .quote-card {
  background: #ffffff;
  box-shadow: 0 14px 50px rgba(15, 23, 42, 0.05);
}

.section-light .quote-card blockquote {
  color: #64748b;
}

.section-light .quote-card footer strong {
  color: #0f172a;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2rem 2rem 2.25rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.social-row {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent);
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-row a:hover {
  opacity: 1;
  background: rgba(16, 185, 129, 0.22);
  transform: translateY(-2px);
}

.social-row svg {
  width: 20px;
  height: 20px;
}

form.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

form.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.section-light form.contact-form label {
  color: #64748b;
}

.section-light form.contact-form input,
.section-light form.contact-form textarea {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

.section-light form.contact-form input:focus,
.section-light form.contact-form textarea:focus {
  border-color: rgba(5, 150, 105, 0.55);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  background: #070a0e;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 10rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  font-size: 0.94rem;
  max-width: 28rem;
}

.footer-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li + li {
  margin-top: 0.65rem;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-copy {
  max-width: 1200px;
  margin: 2.75rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: #5c6e82;
}

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

/* Legal pages */
.page-hero {
  padding: clamp(7rem, 12vw, 10rem) clamp(1.25rem, 4vw, 3rem) 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  margin: 0 0 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  margin: 0;
}

.legal-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 6rem;
}

.legal-main h2 {
  font-family: var(--font-display);
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  font-size: 1.5rem;
}

.legal-main p,
.legal-main li {
  color: var(--text-muted);
}

.legal-main ul {
  padding-left: 1.35rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  pointer-events: none;
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(18, 27, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: clamp(1.25rem, 4vw, 1.85rem);
  box-shadow: 0 -12px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem 2rem;
  align-items: center;
  pointer-events: auto;
}

.cookie-banner[hidden],
.cookie-banner.is-dismissed .cookie-inner {
  display: none;
}

.cookie-text h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
}

.cookie-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.btn-sm {
  padding: 0.75rem 1.35rem;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .cookie-inner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* Modals overlay */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(5, 8, 12, 0.78);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-elevated);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  max-width: 520px;
  width: 100%;
  max-height: min(82vh, 640px);
  overflow: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.overlay.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
}

.modal-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.modal-close {
  background: var(--accent-soft);
  border: none;
  color: var(--accent);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-body {
  padding: 1.35rem 1.5rem 1.65rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal-body ul {
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.modal-foot {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cookie-option:last-of-type {
  border-bottom: none;
}
