:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #D1FAE5;
    --secondary: #0f172a;
    --accent: #34D399;
    --text: #1e293b;
    --text-light: #64748b;
    --bg-mesh: radial-gradient(at 0% 0%, hsla(161, 71%, 95%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(187, 92%, 95%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(152, 81%, 95%, 1) 0, transparent 50%),
        #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.75);
    --border: rgba(226, 232, 240, 0.6);
    --radius: 24px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 60px -10px rgba(0, 0, 0, 0.08);
    --shadow-primary: 0 10px 25px -10px rgba(16, 185, 129, 0.3);
}

@keyframes slideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-5px); } 100% { transform: translateY(0px); } }
@keyframes pulse-glow { 0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4); } 70% { box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); } }
@keyframes wobble { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }

.tool-icon { transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.tool-card:hover .tool-icon { transform: scale(1.1) rotate(5deg); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
/* Add variety */
.tool-card:nth-child(3n) .tool-icon { animation: float 6s ease-in-out infinite; }
.tool-card:nth-child(3n+1) .tool-icon { animation: float 7s ease-in-out infinite 1s; }
.tool-card:nth-child(3n+2) .tool-icon { animation: float 5s ease-in-out infinite 0.5s; }

.tool-card:hover .tool-icon { animation: none; transform: scale(1.15) rotate(-3deg) translateY(-5px); }

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg-mesh);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 2rem 1rem;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* More Compact Glass Header */
.app-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-md);
}

.app-title {
    color: var(--secondary);
    font-size: 1.7rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.app-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: -0.02em;
}

/* Balanced Tool Card */
.tool-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.tool-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.9);
}

/* Proportional Inputs */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: var(--secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.6);
    color: var(--text);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #10B981 0%, #065f46 100%);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -5px rgba(16, 185, 129, 0.4);
}

/* Split View Grid */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 850px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .app-title {
        font-size: 1.5rem;
    }
}

/* Balanced Upsell */
.upsell-banner {
    margin-top: 3rem;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.upsell-text {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 5;
    letter-spacing: -0.04em;
}

.upsell-btn {
    background: #10B981;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 99px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* Content Area Fixes */
.content-area {
    margin-top: 3rem;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md);
}

.content-area h1 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--secondary);
}

.content-area h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 2rem 0 1rem;
    color: var(--secondary);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-area h2::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 20px;
    background: var(--primary);
    border-radius: 3px;
}

.content-area p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Bullet List Protection */
.content-area ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 1.5rem !important;
}

.content-area li {
    list-style: none !important;
    margin-bottom: 0.75rem !important;
    color: var(--text);
    padding-left: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    font-size: 1rem;
    font-weight: 500;
}

.content-area li::before,
.content-area li::after {
    content: none !important;
}

.content-area li i {
    color: var(--primary);
    margin-top: 5px;
    font-size: 0.95rem;
    flex-shrink: 0;
}