/* ============================================================
   Square Enix Collective – Responsive Styles
   (Static pages: index.html / pitch.html)
   ============================================================ */

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

:root {
  /* ── Logo palette (mirrors collective-logo.svg cls-2 〜 cls-6) ── */
  --logo-purple: #be5ad4;
  --logo-yellow: #fc0;
  --logo-cyan:   #3fd2ea;
  --logo-green:  #6c3;
  --logo-red:    #ed1c24;

  /* Alpha variants of --logo-red used in UI */
  --logo-red-a05: rgba(237,28,36,0.05);
  --logo-red-a10: rgba(237,28,36,0.10);
  --logo-red-a20: rgba(237,28,36,0.20);
  --logo-red-a40: rgba(237,28,36,0.40);

  --red:      var(--logo-red);
  --orange:   #ff9f00;
  --dark:     #1a1a1a;
  --dark2:    #222222;
  --dark3:    #2a2a2a;
  --mid:      #333333;
  --border:   #3a3a3a;
  --text:     #cccccc;
  --white:    #ffffff;
  --font-cond: 'Lexend', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 105.73'><defs><style>.st0, .st1, .st2 { fill: none; } .st0, .st2 { stroke: %23fff; stroke-miterlimit: 10; } .st2 { stroke-linecap: round; } .st3 { display: none; } .st4 { opacity: .05; }</style></defs><rect class='st3' width='100' height='105.73'/><g class='st4'><polygon class='st0' points='50 105.73 100 80.8 100 24.93 100 24.93 50 0 0 24.93 0 80.8 50 105.73'/><polyline class='st2' points='0 24.93 50 49.86 100 24.93'/><line class='st2' x1='50' y1='105.73' x2='50' y2='49.86'/></g><rect class='st1' width='100' height='105.73'/></svg>");
	background-repeat: repeat;
	background-size: 60px 63.44px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Sticky footer (desktop only – mobile content is always tall enough) */
@media (min-width: 769px) {
  html, body { height: 100%; }
  body { display: flex; flex-direction: column; }
  body > * { width: 100%; }
  body > main { flex: 1 0 auto; }
  body > .site-footer { flex-shrink: 0; }
  .sp-only { display: none !important; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-cond);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: none;
  border-radius: 4px;
}
.btn-outline {
  background: transparent;
  border: 1px solid #666;
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); }
.btn-skyblue {
  background: #22b8d1;
  color: var(--white);
}
.btn-skyblue:hover { background: #fff; color: #22b8d1; }
.btn-skyblue:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-skyblue:disabled:hover { background: #22b8d1; color: var(--white); }
.btn-lg { padding: 18px 48px; font-size: 16px; letter-spacing: 3px; }

/* ── LAYOUT ── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px;
}

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20,20,20,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-logos {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}
.header-logos .logo-se,
.header-logos .logo-col {
  display: flex;
  align-items: center;
}
.header-logos img {
  display: block;
  width: auto;
}
.header-logos .logo-se img {
  height: 19px;
  margin-top: 1px;
}
.header-logos .logo-col img {
  margin-top: 2px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-link {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #aaa;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--red); }
.nav-pitch-btn {
  background: #22b8d1;
  color: #fff;
  padding: 5px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.nav-pitch-btn:hover {
  background: #fff;
  color: #22b8d1;
  border-color: transparent;
}
.nav-pitch-btn.active {
  background: transparent;
  color: #22b8d1;
  border-color: transparent;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px;
}
.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #666;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.lang-btn.active { background: var(--red); color: var(--white); }
.lang-btn:hover:not(.active) { color: var(--white); }
.lang-sep { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 60px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 60px 24px;
}
.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cube-logo svg { filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5)); }
.hero-tagline {
  font-family: var(--font-cond);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--red);
  margin-top: 36px;
}
.hero-desc {
  font-size: 18px;
  color: #ddd;
  line-height: 1.7;
  max-width: 600px;
}

/* ── ABOUT ── */
.about { background: var(--dark2); }
.about-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: start;
}
.section-label {
  font-family: var(--font-cond);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--red);
  text-transform: uppercase;
  padding-top: 6px;
}
.about-content {
  display: flex;
  gap: 32px;
}
.about-divider {
  width: 4px;
  background: var(--red);
  flex-shrink: 0;
  border-radius: 2px;
  min-height: 100%;
  align-self: stretch;
}
.about-text h2 {
  font-family: var(--font-cond);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
}
.about-text p {
  color: var(--text);
  font-size: 18px;
  margin-bottom: 16px;
}
.about-text .btn { margin-top: 8px; }
.about-text .btn + .btn { margin-left: 28px; }
.about-actions { display: contents; }

