@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary: 199 89% 48%; /* Blue #0ea5e9 */
    --primary-foreground: 210 40% 98%;
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 199 89% 48%;
    --radius: 1.5rem;
    
    /* Vudev Official Palette */
    --vudev-blue: #0ea5e9;
    --vudev-purple: #a855f7;
    --vudev-pink: #ec4899;
}

.dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 217.2 91.2% 59.8%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 224.3 76.3% 48%;
}

* {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#475569 1px, transparent 1px);
    background-size: 36px 36px;
    z-index: -2;
    opacity: 0.1;
    pointer-events: none;
}

.dark body::before {
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
}

/* Background Blobs */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    border-radius: 50%;
    animation: blob-move 20s infinite alternate ease-in-out;
}

.blob-1 { --color: var(--vudev-pink); top: -10%; left: -10%; animation-delay: 0s; }
.blob-2 { --color: var(--vudev-blue); bottom: -10%; right: -10%; animation-delay: -5s; }
.blob-3 { --color: var(--vudev-purple); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-duration: 30s; }

@keyframes blob-move {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 50px) scale(1.1); }
    66% { transform: translate(-50px, 100px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Typography Gradient - Official Pink/Purple */
.text-gradient {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- VUDEV Header Styles (Based on vudev.io.vn) --- */
.header-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 68px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 9999px; /* Pill shape */
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .header-container {
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.animated-border {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px; /* Border thickness */
    -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;
    z-index: 1; /* Match border layer */
}

.animated-border::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400%; /* Large enough to cover corners */
    height: 400%;
    background: conic-gradient(from 0deg, transparent 60%, #0ea5e9, #ec4899, #f59e0b, #10b981, transparent);
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: rotateBorder 4s linear infinite;
}

.header-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: relative;
    z-index: 10;
}

@keyframes rotateBorder {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rainbow-anim {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .glass-nav {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn-pill {
    padding: 0.85rem 2.25rem;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #0ea5e9, #a855f7, #ec4899);
    -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;
    transition: opacity 0.4s ease;
}

.btn-pill:hover::before {
    opacity: 0;
}

.btn-pill:hover {
    background: linear-gradient(90deg, #0ea5e9, #a855f7, #ec4899);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(236, 72, 153, 0.3);
}

.btn-primary {
    background: white;
    color: #111111;
}

.dark .btn-primary {
    background: #050505;
    color: white;
}

/* Browser Frame */
.browser-frame {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .browser-frame {
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.browser-header {
    background: #f1f5f9;
    padding: 8px 12px;
}

.dark .browser-header {
    background: #1e293b;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .text-6xl { font-size: 2.75rem; }
    .text-\[80px\] { font-size: 3rem; }
}
