:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #475569;
    --accent: #3b82f6;
    --background: #ffffff;
    --surface: #f8fafc;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-surface: linear-gradient(135deg, var(--surface) 0%, #f1f5f9 100%);
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

p {
    margin-bottom: var(--space-4);
    color: var(--text-light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    gap: var(--space-6);
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--space-2);
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--surface);
}

/* Hero Section */
.hero {
    padding: calc(var(--space-16) * 2) var(--space-4) var(--space-16);
    background: var(--gradient-surface);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
}

/* URL Shortener */
.url-shortener {
    display: flex;
    gap: var(--space-4);
    max-width: 600px;
    margin: 0 auto;
}

.url-shortener input {
    flex: 1;
    padding: var(--space-4);
    border: 2px solid var(--border);
    border-radius: var(--space-2);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.url-shortener input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.url-shortener button {
    padding: var(--space-4) var(--space-8);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--space-2);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.url-shortener button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Features Section */
.features {
    padding: var(--space-16) var(--space-4);
    background: var(--background);
}

.features h2 {
    text-align: center;
    margin-bottom: var(--space-12);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: var(--space-8);
    background: var(--surface);
    border-radius: var(--space-4);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card img {
    margin-bottom: var(--space-4);
}

/* How It Works */
.how-it-works {
    padding: var(--space-16) var(--space-4);
    background: var(--surface);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: var(--space-12);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    padding: var(--space-8);
    background: var(--background);
    border-radius: var(--space-4);
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: var(--space-16) var(--space-4);
    background: var(--background);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    margin-bottom: var(--space-8);
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
}

.contact-email {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    background: var(--surface);
    border-radius: var(--space-2);
    transition: all 0.2s ease;
}

.contact-email:hover {
    background: var(--gradient-surface);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--surface);
    padding: var(--space-16) var(--space-4) var(--space-4);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    margin-bottom: var(--space-4);
}

.footer-section a {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--text-light);
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    margin-top: var(--space-12);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
    color: var(--text-light);
}

/* Result Container */
.result-container {
    margin-top: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--space-2);
    background: var(--surface);
    display: none;
}

.result-container.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.result-container.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
}

.result-container.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .url-shortener {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        padding: var(--space-4);
        border-bottom: 1px solid var(--border);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
} 