/* ====================================================
   SUNO MASTERING — UNIFIED DESIGN SYSTEM
   Colors: Black, White, Grey, Blue (#0066ff) ONLY
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,slnt,wdth,wght,ROND@8..144,-10..0,25..150,400..500,0..100&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Google+Sans+Display:wght@300;400;500;700&family=Roboto:wght@300;400;500&display=swap');

:root {
    --black:         #000000;
    --surface:       #0a0a0f;
    --surface-2:     #111116;
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --blue:          #0066ff;
    --blue-dim:      rgba(0, 102, 255, 0.15);
    --white:         #ffffff;
    --grey-1:        rgba(255, 255, 255, 0.6);  /* strong muted */
    --grey-2:        rgba(255, 255, 255, 0.4);  /* medium muted */
    --grey-3:        rgba(255, 255, 255, 0.18); /* subtle */

    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  24px;
    --radius-pill: 100px;

    --container: 1060px;
    --nav-h: 72px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --fast: 0.15s;
    --mid:  0.3s;
}

/* ==== RESET ==== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Global: no underlines anywhere */
a, a:visited, a:hover, a:active,
button, .btn { text-decoration: none !important; }

a { color: inherit; }
a:hover { color: var(--blue); }

h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    margin-bottom: 1rem;
}


body {
    background: var(--black);
    color: var(--white);
    font-family: 'Google Sans Flex', 'Google Sans', 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==== LAYOUT ==== */
.container-narrow {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section { display: none; }
.section.active { display: block; }
.hidden { display: none !important; }
.mt-4 { margin-top: 2.5rem; }
.flex-center { display: flex; justify-content: center; }

/* ==== NAV ==== */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-h);
    padding: 0 2.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-link {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
}
.logo svg { width: 28px; height: 28px; color: var(--blue); }

.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-link {
    color: var(--grey-2);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    transition: color var(--fast) var(--ease);
}
.nav-link:hover { color: var(--white); }

/* ==== BUTTONS ==== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--mid) var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--blue);
    color: var(--white) !important;
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
}
.btn-primary:hover {
    background: #1a7aff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--white);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--grey-2);
    color: var(--white);
}

.btn-success {
    background: var(--blue);
    color: var(--white);
}

.landing-btn {
    padding: 1.2rem 3.5rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
    animation: pulseglow 3s infinite;
}

@keyframes pulseglow {
    0% { box-shadow: 0 0 20px rgba(0, 102, 255, 0.4); }
    50% { box-shadow: 0 0 45px rgba(0, 102, 255, 0.7); }
    100% { box-shadow: 0 0 20px rgba(0, 102, 255, 0.4); }
}

.nav-btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.82rem;
}

.btn-icon { width: 16px; height: 16px; }

/* ==== AMBIENT GLOW ==== */
.ambient-glow {
    display: none;
}

/* ==== LANDING HERO ==== */
.landing-hero {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-content {
    text-align: center;
    padding: 6rem 2rem;
    max-width: 720px;
    margin: 0 auto;
}

.landing-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: var(--white);
}

.landing-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: #ffffff;
    opacity: 1;
    line-height: 1.7;
    margin-bottom: 3.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.01em;
}

.glow-container {
    display: inline-block;
    position: relative;
}

/* ==== UPLOAD SECTION ==== */
#uploadSection {
    max-width: var(--container);
    margin: 0 auto;
    padding: 5rem 2rem;
}

.upload-box {
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 5rem 2rem;
    text-align: center;
    background: var(--surface);
    transition: all var(--mid) var(--ease);
    cursor: pointer;
}
.upload-box:hover,
.upload-box.dragover {
    border-color: var(--blue);
    background: rgba(0, 102, 255, 0.04);
}
.upload-box svg {
    color: var(--grey-3);
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.upload-box h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.upload-box p {
    color: var(--grey-2);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* ==== TRACK LIST ==== */
.track-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--grey-1);
    transition: border-color var(--fast) var(--ease);
}
.track-item:hover { border-color: var(--border-strong); }
.track-item .btn-outline {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
}

/* ==== MASTERING CARDS ==== */
#masteringSection {
    max-width: var(--container);
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
}


/* ==== MASTERING CARD & LOADER ==== */
.mastering-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 3.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--mid) var(--ease), border-color var(--mid) var(--ease);
}

.mastering-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--surface);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    transition: opacity 0.5s ease, visibility 0.5s;
    padding: 3rem;
}

.mastering-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    width: 100%;
    max-width: 440px;
    text-align: left;
}

.loader-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.loader-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.01em;
}

