/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: #0f0f23;
  overflow-x: hidden;
  background: #0a0a0f;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Utility Classes */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #ff00d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: gradientShift 4s ease-in-out infinite;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.gradient-text::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #ff00d4 100%);
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 2px;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.28))
    drop-shadow(0 0 14px rgba(255, 0, 212, 0.22));
  animation: underlineGrow 1.8s ease-out 1s forwards;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes underlineGrow {
  to {
    transform: scaleX(1);
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #ff00d4 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: 1;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 212, 255, 0.5);
  animation-play-state: paused;
}

.btn-primary:active {
  transform: translateY(-2px) scale(0.98);
}

.btn-primary > * {
  position: relative;
  z-index: 2;
}

.btn-secondary {
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #ff00d4 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  position: relative;
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: 1;
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-secondary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 212, 255, 0.5);
  animation-play-state: paused;
}

.btn-secondary:active {
  transform: translateY(-2px) scale(0.98);
}

.btn-secondary > * {
  position: relative;
  z-index: 2;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(20px);
  position: relative;
}

.btn-outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 212, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: 1;
}

.btn-outline:hover::before {
  opacity: 1;
}

.btn-outline:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
}

.btn-outline:active {
  transform: translateY(-2px) scale(0.98);
}

.btn-outline > * {
  position: relative;
  z-index: 2;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* Hero Section - CARTA ZERO inspired */
.hero {
  /* Use small-viewport units to avoid mobile address bar height issues */
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(
    135deg,
    #000000 0%,
    #0a0a0f 30%,
    #1a1a2e 70%,
    #000000 100%
  );
  overflow: hidden;
  padding-top: 70px;
}

/* Animated background grid */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  z-index: 1;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img-recruit/character.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      135deg,
      rgba(10, 10, 15, 0.8) 0%,
      rgba(26, 26, 46, 0.3) 30%,
      rgba(10, 10, 15, 0.7) 100%
    ),
    radial-gradient(
      ellipse at center,
      transparent 20%,
      rgba(10, 10, 15, 0.4) 70%,
      rgba(10, 10, 15, 0.8) 100%
    );
  z-index: 1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 30% 70%,
      rgba(0, 212, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(255, 0, 212, 0.1) 0%,
      transparent 50%
    ),
    linear-gradient(
      to right,
      rgba(10, 10, 15, 0.6) 0%,
      transparent 20%,
      transparent 80%,
      rgba(10, 10, 15, 0.6) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 10, 15, 0.4) 0%,
      transparent 20%,
      transparent 80%,
      rgba(10, 10, 15, 0.4) 100%
    );
  z-index: 2;
}

@keyframes backgroundPulse {
  0%,
  100% {
    background-size: cover;
  }
  50% {
    background-size: 102% 102%;
  }
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      2px 2px at 20px 30px,
      rgba(255, 255, 255, 0.3),
      transparent
    ),
    radial-gradient(
      2px 2px at 40px 70px,
      rgba(255, 255, 255, 0.2),
      transparent
    ),
    radial-gradient(
      1px 1px at 90px 40px,
      rgba(255, 255, 255, 0.4),
      transparent
    ),
    radial-gradient(
      1px 1px at 130px 80px,
      rgba(255, 255, 255, 0.3),
      transparent
    );
  background-repeat: repeat;
  background-size: 150px 100px;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0px) translateX(0px);
  }
  33% {
    transform: translateY(-10px) translateX(10px);
  }
  66% {
    transform: translateY(5px) translateX(-5px);
  }
  100% {
    transform: translateY(0px) translateX(0px);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes progressFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-text {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  padding: 60px 50px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: visible;
}

.hero-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.05),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.1),
    rgba(255, 0, 212, 0.05)
  );
  backdrop-filter: blur(20px);
  padding: 16px 24px;
  border-radius: 50px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: badgeGlow 2s infinite;
}

@keyframes badgeGlow {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.hero-title {
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: white;
  letter-spacing: -0.03em;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  position: relative;
}

.title-line {
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(20px);
  text-align: center;
}

.typing-line {
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.multiply-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: fadeInUp 1s ease-out 1s forwards;
}

.next-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: fadeInUp 1s ease-out 1.5s forwards;
}

.equals-symbol {
  color: #ffffff;
  font-weight: 900;
  font-size: 1.2em;
}

