:root {
	--bg: #090714;
	--bg-soft: #130d26;
	--panel: rgba(18, 16, 34, 0.86);
	--panel-strong: rgba(21, 17, 37, 0.95);
	--line: rgba(255, 255, 255, 0.09);
	--text: #f5f4ff;
	--muted: #b9b3d3;
	--accent: #ff4f8b;
	--accent-2: #ff8f3f;
	--accent-3: #7b61ff;
	--success: #9bf796;
	--shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
	--radius-xl: 32px;
	--radius-lg: 24px;
	--radius-md: 18px;
	--radius-sm: 14px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	font-family: "Manrope", sans-serif;
	background:
		radial-gradient(circle at top left, rgba(255, 79, 139, 0.24), transparent 28%),
		radial-gradient(circle at top right, rgba(123, 97, 255, 0.2), transparent 24%),
		radial-gradient(circle at bottom center, rgba(255, 143, 63, 0.18), transparent 32%),
		linear-gradient(180deg, #080610 0%, #120a21 45%, #090714 100%);
	color: var(--text);
	padding: 24px;
}

button,
input,
audio,
video {
	font: inherit;
}

button {
	border: 0;
	background: none;
}

a {
	color: inherit;
	text-decoration: none;
}

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

.app-shell {
	width: min(1280px, 100%);
	margin: 0 auto;
	display: grid;
	gap: 24px;
}

.topbar,
.hero-card,
.stories-panel,
.panel-card,
.feed-panel {
	border: 1px solid var(--line);
	background: var(--panel);
	backdrop-filter: blur(16px);
	box-shadow: var(--shadow);
	border-radius: var(--radius-xl);
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 24px;
	position: sticky;
	top: 14px;
	z-index: 5;
}

.brand-mark {
	display: flex;
	align-items: center;
	gap: 14px;
}

.brand-dot {
	width: 46px;
	height: 46px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
	box-shadow: 0 14px 28px rgba(255, 79, 139, 0.28);
	position: relative;
}

.brand-dot::before {
	content: "";
	position: absolute;
	inset: 11px;
	border-radius: 10px;
	border: 2px solid rgba(255, 255, 255, 0.72);
}

.eyebrow {
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-weight: 800;
	color: #ffb6d1;
	margin-bottom: 8px;
}

.brand-mark h1,
.hero-copy h2,
.panel-head h2,
.modal-topbar h2 {
	font-family: "Syne", sans-serif;
	font-weight: 700;
	line-height: 1.02;
}

.brand-mark h1 {
	font-size: clamp(1.35rem, 2vw, 2rem);
	max-width: 16ch;
}

.topbar-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.top-link,
.primary-pill,
.ghost-pill {
	padding: 12px 18px;
	border-radius: 999px;
	font-weight: 700;
	transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
	cursor: pointer;
	border: 1px solid transparent;
}

.top-link {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.08);
	color: var(--text);
}

.top-link:hover,
.primary-pill:hover,
.ghost-pill:hover,
.story-card:hover,
.capture-option:hover,
.controls .item:hover,
.close-full-modal:hover {
	transform: translateY(-1px);
}

.layout {
	display: grid;
	gap: 24px;
}

.hero-card {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
	gap: 24px;
	padding: 30px;
	position: relative;
	overflow: hidden;
}

.hero-card::after {
	content: "";
	position: absolute;
	right: -70px;
	top: -70px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 79, 139, 0.28), transparent 70%);
	filter: blur(8px);
}

.hero-copy,
.hero-preview,
.panel-card,
.feed-panel,
.story-card,
.modal-shell {
	position: relative;
	z-index: 1;
}

.hero-copy h2 {
	font-size: clamp(2rem, 4vw, 3.6rem);
	max-width: 11ch;
	margin-bottom: 14px;
}

