/* Pasty Premium CSS */

:root {
    --bg-base: #000000;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-glow: rgba(255, 255, 255, 0.15);
    
    --accent: #95a7f1; /* Periwinkle Blue matching logo background */
    --accent-hover: #728cf0; /* Deeper periwinkle for hover states */
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --blur: blur(40px);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #fff;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Glassmorphism Utilities --- */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%), var(--bg-base);
    background-image: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%), linear-gradient(135deg, var(--accent) 0%, #eaa4e0 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 25px rgba(234, 164, 224, 0.5), inset 0 1px 0 rgba(255,255,255,0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    box-shadow: 0 0 35px rgba(234, 164, 224, 0.7), inset 0 1px 0 rgba(255,255,255,0.6);
    transform: translateY(-3px) scale(1.02);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
    border-radius: 999px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 999px;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* --- Mesh Gradient Background --- */

.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #111827 0%, #000 100%);
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(149,167,241,0.25) 0%, rgba(0,0,0,0) 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 30%;
    right: 10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -10s;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@keyframes float {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(5%, 10%, 0) scale(1.1); }
    66% { transform: translate3d(-5%, 5%, 0) scale(0.9); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* --- Navigation --- */

.glass-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    width: 90%;
    max-width: 1000px;
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    z-index: 100;
    padding: 12px 24px;
    transition: background 0.3s, box-shadow 0.3s, border 0.3s;
    will-change: transform, background-color;
    backface-visibility: hidden;
}

.nav-scrolled {
    background: rgba(15, 15, 15, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 22.5%; /* macOS squircle shape */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.nav-wordmark {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    padding: 4px;
}

.nav-pill-slider {
    position: absolute;
    top: 50%;
    left: 0;
    height: 36px;
    width: 36px;
    transform: translateY(-50%) translateX(-50%);
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.03) 100%);
    border-radius: 999px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.2), 0 4px 12px rgba(0,0,0,0.1);
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
    transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2), width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2), height 0.3s, border-radius 0.3s, opacity 0.3s ease, transform 0.3s;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    will-change: left, transform, width;
}

.nav-pill-slider.dragging {
    height: 64px !important;
    width: 110px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.01) 70%);
    box-shadow: inset 0 0 15px rgba(255,255,255,0.3);
    backdrop-filter: blur(14px) saturate(1.5) brightness(1.25);
    -webkit-backdrop-filter: blur(14px) saturate(1.5) brightness(1.25);
    transform: translateY(-50%) translateX(-50%) scale(1.1);
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    position: relative;
    z-index: 1;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.2), color 0.2s, text-shadow 0.2s;
    transform: translateZ(0);
}

.nav-links a:not(.btn):hover {
    color: #fff;
    transform: scale(1.05) translateY(-1px);
}

/* --- Hero --- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    text-align: center;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    z-index: 10;
}

.badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sparkle {
    font-size: 1.1em;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 24px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 80px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-note {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* --- CSS Pasty Mockup --- */

/* --- CSS Pasty Mockup --- */

.hero-mockups {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    margin-top: 30px;
    perspective: 1200px;
}

.hero-mockup {
    flex: 1;
    perspective: 1000px;
    min-width: 0;
}

.mockup-panel {
    border-radius: 18px;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.8), inset 0 1px 1px rgba(255,255,255,0.3), 0 0 0 1px rgba(0,0,0,0.6);
    text-align: left;
    transform: rotateX(5deg) rotateY(-5deg) translateZ(0);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s, border 0.6s;
    will-change: transform;
    backface-visibility: hidden;
    overflow: hidden;
}

.mockup-panel video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0; /* Let panel handle clipping */
    transform-origin: center;
    backface-visibility: hidden;
}

/* Top Menu Specific Mild Zoom */
.hero-mockup:nth-child(1) .mockup-panel video {
    /* Anchor to the physical top of the screen (0%) so the macOS Menu Bar isn't clipped out by the zoom */
    transform: scale(1.1);
    transform-origin: 35% 0%;
}

/* Right Video Container Expansion */
.hero-mockup:nth-child(2) {
    flex: 1.15; /* Makes the container slightly larger than the left video */
}

