/* Base */
:root {
	--bg: #0b0f17;
	--bg-elev: #121826;
	--text: #e8eefc;
	--muted: #a0acc0;
	--accent: #7cdb6a;
	--primary: #7cdb6a;
	--primary-ink: #0b0f17;
	--border: #243047;
	--live: #ff3b3b;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	line-height: 1.5;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }
/* Offset for sticky header */
.twitter-section, .chart-section { scroll-margin-top: 88px; }

.container {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(11, 15, 23, 0.8);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; letter-spacing: 0.5px; display: inline-flex; align-items: center; height: 40px; }
.brand img { height: 40px; width: 40px; display: block; border-radius: 50%; border: 1px solid var(--border); object-fit: cover; }
.brand .brand-name { margin-left: 10px; font-weight: 800; color: var(--text); text-decoration: none; }

/* Burger Menu */
.burger-menu {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 30px;
	height: 30px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 60;
}

.burger-line {
	width: 100%;
	height: 3px;
	background: var(--text);
	border-radius: 2px;
	transition: all 0.3s ease;
	transform-origin: center;
}

.burger-menu.active .burger-line:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
	opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation */
.nav {
	display: flex;
	align-items: center;
}

.nav a { margin-left: 12px; }
.nav .nav-link { color: var(--text); text-decoration: none; border: 1px solid transparent; padding: 8px 10px; border-radius: 8px; }
.nav .nav-link:hover { border-color: var(--border); }

/* Live bar */
.live-bar { border-bottom: 1px solid var(--border); background: rgba(18,24,38,0.6); }
.live-bar .container { display: flex; align-items: center; gap: 12px; padding: 10px 20px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: 0.5px; }
.live-dot { width: 10px; height: 10px; background: var(--live); border-radius: 50%; box-shadow: 0 0 0 0 rgba(255,59,59,0.7); animation: pulse 1.6s infinite; }
.live-sub { color: var(--muted); font-size: 14px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,59,0.6); } 70% { box-shadow: 0 0 0 10px rgba(255,59,59,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); } }