.loader-percentage {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--blue);
    font-variant-numeric: tabular-nums;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-icon {
    animation: spin 1.2s linear infinite;
    transform-origin: center;
}

.loader-progress-track {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--blue);
    box-shadow: 0 0 20px var(--blue-dim);
    transition: width 0.1s linear;
}

.loader-status {
    font-size: 0.9rem;
    color: var(--grey-1);
    height: 1.2rem;
}

.mastering-card-content {
    transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s ease;
}

.mastering-card-content.processing {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.98);
    pointer-events: none;
}

/* Toggle */
.toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.toggle-switch {
    display: inline-flex;
    background: #0a0c10;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    padding: 0.25rem;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.toggle-switch input[type="radio"] { 
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
}
.toggle-label {
    padding: 0.6rem 2rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--grey-3);
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}
.toggle-switch input[type="radio"]:checked + .toggle-label {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}
.toggle-slider { display: none; }

/* Player */
.player-container {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--mid) var(--ease);
}
.play-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
    transform: scale(1.06);
}
.play-btn svg { width: 26px; height: 26px; }
.play-btn .play-icon { margin-left: 4px; }

.track-info { flex: 1; min-width: 0; }
.track-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.time-info {
    font-size: 0.95rem;
    color: var(--grey-2);
    font-variant-numeric: tabular-nums;
}

/* Waveform */
.canvas-container {
    position: relative;
    height: 120px;
    background: var(--black);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: visible; /* allow ruler markers to hang slightly below */
    margin-bottom: 3.5rem; /* extra space for ruler */
    cursor: col-resize;
}

/* Time Ruler */
.waveform-ruler {
    position: absolute;
    bottom: -2.2rem;
    left: 0;
    width: 100%;
    height: 20px;
    display: flex;
    pointer-events: none;
}

.time-marker {
    position: absolute;
    font-size: 0.65rem;
    color: var(--grey-3);
    font-weight: 500;
    transform: translateX(-50%);
    white-space: nowrap;
}
.time-marker::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    width: 1px;
    height: 6px;
    background: var(--border);
}

.waveform-canvas { width: 100%; height: 100%; display: block; }

.progress-overlay {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: rgba(0, 102, 255, 0.18);
    pointer-events: none;
    border-right: 2px solid var(--blue);
    transition: none;
}

/* Controls — 4-card slider grid */
.controls-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.slider-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all var(--mid) var(--ease);
    min-width: 0;
    height: 100%;
}
.slider-card:hover { border-color: rgba(0,102,255,0.4); }

.slider-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centered so 1-line and 2-line labels stay balanced */
    min-height: 2.8rem;
    margin-bottom: 0.5rem;
}

.slider-card-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white); /* Changed to pure white as requested */
    flex: 1;
    line-height: 1.4;
}

.slider-card-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 0.02em;
    text-align: right;
    white-space: nowrap;
    min-width: 85px; /* SHIELD FROM OVERFLOW */
}

/* slider inside card takes full width */
.slider-card input[type=range] {
    width: 100%;
    flex: none;
}

/* legacy control-group — keep for any other pages */
.control-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
}

/* Range Slider — ALL sliders unified */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    background: var(--border-strong);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    min-width: 0;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--white);
    border: 2.5px solid var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.25);
    transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
    cursor: grab;
}
input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(0, 102, 255, 0.3);
}
input[type=range]::-webkit-slider-thumb:active { cursor: grabbing; }
input[type=range]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--white);
    border: 2.5px solid var(--blue);
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.25);
}

/* Bulk actions */
.bulk-actions {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
}

/* ==== FEATURES SECTION ==== */
.premium-features {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    color: var(--white);
    text-align: center;
    margin-bottom: 5rem;
    line-height: 1.15;
    font-variation-settings: 'wdth' 100, 'ROND' 60;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: border-color var(--mid) var(--ease);
}
.feature-item:hover { border-color: var(--border-strong); }

.feature-item.full-width {
    grid-column: 1 / -1;
    flex-direction: column;
    text-align: center;
}

.feature-visual {
    font-size: 2rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.feature-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.feature-text p, .text-center p {
    font-size: 0.95rem;
    color: var(--white);
    opacity: 0.9;
    line-height: 1.7;
}

.feature-text strong,
.text-center strong { color: var(--white); font-weight: 600; }

/* ==== FAQ SECTION ==== */
.minimal-faq {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.minimal-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.faq-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: border-color var(--mid) var(--ease);
}
.faq-block:hover { border-color: var(--border-strong); }

.faq-block h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.faq-block p {
    font-size: 0.9rem;
    color: var(--grey-2);
    line-height: 1.7;
}

.faq-block strong { color: var(--white); }

/* ==== TIPS SECTION ==== */
.tips-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
    position: relative;
    z-index: 1;
}

