/* Quarterback Asset Management - Design System */
/* Color Palette
   Primary: #1e3a5f (dark blue)
   Secondary: #64748B (gray)
   Accent: #4B7BEC (blue)
   Danger: #DC2626 (red)
   Gray: Slate scale
*/

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
    /* Colors */
    --primary: #1e3a5f;
    --primary-light: #2d4a7c;
    --secondary: #64748B;
    --secondary-light: #94A3B8;
    --accent: #4B7BEC;
    --accent-light: #6B9AFF;
    --danger: #DC2626;
    --danger-light: #EF4444;

    /* Grays (Slate) */
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    line-height: 1.6;
    color: var(--slate-800);
    background: var(--slate-50);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--primary);
    color: white;
    padding: 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    font-size: 1.2rem;
}

/* Logo styling */
.logo {
    margin: 0;
    padding: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 280px;
}

/* Brand styling - kept for fallback */
.brand-symbol {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.brand-text {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 400;
    margin-left: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin-top: 1rem;
}

.nav-menu a {
    color: var(--slate-300);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    background: var(--primary-light);
    color: white;
}

.nav-menu a.active {
    background: var(--accent);
    color: white;
    font-weight: 600;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.hamburger {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
    display: block;
}

.nav-toggle-active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle-active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle-active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Main */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Forms */
.calculator-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid var(--slate-200);
}

.form-section {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--slate-200);
}

.form-section h3 {
    margin-top: 0;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--slate-700);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--slate-300);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.btn {
    background: var(--accent);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
}

.btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--slate-600);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--slate-700);
}

/* Results */
.result-box {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
}

.result-item {
    padding: 1.25rem;
    margin: 1rem 0;
    border-left: 4px solid var(--accent);
    background: var(--slate-50);
    border-radius: 8px;
}

.result-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.result-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}

/* Warning messages */
.warning {
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.error {
    background: #FEE2E2;
    border-left: 4px solid var(--danger);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.info-box {
    background: var(--slate-50);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    border: 1px solid var(--slate-200);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--slate-300);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--slate-200);
}

.footer-logo-image {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-tagline {
    font-size: 1rem;
    color: var(--slate-400);
    margin-top: 0.5rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    color: var(--accent-light);
}

/* Hero Section - Quarterback Style */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    text-align: center;
}

.hero-logo {
    height: 70px;
    width: auto;
    margin-bottom: 1.5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-brand {
    margin-bottom: 2rem;
}

.hero-title {
    margin: 0 0 1.75rem 0;
}

.hero h1 {
    font-size: 3.25rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: white;
}

.hero h1 .brand-name {
    color: var(--accent-light);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.92;
    font-weight: 400;
    color: var(--slate-200);
    line-height: 1.6;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-item strong {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-light);
}

.stat-item span {
    font-size: 0.95rem;
    color: var(--slate-300);
    font-weight: 500;
}

.hero-trust-badge {
    text-align: center;
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.hero-trust-badge p {
    margin: 0;
    font-size: 1rem;
    color: var(--slate-200);
    line-height: 1.7;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0;
    flex-wrap: wrap;
}

.hero-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    min-width: 200px;
    transition: all 0.3s ease;
}

.hero-cta .btn-primary {
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(75, 123, 236, 0.3);
}

.hero-cta .btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(75, 123, 236, 0.4);
}

.hero-cta .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.hero-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Section Styles */
.section-title {
    font-size: 2.25rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--slate-600);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.calculator-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--slate-200);
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
}

.calculator-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1;
}

.card-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.calculator-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.calculator-card p {
    color: var(--slate-600);
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.7;
}

.card-features {
    list-style: none;
    margin-bottom: 1.5rem;
    padding: 0;
}

.card-features li {
    color: var(--slate-600);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.card-button {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
}

.card-button:hover {
    background: var(--accent-light);
    transform: translateX(4px);
}

/* Guide Section */
.content-section {
    background: var(--slate-50);
    padding: 4rem 0;
    margin: 3rem 0;
    border-radius: 24px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.guide-item {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

.guide-item h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.guide-item p {
    color: var(--slate-600);
    line-height: 1.7;
}

/* FAQ Section */
.faq-section {
    margin: 4rem 0;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
    transition: all 0.2s;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--slate-600);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4rem;
    border-radius: 20px;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.15;
    transform: rotate(45deg);
}

.cta-section h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: white;
    position: relative;
}

.cta-section p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--slate-300);
    position: relative;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    background: var(--accent-light);
    transform: scale(1.05);
}

/* HTMX Loading Indicator */
.htmx-indicator {
    display: none;
    margin-left: 1rem;
    color: var(--accent);
    font-weight: 600;
}

.htmx-request .htmx-indicator {
    display: inline;
}

/* SEO Content Styling */
.seo-content {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 2px solid var(--slate-200);
}

.seo-content h2 {
    color: var(--primary);
    margin-bottom: 2rem;
}

.seo-content h3 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.seo-content th {
    background: var(--slate-100);
    border: 1px solid var(--slate-300);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
}

.seo-content td {
    border: 1px solid var(--slate-300);
    padding: 0.75rem;
}

