:root {
    --primary: #ff6b6b;
    --primary-dark: #ee5253;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text: #2d3436;
    --text-light: #636e72;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    min-height: 100vh;
    background: var(--bg-gradient);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 70px;
    /* Space for fixed nav */
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

header {
    padding: 3rem 1rem 1rem;
    text-align: center;
}

.header-container h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--primary), #a29bfe);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-container p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.container {
    width: 95%;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem 4rem;
}

.sizer-main {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab {
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
    border: 1px solid transparent;
}

.tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.sizer-area {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.measuring-circle {
    width: 150px;
    height: 150px;
    border: 4px solid var(--primary);
    border-radius: 50%;
    position: relative;
    transition: width 0.1s, height 0.1s;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.2);
    background: white;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.size-display {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

.hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* App Promotion */
.app-promotion {
    background: linear-gradient(45deg, #1e272e, #2f3640);
    color: white;
    padding: 3rem;
    border-radius: 32px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.app-promotion h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.app-promotion p {
    color: #dcdde1;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.app-badge {
    height: 50px;
    transition: 0.3s;
}

.app-badge:hover {
    transform: scale(1.05);
}

/* Info Sections */
.info-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.6rem;
}

.info-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.info-card ul {
    list-style-position: inside;
    margin-top: 1rem;
}

.info-card li {
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

/* Table styling */
.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

th,
td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    color: var(--text);
    font-weight: 600;
}

tr:hover {
    background: #fffcfc;
}

/* FAQ styling */
.faq-container {
    margin-top: 1.5rem;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 1.2rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.calibration-box {
    position: absolute;
    width: 85.6mm;
    height: 54mm;
    border: 3px dashed var(--primary);
    border-radius: 10px;
    display: none;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    background: rgba(255, 107, 107, 0.1);
    pointer-events: none;
    z-index: 10;
}

.calibration-box.active {
    display: flex;
}

/* Footer */
footer {
    padding: 4rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-container p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-container nav a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-container nav a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .info-sections {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .sizer-main {
        padding: 1.5rem;
    }

    .app-promotion {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }

    .size-display {
        font-size: 1.8rem;
    }
}