.tips-intro {
    text-align: center;
    margin-bottom: 5rem;
}

.tips-lead {
    font-size: 1.1rem;
    color: var(--grey-1);
    margin-top: -3rem;
    margin-bottom: 0;
}

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

.tip-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    position: relative;
    transition: border-color var(--mid) var(--ease), transform var(--mid) var(--ease);
}

.tip-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
}

.tip-number {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--blue);
    margin-bottom: 1rem;
}

.tip-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.tip-card p {
    font-size: 0.88rem;
    color: var(--grey-2);
    line-height: 1.7;
}

.tip-card strong { color: var(--white); font-weight: 600; }
.tip-card em { color: var(--grey-1); font-style: normal; }

.site-footer {
    background: var(--black);
    border-top: 1px solid var(--border);
    padding: 5rem 0 3rem;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.footer-brand .footer-logo {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--white);
    margin-bottom: 0.85rem;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--grey-1);
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: flex-start;
}

.footer-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey-1);
    margin-bottom: 0.25rem;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--grey-1);
    transition: color var(--fast) var(--ease);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    text-align: left;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.footer-bottom span {
    font-size: 0.85rem;
    color: var(--grey-1);
    letter-spacing: 0.03em;
}

.footer-keywords {
    font-size: 0.78rem !important;
    color: var(--grey-3) !important;
    letter-spacing: 0.06em;
}

/* ==== ANIMATIONS ==== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.section.active {
    display: block;
    animation: fadeUp 0.4s var(--ease) forwards;
}

.landing-hero.active {
    display: flex;
}

/* Mobile media queries moved to bottom of file */

/* ==== BLOG PREVIEW ==== */
.blog-preview {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
    background: var(--black);
    position: relative;
    z-index: 1;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-see-all {
    font-size: 0.9rem;
    color: var(--blue);
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: opacity var(--fast) var(--ease);
}
.blog-see-all:hover { opacity: 0.75; color: var(--blue); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: border-color var(--mid) var(--ease), transform var(--mid) var(--ease);
}
.blog-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}

.blog-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
}

.blog-card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--white);
    transition: color var(--fast) var(--ease);
}
.blog-card h3 a:hover { color: var(--blue); }

.blog-card p {
    font-size: 0.85rem;
    color: var(--grey-2);
    line-height: 1.65;
    flex: 1;
}

.blog-date {
    font-size: 0.75rem;
    color: var(--grey-3);
    letter-spacing: 0.04em;
}

/* ==== BLOG PAGE (blog.html) ==== */
.blog-page-hero {
    padding: 10rem 0 5rem;
    text-align: center;
}

.blog-page-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1.25rem;
}

.blog-page-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.blog-page-sub {
    font-size: 1.1rem;
    color: var(--grey-1);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto;
}
.blog-page-sub strong { color: var(--white); font-weight: 500; }

.blog-page-main {
    padding: 0 0 8rem;
}

.blog-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 6rem;
}

.blog-page-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: border-color var(--mid) var(--ease), transform var(--mid) var(--ease);
}
.blog-page-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}

.blog-page-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
}

.article-container { max-width: 900px; margin: 0 auto; padding: 6rem 2rem 8rem; }
.article-container h2 { 
    font-size: clamp(2rem, 4vw, 2.5rem); 
    font-weight: 500; 
    letter-spacing: -0.03em;
    color: var(--white); 
    margin: 4.5rem 0 1.5rem; 
}
.article-container h3 { 
    font-size: clamp(1.5rem, 3vw, 1.8rem); 
    font-weight: 400; 
    color: var(--white); 
    margin: 3.5rem 0 1rem; 
}
.article-container p { 
    color: var(--grey-1); 
    line-height: 1.85; 
    font-size: 1.15rem; 
    margin-bottom: 2rem; 
}
.article-container a { color: var(--blue); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--fast) var(--ease); }
.article-container a:hover { border-color: var(--blue); }
.article-container ul, .article-container ol { 
    color: var(--grey-1); 
    font-size: 1.15rem; 
    line-height: 1.85; 
    margin-bottom: 2rem; 
    padding-left: 1.5rem;
}
.article-cta { 
    background: var(--surface-2); 
    border: 1px solid var(--border-strong); 
    border-radius: var(--radius-lg); 
    padding: 4rem; 
    text-align: center; 
    margin: 5rem 0; 
}
.article-cta h3 { color: var(--white); margin: 0 0 1rem 0; font-size: 1.8rem; font-weight: 500; }
.article-cta p { font-size: 1.15rem; color: var(--grey-1); margin-bottom: 2.5rem; }
.article-back { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--grey-2); text-decoration: none; font-size: 0.95rem; margin-bottom: 3rem; transition: color 0.2s; font-weight: 500; letter-spacing: 0.04em; }
.article-back:hover { color: var(--white); }

