:root {
    --bg: #ffffff;
    --bg-soft: #f5f7fa;
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --text: #111827;
    --text-muted: #667085;
    --border: #e5e7eb;
    --primary: #111827;
    --primary-text: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.92);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] {
    --bg: #0b0f14;
    --bg-soft: #111720;
    --surface: #151b23;
    --surface-hover: #1b232e;
    --text: #f3f4f6;
    --text-muted: #a7b0bd;
    --border: #293241;
    --primary: #f3f4f6;
    --primary-text: #111827;
    --header-bg: rgba(11, 15, 20, 0.94);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    line-height: 1.6;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

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

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: var(--header-bg);
    backdrop-filter: blur(12px);
}

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

.brand {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

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

.theme-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 1.05rem;
}

.theme-toggle:hover {
    background: var(--surface-hover);
}

/* Hero */

.hero {
    padding: 110px 0 100px;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(100, 116, 139, 0.10),
            transparent 35%
        ),
        var(--bg);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.hero h1 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero-text {
    max-width: 720px;
    margin: 28px 0 0;
    color: var(--text-muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

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

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    font-weight: 700;
    transition:
        transform 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease;
}

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

.button-primary {
    background: var(--primary);
    color: var(--primary-text);
}

.button-secondary {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

/* Sections */

.section {
    padding: 100px 0;
}

.section-light {
    background: var(--bg-soft);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p:last-child {
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Cards */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    min-height: 250px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.card:hover {
    background: var(--surface-hover);
}

.step-number {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.card h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.card p {
    margin: 0;
    color: var(--text-muted);
}

/* CTA */

.cta {
    padding: 100px 0;
    text-align: center;
    background: var(--bg);
}

.cta h2 {
    max-width: 700px;
    margin: 0 auto;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.cta p {
    margin: 20px 0 28px;
    color: var(--text-muted);
}

/* Footer */

.site-footer {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.site-footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile */

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .header-inner {
        min-height: 62px;
    }

    .main-nav {
        gap: 10px;
    }

    .main-nav a {
        display: none;
    }

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

    .hero h1 {
        font-size: clamp(2.6rem, 14vw, 4rem);
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .section {
        padding: 72px 0;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .card {
        min-height: auto;
        padding: 24px;
    }

    .step-number {
        margin-bottom: 18px;
    }

    .cta {
        padding: 72px 0;
    }

    .cta .button {
        width: 100%;
    }
}

/* PIG Header */

.brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.brand-main {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.brand-sub {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-signup {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.nav-signup:hover {
    background: var(--surface-hover);
}

.language-toggle {
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.language-toggle:hover {
    background: var(--surface-hover);
}

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

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

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

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

@media (max-width: 900px) {
    .brand-sub {
        display: none;
    }

    .main-nav {
        gap: 8px;
    }

    .main-nav a {
        display: none;
    }

    .main-nav .nav-signup {
        display: inline-flex;
    }

    .language-toggle {
        display: inline-block;
    }
}

@media (max-width: 600px) {
    .header-inner {
        min-height: 60px;
    }

    .brand-main {
        font-size: 1.3rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Dark-first theme */
:root {
    --bg: #0b0f14;
    --bg-soft: #111720;
    --surface: #151b23;
    --surface-hover: #1b232e;
    --text: #f3f4f6;
    --text-muted: #a7b0bd;
    --border: #293241;
    --primary: #f3f4f6;
    --primary-text: #111827;
    --header-bg: rgba(11, 15, 20, 0.94);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] {
    --bg: #ffffff;
    --bg-soft: #f5f7fa;
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --text: #111827;
    --text-muted: #667085;
    --border: #e5e7eb;
    --primary: #111827;
    --primary-text: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.92);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 1.25rem;
}

@media (max-width: 760px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        padding: 14px;
        border-bottom: 1px solid var(--border);
        background: var(--header-bg);
        backdrop-filter: blur(16px);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: grid;
        gap: 6px;
    }

    .main-nav a,
    .main-nav .nav-signup,
    .main-nav .language-toggle {
        display: flex;
        width: 100%;
        min-height: 46px;
        align-items: center;
        padding: 0 14px;
        border-radius: 10px;
    }

    .main-nav a:hover,
    .main-nav .language-toggle:hover {
        background: var(--surface-hover);
    }
}
