@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;800&display=swap');

:root {
    --color-primary: #059669;
    --color-primary-light: #34D399;
    --color-primary-dark: #047857;
    --color-accent: #D97706;
    --color-accent-light: #FBBF24;
    --color-bg: #F0FDF4;
    --color-bg-card: rgba(255, 255, 255, 0.82);
    --color-text: #0F172A;
    --color-text-light: #475569;
    --color-text-muted: #94A3B8;
    --color-border: rgba(5, 150, 105, 0.12);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 30px -5px rgba(15, 23, 42, 0.1);

    --max-width: 1200px;
    --sidebar-width: 300px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-text)
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition)
}

a:hover {
    color: var(--color-primary-dark)
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px
}

/* Background blobs */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    animation: blobFloat 22s infinite alternate
}

.bg-blob-1 {
    top: -8%;
    left: -8%;
    width: 550px;
    height: 550px;
    background: rgba(52, 211, 153, .3)
}

.bg-blob-2 {
    top: 45%;
    right: -10%;
    width: 480px;
    height: 480px;
    background: rgba(217, 119, 6, .12);
    animation-delay: -6s
}

.bg-blob-3 {
    bottom: -10%;
    left: 25%;
    width: 600px;
    height: 600px;
    background: rgba(5, 150, 105, .18);
    animation-delay: -12s
}

@keyframes blobFloat {
    0% {
        transform: translateY(0) scale(1)
    }

    100% {
        transform: translateY(40px) scale(1.08)
    }
}

/* Nav */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 20px
}

.nav-glass {
    max-width: var(--max-width);
    margin: 0 auto;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: var(--radius-full);
    padding: 12px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm)
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    gap: 8px
}

.nav-brand span {
    font-size: 1.5rem
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px
}

.nav-links a {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: .95rem;
    position: relative;
    padding: 4px 0
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary)
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
    border-radius: 2px
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%
}

/* Hero */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative
}

.hero-mini {
    padding: 140px 0 60px
}

.badge {
    display: inline-block;
    background: rgba(217, 119, 6, .1);
    color: var(--color-accent);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 24px;
    border: 1px solid rgba(217, 119, 6, .2)
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px
}

.page-header h1 span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.page-header p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto
}

/* Layout */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 32px;
    margin-bottom: 100px
}

.tools-col {
    display: flex;
    flex-direction: column;
    gap: 40px
}

/* Glass Card */
.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: transform .3s ease, box-shadow .3s ease
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg)
}

.tool-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px
}

.tool-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: #fff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 16px rgba(5, 150, 105, .25);
    flex-shrink: 0
}

.tool-title h2 {
    font-size: 1.75rem;
    margin-bottom: 8px
}

.tool-title p {
    color: var(--color-text-light);
    font-size: .95rem
}

/* Forms */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px
}

.form-group {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column
}

.form-label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 8px
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .9);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    transition: var(--transition);
    outline: none
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, .1);
    background: #fff
}

textarea {
    resize: vertical;
    min-height: 120px
}

.input-suffix {
    position: absolute;
    right: 16px;
    bottom: 14px;
    color: var(--color-text-muted);
    font-size: .95rem;
    font-weight: 500;
    pointer-events: none
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(5, 150, 105, .3)
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, .4);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary))
}

.btn:active {
    transform: translateY(0)
}

/* Results */
.result-box {
    margin-top: 32px;
    padding: 32px;
    background: rgba(5, 150, 105, .03);
    border: 2px dashed rgba(5, 150, 105, .2);
    border-radius: var(--radius-md);
    text-align: center;
    display: none;
    animation: slideUp .5s ease forwards
}

.result-box.show {
    display: block
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.result-val {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px
}

.result-val.accent {
    color: var(--color-accent)
}

.result-desc {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 24px
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 24px
}

.stat-card {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--color-border)
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text)
}

.stat-label {
    font-size: .85rem;
    color: var(--color-text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 4px
}

/* Guide Table */
.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: .95rem
}

.guide-table th {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700
}

.guide-table th:first-child {
    border-radius: var(--radius-sm) 0 0 0
}

.guide-table th:last-child {
    border-radius: 0 var(--radius-sm) 0 0
}

.guide-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border)
}

.guide-table tr:hover td {
    background: rgba(5, 150, 105, .04)
}

.guide-table .dose-low {
    color: var(--color-primary)
}

.guide-table .dose-med {
    color: var(--color-accent)
}

.guide-table .dose-high {
    color: #DC2626
}

/* Tip box */
.tip-box {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(217, 119, 6, .06);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--color-text-light);
    font-size: .9rem;
    text-align: left;
    line-height: 1.7
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: max-content;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    gap: 24px
}

.ad-slot {
    background: rgba(255, 255, 255, .5);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    color: var(--color-text-muted)
}

.ad-slot-sidebar {
    width: 300px;
    aspect-ratio: 300/250
}

.ad-slot-incontent {
    width: 100%;
    aspect-ratio: 728/90
}

.ad-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.ad-slot a {
    display: block;
    width: 100%;
    height: 100%
}

/* Legal */
.legal-content {
    background: var(--color-bg-card);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 80px
}

.legal-content h2 {
    margin: 32px 0 16px;
    font-size: 1.5rem
}

.legal-content p,
.legal-content li {
    margin-bottom: 16px;
    color: var(--color-text)
}

.legal-content ul {
    margin-left: 24px;
    margin-bottom: 24px
}

/* Fade animations */
.fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease-out, transform .8s ease-out
}

.fade.visible {
    opacity: 1;
    transform: translateY(0)
}

/* Footer */
.site-foot {
    background: #0F172A;
    color: #F8FAFC;
    padding: 80px 0 32px;
    margin-top: auto
}

.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px
}

.foot-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px
}

.foot-p {
    color: #94A3B8;
    max-width: 300px
}

.foot-head {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px
}

.foot-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.foot-links a {
    color: #94A3B8;
    transition: color .2s
}

.foot-links a:hover {
    color: var(--color-primary-light)
}

.foot-bot {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748B;
    font-size: .9rem
}

/* Responsive */
@media(max-width:1024px) {
    .layout-grid {
        grid-template-columns: 1fr
    }

    .sidebar {
        display: none
    }

    .ad-slot-incontent {
        display: none
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px
    }
}

@media(max-width:768px) {
    .page-header h1 {
        font-size: 2.5rem
    }

    .form-row {
        flex-direction: column;
        gap: 16px
    }

    .glass-card {
        padding: 24px
    }

    .nav-links {
        display: none
    }

    .nav-glass {
        justify-content: center
    }

    .foot-grid {
        grid-template-columns: 1fr
    }

    .legal-content {
        padding: 30px
    }

    .guide-table {
        font-size: .85rem
    }

    .guide-table th,
    .guide-table td {
        padding: 8px 10px
    }
}