/* Top Menu Dropshadow & Angle */
.hero-mockup:nth-child(2) .mockup-panel {
    transform: rotateX(5deg) rotateY(5deg) translateZ(0);
}

/* Top Menu Specific Mild Zoom */
.hero-mockup:nth-child(2) .mockup-panel video {
    /* Zoomed out slightly to reveal more of the native macOS UI context */
    transform: scale(1.25);
    transform-origin: 22% 55%;
}

.hero-mockup:hover .mockup-panel {
    transform: rotateX(0deg) rotateY(0deg) translateZ(30px);
    border: 1px solid rgba(149, 167, 241, 0.4);
    box-shadow: 0 40px 80px -15px rgba(0,0,0,1), inset 0 1px 1px rgba(255,255,255,0.3), 0 0 40px rgba(149, 167, 241, 0.1);
}

/* --- Features Section --- */

.features {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.bento-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

/* Responsive Span Control */
@media (min-width: 900px) {
    .span-2 { grid-column: span 2; }
}

@media (max-width: 899px) {
    .bento-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
}

/* Ambient Glow Ecosystem */
.bento-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: -1;
}

.bento-card:hover::before {
    opacity: 1;
}

.glow-blue::before { background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.15), transparent 50%); }
.glow-purple::before { background: radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.15), transparent 50%); }
.glow-green::before { background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.12), transparent 50%); }
.glow-pink::before { background: radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.15), transparent 50%); }
.glow-yellow::before { background: radial-gradient(circle at 30% 30%, rgba(250, 204, 21, 0.12), transparent 50%); }
.glow-red::before { background: radial-gradient(circle at 50% 20%, rgba(239, 68, 68, 0.15), transparent 50%); }

/* Feature Icon Rings */
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glow-blue .feature-icon { background: rgba(56, 189, 248, 0.1); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.25); }
.glow-purple .feature-icon { background: rgba(168, 85, 247, 0.1); color: #A855F7; border: 1px solid rgba(168, 85, 247, 0.25); }
.glow-green .feature-icon { background: rgba(16, 185, 129, 0.1); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.25); }
.glow-pink .feature-icon { background: rgba(236, 72, 153, 0.1); color: #EC4899; border: 1px solid rgba(236, 72, 153, 0.25); }
.glow-yellow .feature-icon { background: rgba(250, 204, 21, 0.1); color: #FACC15; border: 1px solid rgba(250, 204, 21, 0.25); }
.glow-red .feature-icon { background: rgba(239, 68, 68, 0.1); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.25); }

/* Typography */
.bento-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.span-2 .bento-content h3 {
    font-size: 1.8rem;
}

.bento-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

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

/* --- Pricing Section --- */

.pricing {
    padding: 120px 0 160px;
    position: relative;
    z-index: 10;
}

.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.1), transparent 50%);
    pointer-events: none;
}

.pricing-header h2 {
    font-size: 2.5rem;
}

.pricing-header p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.price-display {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 40px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    transform: translateY(-16px);
}