.hero-copy p {
	max-width: 58ch;
	line-height: 1.7;
	color: var(--muted);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.primary-pill {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	box-shadow: 0 16px 28px rgba(255, 79, 139, 0.24);
}

.ghost-pill {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
	color: var(--text);
}

.hero-preview {
	display: grid;
	place-items: center;
}

.preview-phone {
	width: min(330px, 100%);
	aspect-ratio: 0.72;
	padding: 16px;
	border-radius: 36px;
	background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
	border: 1px solid rgba(255,255,255,0.16);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 28px 50px rgba(0,0,0,0.28);
}

.preview-screen {
	height: 100%;
	border-radius: 28px;
	padding: 18px;
	background:
		radial-gradient(circle at top, rgba(255,255,255,0.2), transparent 22%),
		linear-gradient(180deg, rgba(255, 79, 139, 0.96), rgba(255, 143, 63, 0.86) 48%, rgba(123, 97, 255, 0.95));
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 18px;
}

.preview-story,
.preview-reel,
.preview-strip {
	border-radius: 22px;
	background: rgba(255,255,255,0.18);
	border: 1px solid rgba(255,255,255,0.22);
}

.preview-story {
	height: 80px;
}

.preview-reel {
	min-height: 220px;
	background: linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0.08));
}

.preview-strip {
	height: 66px;
}

.stories-panel {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	padding: 22px;
}

.story-card {
	border-radius: 24px;
	padding: 20px 16px;
	background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
	border: 1px solid rgba(255,255,255,0.1);
	color: var(--text);
	display: grid;
	justify-items: center;
	gap: 10px;
	text-align: center;
	cursor: pointer;
	transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.story-card strong {
	font-size: 1rem;
}

.story-card small {
	color: var(--muted);
	font-size: 0.84rem;
}

.story-ring {
	width: 86px;
	height: 86px;
	padding: 3px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
	display: grid;
	place-items: center;
}

.story-ring img {
	filter: brightness(0) invert(1);
	background: rgba(13, 11, 24, 0.88);
	border-radius: 50%;
	padding: 20px;
	width: 100%;
	height: 100%;
}

.story-card.is-active,
.capture-option.is-active {
	border-color: rgba(255, 143, 63, 0.52);
	background: linear-gradient(180deg, rgba(255,79,139,0.14), rgba(255,255,255,0.05));
}

.dashboard-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
	gap: 24px;
}

.panel-card,
.feed-panel {
	padding: 26px;
}

.panel-card-accent {
	background: linear-gradient(180deg, rgba(255, 79, 139, 0.08), rgba(21, 17, 37, 0.95));
}

.panel-card-soft {
	background: linear-gradient(180deg, rgba(123, 97, 255, 0.09), rgba(21, 17, 37, 0.95));
}

.panel-head {
	margin-bottom: 20px;
}

.panel-head-inline {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: end;
}

.panel-head h2 {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.capture-grid,
.feature-list,
.mini-stats,
.content {
	display: grid;
	gap: 14px;
}

.capture-option {
	width: 100%;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	padding: 18px;
	border-radius: 22px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.08);
	color: var(--text);
	cursor: pointer;
	text-align: left;
	transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.capture-option img {
	width: 56px;
	height: 56px;
	padding: 14px;
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(255,79,139,0.22), rgba(123,97,255,0.22));
	filter: brightness(0) invert(1);
}

.capture-option strong {
	display: block;
	font-size: 1rem;
	margin-bottom: 4px;
}

.capture-option span,
.feed-copy,
.feature-list li,
.mini-stats span {
	color: var(--muted);
	line-height: 1.65;
}

.feature-list {
	padding-left: 18px;
}

.feature-list li + li {
	margin-top: 8px;
}

.mini-stats {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 20px;
}

.mini-stats div {
	padding: 16px;
	border-radius: 18px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.08);
}

.mini-stats strong {
	display: block;
	margin-top: 6px;
	font-size: 0.98rem;
}

.feed-panel .content {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	min-height: 220px;
	align-items: start;
}

.content.empty-feed::before {
	content: attr(data-empty-text);
	grid-column: 1 / -1;
	padding: 34px;
	border-radius: 24px;
	border: 1px dashed rgba(255,255,255,0.14);
	background: rgba(255,255,255,0.04);
	color: var(--muted);
	text-align: center;
	line-height: 1.7;
}

.box {
	padding: 12px;
	border-radius: 26px;
	background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
	border: 1px solid rgba(255,255,255,0.08);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
	backdrop-filter: blur(14px);
}

.box video,
.box audio,
.box img {
	width: 100%;
	border-radius: 20px;
	outline: 0;
	background: #000;
}

.full-modal {
	position: fixed;
	inset: 0;
	padding: 28px;
	background: rgba(6, 4, 14, 0.84);
	backdrop-filter: blur(16px);
	display: grid;
	place-items: center;
	z-index: 12;
}

