:root {
    --ice-blue: #e8f4f8;
    --deep-blue: #1a3a52;
    --frost: #c7e3f0;
    --midnight: #0d1f2d;
    --cool-gray: #5a7a8f;
    --crisp-white: #ffffff;
    --accent-teal: #4a9fb8;
    --soft-shadow: rgba(26, 58, 82, 0.08);
}

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

body {
    font-family: 'Source Serif 4', Georgia, serif;
    background: linear-gradient(135deg, var(--ice-blue) 0%, var(--crisp-white) 50%, var(--frost) 100%);
    color: var(--deep-blue);
    line-height: 1.7;
    overflow-x: hidden;
}

.bg-decoration {
    position: fixed;
    border-radius: 50%;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.bg-decoration:nth-child(1) {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-teal), transparent);
    top: -200px;
    right: -200px;
    animation: float 20s infinite ease-in-out;
}

.bg-decoration:nth-child(2) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--deep-blue), transparent);
    bottom: -100px;
    left: -100px;
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}

header {
    position: relative;
    background: var(--crisp-white);
    box-shadow: 0 2px 20px var(--soft-shadow);
    z-index: 100;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-blue);
    text-decoration: none;
    letter-spacing: -0.02em;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--cool-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--accent-teal);
}

nav a:hover::after {
    width: 100%;
}

.hero {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    text-align: center;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.meta {
    font-size: 0.85rem;
    color: var(--cool-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

h1 {
    font-family: 'Fraunces', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--midnight);
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.intro {
    font-size: 1.25rem;
    color: var(--cool-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    z-index: 1;
}

.content-card {
    background: var(--crisp-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--soft-shadow);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.toc {
    background: linear-gradient(135deg, var(--frost), var(--ice-blue));
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--accent-teal);
}

.toc h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--midnight);
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc li {
    margin-bottom: 0.75rem;
}

.toc a {
    color: var(--deep-blue);
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 1.5rem;
}

.toc a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.toc a:hover {
    color: var(--accent-teal);
    transform: translateX(10px);
}

.toc a:hover::before {
    opacity: 1;
}

section {
    margin-bottom: 3.5rem;
}

h2 {
    font-family: 'Fraunces', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-teal), transparent);
}

h3, h4 {
    font-family: 'Fraunces', serif;
    color: var(--deep-blue);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--deep-blue);
}

.strategy-box {
    background: linear-gradient(135deg, var(--midnight), var(--deep-blue));
    color: var(--crisp-white);
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.strategy-box h4 {
    color: var(--frost);
    font-size: 1.3rem;
    margin-top: 0;
}

.strategy-box p {
    color: rgba(255, 255, 255, 0.9);
}

ul, ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.75rem;
    color: var(--deep-blue);
}

strong {
    color: var(--midnight);
    font-weight: 600;
}

.highlight {
    background: linear-gradient(135deg, var(--ice-blue), var(--frost));
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-teal);
    margin: 2rem 0;
}

.cta-section {
    background: linear-gradient(135deg, var(--deep-blue), var(--midnight));
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 4rem;
    box-shadow: 0 15px 50px rgba(13, 31, 45, 0.3);
}

.cta-section h2 {
    color: var(--crisp-white);
    margin-bottom: 2rem;
}

.cta-section h2::after {
    background: linear-gradient(90deg, var(--frost), transparent);
    left: 50%;
    transform: translateX(-50%);
}

.cta-section ol {
    text-align: left;
    max-width: 500px;
    margin: 2rem auto;
    color: var(--frost);
}

.cta-section li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background: var(--accent-teal);
    color: var(--crisp-white);
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(74, 159, 184, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(74, 159, 184, 0.4);
    background: #5ab0ca;
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--frost), transparent);
    margin: 3rem 0;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .content-card {
        padding: 2rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .hero {
        padding: 4rem 1.5rem 3rem;
    }

    .container {
        padding: 0 1.5rem 4rem;
    }

    .toc {
        padding: 1.5rem;
    }
}


/* ============================================
   HOMEPAGE STYLES - CENTERED CARD LAYOUT
   ============================================ */

.homepage-hero {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    text-align: center;
    z-index: 1;
}

.homepage-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.homepage-description {
    font-size: 1.2rem;
    color: var(--cool-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.homepage-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Large Feature Card */
.feature-card {
    background: var(--crisp-white);
    padding: 4rem 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px var(--soft-shadow);
    text-decoration: none;
    color: var(--deep-blue);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-teal), var(--deep-blue));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(26, 58, 82, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--ice-blue), var(--frost));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--accent-teal);
    transition: all 0.3s ease;
}

.feature-card:hover .card-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--frost), var(--accent-teal));
}

.card-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.feature-card h2 {
    font-family: 'Fraunces', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--midnight);
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.feature-card h2::after {
    display: none;
}

/* Secondary Cards Grid */
.secondary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
}

.secondary-card {
    background: var(--crisp-white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--soft-shadow);
    text-decoration: none;
    color: var(--deep-blue);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.secondary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-teal), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.secondary-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(26, 58, 82, 0.15);
}

.secondary-card:hover::before {
    transform: scaleX(1);
}

.card-icon-small {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--ice-blue), var(--frost));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-teal);
    transition: all 0.3s ease;
}

.secondary-card:hover .card-icon-small {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--frost), var(--accent-teal));
}

.secondary-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--midnight);
    margin: 0;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .homepage-hero {
        padding: 3rem 1.5rem 2rem;
    }

    .homepage-hero h1 {
        font-size: 2.2rem;
    }

    .homepage-container {
        padding: 1rem 1.5rem 4rem;
    }

    .feature-card {
        padding: 3rem 2rem;
    }

    .feature-card h2 {
        font-size: 1.75rem;
    }

    .secondary-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card-icon {
        width: 70px;
        height: 70px;
    }

    .card-icon-small {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .homepage-hero h1 {
        font-size: 1.8rem;
    }

    .homepage-description {
        font-size: 1.05rem;
    }
}

/* ============================================
   SECTION LIST PAGES (Reviews, Factors, etc.)
   ============================================ */

.section-hero {
    background: linear-gradient(135deg, var(--frost), var(--ice-blue));
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
}

.section-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--deep-blue);
    text-align: center;
    line-height: 1.7;
}

.section-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.section-card {
    background: var(--crisp-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--soft-shadow);
    text-decoration: none;
    color: var(--deep-blue);
    transition: all 0.3s ease;
    display: block;
    position: relative;
    border-left: 4px solid transparent;
}

.section-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(26, 58, 82, 0.15);
    border-left-color: var(--accent-teal);
}

.section-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--midnight);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.section-card p {
    color: var(--cool-gray);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--accent-teal);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.section-card:hover .read-more {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .section-hero {
        padding: 3rem 0 2rem;
    }

    .section-hero h1 {
        font-size: 2.2rem;
    }

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

    .section-card {
        padding: 2rem;
    }
}