/* ── MISSION ── */
.mission {
  position: relative;
  background: var(--dark3);
  overflow: hidden;
}
.mission .section-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.mission-label {
  font-family: var(--font-cond);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--red);
  margin-bottom: 40px;
}

/* ── CAROUSEL ── */
.carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.carousel-track-wrap {
  width: 100%;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.carousel-slide {
  min-width: 100%;
  padding: 48px 80px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
}
.slide-title {
  font-family: var(--font-cond);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.slide-body {
  color: var(--text);
  font-size: 18px;
  margin-bottom: 12px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #c8171e;
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: #ff3340; }
.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }
.carousel-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  overflow: hidden;
}
.carousel-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--border);
  animation: carouselProgress 12000ms linear forwards;
}
@keyframes carouselProgress {
  from { width: 0%; }
  to   { width: 100%; }
}
.carousel-tabs {
  display: flex;
  width: 100%;
  gap: 4px;
  margin-bottom: 16px;
}
.carousel-tab {
  flex: 1;
  padding: 14px 12px;
  background: #000;
  color: #555;
  border: none;
  cursor: pointer;
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.carousel-tab:hover { background: var(--mid); color: var(--white); }
.carousel-tab.active { background: var(--red); color: var(--white); }

/* ── WHY CHOOSE ── */
.why-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: center;
}
.why-label { line-height: 1.4; }
.why-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.why-item {
  padding: 18px 24px;
  background: var(--dark3);
  border-left: 4px solid var(--accent, #e63329);
  font-family: var(--font-cond);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 2px;
  transition: background 0.2s;
}
/* .why-item:hover { background: var(--mid); } */

/* ── CTA ── */
.cta {
  background-color: var(--dark3);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 105.73'><defs><style>.st0, .st1, .st2 { fill: none; } .st0, .st2 { stroke: %23fff; stroke-miterlimit: 10; } .st2 { stroke-linecap: round; } .st3 { display: none; } .st4 { opacity: .05; }</style></defs><rect class='st3' width='100' height='105.73'/><g class='st4'><polygon class='st0' points='50 105.73 100 80.8 100 24.93 100 24.93 50 0 0 24.93 0 80.8 50 105.73'/><polyline class='st2' points='0 24.93 50 49.86 100 24.93'/><line class='st2' x1='50' y1='105.73' x2='50' y2='49.86'/></g><rect class='st1' width='100' height='105.73'/></svg>");
  background-repeat: repeat;
  background-size: 60px 63.44px;
  display: flex;
  justify-content: center;
  padding: 80px 24px;
}
.cta-box {
  max-width: 700px;
  padding: 60px 48px;
  text-align: center;
  background: var(--dark);
  border-radius: 0.4em;
}
.cta-title {
  font-family: var(--font-cond);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.cta-desc {
  color: var(--text);
  font-size: 18px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.cta-maintenance {
  display: none;
  max-width: 700px;
  border: 1px solid var(--border);
  padding: 48px;
  text-align: center;
  background: var(--dark);
  border-radius: 0.4em;
}
.cta.is-maintenance .cta-box { display: none; }
.cta.is-maintenance .cta-maintenance { display: block; }
.cta-maintenance-title {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-maintenance-desc {
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

/* ── FOOTER ── */
.site-footer {
  background: #111;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  width: 70px;
  height: auto;
  flex-shrink: 0;
}
.footer-brand {
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 6px;
}
.footer-copy {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}
.footer-addr {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: flex-end;
}
.footer-nav a {
  font-size: 14px;
  color: #aaa;
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-nav a:hover { color: var(--white); }

/* ── NAV ANIMATION ── */
@keyframes navSlideIn {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0% 0); }
}
@keyframes navSlideOut {
  from { clip-path: inset(0 0 0% 0); }
  to   { clip-path: inset(0 0 100% 0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section-label { font-size: 12px; }
  .why-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .why-label { font-size: 18px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { justify-content: space-between; padding: 0 16px; gap: 10px; }

  /* Mobile nav open state */
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(20,20,20,0.92);
    backdrop-filter: blur(6px);
    padding: 24px 0;
    gap: 20px;
    z-index: 99;
  }
  .main-nav.is-open::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 0.5rem;
    background: #4a4a4a;
  }
  .main-nav.is-open:not(.is-closing) { animation: navSlideIn 0.28s ease forwards; }
  .main-nav.is-open.is-closing        { animation: navSlideOut 0.28s ease forwards; }
  .main-nav.is-open .lang-switch { align-self: center; margin-top: 16px; margin-bottom: 12px; }
  .main-nav.is-open .lang-btn { font-size: 16px; padding: 10px 20px; }
  .main-nav.is-open .nav-link {
    display: block;
    width: 100%;
    font-size: 20px;
    padding: 1em 0;
    border-radius: 0;
    text-align: center;
  }
  .main-nav.is-open .nav-pitch-btn {
    width: 90%;
    margin: 0 auto;
    border-radius: 8px;
  }

  .header-logos { gap: 15px; }
  .header-logos .logo-se img { height: 15px; }
  .header-logos .logo-col img { height: 25px; }

  .section-inner { padding: 60px 24px; }
  .cube-logo { width: 75%; }
  .cube-logo img { width: 100%; height: auto; }
  .about-content { flex-direction: column; }
  .about-text .btn { display: block; width: fit-content; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
  .about-actions { display: flex; flex-direction: column; align-items: center; }
  .about-actions .btn { margin: 0 !important; text-align: center; }
  .about-actions .btn + .btn { margin-top: 24px !important; }
  .about-divider { width: 100%; height: 4px; min-height: unset; }
  .carousel-slide { padding: 40px 24px; }
  .carousel { flex-direction: row; align-items: center; }
  .carousel-track-wrap { flex: 1; min-width: 0; margin-left: -14px; margin-right: -14px; }
  .carousel-btn {
    position: static;
    transform: none;
    width: 28px;
    height: 120px;
    flex-shrink: 0;
  }
  .carousel-prev { left: auto; }
  .carousel-next { right: auto; }
  .pc-only { display: none !important; }
  .slide-body { max-width: 600px; }
  .cta-box { padding: 40px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .hero-desc { font-size: 18px; max-width: 560px; }
  .slide-title { font-size: 26px; }
  .cta-title { font-size: 36px; }
}

/* ============================================================
   PITCH PAGE (shared hero/section styles with formtop page)
   ============================================================ */

.ft-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 64px;
}
.ft-hpad {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Hero */
.ft-hero {
  margin-bottom: 48px;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ft-hero-inner { width: 100%; max-width: 768px; }
.ft-page-title {
  font-family: var(--font-cond);
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 24px;
}
.ft-hero-body {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--text);
}
.ft-hero-note { font-size: 14px; color: var(--text); }

/* Sections */
.ft-section { margin-bottom: 48px; }
.ft-section-title {
  font-family: var(--font-cond);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

/* Process steps */
.ft-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ft-process-card {
  background: #201f1f;
  padding: 32px;
  border: 2px solid #3a3a3a;
}
.ft-icon-box {
  width: 48px;
  height: 48px;
  background: var(--logo-red-a10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 24px;
}
.ft-card-title {
  font-family: var(--font-cond);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 12px;
}
.ft-card-body { font-size: 16px; line-height: 1.6; color: var(--text); }

/* Pitch pack banner */
.ft-pitch-pack {
  margin-bottom: 48px;
  background: var(--logo-red-a05);
  border: 2px solid var(--logo-red-a20);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.ft-pitch-pack-info { display: flex; align-items: center; gap: 24px; }
.ft-pitch-pack-icon {
  width: 64px;
  height: 64px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  flex-shrink: 0;
}
.ft-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 12px 28px;
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.ft-download-btn:hover { background: #c8171e; }
.ft-download-btn--disabled,
.ft-download-btn--disabled:hover {
  background: var(--mid);
  color: #888;
  cursor: not-allowed;
}

/* Pitch page responsive */
@media (max-width: 900px) {
  .ft-grid-3 { grid-template-columns: 1fr; }
  .ft-pitch-pack { flex-direction: column; align-items: center; }
}
@media (max-width: 768px) {
  .ft-main { padding: 80px 24px 48px; }
  .ft-hpad { padding-left: 24px; padding-right: 24px; }
  .ft-page-title { font-size: 32px; }
}
