@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --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%;
    --primary: 280 100% 70%;
    --primary-foreground: 210 40% 98%;
    --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: 280 100% 70%;
    --radius: 0.5rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background: linear-gradient(135deg, #fef3ff 0%, #f0f9ff 50%, #fef9c3 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid hsl(var(--border));
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    color: hsl(var(--foreground));
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.3s;
}

.nav-links a:hover {
    background: hsl(var(--accent));
}

.nav-links .btn-login {
    background: transparent;
    border: 1px solid hsl(var(--border));
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

.nav-links .btn-signup {
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(217, 70, 239, 0.3);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '😄';
    position: absolute;
    font-size: 15rem;
    opacity: 0.05;
    top: -3rem;
    right: -3rem;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '🎉';
    position: absolute;
    font-size: 12rem;
    opacity: 0.05;
    bottom: -2rem;
    left: -2rem;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--muted-foreground));
    font-weight: 600;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: hsl(var(--muted-foreground));
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 70, 239, 0.4);
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: calc(var(--radius) * 2);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid hsl(var(--border));
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d946ef 0%, #8b5cf6 50%, #3b82f6 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-card:nth-child(1) .icon { animation-delay: 0s; }
.feature-card:nth-child(2) .icon { animation-delay: 0.2s; }
.feature-card:nth-child(3) .icon { animation-delay: 0.4s; }

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: calc(var(--radius) * 2);
    text-align: center;
    border: 1px solid hsl(var(--border));
    transition: all 0.3s;
}

.step:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(217, 70, 239, 0.2);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 20px rgba(217, 70, 239, 0.3);
}

.step h3 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

/* Generator Section */
.generator-section {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

.generator-section h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: hsl(var(--muted-foreground));
}

.generator-form {
    background: white;
    padding: 3rem;
    border-radius: calc(var(--radius) * 2);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.1);
}

.generate-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 70, 239, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

.results-container {
    background: white;
    padding: 3rem;
    border-radius: calc(var(--radius) * 2);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.results-container h2 {
    text-align: center;
    font-weight: 800;
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.pun-list {
    display: grid;
    gap: 1rem;
}

.pun-item {
    background: hsl(var(--muted));
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.pun-item:hover {
    transform: translateX(5px);
    border-color: hsl(var(--primary));
    box-shadow: 0 4px 12px rgba(217, 70, 239, 0.15);
}

.pun-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.copy-btn {
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(217, 70, 239, 0.3);
}

/* Examples Section */
.examples-section {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

.examples-section h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.example-category {
    margin-bottom: 4rem;
}

.example-category h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.example-card {
    background: white;
    padding: 2rem;
    border-radius: calc(var(--radius) * 2);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.example-card::before {
    content: '✨';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.example-card:hover::before {
    opacity: 1;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(217, 70, 239, 0.2);
    border-color: hsl(var(--primary));
}

.example-card h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.example-card p {
    color: hsl(var(--muted-foreground));
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: white;
    border-radius: calc(var(--radius) * 2);
    border: 1px solid hsl(var(--border));
}

.cta-section h2 {
    font-weight: 800;
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

.about-section h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    background: white;
    padding: 3rem;
    border-radius: calc(var(--radius) * 2);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.about-block {
    margin-bottom: 3rem;
}

.about-block:last-child {
    margin-bottom: 0;
    text-align: center;
}

.about-block h2 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-block p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: hsl(var(--muted-foreground));
}

.about-block ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.about-block li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: hsl(var(--muted-foreground));
}

.user-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.user-type {
    background: hsl(var(--muted));
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    transition: all 0.3s;
}

.user-type:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(217, 70, 239, 0.15);
    border-color: hsl(var(--primary));
}

.user-type h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Auth Pages */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.auth-container {
    background: white;
    padding: 3rem;
    border-radius: calc(var(--radius) * 2);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    max-width: 450px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: hsl(var(--muted-foreground));
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.auth-form input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.1);
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    font-size: 0.9rem;
}

.auth-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 70, 239, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: hsl(var(--muted-foreground));
}

.auth-footer a {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.invite-note {
    background: hsl(var(--muted));
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    border-left: 3px solid hsl(var(--primary));
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    color: hsl(var(--muted-foreground));
}

.footer p {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .nav-links a {
        padding: 0.4rem 0.8rem;
    }
    
    .generator-form,
    .auth-container {
        padding: 2rem;
    }
    
    .feature-grid,
    .example-grid,
    .user-types {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
}

/* Fun animations */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.logo:hover {
    animation: wiggle 0.5s ease-in-out;
}

/* Sparkle effect */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.cta-button::after {
    content: '✨';
    position: absolute;
    right: -10px;
    top: -10px;
    animation: sparkle 2s ease-in-out infinite;
}

.cta-button {
    position: relative;
}

/* Loading animation for generate button */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.generate-btn.loading::before {
    content: '⚡';
    display: inline-block;
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: hsl(var(--foreground));
    color: white;
    border-radius: var(--radius);
    white-space: nowrap;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    z-index: 1000;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(217, 70, 239, 0.3);
    color: hsl(var(--foreground));
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}