.amount {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 8px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.crypto-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* --- Footer --- */

footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 48px 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.footer-logo {
    width: 24px;
    height: 24px;
    filter: grayscale(1) opacity(0.7);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-copyright {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

/* --- Animations --- */

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-spring-up {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    animation: springUp 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

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

@keyframes springUp {
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* --- Ambient Animations & Extreme Glassmorphism --- */

.ambient-layer {
    position: absolute; /* Keep it scrolling with the page */
    top: 0;
    left: 0;
    width: 100vw;
    height: 120vh; /* Extend slightly past the fold */
    z-index: 1;
    pointer-events: none;
    /* Smoothly fade out the bottom so pulses don't hit a hard horizontal cutoff line */
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.pulse-ring {
    position: absolute;
    border: 1px solid rgba(149, 167, 241, 0.2);
    border-radius: 50%;
    transform-origin: center center;
    box-shadow: 0 0 40px rgba(149, 167, 241, 0.2), inset 0 0 40px rgba(149, 167, 241, 0.2);
    animation: radarPulse 10s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
    will-change: transform, opacity;
}

.pulse-1 { top: calc(50% - 100px); left: calc(50% - 100px); width: 200px; height: 200px; animation-delay: 0s; }
.pulse-2 { top: calc(50% - 100px); left: calc(50% - 100px); width: 200px; height: 200px; animation-delay: 3.3s; }
.pulse-3 { top: calc(50% - 100px); left: calc(50% - 100px); width: 200px; height: 200px; animation-delay: 6.6s; }

.floating-glyph {
    position: absolute;
    font-size: 3rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 30px rgba(149, 167, 241, 0.6);
    animation: floatBounce 15s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.glyph-1 { top: 20%; left: 15%; font-size: 6rem; animation-delay: 0s; }
.glyph-2 { top: 60%; left: 10%; font-size: 4rem; animation-delay: -3s; animation-duration: 18s; }
.glyph-3 { top: 25%; right: 15%; font-size: 5rem; animation-delay: -7s; }
.glyph-4 { top: 75%; right: 20%; font-size: 3.5rem; animation-delay: -2s; animation-duration: 12s; }
.glyph-5 { top: 45%; left: 80%; font-size: 4.5rem; animation-delay: -5s; animation-duration: 22s; }

.strange-pattern {
    position: absolute;
    background-image: repeating-linear-gradient(45deg, rgba(149, 167, 241, 0.03) 0px, rgba(149, 167, 241, 0.03) 2px, transparent 2px, transparent 15px);
    border-radius: 30px;
    animation: weirdRotate 40s linear infinite;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(149, 167, 241, 0.1);
}

.pattern-1 { top: 5%; left: 60%; width: 400px; height: 400px; border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; box-shadow: inset 0 0 50px rgba(149, 167, 241, 0.1); }
.pattern-2 { bottom: 5%; left: 20%; width: 500px; height: 500px; border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; animation-direction: reverse; animation-duration: 55s; box-shadow: inset 0 0 50px rgba(139, 92, 246, 0.1); }

@keyframes radarPulse {
    0% { transform: scale(0.5) translateZ(0); opacity: 0; box-shadow: 0 0 40px rgba(149, 167, 241, 0.2); }
    20% { opacity: 1; }
    100% { transform: scale(8) translateZ(0); opacity: 0; box-shadow: 0 0 10px rgba(149, 167, 241, 0.05); }
}

@keyframes floatBounce {
    0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); filter: blur(4px); }
    33% { transform: translate3d(0, -60px, 0) rotate(15deg) scale(1.15); filter: blur(0px); }
    66% { transform: translate3d(0, 30px, 0) rotate(-10deg) scale(0.9); filter: blur(6px); }
    100% { transform: translate3d(0, 0, 0) rotate(5deg) scale(1); filter: blur(2px); }
}

@keyframes weirdRotate {
    0% { transform: translateZ(0) rotate(0deg) scale(1); }
    30% { transform: translateZ(0) rotate(110deg) scale(1.1) skew(5deg); }
    70% { transform: translateZ(0) rotate(250deg) scale(0.9) skew(-5deg); }
    100% { transform: translateZ(0) rotate(360deg) scale(1); }
}

/* Additional Mockup Enhancements */
.mockup-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderShimmer 8s linear infinite;
}

@keyframes borderShimmer {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* --- Terminal Section --- */
.terminal-section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

.terminal-container {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    perspective: 1000px;
}

.terminal-glow {
    position: absolute;
    top: -30px; left: -30px; right: -30px; bottom: -30px;
    background: radial-gradient(circle at 50% 50%, rgba(149, 167, 241, 0.35), rgba(234, 164, 224, 0.15), transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: slowSpin 12s linear infinite;
    mix-blend-mode: color-dodge;
}

.glass-window {
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.9), inset 0 1px 1px rgba(255,255,255,0.2), 0 0 0 1px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    transform: rotateX(2deg) translate3d(0, 0, 0);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.glass-window:hover {
    transform: rotateX(0deg) translate3d(0, -8px, 0);
}

.glass-window::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px; padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 40%, transparent 60%, rgba(149,167,241,0.5) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
    animation: borderShimmer 6s linear infinite;
}

.terminal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-traffic-lights { display: flex; gap: 8px; }
.terminal-traffic-lights .light { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 1px 2px rgba(255,255,255,0.5), 0 1px 3px rgba(0,0,0,0.5); }
.light.close { background: #FF5F56; }
.light.min { background: #FFBD2E; }
.light.max { background: #27C93F; }

.terminal-title {
    display: flex; align-items: center; gap: 6px;
    font-family: 'SF Mono', 'Menlo', monospace; font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    transform: translateX(-24px); 
}

.terminal-body {
    padding: 32px 24px;
    font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    height: 180px; 
}

.prompt { color: #eaa4e0; font-weight: bold; margin-right: 8px; text-shadow: 0 0 10px rgba(234, 164, 224, 0.4); }

.typing-effect {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid rgba(255,255,255,0.8);
    animation: typing 2.5s steps(25, end) forwards, blink 1s step-end infinite;
    max-width: 0;
    color: #fff;
}

.delay-show {
    opacity: 0;
    max-height: 0;
    animation: showLog 0.3s 3.2s forwards; /* Triggers right after typing finishes */
    margin-top: 16px;
}

.log { display: inline-block; font-size: 0.85rem; }
.log.info { color: #95a7f1; font-weight: bold; }
.log.success { color: #10B981; font-weight: bold; }
.log.text { color: rgba(255,255,255,0.7); }

.terminal-copy-btn {
    position: absolute; right: 24px; bottom: 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 10px 18px; border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500;
    display: flex; align-items: center; gap: 8px;
    cursor: pointer;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.terminal-copy-btn:hover {
    background: rgba(149, 167, 241, 0.2);
    border-color: rgba(149, 167, 241, 0.5);
    box-shadow: 0 0 25px rgba(149, 167, 241, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-2px);
    color: #fff;
}

.terminal-copy-btn:active {
    transform: translateY(1px);
}

@keyframes slowSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes typing {
    from { max-width: 0 }
    to { max-width: 100% }
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: rgba(255,255,255,0.8) }
}

@keyframes showLog {
    to { opacity: 1; max-height: 200px; }
}

/* Responsive / Mobile Optimizer */
@media (max-width: 768px) {
    /* Hard block all horizontal viewport shifts globally using CSS clip to avoid breaking Safari background filters */
    html, body { overflow-x: clip !important; width: 100%; max-width: 100vw; margin: 0; padding: 0; }
    
    /* Stack Buttons on Mobile */
    .hero-buttons { flex-direction: column; width: 100%; gap: 12px; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    
    /* Navigation Bar - Tighter footprint */
    .navbar { top: 12px; width: 94%; }
    .nav-content { padding: 10px 16px; flex-wrap: nowrap; }
    .nav-links { gap: 8px; margin: 0; }
    .nav-links a:not(.btn) { display: none; } /* Hide text links to save space */
    .nav-links .btn { padding: 8px 14px; font-size: 0.8rem; white-space: nowrap; border-radius: 40px; }
    
    /* Hero Vertical Un-centering (prevents short screens from pushing text under the header) */
    .hero { min-height: auto; justify-content: flex-start; padding-top: 130px; padding-bottom: 60px; }
    
    /* Typographic scaling */
    .hero-title { font-size: min(2.5rem, 11vw); word-wrap: break-word; line-height: 1.1; margin-top: 16px; }
    .hero-subtitle { font-size: 1.05rem; padding: 0 16px; }
    
    /* Layout stacking */
    .hero-mockups { flex-direction: column; gap: 24px; margin-top: 40px; padding: 0 16px; }
    .mockup-panel { transform: none !important; width: 100%; }
    
    /* Bento Grid & Terminal */
    .bento-grid { grid-template-columns: 1fr; gap: 16px; padding: 0 16px; }
    .bento-card.span-2 { grid-column: auto; }
    .terminal-container { width: 100%; padding: 0 16px; box-sizing: border-box; }
    .terminal-body { height: auto; padding: 24px 16px; min-height: 160px; }
    .terminal-title { transform: none; font-size: 0.75rem; }
    .terminal-copy-btn { position: relative; right: auto; bottom: auto; margin-top: 16px; width: 100%; justify-content: center; }
    
    /* Footer & Navigation */
    .footer-content { flex-direction: column; gap: 24px; text-align: center; }
    .cta-wrapper { flex-direction: column; gap: 12px; }
}
