/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f8fa;
    color: #171717;
    line-height: 1.5;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.header-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    flex-shrink: 0;

    color: #171717;
    text-decoration: none;

    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 400;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 28px;
}

.main-nav a {
    color: #555555;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #111111;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    width: 100%;

    padding: 82px 20px 55px;

    background: #ffffff;

    text-align: center;
}

.hero-content {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;
}

.eyebrow {
    margin-bottom: 14px;

    color: #777777;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero h1 {
    margin-bottom: 18px;

    color: #171717;

    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.05;
    letter-spacing: -2.5px;
}

.hero-description {
    width: 100%;
    max-width: 620px;

    margin: 0 auto 30px;

    color: #666666;

    font-size: 17px;
    line-height: 1.6;
}


/* =========================================================
   BUTTONS
========================================================= */

.generate-button {
    border: 0;
    border-radius: 10px;

    padding: 15px 25px;

    background: #171717;
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.generate-button:hover {
    background: #000000;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.12);
}

.generate-button:active {
    transform: translateY(0);
}

.generate-button span {
    margin-right: 7px;
}


/* =========================================================
   PALETTE SECTION
========================================================= */

.palette-section {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    padding: 45px 0 75px;
}

.palette {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));

    overflow: hidden;

    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.08);
}

.color-card {
    min-width: 0;

    background: #ffffff;
}

.color-preview {
    position: relative;

    width: 100%;
    height: 330px;

    cursor: pointer;
}


/* =========================================================
   COLOR INFORMATION
========================================================= */

.color-info {
    width: 100%;
    height: 76px;

    padding: 0 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    background: #ffffff;
}

.hex {
    min-width: 0;

    color: #171717;

    font-family: monospace;
    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.2px;

    white-space: nowrap;
}


/* =========================================================
   COPY BUTTON
========================================================= */

.copy-button {
    flex-shrink: 0;

    border: 1px solid #dedede;
    border-radius: 7px;

    padding: 7px 10px;

    background: #ffffff;
    color: #333333;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.copy-button:hover {
    background: #f3f3f3;
    border-color: #cfcfcf;
}

.copy-button.copied {
    background: #171717;
    border-color: #171717;
    color: #ffffff;
}


/* =========================================================
   LOCK BUTTON
========================================================= */