/* Number Formatting Styles */
.formatted-number {
    text-align: right;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.formatted-number:focus {
    background-color: var(--slate-50);
}

/* Birth year field - align right without formatting */
#birth_year {
    text-align: right;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix,
.input-suffix {
    padding: 0.75rem 1rem;
    background: var(--slate-100);
    border: 1.5px solid var(--slate-300);
    color: var(--slate-700);
    font-weight: 600;
}

.input-prefix {
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.input-suffix {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.input-group input {
    flex: 1;
    border-radius: 0;
}

.input-group input:focus {
    z-index: 1;
}

.input-prefix + input {
    border-radius: 0 10px 10px 0;
}

input + .input-suffix {
    margin-left: -1.5px;
}

/* Amount input helper text */
.input-help {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-top: 0.25rem;
}

/* Slider Styles */
input[type="range"] {
    width: 100%;
    height: 8px;
    background: var(--slate-200);
    border-radius: 4px;
    outline: none;
    margin: 1rem 0;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-value {
    float: right;
    font-weight: 700;
    color: var(--accent);
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    /* Typography adjustments for better readability */
    body {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }

    /* Container padding */
    .container {
        padding: 0 15px;
    }

    /* Navigation improvements */
    .navbar {
        padding: 0.75rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--primary);
        width: 100%;
        padding: 1rem;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        margin-top: 0;
        gap: 0.25rem;
    }

    .nav-menu-active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .logo a {
        font-size: 1.2rem;
    }

    .logo-image {
        height: 40px;
        max-width: 220px;
    }

    .brand-subtitle {
        display: none;
    }

    .brand-symbol {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    /* Form improvements for touch devices */
    .calculator-form {
        padding: 1.25rem;
    }

    .form-section {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.875rem 1rem;
        min-height: 48px; /* Better touch target */
    }

    .btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.05rem;
        min-height: 48px;
    }

    /* Table responsive wrapper */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }

    table {
        min-width: 100%;
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.5rem !important;
        font-size: 0.875rem;
    }

    /* Result box adjustments */
    .result-box {
        padding: 1.25rem;
    }

    .result-item {
        padding: 1rem;
        margin: 0.75rem 0;
    }

    .result-value {
        font-size: 1.5rem;
    }

    /* Hero section */
    .hero {
        padding: 4rem 0 3.5rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.25rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 2.5rem;
        line-height: 1.55;
    }

    .hero-logo {
        height: 55px;
        margin-bottom: 1.25rem;
    }

    .hero-title {
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
        min-width: auto;
        padding: 1.05rem 2rem;
        font-size: 1.05rem;
    }

    /* Grid layouts */
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .calculator-card {
        padding: 1.5rem;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Info boxes */
    .info-box {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }

    /* Footer */
    footer {
        padding: 2rem 0;
    }

    /* SEO content */
    .seo-content {
        padding: 2rem 0;
    }

    .seo-content h2 {
        font-size: 1.5rem;
    }

    .seo-content h3 {
        font-size: 1.25rem;
    }

    /* Form row - stack on mobile */
    .form-row {
        display: block !important;
    }

    .form-row .form-group {
        width: 100%;
    }
}

/* Extra small devices (phones < 480px) */
@media (max-width: 480px) {
    /* Even smaller text adjustments */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.15rem; }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero h1 {
        font-size: 1.85rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .hero-logo {
        height: 45px;
        margin-bottom: 1rem;
    }

    .hero-cta .btn {
        padding: 0.95rem 1.75rem;
        font-size: 1rem;
    }

    .logo-image {
        height: 35px;
        max-width: 180px;
    }

    .footer-logo-image {
        height: 30px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .calculator-card h3 {
        font-size: 1.15rem;
    }

    .result-value {
        font-size: 1.35rem;
    }

    /* Smaller padding on very small screens */
    .container {
        padding: 0 10px;
    }

    .calculator-form {
        padding: 1rem;
    }

    .form-section {
        padding: 1rem;
    }

    /* Stack buttons on very small screens */
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-group .btn {
        width: 100%;
    }
}

/* Table scroll indicator for mobile */
@media (max-width: 768px) {
    .table-scroll-wrapper {
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-scroll-wrapper::after {
        content: '← 스크롤 →';
        position: absolute;
        bottom: -20px;
        right: 10px;
        font-size: 0.75rem;
        color: var(--slate-500);
        background: white;
        padding: 2px 8px;
        border-radius: 4px;
        border: 1px solid var(--slate-300);
    }

    .table-scroll-wrapper table {
        min-width: 500px;
    }
}

/* Improved touch targets */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 24px;
        min-height: 24px;
    }

    label {
        padding: 0.5rem 0;
    }

    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

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

.calculator-card {
    animation: fadeIn 0.5s ease-out;
}

/* Quarterback Specific Components */
.qb-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.qb-highlight {
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Floating Company Info Button */
.floating-company-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.floating-company-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #7c8ef5 0%, #8a5bb8 100%);
}

.floating-company-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.floating-company-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.floating-btn-text {
    white-space: nowrap;
}

/* Floating button animation on page load */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-company-btn {
    animation: floatIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

/* Pulsing effect for attention */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5), 0 0 0 8px rgba(102, 126, 234, 0.1);
    }
}

.floating-company-btn {
    animation: floatIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both,
               pulse 2s ease-in-out 2s infinite;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .floating-company-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.875rem;
    }

    .floating-company-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .floating-company-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 0.8rem;
        border-radius: 40px;
    }

    .floating-btn-text {
        font-size: 0.8rem;
    }

    .floating-company-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid var(--slate-200);
    font-size: 0.875rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item a {
    color: var(--slate-600);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--accent);
}

.breadcrumb-item.active {
    color: var(--slate-900);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--slate-400);
    user-select: none;
}

/* Mobile breadcrumb */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 0.75rem 0;
        font-size: 0.8rem;
    }

    .breadcrumb-list {
        gap: 0.35rem;
    }
}