/* --- Blue Numbers for Tutorial Steps --- */
.steps {
    list-style: none;
    padding: 0;
    margin: 4rem 0;
}

.steps li {
    margin-bottom: 3.5rem;
    position: relative;
    display: flex;
    gap: 1rem;
}

.blue-number {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.7rem;
    box-shadow: 0 4px 8px rgba(0, 102, 255, 0.3);
    margin-right: 0.85rem;
    position: relative;
    top: -1px;
}

.step-title {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.steps li p {
    margin: 0;
    color: var(--grey-2);
    line-height: 1.7;
    font-size: 1.05rem;
}

.blog-page-card h2 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1.4;
}
.blog-page-card h2 a {
    color: var(--white);
    transition: color var(--fast) var(--ease);
}
.blog-page-card h2 a:hover { color: var(--blue); }

.blog-page-card p {
    font-size: 0.875rem;
    color: var(--grey-2);
    line-height: 1.65;
    flex: 1;
}

.blog-page-meta {
    font-size: 0.75rem;
    color: var(--grey-3);
    letter-spacing: 0.04em;
}

.blog-page-seo {
    border-top: 1px solid var(--border);
    padding-top: 4rem;
}
.blog-page-seo h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1rem;
}

/* --- Improved SEO Grid for Article Pages --- */
.seo-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--container);
    margin: 4rem auto 0;
}

.seo-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all var(--mid) var(--ease);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.seo-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--border-strong);
    transition: background var(--mid) var(--ease);
}

.seo-block:hover {
    border-color: var(--blue-dim);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.seo-block:hover::before {
    background: var(--blue);
}

.seo-block h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.seo-block p {
    font-size: 0.95rem;
    color: var(--grey-1);
    line-height: 1.7;
    margin: 0;
}

.seo-tagline {
    margin-top: 5rem;
    font-size: 0.85rem;
    color: var(--grey-3);
    line-height: 1.8;
    letter-spacing: 0.04em;
    opacity: 0.6;
}

/* --- Premium Footer Standardization --- */
.premium-footer {
    padding: 8rem 0 6rem;
    background: var(--black);
    border-top: 1px solid var(--border);
    text-align: left;
}

.footer-links {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.footer-links a {
    color: var(--grey-3);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.3s var(--ease);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--grey-3);
    letter-spacing: 0.12em;
    opacity: 0.4;
    text-transform: uppercase;
}
.blog-page-seo p {
    font-size: 0.9rem;
    color: var(--grey-2);
    line-height: 1.7;
    max-width: 700px;
}
.blog-page-seo strong { color: var(--white); font-weight: 500; }

@media (max-width: 1024px) {
    .seo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==== RESPONSIVE (MOBILE) ==== */
@media (max-width: 768px) {
    /* Header layout */
    .top-nav { padding: 0 1rem; }
    .nav-link { display: none; }
    .nav-btn .btn-text { display: none; }
    .nav-btn { width: 40px; height: 40px; border-radius: 50%; padding: 0; display: flex; justify-content: center; align-items: center; gap: 0; }
    .logo-link { font-size: 1.1rem; white-space: nowrap; }

    /* Grids */
    .features-grid,
    .minimal-faq-grid,
    .tips-grid,
    .blog-grid,
    .blog-page-grid,
    .seo-grid { grid-template-columns: 1fr; }
    
    .seo-grid { gap: 1.5rem; }
    .controls-container { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .footer-inner { flex-direction: column; gap: 3rem; }
    .footer-nav { gap: 2.5rem; }
    .mastering-card { padding: 1.75rem; }
    .landing-title, .blog-page-title { font-size: 2.5rem; }
    .landing-subtitle { padding: 0 0.5rem; }

    /* Article layout */
    .article-cta { padding: 2.5rem 1.5rem; margin: 3rem 0; }
    .article-container { padding: 3rem 1.5rem 4rem; }
}

.blue-text { color: var(--blue) !important; font-weight: 700; }
.feature-visual { color: var(--white) !important; }
.tip-number { color: var(--blue) !important; }

.feature-item h3, .tip-card h3 {
    color: var(--white) !important;
}

.feature-item p strong, .faq-block p strong, .blog-page-seo strong, .article-container p strong, .steps li strong {
    color: var(--white);
}

.tip-card p strong {
    color: var(--blue);
}