.lock-button {
    flex-shrink: 0;

    border: 0;

    padding: 5px;

    background: transparent;
    color: #171717;

    font-size: 16px;
    line-height: 1;

    cursor: pointer;

    opacity: 0.45;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.lock-button:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lock-button.locked {
    opacity: 1;
}


/* =========================================================
   COLOR PREVIEW - COPY FEEDBACK
========================================================= */

.color-preview::after {
    content: "Click to copy";

    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    padding: 8px 12px;

    border-radius: 6px;

    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.2s ease;
}

.color-preview:hover::after {
    opacity: 1;
}

.color-preview[data-copied="Copied!"]::after {
    content: "Copied!";
    opacity: 1;
}


/* =========================================================
   PALETTE ACTIONS
========================================================= */

.palette-actions {
    padding-top: 25px;

    display: flex;
    justify-content: center;
}

.generate-button.secondary {
    background: #ffffff;
    color: #171717;

    border: 1px solid #dcdcdc;
}

.generate-button.secondary:hover {
    background: #f3f3f3;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
    width: 100%;

    padding: 80px 20px;

    background: #ffffff;

    border-top: 1px solid #eeeeee;
}

.about-content {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;
}

.about-content h2 {
    margin-bottom: 20px;

    color: #171717;

    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.about-content p {
    margin-bottom: 15px;

    color: #666666;

    font-size: 16px;
    line-height: 1.7;
}

.about-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    width: 100%;

    background: #171717;
    color: #ffffff;
}

.footer-inner {
    width: min(1180px, calc(100% - 40px));

    min-height: 110px;

    margin: 0 auto;
    padding: 20px 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;
}

.footer-inner p {
    margin: 0;

    color: #aaaaaa;

    font-size: 13px;
    line-height: 1.5;

    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;

    gap: 20px;
}

.footer-links a {
    color: #aaaaaa;

    text-decoration: none;

    font-size: 13px;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}


/* =========================================================
   LEGAL PAGES
   Privacy Policy / Terms of Use
========================================================= */

.legal-page {
    width: 100%;

    background: #ffffff;

    padding: 70px 20px 90px;
}

.legal-container {
    width: min(800px, 100%);

    margin: 0 auto;
}

.legal-container h1 {
    margin-bottom: 45px;

    color: #171717;

    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.legal-container h2 {
    margin-top: 40px;
    margin-bottom: 15px;

    color: #171717;

    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.legal-container h2:first-of-type {
    margin-top: 0;
}

.legal-container p {
    margin-bottom: 18px;

    color: #555555;

    font-size: 16px;
    line-height: 1.8;
}

.legal-container p:last-child {
    margin-bottom: 0;
}

.legal-container ul {
    margin: 0 0 22px 22px;
}

.legal-container li {
    margin-bottom: 10px;

    color: #555555;

    font-size: 16px;
    line-height: 1.7;
}

.legal-container a {
    color: #171717;

    font-weight: 600;

    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-container a:hover {
    color: #666666;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .header-inner {
        width: calc(100% - 30px);
    }

    .main-nav {
        gap: 20px;
    }

    .palette-section {
        width: calc(100% - 30px);
    }

    .color-preview {
        height: 260px;
    }

    .color-info {
        padding: 0 9px;

        gap: 5px;
    }

    .hex {
        font-size: 12px;
    }

    .lock-button {
        padding: 4px;

        font-size: 15px;
    }

    .copy-button {
        padding: 6px 7px;

        font-size: 11px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    /* HEADER */

    .header-inner {
        width: calc(100% - 30px);

        min-height: 64px;

        gap: 15px;
    }

    .logo {
        font-size: 21px;
    }

    .main-nav {
        gap: 14px;
    }

    .main-nav a {
        font-size: 13px;
    }


    /* HERO */

    .hero {
        padding: 55px 18px 40px;
    }

    .eyebrow {
        margin-bottom: 12px;

        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .hero h1 {
        margin-bottom: 16px;

        font-size: clamp(34px, 10vw, 46px);

        line-height: 1.08;
        letter-spacing: -1.5px;
    }

    .hero-description {
        margin-bottom: 26px;

        font-size: 15px;
        line-height: 1.6;
    }

    .generate-button {
        width: 100%;
        max-width: 300px;

        padding: 14px 20px;
    }


    /* PALETTE */

    .palette-section {
        width: 100%;

        padding: 25px 10px 55px;
    }

    .palette {
        grid-template-columns: repeat(5, minmax(0, 1fr));

        border-radius: 12px;
    }

    .color-preview {
        height: 190px;
    }

    .color-info {
        height: 78px;

        padding: 7px 3px;

        display: flex;
        flex-direction: column;

        justify-content: center;
        align-items: center;

        gap: 5px;
    }

    .hex {
        max-width: 100%;

        font-size: 10px;
        letter-spacing: 0;
        line-height: 1;
    }

    .lock-button {
        padding: 3px;

        font-size: 14px;
    }

    .copy-button {
        width: 90%;

        padding: 5px 2px;

        border-radius: 6px;

        font-size: 10px;
        line-height: 1.2;
    }


    /* PALETTE BUTTON */

    .palette-actions {
        padding-top: 20px;
    }

    .generate-button.secondary {
        width: 100%;
        max-width: 300px;
    }


    /* ABOUT */

    .about-section {
        padding: 55px 20px;
    }

    .about-content h2 {
        margin-bottom: 18px;

        font-size: 26px;
        line-height: 1.2;
    }

    .about-content p {
        font-size: 15px;
        line-height: 1.7;
    }


    /* FOOTER */

    .footer-inner {
        width: calc(100% - 30px);

        min-height: 0;

        padding: 24px 0;

        display: flex;
        flex-direction: column;

        gap: 12px;
    }

    .footer-inner p {
        font-size: 12px;
    }

    .footer-links {
        display: flex;
        justify-content: center;

        gap: 18px;
    }

    .footer-links a {
        font-size: 12px;
    }


    /* LEGAL PAGES */

    .legal-page {
        padding: 45px 18px 65px;
    }

    .legal-container h1 {
        margin-bottom: 35px;

        font-size: 32px;
        line-height: 1.15;
        letter-spacing: -1px;
    }

    .legal-container h2 {
        margin-top: 32px;
        margin-bottom: 12px;

        font-size: 21px;
        line-height: 1.3;
    }

    .legal-container p {
        margin-bottom: 16px;

        font-size: 15px;
        line-height: 1.75;
    }

    .legal-container li {
        font-size: 15px;
        line-height: 1.7;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    /* HEADER */

    .header-inner {
        width: calc(100% - 24px);

        gap: 10px;
    }

    .logo {
        font-size: 19px;
    }

    .main-nav {
        gap: 10px;
    }

    .main-nav a {
        font-size: 12px;
    }


    /* HERO */

    .hero {
        padding: 45px 15px 35px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-description {
        font-size: 14px;
    }


    /* PALETTE */

    .palette-section {
        padding-left: 6px;
        padding-right: 6px;
    }

    .palette {
        border-radius: 10px;
    }

    .color-preview {
        height: 150px;
    }

    .color-info {
        height: 76px;

        padding: 6px 2px;

        gap: 4px;
    }

    .hex {
        font-size: 9px;
    }

    .lock-button {
        padding: 2px;

        font-size: 13px;
    }

    .copy-button {
        width: 92%;

        padding: 5px 1px;

        font-size: 9px;
    }


    /* ABOUT */

    .about-section {
        padding: 45px 18px;
    }

    .about-content h2 {
        font-size: 24px;
    }


    /* FOOTER */

    .footer-inner {
        width: calc(100% - 24px);

        padding: 22px 0;
    }

    .footer-links {
        gap: 14px;
    }


    /* LEGAL */

    .legal-page {
        padding: 40px 15px 55px;
    }

    .legal-container h1 {
        margin-bottom: 30px;

        font-size: 29px;
    }

    .legal-container h2 {
        font-size: 20px;
    }

    .legal-container p {
        font-size: 14px;
        line-height: 1.75;
    }

}


/* ========================================
HOW IT WORKS
======================================== */

.how-it-works {
padding: 80px 20px;
background: #f7f8fa;
}

.how-it-works-content {
width: min(1180px, 100%);
margin: 0 auto;
}

.section-heading {
max-width: 760px;
margin: 0 auto 50px;
text-align: center;
}

.section-heading .eyebrow {
margin-bottom: 14px;
}

.section-heading h2 {
margin-bottom: 18px;
color: #171717;
font-size: 36px;
line-height: 1.15;
letter-spacing: -1.5px;
}

.section-heading > p:last-child {
max-width: 650px;
margin: 0 auto;
color: #666;
font-size: 16px;
line-height: 1.7;
}

.steps {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 25px;
}

.step {
padding: 32px 28px;
background: #ffffff;
border: 1px solid #eeeeee;
border-radius: 16px;
text-align: center;
}

.step-number {
width: 42px;
height: 42px;
margin: 0 auto 20px;

display: flex;
align-items: center;
justify-content: center;

border-radius: 50%;

background: #171717;
color: #ffffff;

font-size: 16px;
font-weight: 700;

}

.step h3 {
margin-bottom: 10px;

color: #171717;
font-size: 20px;
line-height: 1.2;

}

.step p {
color: #666;
font-size: 15px;
line-height: 1.7;
}

/* ========================================
HOW IT WORKS - MOBILE
======================================== */

@media (max-width: 650px) {

.how-it-works {
    padding: 55px 18px;
}

.section-heading {
    margin-bottom: 35px;
}

.section-heading h2 {
    font-size: 28px;
    line-height: 1.2;
}

.section-heading > p:last-child {
    font-size: 15px;
}

.steps {
    grid-template-columns: 1fr;
    gap: 15px;
}

.step {
    padding: 28px 22px;
}

}