/* Base tokens */
:root {
	--color-bg: #FDF8F2;
	--color-surface: #ffffff;
	--color-text: #0b1221;
	--color-muted: #6a7280;
	--color-primary: #c0e1f7; /* button */
	--color-primary-hover: #a9d6f4;
	--radius-lg: 20px;
	--radius-md: 14px;
	--radius-sm: 10px;
	--shadow-lg: 0 30px 60px rgba(11, 18, 33, 0.08), 0 16px 24px rgba(11, 18, 33, 0.04);
	--shadow-md: 0 14px 30px rgba(11, 18, 33, 0.08), 0 6px 12px rgba(11, 18, 33, 0.04);
	--container-max: 1200px;
}

/* CSS Reset (minimal) */
* { box-sizing: border-box; }

/* Prevent layout shift from scrollbar appearing/disappearing */
html {
	scrollbar-gutter: stable;
	scroll-behavior: smooth;
}

/* Fallback for browsers that don't support scrollbar-gutter */
@supports not (scrollbar-gutter: stable) {
	html {
		overflow-y: scroll;
	}
}

html, body { height: 100%; }
body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.page { display: flex; flex-direction: column; }

/* Header */
.site-header { 
	width: 100%; 
	padding: 16px 20px; 
	position: fixed; 
	top: 0;
	left: 0;
	z-index: 100; 
	background: transparent;
	transition: opacity 0.3s ease, background 0.3s ease;
}

.site-header.header-scrolled {
	background: var(--color-bg);
}