/* Hero */
.hero {
	padding: 80px 0 96px;
	background: radial-gradient(1200px 600px at 20% -10%, #20304b55, transparent 60%),
		radial-gradient(900px 500px at 110% 10%, #2a3c5f55, transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hero-col.left { }
.hero-col.right { display: flex; justify-content: center; }
.hero-image { width: 100%; max-width: 540px; aspect-ratio: 16 / 11; border-radius: 24px; border: 1px solid var(--border); object-fit: cover; background: transparent; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-title { font-size: 56px; margin: 0 0 10px; line-height: 1.1; }
.accent { color: var(--accent); }
.hero-sub { color: var(--muted); margin: 0 0 24px; }

.token-wrap { margin-top: 6px; color: var(--muted); font-size: 14px; }
.token-label { display: inline-block; margin-right: 6px; color: var(--text); font-weight: 600; }
.token-value { user-select: all; word-break: break-all; display: inline-block; padding: 6px 10px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; }

.cta-row { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Social icon buttons */
.social-links { margin-top: 14px; display: flex; gap: 10px; justify-content: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--bg-elev); border: 1px solid var(--accent); color: var(--text); transition: transform 120ms ease, filter 120ms ease, border-color 120ms ease; }
.icon-btn:hover { transform: translateY(-1px); filter: brightness(1.05); border-color: #9ae58a; }
.icon-btn img, .icon-btn svg { width: 28px; height: 28px; }

/* GIF Section */
.gif-section {
	position: relative;
	width: 100%;
	height: 420px;
	background: url('b8d659c3af41e33bcc9bcebb057ad47d39da3401925d2018485a903b44e3eaa5.gif') center center / cover no-repeat;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	overflow: hidden;
}
.gif-section .gif-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11,15,23,0.25), rgba(11,15,23,0.35));
}

/* About Section */
.about-section { padding: 80px 0; border-bottom: 1px solid var(--border); }
.about-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.about-col.left { }
.about-col.right { display: flex; justify-content: center; }
.about-title { font-size: 32px; margin: 0 0 20px; color: var(--text); }
.about-content p { color: var(--muted); margin: 0 0 16px; line-height: 1.6; }
.about-content p:last-child { margin-bottom: 0; }
.about-image-placeholder { width: 100%; max-width: 400px; }
.about-image { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); object-fit: cover; }

/* Twitter Section */
.twitter-section { padding: 40px 0; border-top: 1px solid var(--border); }
.twitter-headrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.twitter-embed-wrap { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg-elev); padding: 12px; }
.tweets-grid { column-count: 3; column-gap: 16px; margin-top: 16px; }
.tweets-grid .tweet-card { break-inside: avoid; margin-bottom: 16px; }
.tweets-grid .tweet-card { border: none; border-radius: 0; overflow: visible; background: transparent; padding: 0; }
.tweets-grid .tweet-card .tweet-embed { display: block; width: 100%; background: transparent; }
.twitter-heading { margin: 0 0 8px; font-size: 24px; }
.twitter-sub { margin: 0 0 16px; color: var(--muted); }
.twitter-blue { background: #1d9bf0; color: white; border-color: transparent; font-weight: 700; }
.twitter-blue:hover { filter: brightness(1.05); }

/* Buttons */
.btn { display: inline-block; border-radius: 10px; border: 1px solid var(--border); padding: 10px 14px; text-decoration: none; color: var(--text); transition: transform 120ms ease, background 120ms ease, border-color 120ms ease; }
.btn:hover { transform: translateY(-1px); border-color: #2e3b58; }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: transparent; font-weight: 700; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn.large { padding: 14px 18px; }

/* Chart */
.chart-section { padding: 40px 0 80px; }
.section-title { margin: 0 0 6px; font-size: 28px; }
.section-sub { margin: 0 0 16px; color: var(--muted); }
.chart-frame-wrap { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg-elev); }
.chart-frame-wrap iframe { width: 100%; height: 620px; display: block; background: var(--bg-elev); }

/* Copy CA Button */
.copy-ca-btn { 
	display: inline-flex; 
	align-items: center; 
	gap: 8px; 
	background: var(--bg-elev); 
	border: 1px solid var(--accent); 
	color: var(--accent); 
	font-weight: 600; 
	white-space: nowrap;
	transition: all 120ms ease;
}
.copy-ca-btn:hover { 
	background: var(--accent); 
	color: var(--primary-ink); 
	transform: translateY(-1px); 
}
.copy-icon { font-size: 16px; }
.copy-text { font-size: 14px; }

/* Backstory Video Popup */
.backstory-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.backstory-popup.show {
	opacity: 1;
	visibility: visible;
}

.popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.popup-header {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	position: relative;
}

.popup-title {
	color: white;
	font-size: 28px;
	font-weight: 800;
	text-align: center;
	margin: 0;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
	letter-spacing: 1px;
}

.popup-content {
	position: relative;
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 24px;
	max-width: 600px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.backstory-popup.show .popup-content {
	transform: scale(1);
}

.popup-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 50%;
	color: var(--text);
	font-size: 20px;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	z-index: 10;
}

.popup-close:hover {
	background: var(--border);
	transform: scale(1.1);
}

.video-container {
	width: 100%;
	margin-bottom: 20px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--bg);
}

.backstory-video {
	width: 100%;
	height: auto;
	max-height: 400px;
	display: block;
}

.popup-text h3 {
	margin: 0 0 12px;
	font-size: 24px;
	color: var(--text);
	text-align: center;
}

.popup-text p {
	margin: 0 0 20px 0;
	color: var(--muted);
	text-align: center;
	line-height: 1.6;
}

.popup-button-container {
	text-align: center;
	margin-top: 20px;
}

.live-indicator {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 8px 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	font-size: 14px;
	position: absolute;
	left: 0;
	top: 0;
}