.full-modal-hide {
	display: none;
}

.modal {
	width: min(980px, 100%);
	max-height: calc(100vh - 56px);
	overflow: auto;
	border-radius: 34px;
	border: 1px solid rgba(255,255,255,0.12);
	background: linear-gradient(180deg, rgba(22,18,39,0.98), rgba(10,8,19,0.98));
	box-shadow: 0 32px 70px rgba(0,0,0,0.4);
	padding: 14px;
	position: relative;
}

.modal-hide {
	display: none;
}

.modal-shell {
	position: relative;
	border-radius: 26px;
	overflow: hidden;
	background: #09070f;
	min-height: 580px;
	display: grid;
}

.modal-shell video,
.modal-shell audio {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #000;
}

.modal-shell-audio {
	min-height: 420px;
	align-items: center;
	padding-bottom: 112px;
	background:
		radial-gradient(circle at top, rgba(255,79,139,0.16), transparent 28%),
		linear-gradient(180deg, #110b1e, #09070f);
}

.audio-stage {
	min-height: 320px;
	display: grid;
	place-items: center;
	gap: 18px;
	padding: 32px;
}

.rotate_user {
	transform: rotateY(180deg);
}

.modal-topbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: start;
	padding: 18px 18px 0;
	z-index: 2;
}

.modal-topbar h2 {
	font-size: clamp(1.4rem, 2.6vw, 2.2rem);
	max-width: 18ch;
	text-shadow: 0 10px 30px rgba(0,0,0,0.32);
}

.time {
	padding: 12px 16px;
	border-radius: 18px;
	font-weight: 800;
	font-size: 1.05rem;
	color: #fff;
	background: rgba(0,0,0,0.38);
	backdrop-filter: blur(12px);
	min-width: 88px;
	text-align: center;
}

.controls {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	padding: 14px;
	border-radius: 24px;
	background: rgba(7, 5, 14, 0.64);
	backdrop-filter: blur(16px);
	z-index: 2;
}

.controls .item {
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	border-radius: 18px;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.08);
	cursor: pointer;
	transition: transform 160ms ease, background 160ms ease;
}

.controls .item img {
	width: 24px;
	height: 24px;
	filter: brightness(0) invert(1);
}

.controls .capture-main {
	width: 72px;
	height: 72px;
	border-radius: 24px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	box-shadow: 0 18px 28px rgba(255, 79, 139, 0.32);
}

.controls .js-media-play-pause {
	display: none;
}

.voice {
	width: 120px;
	height: 120px;
	padding: 26px;
	border-radius: 34px;
	background: linear-gradient(135deg, rgba(255,79,139,0.18), rgba(123,97,255,0.18));
	filter: brightness(0) invert(1);
}

.close-full-modal {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 56px;
	height: 56px;
	border-radius: 18px;
	display: grid;
	place-items: center;
	font-size: 2rem;
	color: #fff;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.12);
	cursor: pointer;
	z-index: 20;
}

@media (max-width: 980px) {
	body {
		padding: 16px;
	}

	.hero-card,
	.dashboard-grid,
	.stories-panel {
		grid-template-columns: 1fr;
	}

	.panel-head-inline,
	.topbar {
		flex-direction: column;
		align-items: start;
	}
}

@media (max-width: 720px) {
	.topbar,
	.hero-card,
	.stories-panel,
	.panel-card,
	.feed-panel {
		padding: 18px;
		border-radius: 24px;
	}

	.hero-copy h2 {
		font-size: 2rem;
	}

	.brand-mark h1 {
		max-width: none;
	}

	.topbar-actions,
	.hero-actions {
		width: 100%;
	}

	.top-link,
	.primary-pill,
	.ghost-pill {
		width: 100%;
		text-align: center;
	}

	.stories-panel {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.full-modal {
		padding: 12px;
	}

	.modal {
		padding: 10px;
		border-radius: 24px;
	}

	.modal-shell {
		min-height: 70vh;
	}

	.modal-topbar {
		flex-direction: column;
	}

	.controls {
		left: 10px;
		right: 10px;
		bottom: 10px;
		padding: 10px;
		gap: 8px;
	}

	.controls .item {
		width: 48px;
		height: 48px;
	}

	.controls .capture-main {
		width: 62px;
		height: 62px;
	}

	.close-full-modal {
		top: 10px;
		right: 10px;
	}
}
