/* Pixko global styles — V1 foundation.
   Detailed styling will be updated after the folder structure is deployed. */
:root {
    --bg: #0b0d10;
    --surface: #12161b;
    --surface-soft: #171c22;
    --border: #252c34;

    --text: #f4f7fa;
    --text-muted: #aab3bd;

    --accent: #5aa9ff;
    --accent-hover: #78baff;

    --max-width: 1180px;

    --radius: 16px;
    --radius-small: 10px;

    --shadow: 0 18px 50px rgba(0, 0, 0, 0.25);

    --space-section: 96px;
}


.logo-image {
    display: block;
    width: 130px;
    height: auto;
}

/* =========================
   RESET
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================
   GLOBAL LAYOUT
   ========================= */

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}

section {
    scroll-margin-top: 90px;
}


/* =========================
   TYPOGRAPHY
   ========================= */

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h1 {
    max-width: 850px;
    margin-bottom: 24px;
    font-size: clamp(2.7rem, 7vw, 5.5rem);
    font-weight: 750;
}

h2 {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 700;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

p {
    color: var(--text-muted);
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}


/* =========================
   HEADER
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(11, 13, 16, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    flex: 0 0 auto;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav a {
    flex: 0 0 auto;
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition:
        color 160ms ease,
        opacity 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--text);
}

.main-nav a:focus-visible,
.logo:focus-visible,
.btn:focus-visible,
.card a:focus-visible,
.footer-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}


/* =========================
   HERO
   ========================= */

.hero {
    min-height: 680px;
    display: flex;
    align-items: center;
    padding: 110px 0 120px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(90, 169, 255, 0.12),
            transparent 34%
        ),
        var(--bg);
}

.hero-content {
    position: relative;
}

.hero-description {
    max-width: 700px;
    margin-bottom: 34px;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* =========================
   BUTTONS
   ========================= */

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 650;
    transition:
        background 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #07101a;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    border-color: var(--border);
    background: transparent;
    color: var(--text);
}

.btn-secondary:hover {
    border-color: #3a4652;
    background: var(--surface);
}


/* =========================
   SECTIONS
   ========================= */

.tools-section,
.about-section,
.moments-section,
.contact-section {
    padding: var(--space-section) 0;
}

.about-section,
.contact-section {
    border-top: 1px solid var(--border);
}

.section-heading {
    max-width: 850px;
    margin-bottom: 48px;
}

.section-heading > p:last-child {
    max-width: 720px;
    font-size: 1.05rem;
}

.section-heading p + p {
    margin-top: 16px;
}


/* =========================
   CARDS
   ========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card {
    min-width: 0;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.card p {
    margin-bottom: 24px;
}

.card a {
    margin-top: auto;
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 650;
}

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


/* =========================
   CTA
   ========================= */

.cta-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.cta-section p:not(.eyebrow) {
    max-width: 650px;
    margin-bottom: 28px;
    font-size: 1.05rem;
}


/* =========================
   FOOTER
   ========================= */

.site-footer {
    padding: 42px 0;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.site-footer strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.site-footer p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
    .header-inner {
        align-items: flex-start;
        padding: 14px 0;
    }

    .main-nav {
        justify-content: flex-start;
        gap: 16px;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        min-height: auto;
        padding: 90px 0 100px;
    }
}


@media (max-width: 640px) {
    :root {
        --space-section: 72px;
    }

    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .header-inner {
        display: block;
    }

    .logo {
        display: inline-block;
        margin-bottom: 8px;
    }

    .main-nav {
        justify-content: flex-start;
        gap: 18px;
    }

    .main-nav a {
        font-size: 0.84rem;
    }

    .hero {
        padding: 76px 0 82px;
    }

    h1 {
        font-size: clamp(2.45rem, 13vw, 4rem);
    }

    h2 {
        font-size: clamp(1.9rem, 9vw, 2.8rem);
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: 190px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
    }
}


/* =========================
   REDUCED MOTION
   ========================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
