:root {
	--primary-bg: #13111C;
	--secondary-bg: #1E1B2E;
	--accent: rgb(61, 106, 255);
	--text-clr: rgba(255, 255, 255, 0.7);
	--gradient: linear-gradient(90deg, #5f94ff, #0900ab);
}

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	cursor: none;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Shippori Mincho", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Serif", "Noto Sans JP", "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Kaku Gothic ProN", "Meiryo", "MS PGothic", "MS PMincho", "Tahoma", Geneva, sans-serif;
	background: var(--primary-bg);
	color: var(--text-clr);
	line-height: 1.6;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 10%;
  position: relative;
  overflow: hidden;
  gap: 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, var(--accent), transparent 70%);
  opacity: 0.1;
  filter: blur(100px);
  animation: pulse 8s ease-in-out infinite;
}

.hero__x {
	width: 50%;

}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  position: relative;
}

.floating__cards {
  flex: 1;
  position: relative;
  width: 500px;
  height: 500px;
  perspective: 1000px;
  display: grid;
  place-items: center;
}

.card {
  position: absolute;
  width: 250px;
  height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
  transform-style: preserve-3d;
}

.card:nth-child(1) {
  transform: translateX(-50%) translateY(-20%) rotate(-15deg);
  background-image: url('https://placewaifu.com/image/250/350');
  z-index: 1;
}

.card:nth-child(2) {
  background-image: url('https://placewaifu.com/image/251/350');
  z-index: 2;
}

.card:nth-child(3) {
  transform: translateX(50%) translateY(20%) rotate(15deg);
  background-image: url('https://placewaifu.com/image/252/350');
  z-index: 3;
}

.support__section {
	max-width: 1200px;
	margin: 4rem auto;
	padding: 2rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: start;
}

.support__content {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.support__content h2 {
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.faq__section {
	margin-top: 2rem;
}

.faq__item {
	background: rgba(255, 255, 255, 0.03);
	border-radius: 12px;
	margin-bottom: 1rem;
	overflow: hidden;
	transition: all 0.3s ease;
}

.faq__item:hover {
	background: rgba(255, 255, 255, 0.05);
}

.faq__question {
	padding: 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: white;
	font-weight: 500;
}

.faq__icon {
	width: 24px;
	height: 24px;
	position: relative;
	transition: transform 0.3s ease;
}

.faq__icon::before,
.faq__icon::after {
	content: '';
	position: absolute;
	background: var(--accent);
	border-radius: 2px;
}

.faq__icon::before {
	width: 2px;
	height: 16px;
	left: 11px;
	top: 4px;
}

.faq__icon::after {
	width: 16px;
	height: 2px;
	left: 4px;
	top: 11px;
}

.faq__answer {
	padding: 0 1.5rem;
	height: 0;
	overflow: hidden;
	transition: height 0.3s ease;
}

.faq__answer__content {
	padding-bottom: 1.5rem;
	color: var(--text-clr);
}

.faq__item.active {
	background: rgba(255, 255, 255, 0.05);
}

.chat__container {
	background: var(--secondary-bg);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.chat__header {
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.05);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.agent__info {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.agent__avatar img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.agent__status h4 {
	color: white;
	font-size: 1rem;
}

.status {
	font-size: 0.8rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.status.online::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	background: #4CAF50;
	border-radius: 50%;
}

.chat__messages {
	height: 400px;
	overflow-y: auto;
	padding: 1.5rem;
}

.message {
	margin-bottom: 1rem;
	display: flex;
	flex-direction: column;
	opacity: 0;
	animation: messageAppear 0.3s ease-out forwards;
}

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

.message.user {
	align-items: flex-end;
}

.message__content {
	max-width: 80%;
	padding: 1rem 1.2rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	position: relative;
}

.message.user .message__content {
	background: var(--accent);
	color: white;
}

.chat__input {
	padding: 1.5rem;
	display: flex;
	gap: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.02);
}

.chat__input textarea {
	flex: 1;
	background: rgba(255, 255, 255, 0.05);
	border: none;
	border-radius: 8px;
	padding: 0.8rem;
	color: white;
	resize: none;
	height: 40px;
	line-height: 20px;
	transition: background 0.3s;
}

.chat__input textarea:focus {
	outline: none;
	background: rgba(255, 255, 255, 0.1);
}

.chat__input button {
	background: var(--accent);
	border: none;
	border-radius: 8px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s, background 0.3s;
}

.chat__input button:hover {
	transform: scale(1.05);
	background: rgb(81, 126, 255);
}

.chat__input button svg {
	width: 20px;
	height: 20px;
	stroke: white;
}

.typing {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0.5rem;
}

.typing span {
	width: 4px;
	height: 4px;
	background: var(--accent);
	border-radius: 50%;
	animation: typingDot 1s infinite;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
	0%, 100% { transform: translateY(0); opacity: 0.5; }
	50% { transform: translateY(-4px); opacity: 1; }
}

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

.faq__item {
	animation: fadeSlideIn 0.5s ease forwards;
	opacity: 0;
}

.faq__item:nth-child(1) { animation-delay: 0.1s; }
.faq__item:nth-child(2) { animation-delay: 0.2s; }
.faq__item:nth-child(3) { animation-delay: 0.3s; }
.faq__item:nth-child(4) { animation-delay: 0.4s; }
.faq__item:nth-child(5) { animation-delay: 0.5s; }

@media (max-width: 1024px) {
	.support__section {
			grid-template-columns: 1fr;
			gap: 2rem;
	}
}

@media (max-width: 768px) {
	.hero h1 {
			font-size: 2.5rem;
	}

	nav ul {
			gap: 1rem;
	}
}