.site-header.header-hidden {
	opacity: 0;
	pointer-events: none;
}
.header-inner {
	max-width: var(--container-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-name {
	font-family: "Karla", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-weight: 700;
	font-size: 2rem; /* 32px base */
	letter-spacing: 1.5px;
	color: var(--color-text);
}

.header-right { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.nav-link { 
	color: var(--color-text); 
	text-decoration: none; 
	font-weight: 500; 
	position: relative;
	display: inline-block;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--color-text);
	transition: width 0.3s ease;
}

.nav-link:hover::after {
	width: 100%;
}

.nav-link:not(:hover)::after {
	width: 0;
	left: auto;
	right: 0;
	transition: width 0.3s ease;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 30px;
	height: 24px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 110;
	position: relative;
	box-sizing: content-box;
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
	transform: translateY(10.5px) rotate(45deg);
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
	transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
	display: none;
	position: fixed;
	top: 72px;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--color-bg);
	z-index: 99;
	opacity: 0;
	transform: translateY(-20px);
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.mobile-nav {
	display: flex;
	flex-direction: column;
	padding: 40px 20px;
	gap: 24px;
}

.mobile-nav-link {
	color: var(--color-text);
	text-decoration: none;
	font-weight: 500;
	font-size: 1.25rem;
	padding: 12px 0;
	border-bottom: 1px solid rgba(11, 18, 33, 0.1);
}

.mobile-cta {
	margin-top: 20px;
	text-align: center;
	padding: 14px 24px !important;
	font-size: 1rem !important;
}

.btn-sm { padding: 10px 16px; font-size: 15px; }

/* Header responsive styles */
@media (max-width: 768px) {
	.site-header {
		padding: 16px 24px;
	}
	
	.main-nav {
		display: none;
	}
	
	.header-cta {
		display: none !important;
	}
	
	.mobile-menu-toggle {
		display: flex;
	}
	
	.mobile-menu {
		display: block;
	}
	
	.brand-name {
		display: none;
	}
	
	.video-section {
		min-height: 0 !important;
		height: auto !important;
		display: block !important;
		padding: 0 20px 20px;
	}
	
	.video-wrapper {
		height: auto !important;
		display: block !important;
		position: relative;
	}
	
	.demo-video {
		display: block;
		width: 100%;
		height: auto;
	}
}

/* Hero */
.hero {
	width: 100%;
	height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 40px;
	padding-top: 70px; /* Account for fixed header */
}

.hero-inner {
	max-width: var(--container-max);
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.hero-left { 
	max-width: 580px;
}

.hero-title {
	font-family: "Karla", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-weight: 700;
	font-size: 62px;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 40px;
	color: #0f0f0f;
}

.hero-title .word {
	display: inline-block;
	opacity: 0;
	transform: translateY(20px) scale(0.95);
	animation: wordZoomUp 0.6s ease forwards;
}

.hero-title .word:nth-child(1) { animation-delay: 0.1s; }
.hero-title .word:nth-child(2) { animation-delay: 0.2s; }
.hero-title .word:nth-child(3) { animation-delay: 0.35s; }
.hero-title .word:nth-child(4) { animation-delay: 0.45s; }
.hero-title .word:nth-child(5) { animation-delay: 0.6s; }
.hero-title .word:nth-child(6) { animation-delay: 0.7s; }

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

.hero-section {
	background: var(--color-surface);
	padding: 1.5rem;
	border-radius: 1rem;
}

.hero-section-title {
	font-family: "Karla", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-weight: 700;
	font-size: 28px;
	line-height: 1.2;
	margin: 0 0 12px;
	color: var(--color-text);
}

.hero-subtitle {
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-text);
	margin: 0 0 20px;
}

.hero-ctas { 
	display: flex; 
	gap: 16px; 
	align-items: center; 
	flex-wrap: wrap;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	border-radius: 999px;
	padding: 14px 28px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.08s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
	background: var(--color-primary);
	color: var(--color-text);
	box-shadow: 0 2px 8px rgba(192, 225, 247, 0.4);
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(192, 225, 247, 0.5); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
	background: transparent;
	color: var(--color-text);
	border: 2px solid var(--color-text);
}
.btn-secondary:hover { background: var(--color-text); color: var(--color-bg); }

.btn-arrow { margin-left: 4px; transition: transform 0.2s ease; }
.btn-secondary:hover .btn-arrow { transform: translateX(2px); }

.hero-right { display: flex; align-items: center; justify-content: center; }
.hero-image { max-width: 100%; height: auto; display: block; }

.sprite-container {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.sprite-container.fade-in {
	opacity: 1;
}

.sprite-container canvas {
	width: 512px;
	height: 512px;
	max-width: 100%;
}

/* Video Section */
.video-section {
	width: 100%;
	min-height: 60vh;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 0 40px 80px;
	margin-top: 0;
}

.video-wrapper {
	position: relative;
	width: 100%;
	max-width: var(--container-max);
	display: flex;
	align-items: center;
	justify-content: center;
}

.demo-video {
	width: 100%;
	height: auto;
	border-radius: 1rem;
	display: block;
	box-shadow: 0 20px 60px rgba(11, 18, 33, 0.15);
	cursor: pointer;
	border: 2px solid #000000;
}

.video-control {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, opacity 0.2s ease;
	z-index: 5;
}

.video-control:hover {
	transform: translate(-50%, -50%) scale(1.1);
}

.video-control:active {
	transform: translate(-50%, -50%) scale(0.95);
}

.video-control svg {
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* Features Section */
.features-section {
	width: 100%;
	padding: 60px 40px 60px;
	display: flex;
	justify-content: center;
	overflow: visible;
}

.features-grid {
	max-width: var(--container-max);
	width: 100%;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
	overflow: visible;
}

.feature-card {
	background: var(--color-surface);
	border-radius: 1rem;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	overflow: visible;
	position: relative;
	z-index: 1;
}

.feature-card:first-child {
	z-index: 10;
}

.feature-card:last-child {
	z-index: 1;
}

.feature-image {
	width: 100%;
	height: auto;
	border-radius: 0.75rem;
	margin-bottom: 20px;
	display: block;
}

/* Image Comparison Slider */
.image-comparison-slider {
	width: 100%;
	margin-bottom: 20px;
	position: relative;
	user-select: none;
	max-height: 600px;
	overflow: hidden;
	z-index: 1;
}

.comparison-image-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 0.75rem;
	cursor: pointer;
	max-height: 400px;
}

.comparison-image {
	width: 100%;
	height: auto;
	display: block;
	max-height: 400px;
	object-fit: cover;
}

.comparison-image-after {
	position: relative;
	z-index: 1;
	border-radius: 0.75rem;
}

.comparison-image-before-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 90%;
	height: 100%;
	overflow: hidden;
	z-index: 2;
	pointer-events: none;
}

.comparison-image-before {
	display: block;
	height: 100%;
	object-fit: cover;
	object-position: left center;
}

.comparison-slider-line {
	position: absolute;
	top: 0;
	left: 90%;
	width: 3px;
	height: 100%;
	background: white;
	z-index: 3;
	transform: translateX(-50%);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.comparison-slider-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	background: rgba(0, 0, 0, 0.8);
	border: 3px solid white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: grab;
	transition: transform 0.2s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.comparison-slider-handle:hover {
	transform: translate(-50%, -50%) scale(1.1);
}

.comparison-slider-handle:active {
	cursor: grabbing;
}

.slider-arrow {
	color: white;
	font-size: 18px;
	font-weight: bold;
	user-select: none;
	line-height: 1;
}

/* Subtle animation hint for the slider */
@keyframes sliderHint {
	0%, 100% {
		transform: translate(-50%, -50%) scale(1);
	}
	50% {
		transform: translate(-50%, -50%) scale(1.15);
	}
}

.comparison-image-wrapper:not(:hover) .comparison-slider-handle {
	animation: sliderHint 2s ease-in-out infinite;
	animation-delay: 1s;
}

/* Stacked Papers Effect */
.stacked-papers {
	position: relative;
	width: 100%;
	height: 400px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 50;
}

.paper {
	position: absolute;
	max-width: 75%;
	height: auto;
	max-height: 350px;
	object-fit: contain;
	border-radius: 0.5rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: transform 0.5s ease, box-shadow 0.3s ease, z-index 0s;
	cursor: pointer;
}

.paper-back {
	z-index: 51;
	transform: translateX(60%) rotate(10deg);
	opacity: 0.975;
}

.paper-middle {
	z-index: 52;
	transform: translateX(0%) rotate(0deg);
	opacity: 0.99;
}

.paper-front {
	z-index: 53;
	transform: translateX(-60%) rotate(-10deg);
}

.stacked-papers:hover .paper-back {
	transform: translateX(60%) rotate(10deg) translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stacked-papers:hover .paper-middle {
	transform: translateX(0%) rotate(0deg) translateY(-8px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stacked-papers:hover .paper-front {
	transform: translateX(-60%) rotate(-10deg) translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.paper:hover {
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.paper:active {
	transform: scale(0.98);
}

.feature-title {
	font-family: "Karla", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.2;
	margin: 0 0 12px;
	color: var(--color-text);
}

.feature-description {
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-text);
	margin: 0;
}

/* FAQ Section */
.faq-section {
	width: 100%;
	min-height: 85vh;
	padding: 120px 40px 20px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.faq-container {
	max-width: 900px;
	width: 100%;
}

.faq-heading {
	font-family: "Karla", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-weight: 700;
	font-size: 42px;
	line-height: 1.2;
	margin: 0 0 40px;
	color: var(--color-text);
}

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.faq-item {
	border-bottom: 1px solid rgba(11, 18, 33, 0.1);
}

.faq-item:first-child {
	border-top: 1px solid rgba(11, 18, 33, 0.1);
}

.faq-question {
	width: 100%;
	background: transparent;
	border: none;
	padding: 24px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	text-align: left;
	transition: opacity 0.2s ease;
}

.faq-question:hover {
	opacity: 0.7;
}

.faq-question-text {
	font-family: "Karla", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-weight: 600;
	font-size: 20px;
	line-height: 1.3;
	color: var(--color-text);
	padding-right: 20px;
}

.faq-icon {
	flex-shrink: 0;
	color: var(--color-text);
	transition: transform 0.3s ease;
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
}

.faq-answer-content {
	padding: 0 0 24px;
}

.faq-answer-content p {
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-muted);
	margin: 0;
}

/* CTA Section */
.cta-section {
	width: 100%;
	min-height: 50vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 40px 80px;
	position: relative;
	overflow: hidden;
}

.cta-container {
	max-width: var(--container-max);
	width: 100%;
	text-align: center;
	position: relative;
	background: #c0e1f7;
	padding: 3rem;
	border-radius: 1rem;
}

.cta-heading {
	font-family: "Karla", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-weight: 700;
	font-size: 48px;
	line-height: 1.15;
	margin: 0 0 20px;
	color: var(--color-text);
}

.cta-subtitle {
	font-size: 18px;
	line-height: 1.6;
	color: var(--color-text);
	margin: 0 0 32px;
}

.btn-lg {
	padding: 16px 36px;
	font-size: 18px;
}

/* Footer */
.site-footer {
	width: 100%;
	background: var(--color-surface);
	border-top: 1px solid rgba(11, 18, 33, 0.1);
	padding: 60px 40px 40px;
}

.footer-content {
	max-width: var(--container-max);
	margin: 0 auto;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2.5fr 1fr 1fr 1fr;
	column-gap: 48px;
	row-gap: 40px;
}

.footer-brand {
	max-width: 420px;
}

.footer-col {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer-brand {
	gap: 20px;
}

.footer-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	margin-bottom: 4px;
}

.footer-logo {
	height: 32px;
	width: auto;
}

.footer-brand-name {
	font-family: "Karla", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: 1px;
	color: var(--color-text);
}

.footer-about {
	font-size: 14px;
	line-height: 1.6;
	color: var(--color-muted);
	margin: 0;
}

.footer-copyright {
	font-size: 14px;
	color: var(--color-muted);
	margin: 0;
	padding-top: 8px;
}

.footer-heading {
	font-family: "Karla", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	margin: 0 0 8px;
	color: var(--color-text);
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer-links a {
	font-size: 14px;
	line-height: 1.4;
	color: var(--color-muted);
	text-decoration: none;
	transition: color 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.footer-links a:hover {
	color: var(--color-text);
}

.social-icon {
	flex-shrink: 0;
	color: var(--color-text);
}

/* Scroll Animations */
.animate-on-scroll {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animate-in {
	opacity: 1;
	transform: translateY(0);
}

.animate-fade {
	opacity: 0;
	transition: opacity 1s ease;
}

.animate-fade.animate-in {
	opacity: 1;
}

.animate-scale {
	opacity: 0;
	transform: scale(0.9);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-scale.animate-in {
	opacity: 1;
	transform: scale(1);
}

.animate-slide-left {
	opacity: 0;
	transform: translateX(-50px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.animate-slide-right {
	opacity: 0;
	transform: translateX(50px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Stagger animations for children */
.stagger-children > * {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.animate-in > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.animate-in > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.animate-in > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.animate-in > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.animate-in > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.animate-in > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.animate-in > * {
	opacity: 1;
	transform: translateY(0);
}

/* Accessibility: Focus visible styles */
*:focus {
	outline: none; /* Remove default outline */
}

*:focus-visible {
	outline: 3px solid #0b1221;
	outline-offset: 3px;
	border-radius: 4px;
}

/* Special focus state for large/CTA buttons only (grey on dark buttons) */
.btn-lg:focus-visible,
.subscribe-btn:focus-visible {
	outline: 3px solid #6a7280;
	outline-offset: 3px;
}

/* Skip navigation link */
.skip-nav {
	position: absolute;
	top: -100px;
	left: 0;
	background: #0b1221;
	color: #FDF8F2;
	padding: 12px 20px;
	text-decoration: none;
	font-weight: 600;
	z-index: 1000;
	border-radius: 0 0 8px 0;
	transition: top 0.2s ease;
}

.skip-nav:focus {
	top: 0;
	outline: 3px solid #c0e1f7;
	outline-offset: 2px;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Responsive */
@media (max-width: 1020px) {
	.hero-inner { grid-template-columns: 1fr; gap: 40px; }
	.hero-title { font-size: 48px; }
	.hero-section-title { font-size: 24px; }
	.hero { padding: 0 28px; padding-top: 70px; min-height: 90vh; height: auto; }
	.video-wrapper { width: 100%; }
	.video-section { padding: 0 28px 30px; }
	.features-grid { grid-template-columns: 1fr; gap: 28px; }
	.features-section { padding: 40px 28px 60px; }
	.faq-section { padding: 60px 28px; }
	.faq-heading { font-size: 36px; }
	.cta-heading { font-size: 38px; }
	.cta-section { padding: 60px 28px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}

/* Tablet-specific styles (769px to 1020px) */
@media (min-width: 769px) and (max-width: 1020px) {
	.hero-left {
		max-width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	
	.hero-ctas {
		justify-content: center;
	}
	
	.hero-title {
		margin-top: 80px;
		margin-bottom: 40px;
	}
	
	.hero-section {
		width: 100%;
		max-width: 580px;
	}
	
	.footer-brand { 
		grid-column: 1 / -1; 
	}
}

/* Mobile landscape (681px to 768px) */
@media (min-width: 681px) and (max-width: 768px) {
	.hero-left {
		max-width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	
	.hero-ctas {
		justify-content: center;
	}
	
	.hero-title {
		margin-top: 80px;
		margin-bottom: 40px;
	}
	
	.hero-section {
		width: 100%;
	}
}

@media (max-width: 680px) {
	.hero { padding: 0 20px; padding-top: 70px; }
	.hero-title { font-size: 38px; margin-top: 80px; margin-bottom: 40px; }
	.hero-section-title { font-size: 22px; }
	.hero-subtitle { font-size: 15px; }
	.brand-logo { height: 32px; }
	.brand-name { font-size: 1.5rem; }
	.main-nav { display: none; }
	.btn { padding: 12px 20px; font-size: 15px; }
	.video-wrapper { width: 100%; }
	.video-section { padding: 0 20px 20px; }
	.video-control svg { width: 50px; height: 50px; }
	.features-section { padding: 40px 20px; }
	.feature-title { font-size: 22px; }
	.feature-description { font-size: 15px; }
	
	/* Mobile-friendly slider handle */
	.comparison-slider-handle {
		width: 56px;
		height: 56px;
	}
	
	.comparison-slider-line {
		width: 4px;
	}
	
	.image-comparison-slider {
		max-height: 300px;
	}
	
	.comparison-image-wrapper {
		max-height: 300px;
	}
	
	.comparison-image {
		max-height: 300px;
	}
	
	/* Mobile stacked papers */
	.stacked-papers {
		height: 300px;
	}
	
	.paper {
		max-height: 300px;
		max-width: 80%;
	}
	
	.paper-back {
		transform: translateX(35%) rotate(8deg);
	}
	
	.paper-front {
		transform: translateX(-35%) rotate(-8deg);
	}
	
	.stacked-papers:hover .paper-back {
		transform: translateX(35%) rotate(8deg);
	}
	
	.stacked-papers:hover .paper-middle {
		transform: translateX(0%) rotate(0deg);
	}
	
	.stacked-papers:hover .paper-front {
		transform: translateX(-35%) rotate(-8deg);
	}
	
	.faq-section { padding: 40px 20px; min-height: auto; }
	.faq-heading { font-size: 32px; }
	.faq-question { padding: 20px 0; }
	.faq-question-text { font-size: 18px; }
	.faq-answer-content p { font-size: 15px; }
	.cta-section { padding: 40px 20px; min-height: auto; }
	.cta-heading { font-size: 32px; }
	.cta-subtitle { font-size: 16px; }
	.footer-grid { grid-template-columns: 1fr; }
	.site-footer { padding: 40px 20px 30px; }
	
	.hero-left {
		max-width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	
	.hero-ctas {
		justify-content: center;
	}
	
	.hero-section {
		width: 100%;
	}
}

/* Extra small screens (below 400px) - Homepage only */
@media (max-width: 400px) {
	/* Reduce padding to prevent content overflow */
	.hero { 
		padding: 0 16px; 
		padding-top: 70px; 
	}
	
	.hero-section {
		padding: 1.25rem; /* Reduced from 1.5rem */
	}
	
	/* Center button container so buttons stay centered when they wrap */
	.hero-ctas {
		justify-content: center;
	}
	
	/* Features section adjustments */
	.features-section { 
		padding: 40px 16px; 
	}
	
	.feature-card {
		padding: 1.25rem; /* Reduced from 1.5rem */
	}
}

/* Pricing Page Styles */
.pricing-page {
	background: var(--color-bg);
	min-height: 100vh;
}

.pricing-section {
	width: 100%;
	min-height: calc(100vh - 72px);
	padding: 120px 40px 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
}

.pricing-container {
	max-width: 1200px;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.pricing-header {
	text-align: center;
	margin-bottom: 16px;
}

.pricing-hero-image {
	width: 120px;
	height: 120px;
	margin: 0 auto 20px;
	display: block;
	object-fit: contain;
}

.pricing-title {
	font-family: "Karla", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-weight: 700;
	font-size: 48px;
	line-height: 1.2;
	margin: 0 0 16px;
	color: #111827;
}

.pricing-subtitle {
	font-size: 20px;
	line-height: 1.5;
	color: #6B7280;
	margin: 0;
}

/* Billing Toggle */
.billing-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0 auto 30px;
	background: #E5E7EB;
	border-radius: 999px;
	padding: 4px;
	max-width: fit-content;
}

.billing-option {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 20px;
	background: transparent;
	border: none;
	border-radius: 999px;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #6B7280;
	cursor: pointer;
	transition: all 0.2s ease;
}

.billing-option:hover {
	color: #374151;
}

.billing-option.active {
	background: white;
	color: #111827;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Pricing Grid */
.pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 0 auto;
	max-width: 100%;
}

/* Pricing Cards */
.pricing-card {
	background: var(--color-surface);
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

/* Featured Card (Premium) with Peach Glow */
.pricing-card.featured {
	border: 2px solid #FFCF9B;
	box-shadow: 
		0 10px 25px rgba(255, 207, 155, 0.3),
		inset 0 1px 0 rgba(255, 207, 155, 0.1),
		0 4px 12px rgba(255, 207, 155, 0.2);
	transform: scale(1.02);
}

.pricing-card.featured:hover {
	transform: scale(1.02) translateY(-2px);
	box-shadow: 
		0 12px 30px rgba(255, 207, 155, 0.35),
		inset 0 1px 0 rgba(255, 207, 155, 0.1),
		0 6px 16px rgba(255, 207, 155, 0.25);
}

.card-icon {
	flex-shrink: 0;
	margin-right: 12px;
}

.plan-character {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.plan-name {
	font-family: "Karla", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-weight: 700;
	font-size: 28px;
	line-height: 1.2;
	margin: 0 0 16px 0;
	color: #111827;
	width: 100%;
	text-align: left;
}

.plan-description {
	font-size: 13px;
	line-height: 1.5;
	color: #6B7280;
	margin: 0 0 10px 0;
	width: 100%;
	text-align: left;
}

.plan-price {
	display: flex;
	align-items: baseline;
	gap: 4px;
	margin: 0 0 16px 0;
	width: 100%;
}

.price-amount {
	font-family: "Karla", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-weight: 700;
	font-size: 40px;
	line-height: 1;
	color: #111827;
	display: inline-flex;
	align-items: baseline;
}

.price-number {
	display: inline-block;
	min-width: 1ch;
	text-align: left;
}

.price-period {
	font-size: 16px;
	font-weight: 500;
	color: #6B7280;
	transition: opacity 0.4s ease;
}

/* Features Divider and Header */
.features-divider {
	width: 100%;
	height: 1px;
	background: #e5e7eb;
	margin: 10px 0;
}

.features-header {
	font-weight: 600;
	font-size: 14px;
	margin: 12px 0;
	color: var(--color-text);
	width: 100%;
	text-align: left;
}

/* Feature List */
.feature-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.feature-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: #374151;
	text-align: left;
}

.check-icon {
	flex-shrink: 0;
	margin-top: 2px;
}

/* Subscribe Buttons */
.subscribe-btn {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	background: #1F2937;
	color: white;
	border: none;
	border-radius: 10px;
	font-family: "Poppins", sans-serif;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.08s ease;
	margin: 0 0 16px 0;
}

.subscribe-btn:hover {
	background: #111827;
	transform: translateY(-1px);
}

.subscribe-btn:active {
	transform: translateY(0);
}

.subscribe-btn.disabled {
	background: #E5E7EB;
	color: #9CA3AF;
	cursor: not-allowed;
	pointer-events: none;
}

/* Team CTA Card */
.pricing-team-cta {
	margin-top: 80px;
	width: 100%;
	display: flex;
	justify-content: center;
}

.team-cta-container {
	max-width: var(--container-max);
	width: 100%;
	text-align: center;
	position: relative;
	background: #c0e1f7;
	padding: 3rem;
	border-radius: 1rem;
}

.team-cta-heading {
	font-family: "Karla", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-weight: 700;
	font-size: 44px;
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
	color: var(--color-text);
}

.team-cta-subtitle {
	font-size: 20px;
	line-height: 1.6;
	color: var(--color-text);
	margin: 0 0 2rem;
}

/* CTA Button Styling */
.cta-container .btn-primary,
.team-cta-container .btn-primary {
	background: #0f0f0f;
	color: white;
	border: 2px solid #0f0f0f;
}

.cta-container .btn-primary:hover,
.team-cta-container .btn-primary:hover {
	background: #1a1a1a;
	border-color: #1a1a1a;
}

/* Pricing Responsive */
@media (max-width: 1020px) {
	.pricing-section {
		padding: 120px 28px 40px;
		height: auto;
		min-height: calc(100vh - 72px);
	}
	
	.pricing-grid {
		grid-template-columns: 1fr;
		gap: 24px;
		max-width: 480px;
	}
	
	.team-cta-heading {
		font-size: 36px;
	}
	
	.team-cta-subtitle {
		font-size: 18px;
	}
	
	.pricing-card.featured {
		transform: scale(1);
	}
	
	.pricing-card.featured:hover {
		transform: translateY(-2px);
	}
	
	.pricing-title {
		font-size: 42px;
	}
	
	.pricing-header {
		margin-bottom: 28px;
	}
}

@media (max-width: 680px) {
	.pricing-section {
		padding: 120px 20px 30px;
		height: auto;
		min-height: calc(100vh - 72px);
	}
	
	.pricing-title {
		font-size: 32px;
	}
	
	.pricing-subtitle {
		font-size: 16px;
	}
	
	.pricing-header {
		margin-bottom: 24px;
	}
	
	.billing-toggle {
		margin-bottom: 24px;
	}
	
	.billing-option {
		padding: 7px 16px;
		font-size: 13px;
	}
	
	.pricing-card {
		padding: 20px 18px;
	}
	
	.team-cta-container {
		padding: 2rem 1.5rem;
	}
	
	.team-cta-heading {
		font-size: 28px;
	}
	
	.team-cta-subtitle {
		font-size: 16px;
	}
	
	.card-header {
		gap: 10px;
		margin-bottom: 12px;
	}
	
	.plan-character {
		width: 40px;
		height: 40px;
	}
	
	.plan-name {
		font-size: 24px;
	}
	
	.price-amount {
		font-size: 36px;
	}
	
	.price-period {
		font-size: 14px;
	}
	
	.feature-item {
		font-size: 12px;
		gap: 8px;
	}
	
	.check-icon {
		width: 18px;
		height: 18px;
	}
	
	.subscribe-btn {
		padding: 11px 18px;
		font-size: 14px;
	}
}

/* 404 Error Page Styles */
.error-page {
	background: var(--color-bg);
	min-height: 100vh;
}

.error-section {
	width: 100%;
	min-height: calc(100vh - 72px);
	padding: 80px 40px 60px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.error-container {
	max-width: 600px;
	width: 100%;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.error-code {
	font-family: "Karla", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-weight: 800;
	font-size: 120px;
	line-height: 1;
	margin: 0;
	color: var(--color-text);
	letter-spacing: -0.02em;
}

.error-title {
	font-family: "Karla", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-weight: 700;
	font-size: 42px;
	line-height: 1.2;
	margin: 0;
	color: var(--color-text);
}

.error-message {
	font-size: 18px;
	line-height: 1.6;
	color: var(--color-muted);
	margin: 0;
	max-width: 480px;
}

.error-sprite-container {
	margin: 20px 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.error-sprite {
	width: 256px;
	height: 256px;
	max-width: 100%;
}

.error-actions {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 16px;
}

/* 404 Responsive */
@media (max-width: 680px) {
	.error-section {
		padding: 60px 20px 40px;
	}
	
	.error-code {
		font-size: 80px;
	}
	
	.error-title {
		font-size: 32px;
	}
	
	.error-message {
		font-size: 16px;
	}
	
	.error-sprite {
		width: 200px;
		height: 200px;
	}
	
	.error-actions {
		flex-direction: column;
		width: 100%;
	}
	
	.error-actions .btn {
		width: 100%;
		max-width: 280px;
	}
}

/* ========================================
   PRIVACY POLICY STYLES
   ======================================== */

/* Privacy Policy Page */
.privacy-policy-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--color-bg);
}

/* Header Section */
.privacy-header-section {
	width: 100%;
	background: var(--color-bg);
	padding: 120px 40px 40px;
	text-align: center;
}

.privacy-header-content {
	max-width: 800px;
	margin: 0 auto;
}

.privacy-hero-image {
	width: 120px;
	height: 120px;
	margin: 0 auto 20px;
	display: block;
	object-fit: contain;
}

.privacy-main-title {
	font-family: 'Karla', sans-serif;
	font-size: 48px;
	font-weight: 700;
	margin: 0 0 16px 0;
	color: var(--color-text);
	letter-spacing: -0.5px;
}

.privacy-main-subtitle {
	font-size: 20px;
	color: var(--color-muted);
	margin: 0;
	line-height: 1.5;
}

/* Content Section */
.privacy-content-section {
	width: 100%;
	background: var(--color-bg);
	padding: 20px 40px 80px;
}

/* Responsive */
@media (max-width: 768px) {
	.privacy-header-section {
		padding: 120px 20px 30px;
	}

	.privacy-hero-image {
		width: 100px;
		height: 100px;
	}

	.privacy-main-title {
		font-size: 36px;
	}

	.privacy-main-subtitle {
		font-size: 18px;
	}

	.privacy-content-section {
		padding: 20px 20px 60px;
	}
}

/* ========================================
   TERMS OF SERVICE STYLES
   ======================================== */

/* Terms Page */
.terms-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--color-bg);
}

/* Header Section */
.terms-header-section {
	width: 100%;
	background: var(--color-bg);
	padding: 120px 40px 40px;
	text-align: center;
}

.terms-header-content {
	max-width: 800px;
	margin: 0 auto;
}

.terms-hero-image {
	width: 120px;
	height: 120px;
	margin: 0 auto 20px;
	display: block;
	object-fit: contain;
}

.terms-main-title {
	font-family: 'Karla', sans-serif;
	font-size: 48px;
	font-weight: 700;
	margin: 0 0 16px 0;
	color: var(--color-text);
	letter-spacing: -0.5px;
}

.terms-main-subtitle {
	font-size: 20px;
	color: var(--color-muted);
	margin: 0;
	line-height: 1.5;
}

/* Content Section */
.terms-content-section {
	width: 100%;
	background: var(--color-bg);
	padding: 20px 40px 80px;
}

/* Responsive */
@media (max-width: 768px) {
	.terms-header-section {
		padding: 120px 20px 30px;
	}

	.terms-hero-image {
		width: 100px;
		height: 100px;
	}

	.terms-main-title {
		font-size: 36px;
	}

	.terms-main-subtitle {
		font-size: 18px;
	}

	.terms-content-section {
		padding: 20px 20px 60px;
	}
}

/* ========================================
   BLOG STYLES
   ======================================== */

/* Blog Listing Page */
.blog-listing-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--color-bg);
}

/* Header Section */
.blog-header-section {
	width: 100%;
	background: var(--color-bg);
	padding: 120px 40px 40px;
	text-align: center;
}

.blog-header-content {
	max-width: 800px;
	margin: 0 auto;
}

.blog-hero-animation {
	width: 120px;
	height: 120px;
	margin: 0 auto 20px;
	background-image: url('/assets/PocketPals_animations-typing_sheet.png');
	background-size: 1440px 120px;
	background-repeat: no-repeat;
	background-position: 0 0;
	image-rendering: pixelated;
	image-rendering: -moz-crisp-edges;
	image-rendering: crisp-edges;
}

.blog-hero-animation.animate {
	animation: blogPenguinType 1.5s steps(12) 1;
}

@keyframes blogPenguinType {
	from {
		background-position: 0 0;
	}
	to {
		background-position: -1440px 0;
	}
}

.blog-main-title {
	font-family: 'Karla', sans-serif;
	font-size: 48px;
	font-weight: 700;
	margin: 0 0 16px 0;
	color: var(--color-text);
	letter-spacing: -0.5px;
}

.blog-main-subtitle {
	font-size: 20px;
	color: var(--color-muted);
	margin: 0;
	line-height: 1.6;
}

/* Featured Section */
.blog-featured-section {
	width: 100%;
	padding: 40px 40px 60px;
	background: var(--color-bg);
}

.blog-featured-container {
	max-width: var(--container-max);
	margin: 0 auto;
}

.blog-featured-card {
	position: relative;
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 400px;
}

.blog-featured-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 40px 80px rgba(11, 18, 33, 0.12), 0 20px 32px rgba(11, 18, 33, 0.08);
}

.blog-featured-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.blog-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
	filter: blur(4px);
}

.blog-featured-card:hover .blog-featured-image img {
	transform: scale(1.05);
}

.blog-featured-image::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 0;
}

.blog-featured-image::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(11, 18, 33, 0.95) 0%, rgba(11, 18, 33, .7) 50%, rgba(11, 18, 33, .2) 70%, rgba(11, 18, 33, 0.0) 100%);
	z-index: 1;
}

.blog-featured-content {
	position: relative;
	z-index: 2;
	padding: 48px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 20px;
	height: 100%;
}

.blog-featured-badge {
	display: none;
}

.blog-featured-top {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.blog-featured-bottom {
	display: flex;
	align-items: flex-end;
}

.blog-content-type {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	width: fit-content;
}

.blog-content-type-blog {
	background: #E0F2FE;
	color: #0369A1;
}

.blog-content-type-news {
	background: #FEF3C7;
	color: #B45309;
}

.blog-content-type-research {
	background: #E0E7FF;
	color: #4338CA;
}

.blog-content-type-announcements {
	background: #DBEAFE;
	color: #1E40AF;
}

.blog-content-type-product {
	background: #F3E8FF;
	color: #7C3AED;
}

.blog-featured-title {
	font-family: 'Karla', sans-serif;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
	max-width: 30ch;
}

.blog-featured-title a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.blog-featured-title a:hover {
	color: var(--color-primary);
}

.blog-featured-excerpt {
	font-size: 18px;
	color: #f0f0f0;
	line-height: 1.6;
	margin: 0;
}

.blog-featured-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #d0d0d0;
}

.blog-meta-separator {
	opacity: 0.5;
}

.blog-featured-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	background: #ffffff;
	color: var(--color-text);
	text-decoration: none;
	border-radius: var(--radius-md);
	font-weight: 600;
	width: fit-content;
	transition: background 0.2s ease;
}

.blog-featured-link:hover {
	background: var(--color-primary);
}

.blog-featured-link svg {
	transition: transform 0.2s ease;
}

/* Content Section */
.blog-content-section {
	width: 100%;
	padding: 0 40px 60px;
	flex: 1;
	background: var(--color-bg);
}

.blog-content-container {
	max-width: var(--container-max);
	margin: 0 auto;
}

/* Search and Filter Bar */
.blog-search-filter-bar {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-bottom: 40px;
}

.blog-search-box {
	position: relative;
	width: 100%;
}

.blog-search-icon {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--color-muted);
	pointer-events: none;
}

.blog-search-input {
	width: 100%;
	padding: 16px 20px 16px 52px;
	background: var(--color-surface);
	border: 2px solid transparent;
	border-radius: var(--radius-md);
	font-size: 16px;
	font-family: inherit;
	color: var(--color-text);
	box-shadow: var(--shadow-md);
	transition: all 0.2s ease;
}

.blog-search-input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: var(--shadow-lg);
}

.blog-search-input::placeholder {
	color: var(--color-muted);
}

.blog-filter-tabs {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.blog-filter-tab {
	padding: 10px 20px;
	background: var(--color-surface);
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-weight: 500;
	color: var(--color-text);
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.blog-filter-tab:hover {
	background: var(--color-primary);
}

.blog-filter-tab.active {
	background: var(--color-primary);
	border-color: var(--color-primary);
	font-weight: 600;
}

/* Articles Grid */
.blog-articles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 30px;
}

.blog-article-card {
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	overflow: hidden;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.blog-article-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
}

.blog-article-image {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: var(--color-bg);
}

.blog-article-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.blog-article-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.blog-article-card:hover .blog-article-image img {
	transform: scale(1.08);
}

.blog-article-type-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.blog-article-content {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.blog-article-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--color-muted);
}

.blog-article-title {
	margin: 0;
	font-family: 'Karla', sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.blog-article-title a {
	color: var(--color-text);
	text-decoration: none;
	transition: color 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.blog-article-title a:hover {
	color: var(--color-primary);
}

.external-link-icon {
	opacity: 0.5;
	flex-shrink: 0;
}

.blog-article-excerpt {
	color: var(--color-muted);
	line-height: 1.6;
	font-size: 15px;
	margin: 0;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-article-author {
	font-size: 13px;
	color: var(--color-muted);
	font-weight: 500;
	padding-top: 8px;
	border-top: 1px solid var(--color-bg);
}

/* Empty States */
.blog-empty-state,
.blog-no-results {
	text-align: center;
	padding: 80px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.blog-empty-icon {
	font-size: 64px;
	margin-bottom: 20px;
}

.blog-empty-state h2 {
	font-family: 'Karla', sans-serif;
	font-size: 32px;
	margin: 0 0 12px 0;
}

.blog-empty-state p {
	color: var(--color-muted);
	font-size: 18px;
	margin: 0;
}

/* Blog Post Page */
.blog-post-page {
	min-height: 100vh;
	padding: 100px 40px 60px;
	display: flex;
	justify-content: center;
}

.blog-post {
	max-width: 800px;
	width: 100%;
}

.blog-post-header {
	margin-bottom: 50px;
}

.blog-content-type-pill {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 40px;
	margin-bottom: 20px;
	width: fit-content;
}

.blog-content-type-research {
	background: #E0F2FE;
	color: #0369A1;
}

.blog-content-type-blog {
	background: #F3E8FF;
	color: #7E22CE;
}

.blog-content-type-news {
	background: #FEE2E2;
	color: #DC2626;
}

.blog-content-type-announcements,
.blog-content-type-announcement {
	background: #DBEAFE;
	color: #1E40AF;
}

.blog-content-type-product {
	background: #D1FAE5;
	color: #059669;
}

.blog-hero-image {
	width: 100%;
	height: 400px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: 40px;
	box-shadow: var(--shadow-lg);
}

.blog-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-post-header-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
	margin-bottom: 40px;
}

.blog-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	color: var(--color-muted);
}

.blog-author {
	font-weight: 500;
}

.blog-read-time {
	font-weight: 500;
}

.blog-post-title {
	font-family: "Karla", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-weight: 700;
	font-size: 62px;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0;
	color: var(--color-text);
}

.blog-post-excerpt {
	font-size: 20px;
	color: var(--color-muted);
	line-height: 1.6;
	margin: 0;
}

.blog-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.blog-tag {
	font-size: 13px;
	padding: 6px 16px;
	background: var(--color-bg);
	color: var(--color-text);
	border-radius: 20px;
	font-weight: 500;
}

/* Blog Post Content */
.blog-post-content {
	line-height: 1.8;
	color: var(--color-text);
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
	font-family: 'Karla', sans-serif;
	font-weight: 700;
	margin: 40px 0 20px;
	line-height: 1.3;
	color: var(--color-text);
}

.blog-post-content h1 {
	font-size: 40px;
	margin-top: 50px;
}

.blog-post-content h2 {
	font-size: 32px;
	margin-top: 50px;
}

.blog-post-content h3 {
	font-size: 24px;
}

.blog-post-content h4 {
	font-size: 20px;
}

.blog-post-content p {
	margin: 20px 0;
	font-size: 17px;
}

.blog-post-content strong {
	font-weight: 600;
	color: var(--color-text);
}

.blog-post-content em {
	font-style: italic;
}

.blog-post-content a {
	color: var(--color-text);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.2s ease;
}

.blog-post-content a:hover {
	color: var(--color-primary);
}

.blog-post-content ul,
.blog-post-content ol {
	margin: 20px 0;
	padding-left: 24px;
}

.blog-post-content li {
	margin: 8px 0;
	line-height: 1.7;
}

.blog-post-content hr {
	border: none;
	height: 2px;
	background: linear-gradient(to right, transparent, var(--color-primary), transparent);
	margin: 50px 0;
}

.blog-post-content blockquote {
	margin: 30px 0;
	padding: 20px 30px;
	border-left: 4px solid var(--color-primary);
	background: var(--color-bg);
	border-radius: var(--radius-sm);
	font-style: italic;
	color: var(--color-muted);
}

.blog-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-md);
	margin: 30px 0;
	box-shadow: var(--shadow-md);
}

.blog-post-content code {
	background: var(--color-bg);
	padding: 2px 8px;
	border-radius: 4px;
	font-family: 'Courier New', monospace;
	font-size: 15px;
	color: var(--color-text);
}

.blog-post-content pre {
	background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
	padding: 30px;
	border-radius: var(--radius-lg);
	overflow-x: auto;
	margin: 40px 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	position: relative;
}

.blog-post-content pre::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 30px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.blog-post-content pre code {
	background: none;
	padding: 0;
	color: #f8f8f2;
	font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
	font-size: 15px;
	line-height: 1.6;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* JSON Syntax Highlighting */
.blog-post-content pre code[class*="language-json"] {
	display: block;
}

.blog-post-content pre code {
	white-space: pre;
}

/* Paper Link Button */
.paper-link-button-container {
	display: flex;
	justify-content: center;
	margin: 30px 0 50px;
}

.paper-link-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	border-radius: 999px;
	padding: 14px 28px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 0.08s ease, box-shadow 0.2s ease;
	background: var(--color-primary);
	color: var(--color-text);
	box-shadow: 0 2px 8px rgba(192, 225, 247, 0.4);
}

.paper-link-button:hover {
	background: var(--color-primary);
	color: var(--color-text) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(192, 225, 247, 0.5);
}

.paper-link-button:active {
	transform: translateY(0);
}

/* Custom Blog Components */
.blog-quote-fancy {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
	padding: 40px 50px;
	border-radius: var(--radius-lg);
	margin: 40px 0;
	position: relative;
	box-shadow: var(--shadow-md);
}

.blog-quote-fancy::before {
	content: '"';
	font-family: 'Karla', sans-serif;
	font-size: 120px;
	position: absolute;
	top: -20px;
	left: 20px;
	color: rgba(11, 18, 33, 0.1);
	line-height: 1;
}

.blog-quote-fancy p {
	font-family: 'Karla', sans-serif;
	font-size: 22px;
	font-weight: 600;
	margin: 0;
	position: relative;
	z-index: 1;
	line-height: 1.5;
	color: var(--color-text);
}

.blog-quote-fancy .quote-author {
	font-size: 16px;
	font-weight: 500;
	color: var(--color-muted);
	margin-top: 16px;
	font-style: italic;
}

.blog-callout {
	background: #FFF9E6;
	border: 2px solid #FFE066;
	padding: 24px 28px;
	border-radius: var(--radius-md);
	margin: 30px 0;
}

.blog-callout-title {
	font-weight: 700;
	margin: 0 0 12px 0;
	color: #CC8800;
	font-size: 18px;
}

.blog-callout p {
	margin: 0;
}

/* Blog Post Footer */
.blog-post-footer {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 2px solid var(--color-bg);
}

.blog-back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--color-text);
	text-decoration: none;
	font-weight: 600;
	transition: gap 0.2s ease;
}

.blog-back-link:hover {
	gap: 12px;
}

.blog-back-link svg {
	transition: transform 0.2s ease;
}

.blog-back-link:hover svg {
	transform: translateX(-4px);
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
	.blog-header-section {
		padding: 90px 20px 30px;
	}

	.blog-hero-animation {
		width: 100px;
		height: 100px;
		background-size: 1200px 100px;
		margin-bottom: 24px;
	}

	@keyframes blogPenguinType {
		from {
			background-position: 0 0;
		}
		to {
			background-position: -1200px 0;
		}
	}

	.blog-main-title {
		font-size: 40px;
	}

	.blog-main-subtitle {
		font-size: 18px;
	}

	.blog-featured-section {
		padding: 30px 20px 40px;
	}

	.blog-featured-card {
		height: 350px;
	}

	.blog-featured-content {
		padding: 32px 24px;
	}

	.blog-featured-title {
		font-size: 28px;
	}

	.blog-featured-excerpt {
		font-size: 16px;
	}

	.blog-content-section {
		padding: 0 20px 40px;
	}

	.blog-search-filter-bar {
		gap: 20px;
	}

	.blog-filter-tabs {
		gap: 8px;
	}

	.blog-filter-tab {
		padding: 8px 16px;
		font-size: 14px;
	}

	.blog-articles-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.blog-article-image {
		height: 180px;
	}

	.blog-article-content {
		padding: 20px;
	}

	.blog-article-title {
		font-size: 18px;
	}

	.blog-article-excerpt {
		font-size: 14px;
	}

	.blog-post-page {
		padding: 90px 20px 40px;
	}

	.blog-hero-image {
		height: 250px;
	}

	.blog-post-title {
		font-size: 38px;
	}

	.blog-post-excerpt {
		font-size: 18px;
	}

	.blog-post-content h1 {
		font-size: 32px;
	}

	.blog-post-content h2 {
		font-size: 26px;
	}

	.blog-post-content h3 {
		font-size: 22px;
	}

	.blog-post-content p {
		font-size: 16px;
	}

	.blog-quote-fancy {
		padding: 30px 24px;
	}

	.blog-quote-fancy::before {
		font-size: 80px;
		top: -10px;
	}

	.paper-link-button-container {
		margin: 20px 0 40px;
	}

	.paper-link-button {
		padding: 14px 24px;
		font-size: 15px;
	}

	.blog-quote-fancy p {
		font-size: 18px;
	}
}

/* Vision Page Styles */
.vision-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--color-bg);
}

/* Vision Hero Section */
.vision-hero-section {
	width: 100%;
	background: var(--color-bg);
	padding: 120px 40px 20px;
	text-align: center;
}

.vision-hero-container {
	max-width: 800px;
	margin: 0 auto;
}

.vision-hero-image {
	width: 120px;
	height: 120px;
	margin: 0 auto 20px;
	display: block;
	object-fit: contain;
}

.vision-hero-title {
	font-family: 'Karla', sans-serif;
	font-size: 48px;
	font-weight: 700;
	margin: 0;
	color: var(--color-text);
	letter-spacing: -0.5px;
}

.vision-hero-title .word {
	display: inline-block;
	opacity: 0;
	transform: translateY(20px) scale(0.95);
	animation: wordZoomUp 0.6s ease forwards;
}

.vision-hero-title .word:nth-child(1) { animation-delay: 0.1s; }
.vision-hero-title .word:nth-child(2) { animation-delay: 0.2s; }
.vision-hero-title .word:nth-child(3) { animation-delay: 0.35s; }
.vision-hero-title .word:nth-child(4) { animation-delay: 0.45s; }
.vision-hero-title .word:nth-child(5) { animation-delay: 0.6s; }
.vision-hero-title .word:nth-child(6) { animation-delay: 0.7s; }

.vision-hero-subtitle {
	font-size: 20px;
	color: var(--color-muted);
	margin: 0;
	line-height: 1.6;
}

/* Vision Content Section */
.vision-content-section {
	width: 100%;
	padding: 20px 40px 80px;
	background: var(--color-bg);
}

.vision-content-container {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Main Text Block */
.vision-text-block {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.vision-text-block p {
	font-size: 16px;
	line-height: 1.8;
	color: var(--color-text);
	margin: 0;
	text-align: left;
}

/* Quote Block - Bold & Decorative */
.vision-quote-block {
	padding: 0;
	margin: 48px 0 0 0;
}

.vision-quote {
	margin: 0;
	padding: 36px 32px;
	border: none;
	background: linear-gradient(135deg, rgba(192, 225, 247, 0.15) 0%, rgba(255, 207, 155, 0.15) 100%);
	border-radius: var(--radius-lg);
	text-align: center;
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

.vision-quote::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(
		135deg,
		transparent 0%,
		transparent 40%,
		rgba(201, 246, 252, 0.3) 50%,
		transparent 60%,
		transparent 100%
	);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.vision-quote.shimmer::before {
	animation: shimmerAnimation 1.4s ease-out forwards;
}

@keyframes shimmerAnimation {
	0% {
		opacity: 0;
		transform: translate(-100%, -100%) rotate(45deg);
	}
	10% {
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: translate(100%, 100%) rotate(45deg);
	}
}

.vision-quote-text {
	font-family: 'Karla', sans-serif;
	font-size: 22px;
	font-weight: 700;
	font-style: italic;
	line-height: 1.5;
	color: var(--color-text);
	margin: 0 0 16px 0;
	letter-spacing: -0.2px;
}

.vision-quote-attribution {
	font-size: 15px;
	font-weight: 500;
	color: var(--color-muted);
	text-align: center;
	font-style: normal;
}

.vision-quote-attribution cite {
	font-style: normal;
}

.vision-quote-source {
	font-style: italic;
}

/* Responsive Vision Styles */
@media (max-width: 768px) {
	.vision-hero-section {
		padding: 90px 20px 20px;
	}

	.vision-hero-image {
		width: 100px;
		height: 100px;
		margin-bottom: 16px;
	}

	.vision-hero-title {
		font-size: 36px;
	}
	
	.vision-hero-title .word {
		animation: wordZoomUp 0.5s ease forwards;
	}

	.vision-hero-subtitle {
		font-size: 18px;
	}

	.vision-content-section {
		padding: 30px 20px 60px;
	}

	.vision-content-container {
		gap: 20px;
	}

	.vision-text-block {
		gap: 24px;
	}

	.vision-text-block p {
		font-size: 15px;
		line-height: 1.7;
	}

	.vision-quote-block {
		margin: 36px 0 0 0;
	}

	.vision-quote {
		padding: 28px 24px;
	}

	.vision-quote-text {
		font-size: 19px;
		margin-bottom: 12px;
	}

	.vision-quote-attribution {
		font-size: 14px;
	}
}


