@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Brand Colors (extracted from Tilda) */
    --primary: #555aff;
    /* Vibrant Purple/Blue */
    --accent: #f5914f;
    /* Energetic Orange */
    --secondary-light: #a7b0f8;
    /* Soft Purple */
    --secondary-peach: #fbceb5;
    /* Soft Peach */
    --success: #10b981;
    /* Green */

    /* Semantic Colors */
    --bg-color: #f8f9fa;
    /* Clean Light Background */
    --bg-card: #ffffff;
    --text-main: #1d1d1f;
    /* Apple-like dark gray */
    --text-muted: #86868b;

    /* UI Elements */
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 10px 40px -10px rgba(85, 90, 255, 0.15);
    --shadow-hover: 0 20px 50px -12px rgba(85, 90, 255, 0.25);

    --font-heading: 'Jost', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    /* Extra padding for navbar and footer */
    padding-bottom: 100px;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 32px;
    margin-bottom: 24px;
}

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

h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
    color: #424245;
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.6s ease-out;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Featured Card (Orange Gradient) */
.card.featured {
    background: linear-gradient(135deg, #f5914f 0%, #ff8a5c 100%);
    color: white;
}

.card.featured h2,
.card.featured p,
.card.featured span {
    color: white;
}

/* Primary Card (Purple Gradient) */
.card.primary {
    background: linear-gradient(135deg, #555aff 0%, #7e83ff 100%);
    color: white;
}

.card.primary h2,
.card.primary p {
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(85, 90, 255, 0.3);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(85, 90, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

/* Input Fields */
input,
select,
textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e1e1e1;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.2s;
    background: #fdfdfd;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

/* Navigation - Floating Bottom Bar */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 480px;
    background: rgba(255, 255, 255, 0.85);
    /* More opaque */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-item {
    color: var(--text-muted);
    font-size: 24px;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nav-item.active {
    background: var(--primary);
    color: white;
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(85, 90, 255, 0.3);
}

/* Footer (New!) */
.site-footer {
    background: #111;
    color: white;
    padding: 40px 20px 100px 20px;
    /* Bottom padding for nav */
    margin-top: 40px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
    display: block;
    color: white;
    text-decoration: none;
}

.footer-links a {
    display: block;
    color: #999;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-socials {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}

.social-icon:hover {
    background: var(--primary);
}

/* Utilities */
.text-accent {
    color: var(--accent);
}

.text-primary {
    color: var(--primary);
}

.flex-bg-peach {
    background-color: var(--secondary-peach);
}

.flex-bg-purple {
    background-color: var(--secondary-light);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.container {
    animation: fadeIn 0.6s ease-out;
}