/* ==========================================
   CXO Growth 2025 - Pitch Contest Teaser
   ========================================== */

/* CSS Variables */
:root {
  --color-bg-primary: #1a1a1a;
  --color-bg-secondary: #2d2d2d;
  --color-bg-card: #252525;
  --color-text-primary: #ffffff;
  --color-text-secondary: #cccccc;
  --color-text-muted: #888888;
  --color-accent: #e8847c;
  --color-accent-hover: #f09990;
  --gradient-rainbow: linear-gradient(
    90deg,
    #ff6b6b 0%,
    #ffa500 16%,
    #ffd700 32%,
    #98fb98 48%,
    #87ceeb 64%,
    #9370db 80%,
    #ff69b4 100%
  );
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   Header
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(26, 26, 26, 0.8) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.logo a:hover {
  opacity: 0.8;
}

.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo div {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  padding: 160px 24px 80px;
  text-align: center;
  background: radial-gradient(
      ellipse at center top,
      rgba(232, 132, 124, 0.15) 0%,
      transparent 50%
    ),
    var(--color-bg-primary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

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

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: var(--color-text-primary);
}

.rainbow-line {
  width: 200px;
  height: 4px;
  background: var(--gradient-rainbow);
  margin: 0 auto 32px;
  border-radius: 2px;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ==========================================
   Concept Section
   ========================================== */
.concept {
  padding: 80px 0;
  background: var(--color-bg-primary);
  position: relative;
}

.concept::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2));
}

.concept-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 48px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.concept-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-rainbow);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.concept-text {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 2;
  margin-bottom: 24px;
}

.concept-text:last-child {
  margin-bottom: 0;
}

.concept-highlight {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================
   Participants Section
   ========================================== */
.participants {
  padding: 80px 0 100px;
  background: var(--color-bg-secondary);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.rainbow-line-short {
  width: 80px;
  height: 3px;
  background: var(--gradient-rainbow);
  margin: 0 auto 60px;
  border-radius: 2px;
}

/* Cards Grid - 4 columns on desktop */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Card - Vertical Layout */
.card {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius);
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.card:hover::before {
  background: var(--gradient-rainbow);
}

/* Card Photo */
.card-photo {
  width: 140px;
  height: 140px;
  margin: 32px auto 24px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 3px solid var(--color-text-primary);
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card Info */
.card-info {
  padding: 0 24px 16px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text-primary);
}

.card-detail {
  margin-bottom: 12px;
}

.card-detail:first-of-type {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 60px;
}

.card-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.card-company {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  font-weight: 600;
}

.card-role {
  font-size: 1rem;
  font-weight: 600;
}

/* Card Play Button */
.card-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  margin: auto 16px 16px;
  background: rgb(131, 56, 51);
  border-radius: var(--border-radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.play-icon {
  font-size: 0.625rem;
}

/* ==========================================
   Event Info Section
   ========================================== */
.event-info {
  padding: 80px 0;
  background: var(--color-bg-primary);
}

.event-box {
  text-align: center;
  padding: 48px;
  background: var(--color-bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.event-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-rainbow);
}

.event-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.event-date {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.event-day {
  font-size: 0.5em;
  vertical-align: middle;
  color: var(--color-text-secondary);
}

.event-time {
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.event-venue {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  padding: 48px 0;
  background: var(--color-bg-secondary);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
  transition: var(--transition-fast);
}

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

.footer-copyright {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ==========================================
   Modal
   ========================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: var(--color-bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-normal);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--color-accent);
}

.modal-header {
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-role {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  background: rgba(232, 132, 124, 0.15);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.modal-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-company {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.video-container {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-bg-primary),
    var(--color-bg-secondary)
  );
}

.video-placeholder.hidden {
  display: none;
}

.placeholder-content {
  text-align: center;
  color: var(--color-text-muted);
}

.placeholder-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.placeholder-content p {
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.placeholder-path {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--color-accent);
  opacity: 0.7;
}

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

/* Large Desktop */
@media (max-width: 1200px) {
  .cards-grid {
    gap: 20px;
  }

  .card-photo {
    width: 120px;
    height: 120px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .card-photo {
    width: 130px;
    height: 130px;
  }
}

/* Tablet (smaller) */
@media (max-width: 768px) {
  .hero {
    padding: 140px 24px 60px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .participants {
    padding: 60px 0 80px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .rainbow-line-short {
    margin-bottom: 40px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .card-photo {
    width: 100px;
    height: 100px;
    margin: 24px auto 16px;
  }

  .card-photo-placeholder svg {
    width: 40px;
    height: 40px;
  }

  .card-info {
    padding: 0 16px 12px;
  }

  .card-name {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .card-detail {
    margin-bottom: 8px;
  }

  .card-company {
    font-size: 0.75rem;
  }

  .card-role {
    font-size: 0.8125rem;
  }

  .card-play {
    padding: 12px 16px;
    margin: 8px 12px 12px;
    font-size: 0.75rem;
  }

  .event-info {
    padding: 60px 0;
  }

  .event-box {
    padding: 32px 24px;
  }

  .modal-content {
    max-width: 100%;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-name {
    font-size: 1.25rem;
  }
}

/* Mobile */
@media (max-width: 540px) {
  .header-content {
    padding: 12px 16px;
  }

  .logo div {
    font-size: 1rem;
  }

  .logo img {
    width: 28px;
    height: 28px;
  }

  .hero {
    padding: 120px 16px 48px;
  }

  .hero-subtitle {
    font-size: 0.75rem;
  }

  .rainbow-line {
    width: 120px;
    margin-bottom: 24px;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .participants {
    padding: 48px 0 60px;
  }

  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .rainbow-line-short {
    margin-bottom: 32px;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .card-photo {
    width: 80px;
    height: 80px;
    margin: 20px auto 12px;
    border-width: 2px;
  }

  .card-photo-placeholder svg {
    width: 32px;
    height: 32px;
  }

  .card-info {
    padding: 0 12px 8px;
  }

  .card-name {
    font-size: 0.875rem;
    margin-bottom: 8px;
  }

  .card-label {
    font-size: 0.5rem;
    margin-bottom: 2px;
  }

  .card-detail {
    margin-bottom: 6px;
  }

  .card-company {
    font-size: 0.6875rem;
  }

  .card-role {
    font-size: 0.75rem;
  }

  .card-play {
    padding: 10px 12px;
    margin: 4px 10px 10px;
    font-size: 0.6875rem;
    gap: 4px;
  }

  .play-icon {
    font-size: 0.5rem;
  }

  .event-info {
    padding: 48px 0;
  }

  .event-box {
    padding: 24px 16px;
  }

  .event-date {
    font-size: 1.75rem;
  }

  .footer {
    padding: 32px 0;
  }

  .modal {
    padding: 16px;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    top: 12px;
    right: 12px;
    font-size: 1.25rem;
  }

  .modal-header {
    padding: 16px;
  }

  .modal-name {
    font-size: 1.125rem;
  }

  .modal-company {
    font-size: 0.8rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