.live-dot-popup {
	width: 6px;
	height: 6px;
	background: var(--live);
	border-radius: 50%;
	animation: livePulse 1.5s infinite;
}

.live-text {
	color: var(--live);
	font-size: 14px;
	text-transform: uppercase;
}

.popup-live-btn {
	display: inline-flex;
	align-items: center;
	font-size: 16px;
	padding: 12px 20px;
	text-decoration: none;
}

@keyframes livePulse {
	0% { 
		opacity: 1; 
		box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7);
	}
	70% { 
		box-shadow: 0 0 0 6px rgba(255, 59, 59, 0);
	}
	100% { 
		box-shadow: 0 0 0 0 rgba(255, 59, 59, 0);
	}
}

/* Blur effect for background when popup is open */
body.popup-open {
	overflow: hidden;
}

body.popup-open .site-header,
body.popup-open .live-bar,
body.popup-open .hero,
body.popup-open .gif-section,
body.popup-open .about-section,
body.popup-open .twitter-section,
body.popup-open .chart-section,
body.popup-open .site-footer {
	filter: blur(4px);
	transition: filter 0.3s ease;
}

/* Notification */
.notification-container {
	position: fixed;
	top: 80px;
	right: 20px;
	z-index: 1000;
	pointer-events: none;
}
.notification {
	background: var(--bg-elev);
	border: 1px solid var(--accent);
	border-radius: 12px;
	padding: 12px 16px;
	margin-bottom: 8px;
	color: var(--accent);
	font-weight: 600;
	font-size: 14px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	transform: translateX(100%);
	opacity: 0;
	transition: all 300ms ease;
	pointer-events: auto;
}
.notification.show {
	transform: translateX(0);
	opacity: 1;
}
.notification.success {
	border-color: var(--accent);
	color: var(--accent);
}

/* Footer */
.site-footer { padding: 24px 0; border-top: 1px solid var(--border); color: var(--muted); }
.fineprint { font-size: 12px; }

/* Responsive */
@media (max-width: 960px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-col.right { order: -1; }
	.tweets-grid { column-count: 2; }
	.about-inner { grid-template-columns: 1fr; gap: 32px; }
	.about-col.right { order: -1; }
}

@media (max-width: 768px) {
	/* Show burger menu on mobile */
	.burger-menu {
		display: flex;
	}
	
	/* Hide regular navigation on mobile */
	.nav {
		position: fixed;
		top: 64px;
		left: 0;
		width: 100%;
		height: calc(100vh - 64px);
		background: rgba(11, 15, 23, 0.95);
		backdrop-filter: saturate(140%) blur(10px);
		flex-direction: column;
		justify-content: flex-start;
		align-items: center;
		padding: 40px 20px;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		z-index: 55;
	}
	
	.nav.active {
		transform: translateX(0);
	}
	
	.nav a {
		margin: 0 0 20px 0;
		font-size: 18px;
		padding: 12px 20px;
		width: 100%;
		text-align: center;
		border-radius: 12px;
	}
	
	.nav .btn {
		margin-top: 20px;
		width: 100%;
		text-align: center;
		padding: 14px 20px;
		font-size: 16px;
	}
}

@media (max-width: 640px) {
	.hero-title { font-size: 48px; }
	.chart-frame-wrap iframe { height: 520px; }
	.gif-section { height: 150px; }
	.tweets-grid { column-count: 1; }
	.twitter-headrow { flex-direction: column; align-items: flex-start; }
	.notification-container { right: 10px; top: 70px; }
	.copy-ca-btn { padding: 8px 12px; }
	
	/* Mobile popup adjustments */
	.popup-content {
		width: 95%;
		padding: 20px;
		max-height: 85vh;
	}
	
	.popup-text h3 {
		font-size: 20px;
	}
	
	.popup-text p {
		font-size: 14px;
	}
	
	.backstory-video {
		max-height: 250px;
	}
} 