/* Evolution Container - CARTA ZERO inspired minimal design */
.evolution-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
  padding: 32px 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.current-state {
  display: flex;
  align-items: baseline;
  gap: 4px;
  position: relative;
}

.engineer-text {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* AI Fusion - コンセプト: AIとの融合を表現 */
.transformation-symbol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  margin: 0 40px;
}

.ai-fusion {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: linear-gradient(45deg, #00d4ff, #ff00d4);
  border-radius: 50%;
  animation: orbit 3s linear infinite;
}

.ai-particle:nth-child(1) {
  animation-delay: 0s;
  animation-duration: 3s;
}

.ai-particle:nth-child(2) {
  animation-delay: 1s;
  animation-duration: 3s;
}

.ai-particle:nth-child(3) {
  animation-delay: 2s;
  animation-duration: 3s;
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(25px) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) translateX(25px) rotate(-360deg);
    opacity: 0.3;
  }
}

.fusion-text {
  font-size: 0.8em;
  color: #ffaa00;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(45deg, #ffaa00, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.next-state {
  position: relative;
}

.next-state::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid rgba(0, 212, 255, 0.3);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  animation: arrowGlow 2s ease-in-out infinite;
}

@keyframes arrowGlow {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
  }
}

.subtitle {
  font-size: 1rem;
  opacity: 0.8;
  font-weight: 400;
  text-align: center;
  margin-top: 20px;
}

.typing-field {
  display: inline-block;
  color: #00d4ff;
  font-weight: 900;
  position: relative;
  white-space: nowrap;
}

.typing-field::after {
  content: "|";
  color: #00d4ff;
  animation: blink 1s infinite;
  margin-left: 2px;
}

.multiply-symbol {
  color: #ffffff;
  font-weight: 900;
  font-size: 1.2em;
}

.ai-label {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.hero-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: 0.01em;
  max-width: 450px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 2s forwards;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 400;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 2.5s forwards;
  text-align: center;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 3s forwards;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 3.5s forwards;
  justify-content: center;
  align-items: stretch;
}

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}

.hero-stats .stat-label {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-stats .stat-divider {
  width: clamp(60px, 12vw, 110px);
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0.85;
}

.hero-stats .stat-number {
  font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #ff00d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-showcase {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.tech-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.5s forwards;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateX(30px);
  animation: slideInRight 0.8s ease-out forwards;
}

.tech-item[data-delay="0"] {
  animation-delay: 1.8s;
}
.tech-item[data-delay="0.2"] {
  animation-delay: 2s;
}
.tech-item[data-delay="0.4"] {
  animation-delay: 2.2s;
}
.tech-item[data-delay="0.6"] {
  animation-delay: 2.4s;
}
.tech-item[data-delay="0.8"] {
  animation-delay: 2.6s;
}

.tech-label {
  min-width: 120px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
}

.tech-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.tech-progress {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff 0%, #ff00d4 100%);
  border-radius: 2px;
  position: relative;
  animation: progressFill 2s ease-out 3s forwards;
  transform: scaleX(0);
  transform-origin: left;
}

.tech-progress::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: shimmer 2s ease-in-out infinite;
}

.metrics-display {
  display: flex;
  gap: 20px;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 1s ease-out 3.5s forwards;
}

.metric-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #00d4ff;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.geometric-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    rgba(0, 212, 255, 0.1),
    rgba(255, 0, 212, 0.1)
  );
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 60px;
  height: 60px;
  top: 15%;
  right: 20%;
  animation-delay: 0s;
}

.shape-2 {
  width: 40px;
  height: 40px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  right: 30%;
  animation-delay: 4s;
}

.shape-4 {
  width: 30px;
  height: 30px;
  top: 40%;
  right: 5%;
  animation-delay: 6s;
}

.hero-main-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-circle {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  animation: rotate 20s linear infinite;
  z-index: 1;
}

.visual-circle::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #00d4ff;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.visual-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.1) 2px,
    transparent 2px
  );
  background-size: 25px 25px;
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  font-weight: 400;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  position: relative;
}

