/* ============================================
   PROMPTAGENT - MODERN TECH VIBE STYLES
   ============================================ */

:root {
    --bg: #030014;
    --surface: rgba(15, 10, 40, 0.5);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.1);
    
    --purple: #8b5cf6;
    --violet: #7c3aed;
    --indigo: #6366f1;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --emerald: #10b981;
    --pink: #ec4899;
    --orange: #f97316;
    --red: #ef4444;
    
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    --glow-purple: rgba(139, 92, 246, 0.5);
    --glow-blue: rgba(59, 130, 246, 0.4);
    --glow-cyan: rgba(6, 182, 212, 0.3);
    
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 25%, #3b82f6 50%, #06b6d4 75%, #10b981 100%);
    
    --font: 'Syne', sans-serif;
    --mono: 'JetBrains Mono', monospace;
    
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--purple); color: white; }

/* ========== ANIMATED BACKGROUND ========== */
.bg-wrapper {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 40% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 90% 70%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: bgPulse 20s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; filter: hue-rotate(0deg); }
    50% { opacity: 0.8; filter: hue-rotate(20deg); }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, black 30%, transparent 80%);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 25s ease-in-out infinite;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    background: var(--purple);
    opacity: 0.15;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: -100px;
    background: var(--cyan);
    opacity: 0.1;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.bg-particles { position: absolute; inset: 0; }

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--purple);
    border-radius: 50%;
    opacity: 0;
    animation: particleRise linear infinite;
}

@keyframes particleRise {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

.bg-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 2rem;
    transition: all 0.4s var(--ease);
}

.nav.scrolled {
    padding: 0.875rem 2rem;
    background: rgba(3, 0, 20, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    transition: transform 0.4s var(--spring);
}

.logo:hover { transform: scale(1.05); }

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    background-size: 200% 200%;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 20px var(--glow-purple);
    animation: gradientShift 5s ease infinite;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer { 100% { transform: translateX(100%); } }
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s var(--ease);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-link span { position: relative; z-index: 1; }
.nav-link:hover { color: var(--text); }
.nav-link:hover::before { opacity: 0.15; }
.nav-link.active { color: var(--text); }
.nav-link.active::before { opacity: 0.15; }

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-mobile span {
    width: 26px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ========== BUTTONS ========== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.btn-primary {
    background: var(--gradient);
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 4px 20px var(--glow-purple), inset 0 1px 0 rgba(255,255,255,0.2);
    animation: gradientShift 5s ease infinite;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 20%, rgba(255,255,255,0.4) 50%, transparent 80%);
    transform: translateX(-100%) skewX(-20deg);
    transition: transform 0.6s;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px var(--glow-purple), 0 0 80px var(--glow-blue), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-primary:hover::before {
    transform: translateX(100%) skewX(-20deg);
}

.btn-secondary {
    background: var(--glass);
    backdrop-filter: blur(10px);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--purple);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.05rem;
    border-radius: 16px;
}

.btn-arrow { transition: transform 0.3s var(--spring); }
.btn:hover .btn-arrow { transform: translateX(6px); }

/* ========== PAGE HERO ========== */
.page-hero {
    position: relative;
    padding: 10rem 2rem 5rem;
    text-align: center;
    z-index: 1;
}

.page-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.page-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s var(--ease) both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s var(--ease) 0.1s both;
}

.grad-text {
    background: var(--gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

.page-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeUp 0.8s var(--ease) 0.2s both;
}

/* ========== SECTIONS ========== */
.section {
    position: relative;
    padding: 7rem 2rem;
    z-index: 1;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========== GLASS CARDS ========== */
.card {
    position: relative;
    padding: 2.5rem;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: all 0.5s var(--ease);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 300px at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.12) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 100px var(--glow-purple);
}

.card:hover::before { transform: scaleX(1); }
.card:hover::after { opacity: 1; }

.card-icon {
    width: 72px;
    height: 72px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.5s var(--ease);
    position: relative;
    z-index: 1;
}

.card:hover .card-icon {
    background: var(--gradient);
    border-color: transparent;
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 15px 40px var(--glow-purple);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 5rem 2rem 3rem;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.footer-brand-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1rem;
    max-width: 280px;
    line-height: 1.7;
}

.footer-col-title {
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
    width: fit-content;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient);
    transition: width 0.4s var(--ease);
}

.footer-link:hover { color: var(--text); }
.footer-link:hover::after { width: 100%; }

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 46px;
    height: 46px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.4s var(--ease);
}

.footer-social a:hover {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--glow-purple);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile { display: flex; }
    .section { padding: 5rem 1.5rem; }
    .page-hero { padding: 8rem 1.5rem 4rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}