.features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(79, 70, 229, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(124, 58, 237, 0.06) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Desktop: keep all 3 feature cards on one row and reduce height so it fits in one view */
@media (min-width: 1024px) {
  .features {
    padding: 64px 0;
  }

  .features .section-header {
    margin-bottom: 28px;
  }

  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .feature-card {
    padding: 26px 20px;
  }

  .feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin-bottom: 16px;
    font-size: 1.6rem;
  }

  .feature-card h3 {
    font-size: 1.08rem;
    margin-bottom: 12px;
    line-height: 1.25;
  }

  .feature-card p {
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 0;
  }
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #00d4ff, #ff00d4, #ffaa00);
}

.feature-card:hover {
  transform: translateY(-12px) rotateX(5deg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #00d4ff, #ff00d4);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 2.6rem;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
  position: relative;
  z-index: 2;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

/* Desktop: prevent forced line breaks in feature headings (keep text, ignore <br>) */
.features .feature-card h3 br {
  display: none;
}

.feature-card p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.9rem;
  flex: 1;
}

.feature-highlight {
  display: inline-block;
  background: linear-gradient(135deg, #00d4ff, #ff00d4);
  color: white;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

/* Topics Section */
.topics {
  padding: 120px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
  position: relative;
}

.topics::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(124, 58, 237, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(245, 158, 11, 0.04) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.topic-card {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  padding: 32px 24px 24px 24px;
  border-radius: 16px;
  position: relative;
  transition: all 0.4s ease;
  border: 1px solid rgba(79, 70, 229, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.topic-card:hover {
  transform: translateY(-12px) rotateX(5deg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.topic-number {
  position: absolute;
  top: -12px;
  left: 24px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.topic-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.topic-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
  margin-top: 8px;
}

.topic-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
  flex: 1;
}

.topic-tag {
  display: inline-block;
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.topic-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  background: none;
  color: #4f46e5;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: auto;
  border-bottom: 1px solid transparent;
  position: relative;
}

.topic-detail-btn:hover {
  color: #7c3aed;
  text-decoration: none;
  border-bottom-color: #7c3aed;
}

.topic-detail-btn::after {
  content: "→";
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.topic-detail-btn:hover::after {
  transform: translateX(2px);
}

/* Career Section */
.career {
  padding: 100px 0;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 50%, #f8fafc 100%);
  position: relative;
}

.career::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(79, 70, 229, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(124, 58, 237, 0.04) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.career-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.school-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.school-image-container:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.school-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
  background: #ffffff;
}

.image-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.school-image-container:hover .image-overlay {
  opacity: 1;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  margin: 2% auto;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
  transition: color 0.3s ease;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close:hover {
  color: #000;
}

.modal-image {
  width: 100%;
  max-height: calc(90vh - 80px);
  border-radius: 10px;
  object-fit: contain;
}

.career-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.career-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.career-feature i {
  color: #4f46e5;
  font-size: 1.2rem;
}

.career-feature span {
  color: #1a1a1a;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
}

.career-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.career-link:hover {
  color: #7c3aed;
  transform: translateX(4px);
}

/* Stats Section */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #00d4ff, #ff00d4);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 212, 255, 0.2);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #00d4ff, #ff00d4);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #00d4ff, #ff00d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #00d4ff, #ff00d4, #ffaa00);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cta .btn-primary {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: none;
}

.cta .btn-primary::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
}

.cta .btn-secondary {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.15) 100%
  );
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
}

.cta .btn-secondary::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
}

.cta .btn-secondary:hover {
  animation-play-state: paused;
}

.cta .btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta .btn-outline::before {
  background: rgba(255, 255, 255, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-text {
    padding: 40px 28px;
  }

  .hero-visual {
    height: 320px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 5vw, 2.6rem);
  }

  .typing-field {
    font-size: 0.9em;
  }

  .multiply-line {
    gap: 8px;
  }

  .ai-label {
    font-size: 0.7em;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile/tablet: allow the intentional line breaks in headings */
  .features .feature-card h3 br {
    display: inline;
  }

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

  .career-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Touch devices (phones) sometimes report wider CSS widths; keep the compact "3 points" layout */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
  /* Features: fit 3 cards within one viewport feel */
  .features {
    padding: 44px 0;
  }

  .features .section-header {
    margin-bottom: 18px;
  }

  .features .section-title {
    font-size: 1.55rem;
    margin-bottom: 10px;
  }

  .features .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .feature-card {
    padding: 12px 10px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  }

  .feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    margin: 0 auto 8px;
    font-size: 1.05rem;
    box-shadow: 0 6px 18px rgba(0, 212, 255, 0.22);
  }

  .feature-card h3 {
    font-size: 0.78rem;
    margin-bottom: 6px;
    line-height: 1.25;
  }

  .feature-card p {
    font-size: 0.66rem;
    line-height: 1.25;
    margin-bottom: 0;
  }

  .feature-spacer {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    /* Mobile portrait: avoid overly tall hero area */
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 80px;
  }

  .hero-content {
    gap: 24px;
  }

  .hero-text {
    padding: 28px 22px;
  }

  .hero-bg {
    /* Keep the character visible on narrow screens */
    background-position: 70% center;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .typing-field {
    font-size: 0.8em;
  }

  .hero-stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 20px;
  }

  /* Mobile portrait: remove extra vertical length from the visual area */
  .hero-visual {
    display: none;
  }

  .hero-stats .stat {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    text-align: left;
  }

  .hero-stats .stat-divider {
    flex: 1 1 auto;
    width: auto;
    min-width: 42px;
  }

  .hero-stats .stat-label {
    font-size: 1.1rem;
    flex: 0 0 auto;
  }

  .hero-stats .stat-number {
    font-size: 1.05rem;
    flex: 0 0 auto;
    text-align: right;
  }

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

  .topics-grid {
    /* 2x2 layout to fit within one mobile viewport */
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Features: fit 3 cards within one mobile viewport (keep text, compress layout) */
  .features {
    padding: 44px 0;
  }

  .features .section-header {
    margin-bottom: 18px;
  }

  .features .section-title {
    font-size: 1.55rem;
    margin-bottom: 10px;
  }

  .features .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .feature-card {
    padding: 12px 10px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  }

  .feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    margin: 0 auto 8px;
    font-size: 1.05rem;
    box-shadow: 0 6px 18px rgba(0, 212, 255, 0.22);
  }

  .feature-card h3 {
    font-size: 0.78rem;
    margin-bottom: 6px;
    line-height: 1.25;
  }

  .feature-card p {
    font-size: 0.66rem;
    line-height: 1.25;
    margin-bottom: 0;
  }

  .feature-spacer {
    display: none;
  }

  /* Topics: match the "3 points" header sizing/spacing on mobile */
  .topics {
    padding: 44px 0;
  }

  .topics .section-header {
    margin-bottom: 18px;
  }

  .topics .section-title {
    font-size: 1.55rem;
    margin-bottom: 10px;
  }

  .topics .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .career .section-title {
    font-size: 1.55rem;
    margin-bottom: 10px;
  }

  .career .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  /* Topics cards: compact like "3 points" */
  .topic-card {
    padding: 22px 14px 12px 14px;
    border-radius: 14px;
  }

  .topic-number {
    top: -10px;
    left: 14px;
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .topic-content h3 {
    font-size: 0.95rem;
    line-height: 1.25;
    margin-bottom: 8px;
    margin-top: 6px;
  }

  .topic-content p {
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 0;
  }

  .topic-detail-btn {
    font-size: 0.78rem;
  }
}

/* Very small phones: keep 3-up layout but tighten a bit more */
@media (max-width: 360px) {
  .features {
    padding: 40px 0;
  }

  .features .section-title {
    font-size: 1.4rem;
  }

  .features .section-subtitle {
    font-size: 0.9rem;
  }

  .features-grid {
    gap: 8px;
  }

  .feature-card {
    padding: 10px 8px;
  }

  .feature-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 6px;
    font-size: 0.95rem;
  }

  .feature-card h3 {
    font-size: 0.72rem;
  }

  .feature-card p {
    font-size: 0.62rem;
  }

  /* Topics: match the "3 points" header sizing/spacing on very small phones */
  .topics {
    padding: 40px 0;
  }

  .topics .section-title {
    font-size: 1.4rem;
  }

  .topics .section-subtitle {
    font-size: 0.9rem;
  }

  .career .section-title {
    font-size: 1.4rem;
  }

  .career .section-subtitle {
    font-size: 0.9rem;
  }

  .topics-grid {
    gap: 8px;
  }

  .topic-card {
    padding: 20px 12px 10px 12px;
  }

  .topic-number {
    left: 12px;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .topic-content h3 {
    font-size: 0.88rem;
  }

  .topic-content p {
    font-size: 0.74rem;
  }

  .topic-detail-btn {
    font-size: 0.74rem;
  }
}

/* Mobile landscape / small-height screens: compress hero to avoid scroll */
@media (max-height: 500px) {
  .hero {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 80px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-text {
    padding: 28px 22px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    margin-bottom: 12px;
  }

  .hero-description {
    font-size: 0.82rem;
    margin-bottom: 16px;
    max-width: none;
  }

  .subtitle {
    margin-top: 12px;
    margin-bottom: 10px;
    font-size: 0.9rem;
  }

  .hero-visual {
    display: none;
  }
}

/* Smartphone landscape: keep "3 points" within one view by tightening spacing */
@media (max-height: 500px) and (max-width: 900px) {
  .features {
    padding: 34px 0;
  }

  .features .section-header {
    margin-bottom: 14px;
  }

  .features .section-title {
    font-size: 1.35rem;
    margin-bottom: 8px;
  }

  .features .section-subtitle {
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .feature-card {
    padding: 12px 10px;
    border-radius: 14px;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    margin: 0 auto 6px;
    font-size: 1rem;
  }

  .feature-card h3 {
    font-size: 0.76rem;
    margin-bottom: 6px;
    line-height: 1.2;
  }

  .feature-card p {
    font-size: 0.66rem;
    line-height: 1.22;
    margin-bottom: 0;
  }

  .feature-spacer {
    display: none;
  }

  /* Topics: match the "3 points" header sizing/spacing on smartphone landscape */
  .topics {
    padding: 34px 0;
  }

  .topics .section-header {
    margin-bottom: 14px;
  }

  .topics .section-title {
    font-size: 1.35rem;
    margin-bottom: 8px;
  }

  .topics .section-subtitle {
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .career .section-title {
    font-size: 1.35rem;
    margin-bottom: 8px;
  }

  .career .section-subtitle {
    font-size: 0.9rem;
    line-height: 1.25;
  }

  /* Landscape: show 4-up in one row, compact height */
  .topics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .topic-card {
    padding: 20px 12px 10px 12px;
    border-radius: 14px;
  }

  .topic-number {
    top: -10px;
    left: 12px;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .topic-content h3 {
    font-size: 0.9rem;
    line-height: 1.2;
    margin-bottom: 8px;
    margin-top: 6px;
  }

  .topic-content p {
    font-size: 0.74rem;
    line-height: 1.28;
    margin-bottom: 0;
  }

  .topic-detail-btn {
    font-size: 0.74rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* AI Tools Section */
.ai-tools-section {
  margin-top: 16px;
  text-align: center;
}

.tools-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 8px;
}

.ai-tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.ai-tool-item {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(79, 70, 229, 0.3);
  transition: all 0.3s ease;
  display: inline-block;
}

.ai-tool-item:hover {
  background: rgba(79, 70, 229, 0.2);
  transform: translateY(-1px);
}

/* ============================================
   AI Generated Notice Styles
   ============================================ */

/* Common styles for both versions */
.ai-notice {
  padding: 16px 0;
  text-align: center;
}

.ai-notice p {
  margin: 0;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ai-notice i {
  font-size: 1rem;
}

/* Version 1: Text Version (シンプルなテキスト) */

/* Version 2: Background Image Version (背景画像付き) */
.ai-notice-visual {
  position: relative;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  overflow: hidden;
}

.ai-notice-visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(139, 92, 246, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(79, 70, 229, 0.3) 0%,
      transparent 50%
    ),
    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.05'%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;
}

.ai-notice-visual p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ai-notice-visual i {
  color: #a5b4fc;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.8;
    text-shadow: 0 0 5px rgba(165, 180, 252, 0.5);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 15px rgba(165, 180, 252, 0.8);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .ai-notice p {
    font-size: 0.75rem;
    flex-direction: column;
    gap: 4px;
  }

  .ai-notice i {
    font-size: 1.2rem;
  }
}
/* Hero AI Notice - Bottom of hero section */
.hero-ai-notice {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 0;
  z-index: 10;
}

.ai-notice-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-ai-notice i {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
}

.ai-notice-label {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.ai-notice-message {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-weight: 400;
}

@media (max-width: 768px) {
  .hero-ai-notice {
    padding: 12px 0;
  }

  .ai-notice-content {
    flex-direction: column;
    gap: 6px;
  }

  .ai-notice-label {
    font-size: 0.8rem;
  }

  .ai-notice-message {
    font-size: 0.75rem;
    text-align: center;
  }
}
